summary refs log tree commit diff stats
BranchCommit messageAuthorAge
develstricter set type match, implicit conversion for literals (#24176)metagn5 months
 
late/tissue909.nim?h=devel&id=15f7094fde2a5677b6566dfa1a883237cac676ec'>plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                     
import macros

template baz() =
  proc bar() =
    var x = 5
    iterator foo(): int {.closure.} =
      echo x
    var y = foo
    discard y()

macro test(): stmt =
  result = getAst(baz())
  echo(treeRepr(result))

test()
bar()