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 c8d9b0d commit 673af1fCopy full SHA for 673af1f
tests/neg/i876.scala
@@ -0,0 +1,8 @@
1
+object Test {
2
+ val a: Int = 1
3
+ implicit def foo(x: a.type): String = "hi"
4
+ val b: Int = a
5
+
6
+ val x: String = a // ok
7
+ val y: String = b // error: found Int, required String
8
+}
0 commit comments