From a4f531c243da957d6f089a2fc591d2b7f1087575 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Fri, 10 May 2019 08:03:48 +0200 Subject: [PATCH] Add testcase for #9684 (#11221) --- tests/ccgbugs/tsequence_outoforder.nim | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/ccgbugs/tsequence_outoforder.nim diff --git a/tests/ccgbugs/tsequence_outoforder.nim b/tests/ccgbugs/tsequence_outoforder.nim new file mode 100644 index 0000000000..93a45900d0 --- /dev/null +++ b/tests/ccgbugs/tsequence_outoforder.nim @@ -0,0 +1,11 @@ +discard """ + output: '''@[2]''' +""" + +# bug #9684 + +var s2 = @[2, 2] + +s2 = @[s2.len] + +echo s2