summaryrefslogtreecommitdiff
path: root/test/files/neg/anytrait.check
blob: 6d9d681d602e0e2ebca29f3e5edb22b5adbcc5a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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 }
      ^
anytrait.scala:9: error: field definition is not allowed in universal trait extending from class Any
  val y: T
      ^
three errors found