summary refs log tree commit diff stats
path: root/tests/pragmas
diff options
context:
space:
mode:
authorAndrii Riabushenko <cdome@bk.ru>2018-12-08 11:35:18 +0000
committerAndrii Riabushenko <cdome@bk.ru>2018-12-08 11:35:18 +0000
commit94a63eef9a5da8441d17e1f5214c1823056bcf68 (patch)
treef069314fab297e7cbd2a418f9144ef23e8fd310f /tests/pragmas
parent160a03464310d8a9e1ffaf83d73904df3439df78 (diff)
downloadNim-94a63eef9a5da8441d17e1f5214c1823056bcf68.tar.gz
Fix hintXDeclaredButNotUsed for enum fields marked as used
Diffstat (limited to 'tests/pragmas')
-rw-r--r--tests/pragmas/tused.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pragmas/tused.nim b/tests/pragmas/tused.nim
index 83c62b7bb..eb9cb08aa 100644
--- a/tests/pragmas/tused.nim
+++ b/tests/pragmas/tused.nim
@@ -31,5 +31,10 @@ block:
   implementArithOpsNew(int)
   echoAdd 3, 5
 
+type
+  MyEnum {.used.} = enum
+    Val1, Val2, Val3
+
+
 static:
   echo "compile end"