summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-04-27 17:37:10 +0200
committerAraq <rumpf_a@web.de>2015-04-27 23:11:58 +0200
commitb34bd3b16371ac05fd293a878976d6dd2326491c (patch)
tree92a7ba4162ec68348e7ab9d1450fc7afab2081c9 /compiler
parentd3b0292d4edb6a9517d8c7ecbf9fa86675d92534 (diff)
downloadNim-b34bd3b16371ac05fd293a878976d6dd2326491c.tar.gz
fixes #2577
Diffstat (limited to 'compiler')
-rw-r--r--compiler/sigmatch.nim1
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