some changes
This commit is contained in:
parent
4220b1c81d
commit
947b152163
7 changed files with 70 additions and 25 deletions
|
|
@ -1087,7 +1087,7 @@ proc semTypeNode(c: PContext, n: PNode, prev: PType): PType =
|
|||
elif n[0].kind notin nkIdentKinds:
|
||||
result = semTypeExpr(c, n)
|
||||
else:
|
||||
let op = considerAcc(n.sons[0])
|
||||
let op = considerQuotedIdent(n.sons[0])
|
||||
if op.id in {ord(wAnd), ord(wOr)} or op.s == "|":
|
||||
checkSonsLen(n, 3)
|
||||
var
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue