aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t1960.scala
blob: ad9a96011fd613b5ccbc995e70b0425985af5987 (plain) (blame)
1
2
3
4
5
object ClassFormatErrorExample extends App { new Aclass(1) }

trait TBase { var p:Int = 0; def f(p1: Int): Unit = {} }

class Aclass (p: Int) extends TBase { def g(): Unit = { f(p) } }