aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t6260-named.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t6260-named.check')
-rw-r--r--tests/untried/neg/t6260-named.check13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/untried/neg/t6260-named.check b/tests/untried/neg/t6260-named.check
new file mode 100644
index 000000000..ed6ab5e76
--- /dev/null
+++ b/tests/untried/neg/t6260-named.check
@@ -0,0 +1,13 @@
+t6260-named.scala:12: error: bridge generated for member method apply: (a: C[Any])C[Any] in object O
+which overrides method apply: (v1: T1)R in trait Function1
+clashes with definition of the member itself;
+both have erased type (v1: Object)Object
+ def apply(a: C[Any]) = a
+ ^
+t6260-named.scala:14: error: bridge generated for member method apply: (a: C[Any])C[Any] in class X
+which overrides method apply: (a: A)A in trait T
+clashes with definition of the member itself;
+both have erased type (a: Object)Object
+ class X extends T[C[Any]] { def apply(a: C[Any]) = a }
+ ^
+two errors found