summary refs log tree commit diff stats
path: root/tests/sets/t2669.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sets/t2669.nim')
-rw-r--r--tests/sets/t2669.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/sets/t2669.nim b/tests/sets/t2669.nim
new file mode 100644
index 000000000..0a92818fa
--- /dev/null
+++ b/tests/sets/t2669.nim
@@ -0,0 +1,6 @@
+discard """
+errormsg: "cannot convert 6 to range 1..5(int8)"
+line: 6
+"""
+
+var c: set[range[1i8..5i8]] = {1i8, 2i8, 6i8}