This commit is contained in:
Andreas Rumpf 2016-06-06 10:06:39 +02:00
commit 02db36a90a
2 changed files with 2 additions and 2 deletions

View file

@ -337,7 +337,7 @@ proc checkNilable(v: PSym) =
{tfNotNil, tfNeedsInit} * v.typ.flags != {}:
if v.ast.isNil:
message(v.info, warnProveInit, v.name.s)
elif tfNotNil in v.typ.flags and tfNotNil notin v.ast.typ.flags:
elif tfNeedsInit in v.typ.flags and tfNotNil notin v.ast.typ.flags:
message(v.info, warnProveInit, v.name.s)
include semasgn