blob: 99c24b85a0c5be9a4b082e3cdc4a47e0176e710b (
plain) (
tree)
|
|
anytrait.scala:3: error: this statement is not allowed in trait extending from class Any: private[this] var x: Int = 1
var x = 1
^
anytrait.scala:5: error: this statement is not allowed in trait extending from class Any: T.this.x_=(T.this.x.+(1))
{ x += 1 }
^
two errors found
|