aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t6566a.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t6566a.check')
-rw-r--r--tests/untried/neg/t6566a.check4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/untried/neg/t6566a.check b/tests/untried/neg/t6566a.check
new file mode 100644
index 000000000..7668f9d2f
--- /dev/null
+++ b/tests/untried/neg/t6566a.check
@@ -0,0 +1,4 @@
+t6566a.scala:2: error: covariant type T occurs in invariant position in type T of type MyType
+ class TypeCheat[+T] { type MyType = T }
+ ^
+one error found