aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t2066.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t2066.check')
-rw-r--r--tests/untried/neg/t2066.check21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/untried/neg/t2066.check b/tests/untried/neg/t2066.check
new file mode 100644
index 000000000..efade87e2
--- /dev/null
+++ b/tests/untried/neg/t2066.check
@@ -0,0 +1,21 @@
+t2066.scala:6: error: overriding method f in trait A1 of type [T[_]]=> Unit;
+ method f has incompatible type
+ override def f[T[+_]] = ()
+ ^
+t2066.scala:10: error: overriding method f in trait A1 of type [T[_]]=> Unit;
+ method f has incompatible type
+ override def f[T[-_]] = ()
+ ^
+t2066.scala:23: error: overriding method f in trait A2 of type [T[+_]]=> Unit;
+ method f has incompatible type
+ override def f[T[-_]] = ()
+ ^
+t2066.scala:45: error: overriding method f in trait A4 of type [T[X[+_]]]=> Unit;
+ method f has incompatible type
+ override def f[T[X[_]]] = ()
+ ^
+t2066.scala:53: error: overriding method f in trait A5 of type [T[X[-_]]]=> Unit;
+ method f has incompatible type
+ override def f[T[X[_]]] = ()
+ ^
+5 errors found