stuff that is green
This commit is contained in:
parent
f64f9e50cc
commit
4adc31ee3d
3 changed files with 37 additions and 23 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue