summary refs log tree commit diff stats
path: root/tests/run/tbug499771.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/tbug499771.nim')
-rw-r--r--tests/run/tbug499771.nim12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/run/tbug499771.nim b/tests/run/tbug499771.nim
index 633ab39f6..682148422 100644
--- a/tests/run/tbug499771.nim
+++ b/tests/run/tbug499771.nim
@@ -1,12 +1,14 @@
 discard """
   file: "tbug499771.nim"
-  output: "TSubRange: 5 from 1 to 10"
+  output: '''TSubRange: 5 from 1 to 10
+true true true'''
 """
-type TSubRange = range[1 .. 10]
+type 
+  TSubRange = range[1 .. 10]
+  TEnum = enum A, B, C
 var sr: TSubRange = 5
 echo("TSubRange: " & $sr & " from " & $low(TSubRange) & " to " & 
      $high(TSubRange))
 
-
-
-
+const cset = {A} + {B}
+echo A in cset, " ", B in cset, " ", C notin cset