diff options
Diffstat (limited to 'test/files/neg/implicit-shadow.scala')
-rw-r--r-- | test/files/neg/implicit-shadow.scala | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/implicit-shadow.scala b/test/files/neg/implicit-shadow.scala new file mode 100644 index 0000000000..ffd34b6408 --- /dev/null +++ b/test/files/neg/implicit-shadow.scala @@ -0,0 +1,13 @@ +object Test { + import B._, C._ + + 1.isEmpty +} + +trait A { + implicit def i2s(i: Int): String = "" +} + +object B extends A + +object C extends A
\ No newline at end of file |