summary refs log blame commit diff stats
path: root/tests/template/t19149.nim
blob: 631e8fc3067b1f9873b62dd2e60a63fb671d51d8 (plain) (tree)


















                                          
type Foo = tuple[active: bool, index: int]


var f: Foo

# template result type during match stage
# f:var Foo
# a:Foo
# tyVar
# tyTuple
# after change to proc
# f:Foo
# a:Foo
# tyTuple
# tyTuple

template cursor(): var Foo = f
discard cursor()