diff options
Diffstat (limited to 'tests/enum/tenumfieldpragmanoannot.nim')
-rw-r--r-- | tests/enum/tenumfieldpragmanoannot.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/enum/tenumfieldpragmanoannot.nim b/tests/enum/tenumfieldpragmanoannot.nim new file mode 100644 index 000000000..47f920827 --- /dev/null +++ b/tests/enum/tenumfieldpragmanoannot.nim @@ -0,0 +1,10 @@ +discard """ + errormsg: "annotation to deprecated not supported here" + line: 8 +""" + +type + A = enum + a {.deprecated: "njshd".} + +var v1 = a |