summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/misc/tconv.nim17
1 files changed, 15 insertions, 2 deletions
diff --git a/tests/misc/tconv.nim b/tests/misc/tconv.nim
index ff6875021..5e8eac729 100644
--- a/tests/misc/tconv.nim
+++ b/tests/misc/tconv.nim
@@ -95,13 +95,26 @@ reject:
 {.push warning[AnyEnumConv]:on, warningAsError[AnyEnumConv]:on.}
 
 reject:
-  # bug #12815
   type
     Foo = enum
+      one
+      three
+
+  var va = 2
+  var vb = va.Foo
+
+{.pop.}
+
+{.push warningAsError[HoleEnumConv]:on.}
+
+reject:
+  # bug #12815
+  type
+    Hole = enum
       one = 1
       three = 3
 
   var va = 2
-  var vb = va.Foo
+  var vb = va.Hole
 
 {.pop.}