val y = Console.readInt var x = y + 1 x = y + 2 //valid y = 5 //error, vals can't be changed in the same block