summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2017-03-31 01:53:11 +0300
committerZahary Karadjov <zahary@gmail.com>2017-03-31 01:53:11 +0300
commitc11d7c35dd0dbe54cef108988955c48f4e1fab48 (patch)
tree0e1f21f40d0544d8ab981f49fce78872b44f126d /compiler
parenta74ad869e905737f144037f4ad5000eaed7a5bd2 (diff)
downloadNim-c11d7c35dd0dbe54cef108988955c48f4e1fab48.tar.gz
make all tests green again
properly disabling the extra diagnostics in semCompiles proved to
be too much work. I have some plans for further improving the error
messages in the future and I'll revisit this later.
Diffstat (limited to 'compiler')
-rw-r--r--compiler/semcall.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim
index f707fc844..d6852859b 100644
--- a/compiler/semcall.nim
+++ b/compiler/semcall.nim
@@ -411,7 +411,7 @@ proc semOverloadedCall(c: PContext, n, nOrig: PNode,
       n.sons[1] = n.sons[1].sons[0]
       notFoundError(c, n, errors)
   else:
-    if efExplain notin flags and c.compilesContextId == 0:
+    if efExplain notin flags:
       # repeat the overload resolution,
       # this time enabling all the diagnostic output (this should fail again)
       discard semOverloadedCall(c, n, nOrig, filter, flags + {efExplain})