mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 14:55:24 +00:00
make tests green again
This commit is contained in:
@@ -2,8 +2,8 @@ discard """
|
||||
errormsg: "invalid context for '^' as 'foo()' has side effects"
|
||||
line: "9"
|
||||
"""
|
||||
|
||||
proc foo(): seq[int] =
|
||||
# XXX This needs to be fixed properly!
|
||||
proc foo(): seq[int] {.sideEffect.} =
|
||||
echo "ha"
|
||||
|
||||
let f = foo()[^1]
|
||||
|
||||
Reference in New Issue
Block a user