stuff that is green

This commit is contained in:
Andreas Rumpf 2018-04-28 18:23:54 +02:00
commit 4adc31ee3d
3 changed files with 37 additions and 23 deletions

View file

@ -305,7 +305,8 @@ proc isOpImpl(c: PContext, n: PNode, flags: TExprFlags): PNode =
maybeLiftType(t2, c, n.info)
var m: TCandidate
initCandidate(c, m, t2)
if efExplain in flags: m.diagnostics = @[]
if efExplain in flags:
m.diagnostics = OptionalStringSeq(enabled: true, s: @[])
let match = typeRel(m, t2, t1) >= isSubtype # isNone
result = newIntNode(nkIntLit, ord(match))