summary refs log tree commit diff stats
path: root/compiler/semexprs.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-04-28 18:23:54 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-04-28 18:23:54 +0200
commit4adc31ee3d5d56e1566da746b464ec11a6865863 (patch)
tree1dde3dd97358097f56f16e24ed86de7343ab2e93 /compiler/semexprs.nim
parentf64f9e50cca38db24f68ee70d979fd55b1c49868 (diff)
downloadNim-4adc31ee3d5d56e1566da746b464ec11a6865863.tar.gz
stuff that is green
Diffstat (limited to 'compiler/semexprs.nim')
-rw-r--r--compiler/semexprs.nim3
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))