dart-sdk/tests
Paul Berry ce591d17c3 Resolve deferred function literals in stages.
This change allows function literals in invocations to be inferred in
dependency order.  For example, given the following code:

    U f<T, U>(T Function() g, U Function(T) h) => h(g());
    test() {
      var x = f(() => 0, (y) => [y]);
    }

The function literal `() => 0` is inferred first, causing the type
parameter `T` to be assigned the type `int`.  Then, `(y) => [x]` is
inferred with the benefit of this type assignment, so `y` gets the
type `int`, and consequently, `U` gets assigned the type `List<int>`.

This completes the support for
https://github.com/dart-lang/language/issues/731 (improved inference
for fold etc.)

Change-Id: I48c22693720a1cc8bbf435643e863834e07f02b1
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/243002
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
2022-05-03 22:04:39 +00:00
..
co19 Skip co19/LanguageFeatures/Enhanced-Enum/grammar_A07_t01 on the web 2022-04-05 19:54:13 +00:00
co19_2 [infra] Stop manually creating co19 cipd packages. 2022-03-28 14:01:37 +00:00
corelib Fix bug in Duration.toString. 2022-04-25 14:37:42 +00:00
corelib_2 Fix bug in Duration.toString. 2022-04-25 14:37:42 +00:00
dartdevc [ddc] Avoid emitting dead branches in conditionals 2022-05-03 20:17:44 +00:00
dartdevc_2 [vm] Expose whether extension stream has listeners, guard postEvent 2022-04-26 07:53:43 +00:00
ffi [vm/ffi] Add Char C type 2022-03-28 09:46:56 +00:00
ffi_2 [vm/ffi] Add Char C type 2022-03-28 09:46:56 +00:00
language Resolve deferred function literals in stages. 2022-05-03 22:04:39 +00:00
language_2 [vm] New async/await implementation in the VM, part 2 - vm 2022-04-29 01:03:50 +00:00
lib Support invoking JS operators through dart:js_util. 2022-04-28 21:18:40 +00:00
lib_2 Support invoking JS operators through dart:js_util. 2022-04-28 21:18:40 +00:00
modular [dart2js] Support trimming modular analysis data. 2022-04-20 21:58:29 +00:00
standalone Remove trailing null char from IOOverrides.fseGetType 2022-05-02 21:16:20 +00:00
standalone_2 Remove trailing null char from IOOverrides.fseGetType 2022-05-02 21:16:20 +00:00
web [dart2js] Fix bug in constant impact visitor. 2022-04-25 18:51:37 +00:00
web_2 [dart2js] Fix deferred load URI when baseUrl has a single path segment 2022-04-22 21:33:10 +00:00
legacy_status_dart2js.csv [dart2js] Remove obsolete unittests. 2020-05-12 17:16:39 +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.