From 460e1f1f424185b60056f9ceb65676be18522e8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20D=C3=B6ring?= Date: Sun, 11 Aug 2019 15:47:40 +0200 Subject: [PATCH] fix for style checks --- lib/core/macros.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 870e5026a8496..aac2ac06fea4a 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -1587,7 +1587,7 @@ macro hasCustomPragma*(n: typed, cp: typed{nkSym}): bool = of nnkTypeOfExpr: var typeSym = n.getTypeInst # dealing with shitty typedesc that sneasks into everything - while typeSym.kind == nnkBracketEXpr and typeSym[0].eqIdent "typeDesc": + while typeSym.kind == nnkBracketExpr and typeSym[0].eqIdent "typeDesc": typeSym = typeSym[1] case typeSym.kind: of nnkSym: @@ -1631,7 +1631,7 @@ macro getCustomPragmaVal*(n: typed, cp: typed{nkSym}): untyped = else: var typeSym = n.getTypeInst # dealing with shitty typedesc that sneasks into everything - while typeSym.kind == nnkBracketEXpr and typeSym[0].eqIdent "typeDesc": + while typeSym.kind == nnkBracketExpr and typeSym[0].eqIdent "typeDesc": typeSym = typeSym[1] case typeSym.kind: of nnkSym: