summaryrefslogtreecommitdiff
path: root/test/files/neg/super-cast-or-test.check
blob: 8e5eed62bd31d9ece9c3ef61bda7d5cbfd506377 (plain) (blame)
1
2
3
4
5
6
7
super-cast-or-test.scala:1: error: super not allowed here: use this.asInstanceOf instead
trait A { def f = super.asInstanceOf[AnyRef] }
                        ^
super-cast-or-test.scala:2: error: super not allowed here: use this.isInstanceOf instead
trait B { def g = super.isInstanceOf[AnyRef] }
                        ^
two errors found