diff options
Diffstat (limited to 'tests/macros/tisexported.nim')
-rw-r--r-- | tests/macros/tisexported.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/macros/tisexported.nim b/tests/macros/tisexported.nim new file mode 100644 index 000000000..53766edf5 --- /dev/null +++ b/tests/macros/tisexported.nim @@ -0,0 +1,10 @@ +import macros + +proc t1* = discard +proc t2 = discard + +macro check(p1: typed, p2: typed) = + doAssert isExported(p1) == true + doAssert isExported(p2) == false + +check t1, t2 |