summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2015-01-02 21:25:16 +0200
committerZahary Karadjov <zahary@gmail.com>2015-01-02 23:58:24 +0200
commit2f90be13e2be9224c2760b98f6949bdfafc7992a (patch)
tree7dea1521459da14b195d721622778309ed240c9b /compiler
parent1d5ecc0deac508e7ebb3bf9df01aa34d5025d83d (diff)
downloadNim-2f90be13e2be9224c2760b98f6949bdfafc7992a.tar.gz
fix #1820
Diffstat (limited to 'compiler')
-rw-r--r--compiler/sigmatch.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim
index ff90bde69..ce7af1dab 100644
--- a/compiler/sigmatch.nim
+++ b/compiler/sigmatch.nim
@@ -989,7 +989,7 @@ proc typeRel(c: var TCandidate, f, aOrig: PType, doBind = true): TTypeRelation =
     if aOrig.kind == tyStatic:
       result = typeRel(c, f.lastSon, a)
       if result != isNone and f.n != nil:
-        if not exprStructuralEquivalent(f.n, a.n):
+        if not exprStructuralEquivalent(f.n, aOrig.n):
           result = isNone
       if result != isNone: put(c.bindings, f, aOrig)
     else: