diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2018-04-28 18:23:54 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-04-28 18:23:54 +0200 |
commit | 4adc31ee3d5d56e1566da746b464ec11a6865863 (patch) | |
tree | 1dde3dd97358097f56f16e24ed86de7343ab2e93 /compiler/semexprs.nim | |
parent | f64f9e50cca38db24f68ee70d979fd55b1c49868 (diff) | |
download | Nim-4adc31ee3d5d56e1566da746b464ec11a6865863.tar.gz |
stuff that is green
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r-- | compiler/semexprs.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/semexprs.nim b/compiler/semexprs.nim index 22dee81b7..66fe81ed3 100644 --- a/compiler/semexprs.nim +++ b/compiler/semexprs.nim @@ -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)) |