Nim/tests/accept/run/tvardecl.nim
2010-02-26 01:26:16 +01:00

9 lines
138 B
Nim
Executable file

# Test the new variable declaration syntax
var
x = 0
s = "Hallo"
a, b: int = 4
write(stdout, a)
write(stdout, b) #OUT 44