diff options
author | Araq <rumpf_a@web.de> | 2015-02-26 02:05:12 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-02-26 02:05:24 +0100 |
commit | d4a8bde6174791dd9d5085b22b4dc6d86e2c0437 (patch) | |
tree | 138578b0055c80232ea49289776247065cd086f6 | |
parent | 3dd1ecbae4a08627ec619d3abd6ee1f7f24455a6 (diff) | |
download | Nim-d4a8bde6174791dd9d5085b22b4dc6d86e2c0437.tar.gz |
added a comment
-rw-r--r-- | compiler/sigmatch.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index 8cea86db5..90d889eb0 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -158,7 +158,7 @@ proc sumGeneric(t: PType): int = for i in 0 .. <t.len: result += t.sons[i].sumGeneric break of tyProc: - # proc matche proc better than 'stmt' to disambiguate 'spawn' + # proc matches proc better than 'stmt' to disambiguate 'spawn' return 1 of tyGenericParam, tyExpr, tyStatic, tyStmt, tyTypeDesc: break else: return 0 @@ -865,8 +865,8 @@ proc typeRel(c: var TCandidate, f, aOrig: PType, doBind = true): TTypeRelation = result = typeRel(c, ff, aa) if result == isNone: return if ff.kind == tyRange and result != isEqual: return isNone - result = isGeneric + # XXX See bug #2220. A[int] should match A[int] better than some generic X else: result = typeRel(c, lastSon(f), a) |