mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
20 lines
246 B
Nim
20 lines
246 B
Nim
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()
|
|
|