attempt to make tests green again

This commit is contained in:
Andreas Rumpf
2017-04-04 13:28:15 +02:00
parent e21ca54b11
commit 0b79a2b02e

View File

@@ -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