diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-04-04 13:28:15 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-04-04 13:28:15 +0200 |
commit | 0b79a2b02e2b6fac5245aba5eceb25234b921fc5 (patch) | |
tree | 4554862107a42e2806ed450d203d1238e6982716 | |
parent | e21ca54b11409764e495530136376f1b8f309fcb (diff) | |
download | Nim-0b79a2b02e2b6fac5245aba5eceb25234b921fc5.tar.gz |
attempt to make tests green again
-rw-r--r-- | compiler/sempass2.nim | 3 |
1 files changed, 2 insertions, 1 deletions
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 |