From d76458a6cd126a338f7499b1012559883ae7fe5d Mon Sep 17 00:00:00 2001 From: Bung Date: Fri, 21 Apr 2023 18:05:50 +0800 Subject: add test for #13764 (#21699) --- tests/sets/t13764.nim | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 tests/sets/t13764.nim (limited to 'tests') diff --git a/tests/sets/t13764.nim b/tests/sets/t13764.nim new file mode 100644 index 000000000..1634f113d --- /dev/null +++ b/tests/sets/t13764.nim @@ -0,0 +1,6 @@ +discard """ +errormsg: "conversion from int literal(1000000) to range 0..255(int) is invalid" +line: 6 +""" + +let a = {1_000_000} # Compiles -- cgit 1.4.1-2-gfad0