summary refs log tree commit diff stats
path: root/compiler/semcall.nim
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2015-06-04 16:39:38 +0100
committerDominik Picheta <dominikpicheta@googlemail.com>2015-06-04 16:39:38 +0100
commit5d6f16cc1ac066aad6d4a8146a558d073b860d12 (patch)
tree5633eeb1c1b328cb731981cc1fe3f49c8f9e44c9 /compiler/semcall.nim
parent22f6017ab89e2fa7101c72e05a7703a83f1385d6 (diff)
downloadNim-5d6f16cc1ac066aad6d4a8146a558d073b860d12.tar.gz
Got rid of errUndeclaredProcedureField.
Diffstat (limited to 'compiler/semcall.nim')
-rw-r--r--compiler/semcall.nim8
1 files changed, 2 insertions, 6 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim
index 342397740..fc51ac849 100644
--- a/compiler/semcall.nim
+++ b/compiler/semcall.nim
@@ -209,12 +209,8 @@ proc resolveOverloads(c: PContext, n, orig: PNode,
       pickBest(callOp)
 
     if overloadsState == csEmpty and result.state == csEmpty:
-      if nfDotField in n.flags:
-        if nfExplicitCall in n.flags:
-          localError(n.info, errUndeclaredProcedureField,
-              considerQuotedIdent(f).s)
-        else:
-          localError(n.info, errUndeclaredField, considerQuotedIdent(f).s)
+      if nfDotField in n.flags and nfExplicitCall notin n.flags:
+        localError(n.info, errUndeclaredField, considerQuotedIdent(f).s)
       else:
         localError(n.info, errUndeclaredProcedure, considerQuotedIdent(f).s)
       return