make tests green again
This commit is contained in:
parent
14ca49743f
commit
e6f0bff6dd
2 changed files with 2 additions and 1 deletions
|
|
@ -239,6 +239,7 @@ proc useVar(a: PEffects, n: PNode) =
|
||||||
(tfHasGCedMem in s.typ.flags or s.typ.isGCedMem):
|
(tfHasGCedMem in s.typ.flags or s.typ.isGCedMem):
|
||||||
#if warnGcUnsafe in gNotes: warnAboutGcUnsafe(n)
|
#if warnGcUnsafe in gNotes: warnAboutGcUnsafe(n)
|
||||||
markGcUnsafe(a, s)
|
markGcUnsafe(a, s)
|
||||||
|
markSideEffect(a, s)
|
||||||
else:
|
else:
|
||||||
markSideEffect(a, s)
|
markSideEffect(a, s)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
discard """
|
discard """
|
||||||
errormsg: ''' (proc (s: string) = res &= &(s, "abc"), nil) is not GC safe'''
|
errormsg: '''type mismatch: got (proc (s: string){.locks: 0.})'''
|
||||||
line: 11
|
line: 11
|
||||||
"""
|
"""
|
||||||
#5620
|
#5620
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue