diff options
author | Zahary Karadjov <zahary@gmail.com> | 2015-01-02 21:25:16 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2015-01-02 23:58:24 +0200 |
commit | 2f90be13e2be9224c2760b98f6949bdfafc7992a (patch) | |
tree | 7dea1521459da14b195d721622778309ed240c9b /compiler | |
parent | 1d5ecc0deac508e7ebb3bf9df01aa34d5025d83d (diff) | |
download | Nim-2f90be13e2be9224c2760b98f6949bdfafc7992a.tar.gz |
fix #1820
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/sigmatch.nim | 2 |
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: |