mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
11 lines
203 B
Nim
11 lines
203 B
Nim
discard """
|
|
errormsg: "invalid context for '^' as 'foo()' has side effects"
|
|
line: "9"
|
|
"""
|
|
# XXX This needs to be fixed properly!
|
|
proc foo(): seq[int] {.sideEffect.} =
|
|
echo "ha"
|
|
|
|
let f = foo()[^1]
|
|
|