dart-sdk/tests/language/interface
Stephen Adams 45efccb5e0 Remove left-over patch declarations for List constructor.
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>
2023-04-22 00:38:28 +00:00
..
constants_test.dart
cycle_test.dart Remove left-over patch declarations for List constructor. 2023-04-22 00:38:28 +00:00
duplicate_implements_test.dart
duplicate_interface_implements_runtime_test.dart
duplicate_interface_implements_test.dart [cfe] Use the supertype locations when reporting errors 2021-04-16 15:49:12 +00:00
duplicate_interface_lib.dart
duplicate_interface_test.dart
implements_futureor_runtime_test.dart
implements_futureor_test.dart Merge 4 diagnostics for the purpose of documentation 2020-06-23 17:46:02 +00:00
inherit_field_test.dart
injection1_runtime_test.dart
injection1_test.dart
injection2_runtime_test.dart
injection2_test.dart [cfe] Add UnresolvedKind for fine grained unresolved reporting 2021-08-25 09:51:54 +00:00
interface2_test.dart
interface_test.dart [cfe] Create normal bodies for redirecting factories 2021-08-04 17:51:07 +00:00
runtime_test.dart
static_method_test.dart Move errors from StaticWarningCode to CompileTimeErrorCode. 2020-07-26 04:19:25 +00:00