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
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
ffi_2
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
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.