We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3eb0fdd commit dc71314Copy full SHA for dc71314
tests/neg/i2514.scala
@@ -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