minor speedup: concept tests still green

This commit is contained in:
Andreas Rumpf 2018-04-28 18:37:45 +02:00
commit 6408646b02
3 changed files with 15 additions and 14 deletions

View file

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