From dc2b21e9b2a15e301b40546ecd792b6bba4d75f4 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 1 Apr 2014 08:21:08 +0200 Subject: [PATCH] tsymchoicefield compiles --- compiler/semexprs.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 1fd9075e8e..6743768a22 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -954,8 +954,10 @@ proc readTypeParameter(c: PContext, typ: PType, proc builtinFieldAccess(c: PContext, n: PNode, flags: TExprFlags): PNode = ## returns nil if it's not a built-in field access checkSonsLen(n, 2) - # early exit for this; see tests/compile/tbindoverload.nim: - if isSymChoice(n.sons[1]): return + # tests/bind/tbindoverload.nim wants an early exit here, but seems to + # 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}) if s != nil: