1
object Hello //extends App
2
{
3
var x = 1
4
5
println("test")
6
7
x = x + 2
8
9
println("foo")
10
11
synchronized { x = x + 1 }
12
13
println("hello world")
14
}