Skip to content

Commit 673af1f

Browse files
committed
Add neg test
1 parent c8d9b0d commit 673af1f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/neg/i876.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)