Skip to content

Commit e491cfb

Browse files
committed
final-fields.scala: tes objects with constant final vals.
1 parent ea6de38 commit e491cfb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/run/final-fields.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@ object Test extends T {
3636

3737
def g: 3 = { println("g"); 3 }
3838
final val x = g + 1
39-
def main(args: Array[String]): Unit = {}
39+
def main(args: Array[String]): Unit = {
40+
Test0
41+
Test1
42+
}
4043
}

0 commit comments

Comments
 (0)