From effe2118ff312371cf77e9adc2d2c541933d6fdb Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Wed, 21 Aug 2019 03:09:24 -0700 Subject: [PATCH] fix cpp exportc, refs #12144 --- compiler/semalias.nim | 1 + compiler/semtypes.nim | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/semalias.nim b/compiler/semalias.nim index 75bd4005bebb9..91c7eabd14a91 100644 --- a/compiler/semalias.nim +++ b/compiler/semalias.nim @@ -1,5 +1,6 @@ import "."/[ast,options] +{.emit: "NIM_EXTERNC".} # for bootstrapping; remove after 0.21, refs #12144 proc isMacroRealGeneric*(s: PSym): bool {.exportc.} = if s.kind != skMacro: return false if s.ast == nil: return false diff --git a/compiler/semtypes.nim b/compiler/semtypes.nim index 061fa8d001218..4d933ded4f22e 100644 --- a/compiler/semtypes.nim +++ b/compiler/semtypes.nim @@ -988,7 +988,7 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode, # aliasSym are not bindOnce paramTypId = nil let t = newTypeS(tyAliasSym, c) - result = addImplicitGeneric(t) + result = addImplicitGeneric(c, t, paramTypId, info, genericParams, paramName) if result != nil: result.flags.incl({tfUnresolved}) of tyDistinct: