dart-sdk/tests
Paul Berry d8732e9820 When field promotion fails, report all reasons via context messages.
Previously, if field promotion failed both because the language
version was less than 3.2, *and* for some other reason(s), the
analyzer and CFE only reported the other reason(s). The rationale was
that this was better than reporting just that the language version was
less than 3.2, because if a user upgraded their language version to
3.2 in an attempt to get field promotion to work, and *then* found out
that the property in question was unpromotable for some other reason,
that could be quite frustrating.

With this change, if field promotion fails both because the language
version is less than 3.2 and for some other reason, the analyzer and
CFE report *all* the reasons.

Change-Id: Ib5d3a4621273c1e80d66b66b456119f9053e18b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/332485
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
2023-10-30 21:31:51 +00:00
..
co19 [co19] Roll co19 to 6ec024498b3546c775b65cd2d964eb3c6ff0fb2f 2023-09-29 13:59:53 +00:00
co19_2 [test] Introduce status variable $simulator, and fix some cases missing simarm_x64. 2023-04-04 03:10:26 +00:00
corelib [vm, lib] Fix out-of-bounds access in BigInt.>>. 2023-09-11 21:05:38 +00:00
corelib_2 [dart2js] Add Dart web speciailized expectation helpers. 2023-08-11 20:59:30 +00:00
dartdevc [ddc] Update for extra null safety checks in RTI 2023-10-19 21:32:15 +00:00
dartdevc_2 [cfe] Introduce StructuralParameters 2023-09-25 10:44:41 +00:00
ffi [test/ffi] Fix tests on Fuchsia 2023-10-30 15:28:20 +00:00
ffi_2 [vm, ffi] Round up checking for registers for small structs. 2023-10-17 23:01:17 +00:00
language When field promotion fails, report all reasons via context messages. 2023-10-30 21:31:51 +00:00
language_2 Revert "Expire 3.0.0 experiment flags." 2023-10-27 16:50:09 +00:00
lib [web] improve fileapi tests. 2023-10-27 02:25:20 +00:00
lib_2 [web] improve fileapi tests. 2023-10-27 02:25:20 +00:00
modular Fix incorrect file reference in license headers 2023-09-18 06:44:08 +00:00
standalone Avoid crashes in string concatenation 32-bit integer overflow test 2023-10-27 12:36:29 +00:00
web [tests, dart2js] Fix test using minified type names 2023-10-27 01:36:28 +00:00
web_2 [web] fix improperly migrated tests. 2023-10-25 15:37:50 +00:00
legacy_status_dart2js.csv Spelling tests 2022-12-19 12:56:47 +00:00
OWNERS [infra] Add OWNERS to the Dart SDK 2022-02-14 14:06:34 +00:00
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.