Warn about object case transitions at compile time (#11378)

This commit is contained in:
genotrance 2019-06-01 23:40:07 -05:00 • committed by Andreas Rumpf
commit 1255b3c864
2 changed files with 4 additions and 2 deletions

View file

@ -1274,6 +1274,7 @@ proc genAsgn(p: BProc, e: PNode, fastAsgn: bool) =
else:
genLineDir(p, e)
asgnFieldDiscriminant(p, e)
message(p.config, e.info, warnCaseTransition)
proc genStmts(p: BProc, t: PNode) =
var a: TLoc