From e6f0bff6dd6ee6735995d4d470335d83a46cd12a Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sun, 15 Oct 2017 09:32:53 +0200 Subject: [PATCH] make tests green again --- compiler/sempass2.nim | 1 + tests/effects/tgcsafe2.nim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index bd156dc723..17d9c98402 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -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) diff --git a/tests/effects/tgcsafe2.nim b/tests/effects/tgcsafe2.nim index dbc4540c42..0b2c090a79 100644 --- a/tests/effects/tgcsafe2.nim +++ b/tests/effects/tgcsafe2.nim @@ -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