diff options
Diffstat (limited to 'tests/compile/tmacro1.nim')
-rwxr-xr-x | tests/compile/tmacro1.nim | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/compile/tmacro1.nim b/tests/compile/tmacro1.nim deleted file mode 100755 index 520b64e67..000000000 --- a/tests/compile/tmacro1.nim +++ /dev/null @@ -1,23 +0,0 @@ -import macros - -from uri import `/` - -macro test*(a: stmt): stmt = - var nodes: tuple[a, b: int] - nodes.a = 4 - nodes[1] = 45 - - type - TTypeEx = object - x, y: int - case b: bool - of false: nil - of true: z: float - - var t: TTypeEx - t.b = true - t.z = 4.5 - -test: - "hi" - |