summaryrefslogtreecommitdiff
path: root/test/files/neg/override.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/override.check')
-rw-r--r--test/files/neg/override.check5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/files/neg/override.check b/test/files/neg/override.check
new file mode 100644
index 0000000000..0336fb2b11
--- /dev/null
+++ b/test/files/neg/override.check
@@ -0,0 +1,5 @@
+override.scala:9: error: overriding type T in trait A with bounds >: Int <: Int;
+ type T in trait B with bounds >: String <: String has incompatible type
+ lazy val x : A with B = x
+ ^
+one error found