1edc2ecd3f
In the new runtime type system when running with weak null safety, perform type tests multiple times to produce optional warnings or errors when a test passes but would fail in sound null safety. This is the same technique DDC uses with the current type system. Issue: https://github.com/dart-lang/sdk/issues/48585 Change-Id: Ic1514987a6f4ffeb127a0d2be5ec15b606016212 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/266543 Reviewed-by: Mark Zhou <markzipan@google.com> Reviewed-by: Anna Gringauze <annagrin@google.com> Commit-Queue: Nicholas Shahan <nshahan@google.com>