diff --git a/compiler/nifgen.nim b/compiler/nifgen.nim index cf267ef14b..8467a93473 100644 --- a/compiler/nifgen.nim +++ b/compiler/nifgen.nim @@ -983,7 +983,7 @@ proc genericParamToNif(n: PNode; parent: PNode; c: var TranslationContext) = toNif n, parent, c proc addExternName(sym: PSym; c: var TranslationContext) = - if sym.loc.snippet != nil: + if sym.loc.snippet != "": c.b.addStrLit sym.loc.snippet else: c.b.addStrLit sym.name.s diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 50d7860f35..38c904f439 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -813,7 +813,7 @@ proc semArrayConstr(c: PContext, n: PNode, flags: TExprFlags; expectedType: PTyp inc(lastIndex) if isGeneric: for i in 0.. 0: + dec(x) + +const r = (myProc(3); 1)