dart-sdk/tests/language/class
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
..
additional_interface_adds_optional_args_concrete_subclass_test.dart Migrate "c" directory language tests off @compile-error. 2023-04-20 19:10:58 +00:00
class_test.dart
classes_static_method_clash_test.dart Remove uses of : as default value separator in some tests/ directories. 2022-09-07 14:49:17 +00:00
codegen_test.dart
cycle2_test.dart Remove left-over patch declarations for List constructor. 2023-04-22 00:38:28 +00:00
cycle_test.dart
cyclic_class_member_runtime_test.dart
cyclic_class_member_test.dart
cyclic_hierarchy_test.dart
inheritance_chain_lib.dart
inheritance_chain_test.dart
keyword_runtime_test.dart
keyword_test.dart
large_class_declaration_test.dart
literal_static_test.dart
literal_test.dart
multiple_interface_inheritance_test.dart
override_inference_error_test.dart
override_inference_test.dart Clean up a number of 2.19 opt outs in language tests. 2023-03-17 16:17:50 +00:00
override_test.dart Migrate "c" directory language tests off @compile-error. 2023-04-20 19:10:58 +00:00
recursive_inheritance_test.dart
syntax2_test.dart
syntax_test.dart
variable_shadow_class_runtime_test.dart
variable_shadow_class_test.dart