aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t4989.check
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/neg/t4989.check')
-rw-r--r--tests/untried/neg/t4989.check7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/untried/neg/t4989.check b/tests/untried/neg/t4989.check
new file mode 100644
index 000000000..814507fc3
--- /dev/null
+++ b/tests/untried/neg/t4989.check
@@ -0,0 +1,7 @@
+t4989.scala:14: error: method print in class A cannot be directly accessed from class C because class B redeclares it as abstract
+ override def print(): String = super.print() // should be an error
+ ^
+t4989.scala:18: error: method print in class A cannot be directly accessed from trait T because class B redeclares it as abstract
+ override def print(): String = super.print() // should be an error
+ ^
+two errors found