summaryrefslogtreecommitdiff
path: root/test/files/neg/t4989.check
blob: 814507fc3ffbb1f32982367f850e1dcd673d9376 (plain) (blame)
1
2
3
4
5
6
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