make tests green again

This commit is contained in:
Andreas Rumpf 2016-08-25 20:21:08 +02:00
commit d1e199e0d8
2 changed files with 3 additions and 3 deletions

View file

@ -2,8 +2,8 @@ discard """
errormsg: "invalid context for '^' as 'foo()' has side effects" errormsg: "invalid context for '^' as 'foo()' has side effects"
line: "9" line: "9"
""" """
# XXX This needs to be fixed properly!
proc foo(): seq[int] = proc foo(): seq[int] {.sideEffect.} =
echo "ha" echo "ha"
let f = foo()[^1] let f = foo()[^1]

View file

@ -1,6 +1,6 @@
discard """ discard """
line: 18 line: 18
errormsg: "type mismatch: got (proc (s: TScgi) | proc (client: AsyncSocket, headers: StringTableRef, input: string){.gcsafe, locks: 0.}" errormsg: "type mismatch: got (proc (s: TScgi) | proc (client: AsyncSocket, headers: StringTableRef, input: string){.noSideEffect, gcsafe, locks: 0.}"
""" """
#bug #442 #bug #442