fixes #1120
This commit is contained in:
parent
8325c71172
commit
9280473eb1
11 changed files with 34 additions and 39 deletions
|
|
@ -48,7 +48,6 @@ proc semGenericStmtSymbol(c: PContext, n: PNode, s: PSym,
|
|||
of skTemplate:
|
||||
if macroToExpand(s):
|
||||
styleCheckUse(n.info, s)
|
||||
let n = fixImmediateParams(n)
|
||||
result = semTemplateExpr(c, n, s, {efNoSemCheck})
|
||||
result = semGenericStmt(c, result, {}, ctx)
|
||||
else:
|
||||
|
|
@ -185,7 +184,6 @@ proc semGenericStmt(c: PContext, n: PNode,
|
|||
of skTemplate:
|
||||
if macroToExpand(s):
|
||||
styleCheckUse(fn.info, s)
|
||||
let n = fixImmediateParams(n)
|
||||
result = semTemplateExpr(c, n, s, {efNoSemCheck})
|
||||
result = semGenericStmt(c, result, {}, ctx)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue