blob: fabe74d379e462f0b3f00bc6607900a68b623635 (
plain) (
blame)
1
2
3
4
5
6
7
|
anytrait.scala:3: error: field definition is not allowed in universal trait extending from class Any
var x = 1
^
anytrait.scala:5: error: this statement is not allowed in universal trait extending from class Any
{ x += 1 }
^
two errors found
|