aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/singletons.scala
blob: 3bf7ee0504b3d7154d9862d6545ee78a14bad314 (plain) (tree)
1
2
3
4
5
             



                                              
object Test {
  val a: 42 = 43  // error: different constant
  val x = 42
  val z: 42 = x   // error: x is not final
}