mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
![]() This CL replaces https://dart-review.googlesource.com/c/sdk/+/296900 The `List` constructor is removed in Dart 3.0. Some of the `@patch` implementations were not removed. This is *high priority*. It seems the left-over `@patch factory List` constructor did not cause any errors, instead it *added* a constructor to `List` that can be used in web compiled code. Even if `List` doesn't have such a constructor in the SDK code proper. The VM and analyzer will say the invocation is an error, but dart2js happily compiles it and runs. (It used to be that patches couldn't add public members, that security seems to have been removed.) Also removes code which tries to detect "the unnamed List constructor", which is no longer a thing, and a number of invocations of the constructor, where it's not clear that the test is aware that the constructor no longer exists, and is not marked as `@dart=2.x` with x < 12. TEST=ci Change-Id: I4ffaf3ae2c4e75ca06e7ba0bf19187b6376f3888 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/297100 Reviewed-by: Brian Quinlan <bquinlan@google.com> Reviewed-by: Nate Bosch <nbosch@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Stephen Adams <sra@google.com> |
||
---|---|---|
.. | ||
constants_test.dart | ||
cycle_test.dart | ||
duplicate_implements_test.dart | ||
duplicate_interface_implements_runtime_test.dart | ||
duplicate_interface_implements_test.dart | ||
duplicate_interface_lib.dart | ||
duplicate_interface_test.dart | ||
implements_futureor_runtime_test.dart | ||
implements_futureor_test.dart | ||
inherit_field_test.dart | ||
injection1_runtime_test.dart | ||
injection1_test.dart | ||
injection2_runtime_test.dart | ||
injection2_test.dart | ||
interface2_test.dart | ||
interface_test.dart | ||
runtime_test.dart | ||
static_method_test.dart |