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 8ddfcaf commit 30e5f26Copy full SHA for 30e5f26
tests/neg/i2514a.scala
@@ -0,0 +1,10 @@
1
+object Foo {
2
+ def foo(): Int = {
3
+ val f: implicit Int => Int = implicit (x: Int) => 2 * x
4
+ f(2)
5
+ }
6
+
7
+ val f = implicit (x: Int) => x
8
9
+ (implicit (x: Int) => x): (implicit Int => Int) // error: no implicit argument found
10
+}
0 commit comments