Fix parser bug with type classes (#7480)
This commit is contained in:
parent
8b7c2bd067
commit
d6793ded27
2 changed files with 18 additions and 0 deletions
|
|
@ -1080,6 +1080,7 @@ proc parseTypeDescKAux(p: var TParser, kind: TNodeKind,
|
|||
#| distinct = 'distinct' optInd typeDesc
|
||||
result = newNodeP(kind, p)
|
||||
getTok(p)
|
||||
if p.tok.indent != -1 and p.tok.indent <= p.currInd: return
|
||||
optInd(p, result)
|
||||
if not isOperator(p.tok) and isExprStart(p):
|
||||
addSon(result, primary(p, mode))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue