Merge pull request #9898 from cooldome/enum_notused
Enum fields get hintXDeclaredButNotUsed hint even marked with used pragma
This commit is contained in:
commit
8035f408f1
2 changed files with 7 additions and 1 deletions
|
|
@ -31,5 +31,11 @@ block:
|
|||
implementArithOpsNew(int)
|
||||
echoAdd 3, 5
|
||||
|
||||
# issue #9896
|
||||
type
|
||||
MyEnum {.used.} = enum
|
||||
Val1, Val2, Val3
|
||||
|
||||
|
||||
static:
|
||||
echo "compile end"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue