b85c499b60
Assignments in the condition of an if statements don't store the promoted information (for the write of that variable). This fix stores the promotion of that expression for when we use it to null check or otherwise. Part 1 because there's still some holes with postfix operators and null asserts that need to be fixed, but this behaviour stands on its own at the moment. Everything is behind the flag so we'll iterate. Bug: https://github.com/dart-lang/language/issues/3658 Change-Id: I8663f089a451468651efccadeb3991b34a37d899 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/388903 Reviewed-by: Paul Berry <paulberry@google.com> Commit-Queue: Kallen Tu <kallentu@google.com>