mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 16:55:08 +00:00
41d2d8d5a4
This adds a new rule to exhaustiveness handling of the as-pattern. The new rule checks whether the cast type is fully contained in the space of the subpattern. If so, we can assume that the whole context type has been matched because there is no value that passes the as-test that would be rejected by the subpattern. Closes #51986 Closes #54125 Change-Id: I0dc7fb072395aa3bc9f0b143afb320966f9d64c5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/338760 Reviewed-by: Paul Berry <paulberry@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com> |
||
---|---|---|
.. | ||
co19 | ||
corelib | ||
dartdevc | ||
ffi | ||
language | ||
lib | ||
modular | ||
standalone | ||
web | ||
legacy_status_dart2js.csv | ||
OWNERS | ||
README.md |
This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/wiki/Testing.