summaryrefslogtreecommitdiff
path: root/test/files/neg/t8265.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t8265.check')
-rw-r--r--test/files/neg/t8265.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/t8265.check b/test/files/neg/t8265.check
new file mode 100644
index 0000000000..7b1db1c4e5
--- /dev/null
+++ b/test/files/neg/t8265.check
@@ -0,0 +1,6 @@
+t8265.scala:1: warning: Construct depends on unsound variance analysis and will not compile in scala 2.11 and beyond
+class Foo[+CC[X]] { type Coll = CC[_] }
+ ^
+error: No warnings can be incurred under -Xfatal-warnings.
+one warning found
+one error found