diff options
Diffstat (limited to 'tests/compile/tmacro1.nim')
-rwxr-xr-x | tests/compile/tmacro1.nim | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/compile/tmacro1.nim b/tests/compile/tmacro1.nim deleted file mode 100755 index e96997c47..000000000 --- a/tests/compile/tmacro1.nim +++ /dev/null @@ -1,21 +0,0 @@ -import macros - -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" - |