blob: 502933cc48a9acc910a42865ef31ff3484b7d565 (
plain) (
tree)
|
|
object Test {
val a: 42 = 43 // error: different constant
val x = 42
val z: 42 = x // error: x is not final
val n: null = null // error: Null is not a legal singleton type // error: only classes can have declared but undefined members
val sym: 'sym = 'sym // error: Symbol is not a legal singleton type // error: only classes can have declared but undefined members
val foo: s"abc" = "abc" // error: not a legal singleton type // error: only classes can have declared but undefined members
}
|