Skip to content

Commit d3cd401

Browse files
committed
Fix neg test
1 parent 4721da5 commit d3cd401

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/neg/implicitDefs.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ object implicitDefs {
77

88
implicit val x = 2 // error: type of implicit definition needs to be given explicitly
99
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
10+
implicit def z(a: x.type): String = "" // ok, used to be: implicit conversion may not have a parameter of singleton type
1111

1212
def foo(implicit x: String) = 1
1313

0 commit comments

Comments
 (0)