Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Jul 29, 2019
1 parent 8ef2bc5 commit 5088203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/semexprs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2138,14 +2138,14 @@ proc semAlias(c: PContext, n: PNode, s: PSym, flags: TExprFlags): PNode =
of nkAsgn:
nodeAlias = def[0]
nodeOrigin = def[1]
of nkInFix:
of nkInfix:
if def[0].ident.s != "*=":
globalError(c.config, n.info, errUser, "expected `*=`, got " & renderTree(def))
nodeAlias = def[1]
nodeOrigin = def[2]
exported = true
else:
globalError(c.config, n.info, errUser, "expected " & ${nkAsgn, nkInFix} & ", got " & $def.kind)
globalError(c.config, n.info, errUser, "expected " & ${nkAsgn, nkInfix} & ", got " & $def.kind)

template maybeExport(alias) =
if exported: alias.flags.incl sfExported
Expand Down

0 comments on commit 5088203

Please sign in to comment.