diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-12-09 09:51:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-09 09:51:35 +0100 |
commit | 8035f408f1323ba81c8db794ad58687bace78afa (patch) | |
tree | d22feeeea6cf31ba18ca5e39d44791768fa8e81c /tests | |
parent | 7a66616d741106d4c18ce2e8f843a8b5d31f6025 (diff) | |
parent | e03fb08c24b33a6e25d61da93ae07bd08c9ae648 (diff) | |
download | Nim-8035f408f1323ba81c8db794ad58687bace78afa.tar.gz |
Merge pull request #9898 from cooldome/enum_notused
Enum fields get hintXDeclaredButNotUsed hint even marked with used pragma
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pragmas/tused.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/pragmas/tused.nim b/tests/pragmas/tused.nim index 83c62b7bb..dce854146 100644 --- a/tests/pragmas/tused.nim +++ b/tests/pragmas/tused.nim @@ -31,5 +31,11 @@ block: implementArithOpsNew(int) echoAdd 3, 5 +# issue #9896 +type + MyEnum {.used.} = enum + Val1, Val2, Val3 + + static: echo "compile end" |