Skip to content

Commit dc71314

Browse files
committed
Add test
1 parent 3eb0fdd commit dc71314

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/neg/i2514.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
object Foo {
2+
def foo(): Int = {
3+
val f: implicit Int => Int = (implicit x: Int) => 2 * x // error // error
4+
f(2)
5+
}
6+
7+
val f = (implicit x: Int) => x // error // error
8+
9+
((implicit x: Int) => x): (implicit Int => Int) // error // error // error
10+
}

0 commit comments

Comments
 (0)