diff options
author | cooldome <cdome@bk.ru> | 2018-01-09 14:25:22 +0000 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-01-09 15:25:22 +0100 |
commit | 2c9e56a783e36b0f9db3f2f73d76c910f36a9ffd (patch) | |
tree | 3c0ed82169d0cb36a1f0e6c63bc4ce43718471bf /tests/pragmas/custom_pragma.nim | |
parent | aff787db69ed67f54d72e9caa43e556a9d0e2674 (diff) | |
download | Nim-2c9e56a783e36b0f9db3f2f73d76c910f36a9ffd.tar.gz |
Implement custom annotations (#6987)
Diffstat (limited to 'tests/pragmas/custom_pragma.nim')
-rw-r--r-- | tests/pragmas/custom_pragma.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pragmas/custom_pragma.nim b/tests/pragmas/custom_pragma.nim new file mode 100644 index 000000000..9e8f51deb --- /dev/null +++ b/tests/pragmas/custom_pragma.nim @@ -0,0 +1,5 @@ +# imported by tcustom_pragmas to test scoping + +template serializationKey*(s: string) {.pragma.} +template defaultValue*(V: typed) {.pragma.} +template alternativeKey*(s: string = nil, V: typed) {.pragma.} \ No newline at end of file |