8b4ce0113b
These unit tests exercise flow analysis behaviors for patterns that one might plausibly assume are part of the `sound-flow-analysis` feature, but actually have been present ever since the `patterns` feature was introduced. Adding these tests helps me be confident that the behavior of flow analysis after `sound-flow-analysis` has all of the soundness behaviors I expect; even though some of those behaviors aren't new. Bug: https://github.com/dart-lang/sdk/issues/60438 Change-Id: I77a269907c67d643d0ef23d4f76545e36761bbfc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/421960 Reviewed-by: Chloe Stefantsova <cstefantsova@google.com> Commit-Queue: Paul Berry <paulberry@google.com>