summary refs log blame commit diff stats
path: root/tests/rodfiles/hallo2.nim
blob: a4b3957ecdf8ae558c403218c2b9063af148d78f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                       
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