mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 18:32:11 +00:00
27 lines
384 B
Nim
27 lines
384 B
Nim
discard """
|
|
msg: '''StmtList
|
|
VarSection
|
|
IdentDefs
|
|
Ident !"x"
|
|
Empty
|
|
Call
|
|
DotExpr
|
|
Ident !"foo"
|
|
Ident !"create"
|
|
IntLit 56'''
|
|
"""
|
|
|
|
# disabled; can't work as the output is done by the compiler
|
|
|
|
import macros
|
|
|
|
#emit("type\n TFoo = object\n bar: int")
|
|
|
|
#var f: TFoo
|
|
#f.bar = 5
|
|
#echo(f.bar)
|
|
|
|
dumpTree:
|
|
var x = foo.create(56)
|
|
|