Skip to content

Commit 498f081

Browse files
committed
Add neg test
1 parent 4a488c8 commit 498f081

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/neg/implied-for.scala

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
trait T
2+
class B extends T
3+
class C extends T
4+
5+
object A {
6+
implied b for B
7+
implied c for C
8+
}
9+
10+
object Test extends App {
11+
import A._
12+
import implied A.{for B}
13+
14+
val x: B = b // OK
15+
println(c) // error: not found
16+
17+
the[C] // error
18+
19+
}

0 commit comments

Comments
 (0)