Skip to content

Commit

Permalink
fix cpp exportc, refs #12144
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Sep 8, 2019
1 parent da8e007 commit effe211
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions compiler/semalias.nim
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion compiler/semtypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit effe211

Please sign in to comment.