fixes #544
This commit is contained in:
parent
f9426bfcd5
commit
b1d4dfa6b1
4 changed files with 21 additions and 3 deletions
|
|
@ -841,7 +841,9 @@ proc semTypeNode(c: PContext, n: PNode, prev: PType): PType =
|
|||
LocalError(n.info, errTypeExpected)
|
||||
result = newOrPrevType(tyError, prev, c)
|
||||
of nkCallKinds:
|
||||
if n[0].kind == nkIdent:
|
||||
if isRange(n):
|
||||
result = semRangeAux(c, n, prev)
|
||||
elif n[0].kind == nkIdent:
|
||||
let op = n.sons[0].ident
|
||||
if op.id in {ord(wAnd), ord(wOr)} or op.s == "|":
|
||||
checkSonsLen(n, 3)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue