From b34bd3b16371ac05fd293a878976d6dd2326491c Mon Sep 17 00:00:00 2001 From: Araq Date: Mon, 27 Apr 2015 17:37:10 +0200 Subject: [PATCH] fixes #2577 --- compiler/sigmatch.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 2eda33c145..b5f943c5b0 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