t19149.nim 246 B

1234567891011121314151617181920
  1. type Foo = tuple[active: bool, index: int]
  2. var f: Foo
  3. # template result type during match stage
  4. # f:var Foo
  5. # a:Foo
  6. # tyVar
  7. # tyTuple
  8. # after change to proc
  9. # f:Foo
  10. # a:Foo
  11. # tyTuple
  12. # tyTuple
  13. template cursor(): var Foo = f
  14. discard cursor()