minor speedup: concept tests still green
This commit is contained in:
parent
4adc31ee3d
commit
6408646b02
3 changed files with 15 additions and 14 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue