diff options
author | Araq <rumpf_a@web.de> | 2015-09-18 11:29:43 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-09-18 11:29:43 +0200 |
commit | c921f30b1d575b3e457cc98cb95198d1513e69ab (patch) | |
tree | 5fa5f43343e19ddc95b2c48853527311bc495c22 /compiler/semcall.nim | |
parent | 5b2f54ffa14439df696ea7f8c254c5ebd2c10042 (diff) | |
download | Nim-c921f30b1d575b3e457cc98cb95198d1513e69ab.tar.gz |
renamed inCompilesContext to compilesContextId; added test case for #3313
Diffstat (limited to 'compiler/semcall.nim')
-rw-r--r-- | compiler/semcall.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/semcall.nim b/compiler/semcall.nim index f9fadeec7..381093531 100644 --- a/compiler/semcall.nim +++ b/compiler/semcall.nim @@ -95,7 +95,7 @@ proc notFoundError*(c: PContext, n: PNode, errors: CandidateErrors) = # Gives a detailed error message; this is separated from semOverloadedCall, # as semOverlodedCall is already pretty slow (and we need this information # only in case of an error). - if c.inCompilesContext > 0: + if c.compilesContextId > 0: # fail fast: globalError(n.info, errTypeMismatch, "") if errors.isNil or errors.len == 0: @@ -235,7 +235,7 @@ proc resolveOverloads(c: PContext, n, orig: PNode, internalAssert result.state == csMatch #writeMatches(result) #writeMatches(alt) - if c.inCompilesContext > 0: + if c.compilesContextId > 0: # quick error message for performance of 'compiles' built-in: globalError(n.info, errGenerated, "ambiguous call") elif gErrorCounter == 0: |