summaryrefslogtreecommitdiff
path: root/test/files/neg/bug562.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/bug562.check')
-rw-r--r--test/files/neg/bug562.check6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/neg/bug562.check b/test/files/neg/bug562.check
new file mode 100644
index 0000000000..6654ee5ef9
--- /dev/null
+++ b/test/files/neg/bug562.check
@@ -0,0 +1,6 @@
+bug562.scala:10 error: error overriding value y in trait YYY of type => scala.Int;
+ value y cannot override a value or variable definition in a trait
+ (this is an implementation restriction)
+ override val y = super.y;
+ ^
+one error found