Implement custom annotations (#6987)

This commit is contained in:
cooldome 2018-01-09 14:25:22 +00:00 • committed by Andreas Rumpf
commit 2c9e56a783
10 changed files with 254 additions and 42 deletions

View file

@ -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.}