6b33d5f42a
This unit test makes sure that parenthesizing a variable pattern doesn't destroy its ability to track the flow analysis consequences of a boolean expression. No code changes were are required, since the implementation passes the test. But prior to https://dart-review.googlesource.com/c/sdk/+/282482 this test would have failed, so it seems reasonable to include it as a unit test to prevent regressions. Change-Id: If5595a346757e608bc133846062ec37f47bc3e1e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/284485 Commit-Queue: Paul Berry <paulberry@google.com> Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>