dart-sdk/tests
Johnni Winther 41d2d8d5a4 [analyzer,cfe] Support contained types in as-pattern
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>
2023-12-20 09:05:26 +00:00
..
co19 [co19] Roll co19 to ea5e476b3af94f74f6996e4b4319bf03f9248c1c 2023-12-11 09:55:05 +00:00
corelib Remove unnecessary print in corelib/uri_base_test.dart. 2023-11-29 17:37:28 +00:00
dartdevc [ddc] Update dynamic NSM errors to match 2023-12-14 00:51:50 +00:00
ffi [tests/ffi]: Fix failing pointer arithmetic test. 2023-12-18 18:38:05 +00:00
language [analyzer,cfe] Support contained types in as-pattern 2023-12-20 09:05:26 +00:00
lib [dart:js_interop] Add generics to JSArray and JSPromise 2023-12-12 04:50:13 +00:00
modular [tests] Add repro for cross module constant 2023-11-13 22:21:40 +00:00
standalone Fix Directory.current setter compatibility with IOOverrides 2023-12-18 20:23:21 +00:00
web [dart2js] Fix implicitly used free type variable not being registered in closure scope. 2023-12-13 22:42:57 +00:00
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.