From 5088203a1241f55bde637efc61d63984df33c429 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Mon, 29 Jul 2019 15:01:56 -0700 Subject: [PATCH] fixup --- compiler/semexprs.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index ae630eb3a3913..357d8417f9e11 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -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