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 4721da5 commit d3cd401Copy full SHA for d3cd401
tests/neg/implicitDefs.scala
@@ -7,7 +7,7 @@ object implicitDefs {
7
8
implicit val x = 2 // error: type of implicit definition needs to be given explicitly
9
implicit def y(x: Int) = 3 // error: result type of implicit definition needs to be given explicitly
10
- implicit def z(a: x.type): String = "" // error: implicit conversion may not have a parameter of singleton type
+ implicit def z(a: x.type): String = "" // ok, used to be: implicit conversion may not have a parameter of singleton type
11
12
def foo(implicit x: String) = 1
13
0 commit comments