mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
11 lines
150 B
Nim
11 lines
150 B
Nim
discard """
|
|
errormsg: "invalid context for '^' as 'foo()' has side effects"
|
|
line: "9"
|
|
"""
|
|
|
|
proc foo(): seq[int] =
|
|
echo "ha"
|
|
|
|
let f = foo()[^1]
|
|
|