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 bd04177 commit 4721da5Copy full SHA for 4721da5
tests/run/i876.scala
@@ -0,0 +1,10 @@
1
+object Test extends App {
2
+ object O
3
+ implicit def foo(x: O.type): String = "hello"
4
+ val s: String = O
5
+ implicit def bar(x: s.type): Int = s.length
6
+ //implicit def bar2(x: String): Int = s.length
7
+ val l: Int = s
8
+ assert(s == "hello")
9
+ assert(l == 5)
10
+}
0 commit comments