aboutsummaryrefslogtreecommitdiff
path: root/tests/neg/i2051.scala
blob: 2295a05ab44aacbf5322a21e0dd72aa4e1bf11bc (plain) (blame)
1
2
abstract class C { val x: Int }
class D extends C { def x = 1 } // error: method x of type => Int needs to be a stable, immutable value