This commit is contained in:
Araq 2013-07-24 23:07:28 +02:00
commit 9acdf94cc0
14 changed files with 663 additions and 1 deletions

View file

@ -312,7 +312,7 @@ proc semGenericStmt(c: PContext, n: PNode,
n.sons[bodyPos] = semGenericStmtScope(c, body, flags, ctx)
closeScope(c)
of nkPragma, nkPragmaExpr: nil
of nkExprColonExpr:
of nkExprColonExpr, nkExprEqExpr:
checkMinSonsLen(n, 2)
result.sons[1] = semGenericStmt(c, n.sons[1], flags, ctx)
else: