summaryrefslogtreecommitdiff
path: root/test/files/neg/t6260b.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t6260b.check')
-rw-r--r--test/files/neg/t6260b.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t6260b.check b/test/files/neg/t6260b.check
new file mode 100644
index 0000000000..3a7e8947aa
--- /dev/null
+++ b/test/files/neg/t6260b.check
@@ -0,0 +1,7 @@
+t6260b.scala:3: error: bridge generated for member method apply: ()X in <$anon: () => X>
+which overrides method apply: ()R in trait Function0
+clashes with definition of the member itself;
+both have erased type ()Object
+class Y { def f = new X("") or new X("") }
+ ^
+one error found