summary refs log tree commit diff stats
path: root/tests/misc
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2021-07-22 09:37:41 +0200
committerGitHub <noreply@github.com>2021-07-22 09:37:41 +0200
commit58e27ebd4a16ca9f2ba24826d7162384d5321101 (patch)
tree657c952451fa3ec9ddddc9848f4d58c6b7119e04 /tests/misc
parentd5b5827bc2a3724290d3257b0f2fa70004c37c97 (diff)
downloadNim-58e27ebd4a16ca9f2ba24826d7162384d5321101.tar.gz
fixes #12815 (#18554)
Diffstat (limited to 'tests/misc')
-rw-r--r--tests/misc/tconv.nim13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/misc/tconv.nim b/tests/misc/tconv.nim
index 1cb4b4fbf..ff6875021 100644
--- a/tests/misc/tconv.nim
+++ b/tests/misc/tconv.nim
@@ -92,3 +92,16 @@ reject:
     x[0] = c
     x
 
+{.push warning[AnyEnumConv]:on, warningAsError[AnyEnumConv]:on.}
+
+reject:
+  # bug #12815
+  type
+    Foo = enum
+      one = 1
+      three = 3
+
+  var va = 2
+  var vb = va.Foo
+
+{.pop.}