diff options
author | Araq <rumpf_a@web.de> | 2015-04-27 17:37:10 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-04-27 23:11:58 +0200 |
commit | b34bd3b16371ac05fd293a878976d6dd2326491c (patch) | |
tree | 92a7ba4162ec68348e7ab9d1450fc7afab2081c9 /compiler | |
parent | d3b0292d4edb6a9517d8c7ecbf9fa86675d92534 (diff) | |
download | Nim-b34bd3b16371ac05fd293a878976d6dd2326491c.tar.gz |
fixes #2577
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sigmatch.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 2eda33c14..b5f943c5b 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -922,6 +922,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType, doBind = true): TTypeRelation = of tyAnd: considerPreviousT: + result = isEqual for branch in f.sons: let x = typeRel(c, branch, aOrig) if x < isSubtype: return isNone |