blob: 5dff13096f58f45fb3749df70dcf37a6c547c803 (
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
val sym: 'sym = 'sym // error: Symbol is a legal singleton type
val foo: s"abc" = "abc" // error: not a legal singleton type
}
|