Files
Nim/tests/rodfiles/hallo2.nim
Adam Strzelecki e80465dacf tests: Trim .nim files trailing whitespace
via OSX: find . -name '*.nim' -exec sed -i '' -E 's/[[:space:]]+$//' {} +
2015-09-04 23:04:32 +02:00

18 lines
259 B
Nim

discard """
output: "Hello World"
"""
# Test incremental type information
type
TNode = object {.pure.}
le, ri: ref TNode
data: string
proc newNode(data: string): ref TNode =
new(result)
result.data = data
echo newNode("Hello World").data