From 0b79a2b02e2b6fac5245aba5eceb25234b921fc5 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 4 Apr 2017 13:28:15 +0200 Subject: [PATCH] attempt to make tests green again --- compiler/sempass2.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index 86e569d7a..542120bdf 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -522,7 +522,8 @@ proc procVarcheck(n: PNode) = proc notNilCheck(tracked: PEffects, n: PNode, paramType: PType) = let n = n.skipConv - procVarcheck skipConvAndClosure(n) + if paramType.isNil or paramType.kind != tyTypeDesc: + procVarcheck skipConvAndClosure(n) #elif n.kind in nkSymChoices: # echo "came here" if paramType != nil and tfNotNil in paramType.flags and