aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/override.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/override.check')
-rw-r--r--tests/untried/neg/override.check5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/untried/neg/override.check b/tests/untried/neg/override.check
new file mode 100644
index 000000000..8be98bf4d
--- /dev/null
+++ b/tests/untried/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 = {println(""); x}
+ ^
+one error found