make tests green again

This commit is contained in:
Andreas Rumpf
2017-10-15 09:32:53 +02:00
parent 14ca49743f
commit e6f0bff6dd
2 changed files with 2 additions and 1 deletions

View File

@@ -239,6 +239,7 @@ proc useVar(a: PEffects, n: PNode) =
(tfHasGCedMem in s.typ.flags or s.typ.isGCedMem):
#if warnGcUnsafe in gNotes: warnAboutGcUnsafe(n)
markGcUnsafe(a, s)
markSideEffect(a, s)
else:
markSideEffect(a, s)

View File

@@ -1,5 +1,5 @@
discard """
errormsg: ''' (proc (s: string) = res &= &(s, "abc"), nil) is not GC safe'''
errormsg: '''type mismatch: got (proc (s: string){.locks: 0.})'''
line: 11
"""
#5620