diff options
Diffstat (limited to 'tests/array/troof2.nim')
-rw-r--r-- | tests/array/troof2.nim | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/array/troof2.nim b/tests/array/troof2.nim new file mode 100644 index 000000000..d4c1a4982 --- /dev/null +++ b/tests/array/troof2.nim @@ -0,0 +1,10 @@ +discard """ + errormsg: "invalid context for '^' as 'foo()' has side effects" + line: "9" +""" + +proc foo(): seq[int] = + echo "ha" + +let f = foo()[^1] + |