summary refs log tree commit diff stats
path: root/tests/enum/tcrossmodule.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/enum/tcrossmodule.nim')
-rw-r--r--tests/enum/tcrossmodule.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/enum/tcrossmodule.nim b/tests/enum/tcrossmodule.nim
index 1e97fd1ee..c21072198 100644
--- a/tests/enum/tcrossmodule.nim
+++ b/tests/enum/tcrossmodule.nim
@@ -8,3 +8,8 @@ template t =
   doAssert some(Success)
 
 t()
+
+block: # legacy support for behavior before overloadableEnums
+  # warning: ambiguous enum field 'Success' assumed to be of type MyEnum
+  let x = {Success}
+  doAssert x is set[MyEnum]