summaryrefslogtreecommitdiff
path: root/test/files/neg/t5354.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t5354.scala')
-rw-r--r--test/files/neg/t5354.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/neg/t5354.scala b/test/files/neg/t5354.scala
new file mode 100644
index 0000000000..99b5650155
--- /dev/null
+++ b/test/files/neg/t5354.scala
@@ -0,0 +1,15 @@
+package object foo {
+ implicit def x123: Bippy = new Bippy("x")
+}
+package foo {
+ class Bippy(override val toString: String){ }
+ class Dingus {
+ def f1 = {
+ implicit def z: Bippy = new Bippy("z")
+ implicitly[Bippy]
+ }
+ }
+ object Test extends App {
+ println(new Dingus().f1)
+ }
+}