tsymchoicefield compiles
This commit is contained in:
parent
6a94ca3187
commit
dc2b21e9b2
1 changed files with 4 additions and 2 deletions
|
|
@ -954,8 +954,10 @@ proc readTypeParameter(c: PContext, typ: PType,
|
||||||
proc builtinFieldAccess(c: PContext, n: PNode, flags: TExprFlags): PNode =
|
proc builtinFieldAccess(c: PContext, n: PNode, flags: TExprFlags): PNode =
|
||||||
## returns nil if it's not a built-in field access
|
## returns nil if it's not a built-in field access
|
||||||
checkSonsLen(n, 2)
|
checkSonsLen(n, 2)
|
||||||
# early exit for this; see tests/compile/tbindoverload.nim:
|
# tests/bind/tbindoverload.nim wants an early exit here, but seems to
|
||||||
if isSymChoice(n.sons[1]): return
|
# work without now. template/tsymchoicefield doesn't like an early exit
|
||||||
|
# here at all!
|
||||||
|
#if isSymChoice(n.sons[1]): return
|
||||||
|
|
||||||
var s = qualifiedLookUp(c, n, {checkAmbiguity, checkUndeclared})
|
var s = qualifiedLookUp(c, n, {checkAmbiguity, checkUndeclared})
|
||||||
if s != nil:
|
if s != nil:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue