summaryrefslogtreecommitdiff
path: root/test/files/neg/t4431.check
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t4431.check')
-rw-r--r--test/files/neg/t4431.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/files/neg/t4431.check b/test/files/neg/t4431.check
new file mode 100644
index 0000000000..7896ec1a62
--- /dev/null
+++ b/test/files/neg/t4431.check
@@ -0,0 +1,7 @@
+t4431.scala:5: error: class BB needs to be abstract, since there is a deferred declaration of method f which is not implemented in a subclass
+ class BB extends B { def f (): Unit }
+ ^
+t4431.scala:8: error: trait cannot redefine final method from class AnyRef
+ trait C { def wait (): Unit }
+ ^
+two errors found