fixes #940
This commit is contained in:
parent
fd532b6dab
commit
729e048a32
6 changed files with 38 additions and 5 deletions
|
|
@ -63,7 +63,8 @@ proc symChoice(c: PContext, n: PNode, s: PSym, r: TSymChoiceRule): PNode =
|
|||
else:
|
||||
# semantic checking requires a type; ``fitNode`` deals with it
|
||||
# appropriately
|
||||
let kind = if r == scClosed: nkClosedSymChoice else: nkOpenSymChoice
|
||||
let kind = if r == scClosed or n.kind == nkDotExpr: nkClosedSymChoice
|
||||
else: nkOpenSymChoice
|
||||
result = newNodeIT(kind, n.info, newTypeS(tyNone, c))
|
||||
a = initOverloadIter(o, c, n)
|
||||
while a != nil:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue