dart-sdk/tests
Paul Berry c007d3bc0c Front end: type infer all record literal fields before hoisting.
Previously, if a record literal had named fields, type inference of
the literal fields would happen as part of the process of
hoisting. This was a problem because the hoisting process requires
visiting the fields in reverse order, so as a result, the order in
which subexpressions were type inferred was the reverse of the order
in which they would be executed, leading to unsound type promotion
behavior.

Fixes #55914.

Bug: https://github.com/dart-lang/sdk/issues/55914
Change-Id: I2d8930e0e1d7579d065bfb850aa7472d28a8012c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/369761
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2024-06-06 19:15:57 +00:00
..
co19 [co19] Roll co19 to 0a9f7daccd0e682ab791f04ecc23f1dbcee04977 2024-06-03 09:12:56 +00:00
corelib [vm] Remove --[no-]lazy-dispatchers flag. 2024-06-06 10:56:12 +00:00
dartdevc Reland "Tweak expect.dart library." 2024-04-26 15:28:26 +00:00
ffi [vm, ffi] Make callbacks profiler-safe. 2024-05-28 21:16:41 +00:00
hot_reload [reload_test] Adding several new reload tests. 2024-05-01 20:01:19 +00:00
language Front end: type infer all record literal fields before hoisting. 2024-06-06 19:15:57 +00:00
lib [dart2wasm] Disallow dart:ffi in user code 2024-05-31 07:12:21 +00:00
macro_build add package:_macros (SDK vendored) and package:macros (pub published) 2024-03-26 18:40:00 +00:00
modular Support prebuilt macros in the incremental compiler mode for DDC 2024-04-09 07:37:26 +00:00
standalone [vm] Remove --[no-]lazy-dispatchers flag. 2024-06-06 10:56:12 +00:00
web Revert "[dart2wasm] Check import/export pragmas in user code" 2024-06-03 17:28:36 +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 [wiki] move the https://github.com/dart-lang/sdk/wiki to the docs/ dir 2024-05-16 18:19:40 +00:00

This directory contains tests of the language and core library implementations. For more information, see https://github.com/dart-lang/sdk/tree/main/docs/Testing.md.