fixes #2505, fixes #1853, fixes #2522

This commit is contained in:
Araq 2015-04-20 21:25:49 +02:00
commit e55f5d1fd4
10 changed files with 58 additions and 11 deletions

View file

@ -389,7 +389,7 @@ proc isOpImpl(c: PContext, n: PNode): PNode =
maybeLiftType(t2, c, n.info)
var m: TCandidate
initCandidate(c, m, t2)
let match = typeRel(m, t2, t1) != isNone
let match = typeRel(m, t2, t1) >= isSubtype # isNone
result = newIntNode(nkIntLit, ord(match))
result.typ = n.typ