aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t6260c.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t6260c.check')
-rw-r--r--tests/untried/neg/t6260c.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/t6260c.check b/tests/untried/neg/t6260c.check
new file mode 100644
index 000000000..cbbcfd150
--- /dev/null
+++ b/tests/untried/neg/t6260c.check
@@ -0,0 +1,7 @@
+t6260c.scala:4: error: bridge generated for member method f: ()Option[A] in class Bar1
+which overrides method f: ()A in class Foo1
+clashes with definition of the member itself;
+both have erased type ()Object
+ class Bar1[A] extends Foo1[Option[A]] { def f(): Option[A] = ??? }
+ ^
+one error found