mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 05:23:20 +00:00
20 lines
273 B
Nim
20 lines
273 B
Nim
discard """
|
|
output: "44"
|
|
"""
|
|
# Test the new variable declaration syntax
|
|
import std/sequtils
|
|
|
|
var
|
|
x = 0
|
|
s = "Hallo"
|
|
a, b: int = 4
|
|
|
|
write(stdout, a)
|
|
writeLine(stdout, b) #OUT 44
|
|
|
|
proc p() = # bug #18104
|
|
var x, y = newSeqWith(10, newString(3))
|
|
discard (x, y)
|
|
|
|
p()
|