Remove some multitest runtime-tests.

Change-Id: I8fb69fecbe67236a4cbad9c1eb899a31a26a1ba3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/410002
Reviewed-by: Martin Kustermann <kustermann@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
This commit is contained in:
Lasse R.H. Nielsen
2025-02-19 04:21:42 -08:00
committed by Commit Queue
parent dd93f6fae0
commit aab7621900
299 changed files with 32 additions and 13416 deletions
@@ -594,8 +594,6 @@
"../../../tests/corelib/uri_test.dart",
"../../../tests/corelib/very_big_integer_test.dart",
"../../../tests/language/abstract/equal_test.dart",
"../../../tests/language/abstract/exact_selector_runtime_test.dart",
"../../../tests/language/abstract/factory_constructor_runtime_test.dart",
"../../../tests/language/abstract/getter2_test.dart",
"../../../tests/language/abstract/method_test.dart",
"../../../tests/language/abstract/object_method_test.dart",
@@ -606,12 +604,9 @@
"../../../tests/language/accessor_conflict/import_prefixed2_test.dart",
"../../../tests/language/accessor_conflict/import_prefixed_test.dart",
"../../../tests/language/accessor_conflict/import_test.dart",
"../../../tests/language/argument/assignability_function_typed_runtime_test.dart",
"../../../tests/language/argument/named_argument_test.dart",
"../../../tests/language/argument/named_in_const_creation_test.dart",
"../../../tests/language/assert/assignable_type_test.dart",
"../../../tests/language/assert/initializer_const_error2_runtime_test.dart",
"../../../tests/language/assert/initializer_const_error_runtime_test.dart",
"../../../tests/language/assert/initializer_test.dart",
"../../../tests/language/assert/message_test.dart",
"../../../tests/language/assert/with_message_test.dart",
@@ -630,10 +625,7 @@
"../../../tests/language/async/break_in_finally_test.dart",
"../../../tests/language/async/call_test.dart",
"../../../tests/language/async/cascade_test.dart",
"../../../tests/language/async/congruence_local_runtime_test.dart",
"../../../tests/language/async/congruence_method_runtime_test.dart",
"../../../tests/language/async/congruence_top_level_test.dart",
"../../../tests/language/async/congruence_unnamed_runtime_test.dart",
"../../../tests/language/async/continue_label_test.dart",
"../../../tests/language/async/control_structures_test.dart",
"../../../tests/language/async/covariant_type_test.dart",
@@ -642,10 +634,8 @@
"../../../tests/language/async/error_timing_test.dart",
"../../../tests/language/async/finally_rethrow_test.dart",
"../../../tests/language/async/identifier_test.dart",
"../../../tests/language/async/or_generator_return_type_stacktrace_runtime_test.dart",
"../../../tests/language/async/regression_23058_test.dart",
"../../../tests/language/async/rethrow_test.dart",
"../../../tests/language/async/return_types_runtime_test.dart",
"../../../tests/language/async/this_bound_test.dart",
"../../../tests/language/async/throw_in_catch_test.dart",
"../../../tests/language/async_nested/async_nested01_test.dart",
@@ -721,7 +711,6 @@
"../../../tests/language/async_star/yieldstar_test.dart",
"../../../tests/language/await/and_ifnull_test.dart",
"../../../tests/language/await/await_test.dart",
"../../../tests/language/await/backwards_compatibility_runtime_test.dart",
"../../../tests/language/await/exceptions_test.dart",
"../../../tests/language/await/for_cancel_test.dart",
"../../../tests/language/await/for_test.dart",
@@ -752,18 +741,12 @@
"../../../tests/language/call/method_as_cast_test.dart",
"../../../tests/language/call/method_function_typed_value_test.dart",
"../../../tests/language/call/method_implicit_invoke_instance_test.dart",
"../../../tests/language/call/method_implicit_invoke_local_runtime_1_test.dart",
"../../../tests/language/call/method_implicit_invoke_local_runtime_2_test.dart",
"../../../tests/language/call/method_implicit_invoke_local_runtime_3_test.dart",
"../../../tests/language/call/method_implicit_invoke_local_runtime_4_test.dart",
"../../../tests/language/call/method_implicit_invoke_local_runtime_test.dart",
"../../../tests/language/call/method_implicit_invoke_static_test.dart",
"../../../tests/language/call/method_implicit_invoke_top_level_test.dart",
"../../../tests/language/call/method_implicit_tear_off_test.dart",
"../../../tests/language/call/method_is_check_test.dart",
"../../../tests/language/call/operator_test.dart",
"../../../tests/language/call/property_test.dart",
"../../../tests/language/call/through_getter_runtime_test.dart",
"../../../tests/language/call/through_null_getter_test.dart",
"../../../tests/language/call/type_literal_test.dart",
"../../../tests/language/call/with_no_such_method_test.dart",
@@ -783,20 +766,16 @@
"../../../tests/language/cascade/nested_test.dart",
"../../../tests/language/cascade/on_static_field_test.dart",
"../../../tests/language/cascade/precedence_test.dart",
"../../../tests/language/cascade/runtime_test.dart",
"../../../tests/language/class/class_test.dart",
"../../../tests/language/class/classes_static_method_clash_test.dart",
"../../../tests/language/class/codegen_test.dart",
"../../../tests/language/class/cyclic_class_member_runtime_test.dart",
"../../../tests/language/class/cyclic_hierarchy_test.dart",
"../../../tests/language/class/inheritance_chain_test.dart",
"../../../tests/language/class/keyword_runtime_test.dart",
"../../../tests/language/class/large_class_declaration_test.dart",
"../../../tests/language/class/multiple_interface_inheritance_test.dart",
"../../../tests/language/class/override_inference_test.dart",
"../../../tests/language/class/recursive_inheritance_test.dart",
"../../../tests/language/class/syntax2_test.dart",
"../../../tests/language/class/variable_shadow_class_runtime_test.dart",
"../../../tests/language/class_modifiers/base/base_class_base_subtype_test.dart",
"../../../tests/language/class_modifiers/base/base_class_extend_outside_test.dart",
"../../../tests/language/class_modifiers/base/base_class_extend_test.dart",
@@ -868,13 +847,11 @@
"../../../tests/language/closure/in_initializer2_test.dart",
"../../../tests/language/closure/in_initializer_test.dart",
"../../../tests/language/closure/instantiation_closure_equality_test.dart",
"../../../tests/language/closure/internals_runtime_test.dart",
"../../../tests/language/closure/nested_generic_closure_test.dart",
"../../../tests/language/closure/param_null_to_object_test.dart",
"../../../tests/language/closure/parameter_types_test.dart",
"../../../tests/language/closure/parse_closures_in_initializers_test.dart",
"../../../tests/language/closure/partial_instantiation_eager_bounds_check_test.dart",
"../../../tests/language/closure/partial_instantiation_static_bounds_check_runtime_test.dart",
"../../../tests/language/closure/regress46568_test.dart",
"../../../tests/language/closure/self_reference_test.dart",
"../../../tests/language/closure/shared_state_test.dart",
@@ -890,10 +867,7 @@
"../../../tests/language/closure/with_super_field_test.dart",
"../../../tests/language/closure/with_super_send_test.dart",
"../../../tests/language/compile_time_constant/a_test.dart",
"../../../tests/language/compile_time_constant/arguments_runtime_test.dart",
"../../../tests/language/compile_time_constant/b_test.dart",
"../../../tests/language/compile_time_constant/c_runtime_1_test.dart",
"../../../tests/language/compile_time_constant/c_runtime_test.dart",
"../../../tests/language/compile_time_constant/compile_time_constant11_test.dart",
"../../../tests/language/compile_time_constant/compile_time_constant12_test.dart",
"../../../tests/language/compile_time_constant/compile_time_constant2_test.dart",
@@ -910,62 +884,33 @@
"../../../tests/language/compile_time_constant/h_test.dart",
"../../../tests/language/compile_time_constant/i_test.dart",
"../../../tests/language/compile_time_constant/j_test.dart",
"../../../tests/language/compile_time_constant/k_runtime_test.dart",
"../../../tests/language/compile_time_constant/l_test.dart",
"../../../tests/language/compile_time_constant/m_test.dart",
"../../../tests/language/compile_time_constant/n_test.dart",
"../../../tests/language/compile_time_constant/o_runtime_test.dart",
"../../../tests/language/compile_time_constant/p_runtime_test.dart",
"../../../tests/language/compile_time_constant/q_test.dart",
"../../../tests/language/compile_time_constant/r_runtime_test.dart",
"../../../tests/language/compile_time_constant/runtime_test.dart",
"../../../tests/language/compile_time_constant/static2_runtime_test.dart",
"../../../tests/language/compile_time_constant/static3_runtime_test.dart",
"../../../tests/language/compile_time_constant/static_runtime_test.dart",
"../../../tests/language/const/cast3_test.dart",
"../../../tests/language/const/cast4_test.dart",
"../../../tests/language/const/conditional_runtime_test.dart",
"../../../tests/language/const/const2_test.dart",
"../../../tests/language/const/const3_test.dart",
"../../../tests/language/const/const4_test.dart",
"../../../tests/language/const/const_locals_runtime_test.dart",
"../../../tests/language/const/const_test.dart",
"../../../tests/language/const/constant_dag_test.dart",
"../../../tests/language/const/constant_type_variable_test.dart",
"../../../tests/language/const/constructor3_runtime_1_test.dart",
"../../../tests/language/const/constructor3_runtime_2_test.dart",
"../../../tests/language/const/constructor3_runtime_test.dart",
"../../../tests/language/const/constructor_mixin2_runtime_test.dart",
"../../../tests/language/const/constructor_mixin3_test.dart",
"../../../tests/language/const/constructor_mixin_test.dart",
"../../../tests/language/const/constructor_nonconst_field_runtime_test.dart",
"../../../tests/language/const/constructor_nonconst_param_runtime_test.dart",
"../../../tests/language/const/constructor_runtime_test.dart",
"../../../tests/language/const/constructor_super2_test.dart",
"../../../tests/language/const/constructor_super_runtime_test.dart",
"../../../tests/language/const/constructor_syntax_runtime_test.dart",
"../../../tests/language/const/ct_const_test.dart",
"../../../tests/language/const/dynamic_type_literal_runtime_1_test.dart",
"../../../tests/language/const/dynamic_type_literal_runtime_2_test.dart",
"../../../tests/language/const/dynamic_type_literal_runtime_test.dart",
"../../../tests/language/const/escape_frog_test.dart",
"../../../tests/language/const/evaluation_test.dart",
"../../../tests/language/const/factory_member_test.dart",
"../../../tests/language/const/factory_redirection_test.dart",
"../../../tests/language/const/factory_with_body_runtime_test.dart",
"../../../tests/language/const/getter_runtime_test.dart",
"../../../tests/language/const/global_test.dart",
"../../../tests/language/const/inference_test.dart",
"../../../tests/language/const/init2_runtime_1_test.dart",
"../../../tests/language/const/init2_runtime_test.dart",
"../../../tests/language/const/init_test.dart",
"../../../tests/language/const/instance_field_runtime_test.dart",
"../../../tests/language/const/instantiated_function_constant_test.dart",
"../../../tests/language/const/list_test.dart",
"../../../tests/language/const/local_test.dart",
"../../../tests/language/const/locals_test.dart",
"../../../tests/language/const/map2_runtime_test.dart",
"../../../tests/language/const/map3_runtime_test.dart",
"../../../tests/language/const/map4_test.dart",
"../../../tests/language/const/map5_test.dart",
"../../../tests/language/const/map_hashcode_override2_test.dart",
@@ -983,9 +928,7 @@
"../../../tests/language/const/set_hashcode_override2_test.dart",
"../../../tests/language/const/set_null_lookup_test.dart",
"../../../tests/language/const/string_test.dart",
"../../../tests/language/const/switch2_runtime_test.dart",
"../../../tests/language/const/switch_test.dart",
"../../../tests/language/const/syntax_runtime_test.dart",
"../../../tests/language/const/tree_test.dart",
"../../../tests/language/const/var_test.dart",
"../../../tests/language/constants_2018/potential_const_dynamic_test.dart",
@@ -993,18 +936,11 @@
"../../../tests/language/constants_2018/potential_const_type_test.dart",
"../../../tests/language/constants_2018/type_cast_test.dart",
"../../../tests/language/constants_2018/type_check_test.dart",
"../../../tests/language/constructor/bad_constructor_runtime_1_test.dart",
"../../../tests/language/constructor/bad_constructor_runtime_test.dart",
"../../../tests/language/constructor/bad_named_constructor_runtime_test.dart",
"../../../tests/language/constructor/body_test.dart",
"../../../tests/language/constructor/bodyless_wrong_arg_runtime_test.dart",
"../../../tests/language/constructor/call_as_function_test.dart",
"../../../tests/language/constructor/call_wrong_argument_count_runtime_test.dart",
"../../../tests/language/constructor/constructor10_runtime_test.dart",
"../../../tests/language/constructor/constructor11_test.dart",
"../../../tests/language/constructor/constructor12_strong_test.dart",
"../../../tests/language/constructor/constructor12_test.dart",
"../../../tests/language/constructor/constructor13_runtime_test.dart",
"../../../tests/language/constructor/constructor2_test.dart",
"../../../tests/language/constructor/constructor3_test.dart",
"../../../tests/language/constructor/constructor4_test.dart",
@@ -1012,18 +948,12 @@
"../../../tests/language/constructor/constructor6_test.dart",
"../../../tests/language/constructor/constructor7_test.dart",
"../../../tests/language/constructor/constructor8_test.dart",
"../../../tests/language/constructor/constructor9_runtime_test.dart",
"../../../tests/language/constructor/constructor_contexts_test.dart",
"../../../tests/language/constructor/constructor_test.dart",
"../../../tests/language/constructor/cyclic_runtime_test.dart",
"../../../tests/language/constructor/default_class_implicit_constructor_test.dart",
"../../../tests/language/constructor/default_factory2_runtime_test.dart",
"../../../tests/language/constructor/default_factory3_test.dart",
"../../../tests/language/constructor/default_factory_library_test.dart",
"../../../tests/language/constructor/default_factory_runtime_test.dart",
"../../../tests/language/constructor/default_test.dart",
"../../../tests/language/constructor/duplicate_initializers_runtime_test.dart",
"../../../tests/language/constructor/duplicate_runtime_test.dart",
"../../../tests/language/constructor/evaluation_redirecting_constructor_test.dart",
"../../../tests/language/constructor/example_constructor_test.dart",
"../../../tests/language/constructor/external_constructor_test.dart",
@@ -1034,34 +964,12 @@
"../../../tests/language/constructor/initializer_test.dart",
"../../../tests/language/constructor/multiple_field_assignment_constructor_test.dart",
"../../../tests/language/constructor/name_clash_test.dart",
"../../../tests/language/constructor/named_runtime_test.dart",
"../../../tests/language/constructor/no_such_constructor_runtime_test.dart",
"../../../tests/language/constructor/non_const_constructor_without_body_test.dart",
"../../../tests/language/constructor/non_parameterized_factory2_test.dart",
"../../../tests/language/constructor/non_parameterized_factory_test.dart",
"../../../tests/language/constructor/patch_tear_off_test.dart",
"../../../tests/language/constructor/redirect2_runtime_test.dart",
"../../../tests/language/constructor/redirect_cycle_runtime_test.dart",
"../../../tests/language/constructor/redirect_indirect_cycle_runtime_test.dart",
"../../../tests/language/constructor/redirect_runtime_test.dart",
"../../../tests/language/constructor/reference_runtime_10_test.dart",
"../../../tests/language/constructor/reference_runtime_11_test.dart",
"../../../tests/language/constructor/reference_runtime_12_test.dart",
"../../../tests/language/constructor/reference_runtime_1_test.dart",
"../../../tests/language/constructor/reference_runtime_2_test.dart",
"../../../tests/language/constructor/reference_runtime_3_test.dart",
"../../../tests/language/constructor/reference_runtime_4_test.dart",
"../../../tests/language/constructor/reference_runtime_5_test.dart",
"../../../tests/language/constructor/reference_runtime_6_test.dart",
"../../../tests/language/constructor/reference_runtime_7_test.dart",
"../../../tests/language/constructor/reference_runtime_8_test.dart",
"../../../tests/language/constructor/reference_runtime_9_test.dart",
"../../../tests/language/constructor/reference_runtime_test.dart",
"../../../tests/language/constructor/return_runtime_test.dart",
"../../../tests/language/constructor/tear_off_test.dart",
"../../../tests/language/constructor/type_parameter_runtime_test.dart",
"../../../tests/language/constructor/unnamed_new_test.dart",
"../../../tests/language/constructor/unresolved_default_runtime_test.dart",
"../../../tests/language/constructor/with_mixin_test.dart",
"../../../tests/language/control_flow_collections/for_await_test.dart",
"../../../tests/language/control_flow_collections/for_dynamic_null_strong_test.dart",
@@ -1103,15 +1011,11 @@
"../../../tests/language/deferred/closurize_load_library_test.dart",
"../../../tests/language/deferred/constant_list_test.dart",
"../../../tests/language/deferred/deferred_and_immediate_import_test.dart",
"../../../tests/language/deferred/duplicate_prefix1_runtime_test.dart",
"../../../tests/language/deferred/duplicate_prefix2_runtime_test.dart",
"../../../tests/language/deferred/duplicate_prefix3_runtime_test.dart",
"../../../tests/language/deferred/exported_main_test.dart",
"../../../tests/language/deferred/function_type_test.dart",
"../../../tests/language/deferred/global_test.dart",
"../../../tests/language/deferred/import_core_test.dart",
"../../../tests/language/deferred/inlined_test.dart",
"../../../tests/language/deferred/load_constants_runtime_test.dart",
"../../../tests/language/deferred/load_inval_code_test.dart",
"../../../tests/language/deferred/loading_unit_root_has_only_export_test.dart",
"../../../tests/language/deferred/mixin_test.dart",
@@ -1130,15 +1034,11 @@
"../../../tests/language/double/identical_test.dart",
"../../../tests/language/double/int_addition_test.dart",
"../../../tests/language/double/int_to_string_test.dart",
"../../../tests/language/double/invalid_runtime_test.dart",
"../../../tests/language/double/modulo_test.dart",
"../../../tests/language/double/nan_comparison_test.dart",
"../../../tests/language/double/to_string_as_exponential2_runtime_test.dart",
"../../../tests/language/double/to_string_as_exponential3_test.dart",
"../../../tests/language/double/to_string_as_exponential_test.dart",
"../../../tests/language/double/to_string_as_fixed2_runtime_test.dart",
"../../../tests/language/double/to_string_as_fixed_test.dart",
"../../../tests/language/double/to_string_as_precision2_runtime_test.dart",
"../../../tests/language/double/to_string_as_precision3_test.dart",
"../../../tests/language/double/to_string_as_precision_test.dart",
"../../../tests/language/double/to_string_test.dart",
@@ -1146,7 +1046,6 @@
"../../../tests/language/double_literals/implicit_double_context_test.dart",
"../../../tests/language/dynamic/call_test.dart",
"../../../tests/language/dynamic/dynamic_test.dart",
"../../../tests/language/dynamic/field_runtime_test.dart",
"../../../tests/language/dynamic/hash_code_test.dart",
"../../../tests/language/dynamic/invoke_test.dart",
"../../../tests/language/dynamic/named_args_test.dart",
@@ -1157,9 +1056,6 @@
"../../../tests/language/enum/enum_test.dart",
"../../../tests/language/enum/index_test.dart",
"../../../tests/language/enum/initialization_near_stack_overflow_test.dart",
"../../../tests/language/enum/is_keyword_runtime_test.dart",
"../../../tests/language/enum/private_runtime_1_test.dart",
"../../../tests/language/enum/private_runtime_test.dart",
"../../../tests/language/enum/value_name_test.dart",
"../../../tests/language/exception/catch_liveness_test.dart",
"../../../tests/language/exception/exception_test.dart",
@@ -1200,7 +1096,6 @@
"../../../tests/language/exception/try_catch_optimized5_test.dart",
"../../../tests/language/exception/try_catch_osr_test.dart",
"../../../tests/language/exception/try_catch_regress_27483_test.dart",
"../../../tests/language/exception/try_catch_runtime_test.dart",
"../../../tests/language/exception/try_finally_regress_25333_test.dart",
"../../../tests/language/exception/try_finally_regress_25654_test.dart",
"../../../tests/language/export/cyclic_test.dart",
@@ -1212,7 +1107,6 @@
"../../../tests/language/export/main_test.dart",
"../../../tests/language/export/not_shadowed_by_prefix_test.dart",
"../../../tests/language/export/order_test.dart",
"../../../tests/language/export/private_runtime_test.dart",
"../../../tests/language/export/reexport_core_test.dart",
"../../../tests/language/extension_methods/basic_static_extension_test.dart",
"../../../tests/language/extension_methods/issue_45551_error_test.dart",
@@ -1245,19 +1139,10 @@
"../../../tests/language/extension_methods/syntax/extension_methods_test.dart",
"../../../tests/language/external_abstract_fields/abstract_fields_test.dart",
"../../../tests/language/external_abstract_fields/external_fields_test.dart",
"../../../tests/language/factory/and_instance_variable_runtime_test.dart",
"../../../tests/language/factory/arrow_test.dart",
"../../../tests/language/factory/factory4_runtime_test.dart",
"../../../tests/language/factory/factory5_runtime_test.dart",
"../../../tests/language/factory/factory6_runtime_test.dart",
"../../../tests/language/factory/implementation_test.dart",
"../../../tests/language/factory/redirection2_runtime_test.dart",
"../../../tests/language/factory/redirection3_cyclic_runtime_test.dart",
"../../../tests/language/factory/return_type_checked_runtime_test.dart",
"../../../tests/language/factory/runtime_test.dart",
"../../../tests/language/factory/type_parameter2_test.dart",
"../../../tests/language/factory/type_parameter_test.dart",
"../../../tests/language/field/decl_missing_var_type_runtime_test.dart",
"../../../tests/language/field/field_test.dart",
"../../../tests/language/field/function_field_test.dart",
"../../../tests/language/field/increment_bailout_test.dart",
@@ -1271,14 +1156,11 @@
"../../../tests/language/field/parameter_test.dart",
"../../../tests/language/field/super_access2_test.dart",
"../../../tests/language/field/super_access_test.dart",
"../../../tests/language/field/type_check_runtime_test.dart",
"../../../tests/language/field/wierd_name_test.dart",
"../../../tests/language/final/attempt_reinitialization_runtime_test.dart",
"../../../tests/language/final/field_initialization_order_test.dart",
"../../../tests/language/final/field_override_test.dart",
"../../../tests/language/final/initialize_inside_closure_test.dart",
"../../../tests/language/final/used_in_try_test.dart",
"../../../tests/language/final/variable_assignment_runtime_test.dart",
"../../../tests/language/function/apply_generic2_test.dart",
"../../../tests/language/function/apply_generic_test.dart",
"../../../tests/language/function/argument_test.dart",
@@ -1291,7 +1173,6 @@
"../../../tests/language/function/local2_test.dart",
"../../../tests/language/function/local3_test.dart",
"../../../tests/language/function/local_function_test.dart",
"../../../tests/language/function/malformed_result_type_runtime_test.dart",
"../../../tests/language/function/propagation_test.dart",
"../../../tests/language/function/regress_45601_test.dart",
"../../../tests/language/function/type2_test.dart",
@@ -1300,11 +1181,8 @@
"../../../tests/language/function/type_alias2_test.dart",
"../../../tests/language/function/type_alias3_test.dart",
"../../../tests/language/function/type_alias4_test.dart",
"../../../tests/language/function/type_alias6_runtime_test.dart",
"../../../tests/language/function/type_alias8_test.dart",
"../../../tests/language/function/type_alias9_runtime_test.dart",
"../../../tests/language/function/type_alias_test.dart",
"../../../tests/language/function/type_call_getter2_runtime_test.dart",
"../../../tests/language/function/type_call_getter_test.dart",
"../../../tests/language/function/type_in_constant_test.dart",
"../../../tests/language/function/type_parameter2_test.dart",
@@ -1476,9 +1354,6 @@
"../../../tests/language/generic/cascaded_forwarding_stubs_generic_test.dart",
"../../../tests/language/generic/closure_test.dart",
"../../../tests/language/generic/conflicting_generic_interfaces_no_conflict_test.dart",
"../../../tests/language/generic/constructor_mixin2_runtime_test.dart",
"../../../tests/language/generic/constructor_mixin3_runtime_test.dart",
"../../../tests/language/generic/constructor_mixin_runtime_test.dart",
"../../../tests/language/generic/creation_test.dart",
"../../../tests/language/generic/deep_test.dart",
"../../../tests/language/generic/f_bounded_equality_test.dart",
@@ -1486,25 +1361,13 @@
"../../../tests/language/generic/f_bounded_quantification3_test.dart",
"../../../tests/language/generic/f_bounded_quantification4_test.dart",
"../../../tests/language/generic/f_bounded_quantification5_test.dart",
"../../../tests/language/generic/f_bounded_quantification_runtime_test.dart",
"../../../tests/language/generic/field_mixin2_test.dart",
"../../../tests/language/generic/field_mixin3_test.dart",
"../../../tests/language/generic/field_mixin4_test.dart",
"../../../tests/language/generic/field_mixin5_test.dart",
"../../../tests/language/generic/field_mixin6_runtime_test.dart",
"../../../tests/language/generic/field_mixin_test.dart",
"../../../tests/language/generic/function_bounds_test.dart",
"../../../tests/language/generic/function_dcall_test.dart",
"../../../tests/language/generic/function_subtype_parametrized_typedef_runtime_1_test.dart",
"../../../tests/language/generic/function_subtype_parametrized_typedef_runtime_2_test.dart",
"../../../tests/language/generic/function_subtype_parametrized_typedef_runtime_3_test.dart",
"../../../tests/language/generic/function_subtype_parametrized_typedef_runtime_test.dart",
"../../../tests/language/generic/function_subtype_runtime_1_test.dart",
"../../../tests/language/generic/function_subtype_runtime_2_test.dart",
"../../../tests/language/generic/function_subtype_runtime_test.dart",
"../../../tests/language/generic/function_type_as_type_argument_runtime_1_test.dart",
"../../../tests/language/generic/function_type_as_type_argument_runtime_test.dart",
"../../../tests/language/generic/function_typedef2_runtime_test.dart",
"../../../tests/language/generic/function_typedef_test.dart",
"../../../tests/language/generic/functions_test.dart",
"../../../tests/language/generic/generic2_test.dart",
@@ -1521,12 +1384,9 @@
"../../../tests/language/generic/instantiate_tearoff_after_contravariance_check_test.dart",
"../../../tests/language/generic/instantiate_tearoff_of_call_test.dart",
"../../../tests/language/generic/instantiate_tearoff_test.dart",
"../../../tests/language/generic/instantiate_type_variable_runtime_test.dart",
"../../../tests/language/generic/is_check_test.dart",
"../../../tests/language/generic/list_checked_test.dart",
"../../../tests/language/generic/local_functions_test.dart",
"../../../tests/language/generic/metadata_runtime_1_test.dart",
"../../../tests/language/generic/metadata_runtime_test.dart",
"../../../tests/language/generic/method_types_test.dart",
"../../../tests/language/generic/mock_test.dart",
"../../../tests/language/generic/native_test.dart",
@@ -1535,10 +1395,6 @@
"../../../tests/language/generic/parameterized_extends_test.dart",
"../../../tests/language/generic/recursive_generic_test.dart",
"../../../tests/language/generic/regress_45767_test.dart",
"../../../tests/language/generic/reify_typevar_runtime_1_test.dart",
"../../../tests/language/generic/reify_typevar_runtime_2_test.dart",
"../../../tests/language/generic/reify_typevar_runtime_3_test.dart",
"../../../tests/language/generic/reify_typevar_runtime_test.dart",
"../../../tests/language/generic/self_reference_test.dart",
"../../../tests/language/generic/sends_test.dart",
"../../../tests/language/generic/super_bounded_types_and_nested_variance_test.dart",
@@ -1551,14 +1407,12 @@
"../../../tests/language/generic/type_argument_substitution_test.dart",
"../../../tests/language/generic/type_parameter_literal_test.dart",
"../../../tests/language/generic/typedef_test.dart",
"../../../tests/language/generic/wrong_number_type_arguments_runtime_test.dart",
"../../../tests/language/generic_methods/closure_test.dart",
"../../../tests/language/generic_methods/explicit_instantiated_tearoff_test.dart",
"../../../tests/language/generic_methods/fbounded_futureor_test.dart",
"../../../tests/language/generic_methods/function_type_test.dart",
"../../../tests/language/generic_methods/generic_class_tearoff_test.dart",
"../../../tests/language/generic_methods/generic_function_parameter_test.dart",
"../../../tests/language/generic_methods/generic_function_result_runtime_test.dart",
"../../../tests/language/generic_methods/generic_invocation_all_subexpression_types_test.dart",
"../../../tests/language/generic_methods/generic_invocation_all_types_test.dart",
"../../../tests/language/generic_methods/generic_methods_test.dart",
@@ -1578,23 +1432,14 @@
"../../../tests/language/generic_methods/type_expression_test.dart",
"../../../tests/language/generic_methods/unused_parameter_test.dart",
"../../../tests/language/getter/closure_execution_order_test.dart",
"../../../tests/language/getter/no_setter2_runtime_test.dart",
"../../../tests/language/getter/no_setter_runtime_test.dart",
"../../../tests/language/getter/override3_test.dart",
"../../../tests/language/getter/parameters_runtime_test.dart",
"../../../tests/language/getter/setter_getters_setters_test.dart",
"../../../tests/language/getter/setter_in_lib_test.dart",
"../../../tests/language/getter/setter_interceptor_test.dart",
"../../../tests/language/getter/setter_order_test.dart",
"../../../tests/language/getter/setter_type2_test.dart",
"../../../tests/language/getter/setter_type_runtime_test.dart",
"../../../tests/language/getter/syntax_runtime_1_test.dart",
"../../../tests/language/getter/syntax_runtime_test.dart",
"../../../tests/language/identifier/built_in_identifier_test.dart",
"../../../tests/language/identifier/built_in_illegal_runtime_test.dart",
"../../../tests/language/identifier/known_prefix_error_runtime_test.dart",
"../../../tests/language/identifier/known_prefix_test.dart",
"../../../tests/language/identifier/known_usage_error_runtime_test.dart",
"../../../tests/language/identifier/naming2_test.dart",
"../../../tests/language/identifier/naming3_test.dart",
"../../../tests/language/identifier/naming_test.dart",
@@ -1608,35 +1453,8 @@
"../../../tests/language/if/dangling_else_test.dart",
"../../../tests/language/if/if_test.dart",
"../../../tests/language/if/nested_if_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_10_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_13_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_14_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_15_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_16_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_17_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_18_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_19_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_1_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_20_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_21_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_22_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_23_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_24_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_25_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_26_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_27_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_2_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_3_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_4_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_5_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_6_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_7_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_8_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_9_test.dart",
"../../../tests/language/if_null/assignment_behavior_runtime_test.dart",
"../../../tests/language/if_null/behavior_test.dart",
"../../../tests/language/if_null/evaluation_order_test.dart",
"../../../tests/language/if_null/precedence_runtime_test.dart",
"../../../tests/language/implicit_creation/implicit_const_context_constructor_generic_named_test.dart",
"../../../tests/language/implicit_creation/implicit_const_context_constructor_generic_test.dart",
"../../../tests/language/implicit_creation/implicit_const_context_constructor_named_test.dart",
@@ -1659,7 +1477,6 @@
"../../../tests/language/implicit_creation/implicit_new_prefix_constructor_named_test.dart",
"../../../tests/language/implicit_creation/implicit_new_prefix_constructor_test.dart",
"../../../tests/language/import/collection_no_prefix_test.dart",
"../../../tests/language/import/combinators2_runtime_test.dart",
"../../../tests/language/import/config_corelib_test.dart",
"../../../tests/language/import/core_no_prefix_test.dart",
"../../../tests/language/import/core_prefix_test.dart",
@@ -1667,18 +1484,8 @@
"../../../tests/language/import/cyclic_test.dart",
"../../../tests/language/import/duplicate_prefix_test.dart",
"../../../tests/language/import/hidden_import_test.dart",
"../../../tests/language/import/hidden_runtime_test.dart",
"../../../tests/language/import/internal_library_runtime_test.dart",
"../../../tests/language/import/name_clash_test.dart",
"../../../tests/language/import/nonexisting_dart_uri_runtime_test.dart",
"../../../tests/language/import/private_runtime_test.dart",
"../../../tests/language/import/self_runtime_test.dart",
"../../../tests/language/import/show_test.dart",
"../../../tests/language/inference/accessor_ref_runtime_1_test.dart",
"../../../tests/language/inference/accessor_ref_runtime_2_test.dart",
"../../../tests/language/inference/accessor_ref_runtime_3_test.dart",
"../../../tests/language/inference/accessor_ref_runtime_4_test.dart",
"../../../tests/language/inference/accessor_ref_runtime_test.dart",
"../../../tests/language/inference/dynamic_nullable_test.dart",
"../../../tests/language/inference_update_1/downward_inference_preferred_over_horizontal_test.dart",
"../../../tests/language/inference_update_1/horizontal_inference_disabled_test.dart",
@@ -1730,7 +1537,6 @@
"../../../tests/language/initializing_formal/capture_test.dart",
"../../../tests/language/initializing_formal/promotion_test.dart",
"../../../tests/language/initializing_formal/scope_test.dart",
"../../../tests/language/initializing_formal/type_annotation_runtime_test.dart",
"../../../tests/language/instance/compound_assignment_operator_test.dart",
"../../../tests/language/instance/field_initializer_test.dart",
"../../../tests/language/instance/incr_deopt_test.dart",
@@ -1745,13 +1551,8 @@
"../../../tests/language/interceptor/interceptor9_test.dart",
"../../../tests/language/interceptor/interceptor_test.dart",
"../../../tests/language/interface/constants_test.dart",
"../../../tests/language/interface/duplicate_interface_implements_runtime_test.dart",
"../../../tests/language/interface/duplicate_interface_test.dart",
"../../../tests/language/interface/implements_futureor_runtime_test.dart",
"../../../tests/language/interface/inherit_field_test.dart",
"../../../tests/language/interface/injection1_runtime_test.dart",
"../../../tests/language/interface/injection2_runtime_test.dart",
"../../../tests/language/interface/runtime_test.dart",
"../../../tests/language/invalid_returns/async_valid_returns_test.dart",
"../../../tests/language/invalid_returns/sync_valid_returns_test.dart",
"../../../tests/language/is/function_test.dart",
@@ -1760,20 +1561,11 @@
"../../../tests/language/is/interfaces_test.dart",
"../../../tests/language/is/is2_test.dart",
"../../../tests/language/is/is4_test.dart",
"../../../tests/language/is/isnot_malformed_type_runtime_test.dart",
"../../../tests/language/is/malformed_type_runtime_test.dart",
"../../../tests/language/is/nan_test.dart",
"../../../tests/language/is/object_test.dart",
"../../../tests/language/is/operator_clash_test.dart",
"../../../tests/language/is/operator_test.dart",
"../../../tests/language/is/optimized_test.dart",
"../../../tests/language/label/label3_runtime_1_test.dart",
"../../../tests/language/label/label3_runtime_test.dart",
"../../../tests/language/label/label5_runtime_test.dart",
"../../../tests/language/label/label6_runtime_1_test.dart",
"../../../tests/language/label/label6_runtime_2_test.dart",
"../../../tests/language/label/label6_runtime_test.dart",
"../../../tests/language/label/label8_runtime_test.dart",
"../../../tests/language/label/label_test.dart",
"../../../tests/language/lazy/map_test.dart",
"../../../tests/language/lazy/static2_test.dart",
@@ -1784,24 +1576,7 @@
"../../../tests/language/lazy/static8_test.dart",
"../../../tests/language/lazy/static_test.dart",
"../../../tests/language/lazy/throwing_variable_test.dart",
"../../../tests/language/least_upper_bound/expansive_runtime_test.dart",
"../../../tests/language/least_upper_bound/least_upper_bound_function_test.dart",
"../../../tests/language/least_upper_bound/runtime_10_test.dart",
"../../../tests/language/least_upper_bound/runtime_11_test.dart",
"../../../tests/language/least_upper_bound/runtime_14_test.dart",
"../../../tests/language/least_upper_bound/runtime_15_test.dart",
"../../../tests/language/least_upper_bound/runtime_16_test.dart",
"../../../tests/language/least_upper_bound/runtime_18_test.dart",
"../../../tests/language/least_upper_bound/runtime_19_test.dart",
"../../../tests/language/least_upper_bound/runtime_20_test.dart",
"../../../tests/language/least_upper_bound/runtime_22_test.dart",
"../../../tests/language/least_upper_bound/runtime_3_test.dart",
"../../../tests/language/least_upper_bound/runtime_4_test.dart",
"../../../tests/language/least_upper_bound/runtime_5_test.dart",
"../../../tests/language/least_upper_bound/runtime_7_test.dart",
"../../../tests/language/least_upper_bound/runtime_8_test.dart",
"../../../tests/language/least_upper_bound/runtime_9_test.dart",
"../../../tests/language/least_upper_bound/runtime_test.dart",
"../../../tests/language/library/juxtaposition_test.dart",
"../../../tests/language/library/library1_test.dart",
"../../../tests/language/library/library5_test.dart",
@@ -1816,7 +1591,6 @@
"../../../tests/language/list/is_test.dart",
"../../../tests/language/list/length_tracer_test.dart",
"../../../tests/language/list/list_test.dart",
"../../../tests/language/list/literal1_runtime_test.dart",
"../../../tests/language/list/literal2_test.dart",
"../../../tests/language/list/literal3_test.dart",
"../../../tests/language/list/literal_test.dart",
@@ -1826,7 +1600,6 @@
"../../../tests/language/list/tracer_in_list_test.dart",
"../../../tests/language/list/tracer_in_map_test.dart",
"../../../tests/language/list/tracer_return_from_tearoff_closure_test.dart",
"../../../tests/language/loop/break_outside_loop_runtime_test.dart",
"../../../tests/language/loop/break_test.dart",
"../../../tests/language/loop/continue_test.dart",
"../../../tests/language/loop/do_while2_test.dart",
@@ -1843,23 +1616,14 @@
"../../../tests/language/loop/for_in_side_effects_test.dart",
"../../../tests/language/loop/for_in_test.dart",
"../../../tests/language/loop/for_inlining_test.dart",
"../../../tests/language/loop/for_runtime_test.dart",
"../../../tests/language/loop/for_variable_capture_test.dart",
"../../../tests/language/loop/for_without_condition_test.dart",
"../../../tests/language/loop/hoist_test.dart",
"../../../tests/language/loop/non_dominating_loop_test.dart",
"../../../tests/language/loop/unconditional_break_test.dart",
"../../../tests/language/loop/while_test.dart",
"../../../tests/language/malbounded/instantiation_runtime_test.dart",
"../../../tests/language/malbounded/type_cast_runtime_test.dart",
"../../../tests/language/malbounded/type_literal_runtime_test.dart",
"../../../tests/language/malbounded/type_test2_runtime_test.dart",
"../../../tests/language/malbounded/type_test_runtime_test.dart",
"../../../tests/language/malformed/inheritance_runtime_test.dart",
"../../../tests/language/malformed/runtime_test.dart",
"../../../tests/language/map/literal10_test.dart",
"../../../tests/language/map/literal12_test.dart",
"../../../tests/language/map/literal1_runtime_test.dart",
"../../../tests/language/map/literal2_test.dart",
"../../../tests/language/map/literal5_test.dart",
"../../../tests/language/map/literal6_test.dart",
@@ -1882,15 +1646,12 @@
"../../../tests/language/method/binding_test.dart",
"../../../tests/language/method/invocation_test.dart",
"../../../tests/language/method/name_test.dart",
"../../../tests/language/method/not_found_runtime_test.dart",
"../../../tests/language/method/override3_runtime_test.dart",
"../../../tests/language/method/override_test.dart",
"../../../tests/language/mixin/abstract_getter_test.dart",
"../../../tests/language/mixin/accessor_test.dart",
"../../../tests/language/mixin/and_extension_member_test.dart",
"../../../tests/language/mixin/bound_test.dart",
"../../../tests/language/mixin/class_from_core_library_test.dart",
"../../../tests/language/mixin/cyclic_runtime_test.dart",
"../../../tests/language/mixin/deduplication_test.dart",
"../../../tests/language/mixin/extends_field_test.dart",
"../../../tests/language/mixin/extends_is_test.dart",
@@ -1906,15 +1667,10 @@
"../../../tests/language/mixin/forwarding_stub_tearoff_test.dart",
"../../../tests/language/mixin/generic_test.dart",
"../../../tests/language/mixin/getter_regression_test.dart",
"../../../tests/language/mixin/illegal_constructor_runtime_test.dart",
"../../../tests/language/mixin/illegal_static_access_runtime_test.dart",
"../../../tests/language/mixin/illegal_super_use_runtime_test.dart",
"../../../tests/language/mixin/illegal_superclass_runtime_test.dart",
"../../../tests/language/mixin/implements2_test.dart",
"../../../tests/language/mixin/implements_test.dart",
"../../../tests/language/mixin/implicit_covariance_test.dart",
"../../../tests/language/mixin/inference_mixin_field_test.dart",
"../../../tests/language/mixin/interface_check_runtime_test.dart",
"../../../tests/language/mixin/is_test.dart",
"../../../tests/language/mixin/issue10216_2_test.dart",
"../../../tests/language/mixin/issue10216_test.dart",
@@ -2012,7 +1768,6 @@
"../../../tests/language/mixin_legacy/and_extension_member_test.dart",
"../../../tests/language/mixin_legacy/bound_test.dart",
"../../../tests/language/mixin_legacy/class_from_core_library_test.dart",
"../../../tests/language/mixin_legacy/cyclic_runtime_test.dart",
"../../../tests/language/mixin_legacy/deduplication_test.dart",
"../../../tests/language/mixin_legacy/extends_field_test.dart",
"../../../tests/language/mixin_legacy/extends_is_test.dart",
@@ -2028,22 +1783,15 @@
"../../../tests/language/mixin_legacy/forwarding_stub_tearoff_test.dart",
"../../../tests/language/mixin_legacy/generic_test.dart",
"../../../tests/language/mixin_legacy/getter_regression_test.dart",
"../../../tests/language/mixin_legacy/illegal_constructor_runtime_test.dart",
"../../../tests/language/mixin_legacy/illegal_static_access_runtime_test.dart",
"../../../tests/language/mixin_legacy/illegal_super_use_runtime_test.dart",
"../../../tests/language/mixin_legacy/illegal_superclass_runtime_test.dart",
"../../../tests/language/mixin_legacy/implements2_test.dart",
"../../../tests/language/mixin_legacy/implements_test.dart",
"../../../tests/language/mixin_legacy/implicit_covariance_test.dart",
"../../../tests/language/mixin_legacy/inference_mixin_field_test.dart",
"../../../tests/language/mixin_legacy/interface_check_runtime_test.dart",
"../../../tests/language/mixin_legacy/invalid_override_in_mixin_runtime_test.dart",
"../../../tests/language/mixin_legacy/is_test.dart",
"../../../tests/language/mixin_legacy/issue10216_2_test.dart",
"../../../tests/language/mixin_legacy/issue10216_test.dart",
"../../../tests/language/mixin_legacy/lib_extends_field_test.dart",
"../../../tests/language/mixin_legacy/lib_extends_method_test.dart",
"../../../tests/language/mixin_legacy/method_override_runtime_test.dart",
"../../../tests/language/mixin_legacy/method_test.dart",
"../../../tests/language/mixin_legacy/mixin2_test.dart",
"../../../tests/language/mixin_legacy/mixin3_test.dart",
@@ -2097,8 +1845,6 @@
"../../../tests/language/mixin_legacy/with_named_import_test.dart",
"../../../tests/language/named_arguments_anywhere/all_kinds_test.dart",
"../../../tests/language/named_arguments_anywhere/order_side_effects_ok_test.dart",
"../../../tests/language/new/create_unresolved_type_runtime_test.dart",
"../../../tests/language/new/expression_type_args_runtime_test.dart",
"../../../tests/language/new/statement_test.dart",
"../../../tests/language/nnbd/boolean_conversion/boolean_conversion_strong_test.dart",
"../../../tests/language/nnbd/const/potentially_constant_types_test.dart",
@@ -2285,7 +2031,6 @@
"../../../tests/language/nosuchmethod_forwarding/nosuchmethod_forwarding_arguments_test.dart",
"../../../tests/language/nosuchmethod_forwarding/nosuchmethod_forwarding_partial_instantiation_test.dart",
"../../../tests/language/null/access_error_test.dart",
"../../../tests/language/null/checked_runtime_test.dart",
"../../../tests/language/null/inline_test.dart",
"../../../tests/language/null/is2_test.dart",
"../../../tests/language/null/is_test.dart",
@@ -2294,33 +2039,16 @@
"../../../tests/language/null/null2_test.dart",
"../../../tests/language/null/to_string2_test.dart",
"../../../tests/language/null/to_string_test.dart",
"../../../tests/language/null_aware/access_runtime_test.dart",
"../../../tests/language/null_aware/assignment_runtime_test.dart",
"../../../tests/language/null_aware/dynamic_test.dart",
"../../../tests/language/null_aware/increment_decrement_runtime_test.dart",
"../../../tests/language/null_aware/index_this_null_aware_equals_test.dart",
"../../../tests/language/null_aware/invocation_runtime_test.dart",
"../../../tests/language/null_aware/null_aware_index_on_null_test.dart",
"../../../tests/language/null_aware/null_shortening_test.dart",
"../../../tests/language/null_aware/opt_test.dart",
"../../../tests/language/number/constant_folding1_test.dart",
"../../../tests/language/number/identifier_runtime_test.dart",
"../../../tests/language/number/identity2_test.dart",
"../../../tests/language/number/identity_test.dart",
"../../../tests/language/number/infinity_test.dart",
"../../../tests/language/number/int2_test.dart",
"../../../tests/language/number/int64_literal_runtime_10_test.dart",
"../../../tests/language/number/int64_literal_runtime_11_test.dart",
"../../../tests/language/number/int64_literal_runtime_1_test.dart",
"../../../tests/language/number/int64_literal_runtime_2_test.dart",
"../../../tests/language/number/int64_literal_runtime_3_test.dart",
"../../../tests/language/number/int64_literal_runtime_4_test.dart",
"../../../tests/language/number/int64_literal_runtime_5_test.dart",
"../../../tests/language/number/int64_literal_runtime_6_test.dart",
"../../../tests/language/number/int64_literal_runtime_7_test.dart",
"../../../tests/language/number/int64_literal_runtime_8_test.dart",
"../../../tests/language/number/int64_literal_runtime_9_test.dart",
"../../../tests/language/number/int64_literal_runtime_test.dart",
"../../../tests/language/number/int_test.dart",
"../../../tests/language/number/numbers_test.dart",
"../../../tests/language/number/syntax_test.dart",
@@ -2343,7 +2071,6 @@
"../../../tests/language/operator/index_evaluation_order_test.dart",
"../../../tests/language/operator/index_test.dart",
"../../../tests/language/operator/integer_division_by_zero_test.dart",
"../../../tests/language/operator/invalid_assignment_to_postfix_increment_runtime_test.dart",
"../../../tests/language/operator/left_shift_test.dart",
"../../../tests/language/operator/logical_expression2_test.dart",
"../../../tests/language/operator/logical_expression4_test.dart",
@@ -2373,7 +2100,6 @@
"../../../tests/language/operator/truncdiv_zero_test.dart",
"../../../tests/language/operator/unary2_test.dart",
"../../../tests/language/operator/unary_test.dart",
"../../../tests/language/operator/unsupported_runtime_test.dart",
"../../../tests/language/optimize/allocation_sinking_inlining_test.dart",
"../../../tests/language/optimize/bailout2_test.dart",
"../../../tests/language/optimize/bailout3_test.dart",
@@ -2402,7 +2128,6 @@
"../../../tests/language/optimize/inferrer_constructor2_test.dart",
"../../../tests/language/optimize/inferrer_constructor3_test.dart",
"../../../tests/language/optimize/inferrer_constructor4_test.dart",
"../../../tests/language/optimize/inferrer_constructor5_runtime_test.dart",
"../../../tests/language/optimize/inferrer_constructor_test.dart",
"../../../tests/language/optimize/inferrer_named_parameter_test.dart",
"../../../tests/language/optimize/inferrer_synthesized_constructor_test.dart",
@@ -2435,33 +2160,18 @@
"../../../tests/language/optimize/string_charat_test.dart",
"../../../tests/language/optimize/string_charcodeat_test.dart",
"../../../tests/language/override/const_field_test.dart",
"../../../tests/language/override/inheritance_abstract_runtime_1_test.dart",
"../../../tests/language/override/inheritance_abstract_runtime_2_test.dart",
"../../../tests/language/override/inheritance_abstract_runtime_3_test.dart",
"../../../tests/language/override/inheritance_abstract_runtime_4_test.dart",
"../../../tests/language/override/inheritance_abstract_runtime_5_test.dart",
"../../../tests/language/override/inheritance_abstract_runtime_6_test.dart",
"../../../tests/language/override/inheritance_abstract_runtime_7_test.dart",
"../../../tests/language/override/inheritance_abstract_runtime_test.dart",
"../../../tests/language/override/method_with_field_runtime_test.dart",
"../../../tests/language/parameter/bad_named2_runtime_test.dart",
"../../../tests/language/parameter/bad_named_runtime_test.dart",
"../../../tests/language/parameter/initializer2_test.dart",
"../../../tests/language/parameter/initializer5_test.dart",
"../../../tests/language/parameter/initializer_test.dart",
"../../../tests/language/parameter/metadata_test.dart",
"../../../tests/language/parameter/name_conflict_test.dart",
"../../../tests/language/parameter/named_aggregated_runtime_test.dart",
"../../../tests/language/parameter/named_clash_test.dart",
"../../../tests/language/parameter/named_count_test.dart",
"../../../tests/language/parameter/named_default_eq_runtime_test.dart",
"../../../tests/language/parameter/named_passing_false_test.dart",
"../../../tests/language/parameter/named_passing_falsy_test.dart",
"../../../tests/language/parameter/named_passing_null_test.dart",
"../../../tests/language/parameter/named_passing_zero_test.dart",
"../../../tests/language/parameter/named_regression_test.dart",
"../../../tests/language/parameter/named_runtime_test.dart",
"../../../tests/language/parameter/named_type_runtime_test.dart",
"../../../tests/language/parameter/named_with_conversions_test.dart",
"../../../tests/language/parameter/named_with_dollars_test.dart",
"../../../tests/language/parameter/named_with_object_property_names_test.dart",
@@ -2469,7 +2179,6 @@
"../../../tests/language/parameter/param_test.dart",
"../../../tests/language/parameter/parameter1_test.dart",
"../../../tests/language/parameter/parameter2_test.dart",
"../../../tests/language/parameter/positional_type_runtime_test.dart",
"../../../tests/language/parameter/types_specialization_test.dart",
"../../../tests/language/part/refers_to_core_library_runtime_test.dart",
"../../../tests/language/patterns/call_tear_off_test.dart",
@@ -1,40 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Regression test for dart2js that used to duplicate some `Object`
// methods to handle `noSuchMethod`.
import "package:expect/expect.dart";
class Foo {
noSuchMethod(im) => 42;
}
@pragma('vm:never-inline')
@pragma('dart2js:noInline')
returnFoo() {
(() => 42)();
return new Foo();
}
class Bar {
operator ==(other) => false;
}
var a = [false, true, new Object(), new Bar()];
main() {
if (a[0] as bool) {
// This `==` call will make the compiler create a selector with an
// exact `TypeMask` of `Foo`. Since `Foo` is abstract, such a call
// cannot happen, but we still used to generate a `==` method on
// the `Object` class to handle `noSuchMethod`.
print(returnFoo() == 42);
} else {
Expect.isFalse(a[2] == 42);
}
}
@@ -1,24 +0,0 @@
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program for constructors and initializers.
// Exercises issue 2282, factory constructors in abstract classes should
// not emit a static type warning
class B extends A1 {
B() {}
method() {}
}
abstract class A1 {
A1() {}
method(); // Abstract.
factory A1.make() {
return new B();
}
}
main() {
new A1.make();
}
@@ -1,34 +0,0 @@
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
void f(num callback(num x)) {}
Object intToObject(int x) => 0;
Object numToObject(num x) => 0;
Object objectToObject(Object x) => 0;
int intToInt(int x) => 0;
int numToInt(num x) => 0;
int objectToInt(Object x) => 0;
num intToNum(int x) => 0;
num numToNum(num x) => 0;
num objectToNum(Object x) => 0;
main() {
// Unrelated types (not assignable)
// Assignable but fails at runtime.
var intToObject2 = intToObject;
var intToNum2 = intToNum;
var numToObject2 = numToObject;
// Ok
f(numToNum);
f(numToInt);
f(objectToNum);
f(objectToInt);
}
@@ -1,58 +0,0 @@
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// VMOptions=--enable-asserts
// dart2jsOptions=--enable-asserts
//
// Test of asserts in initializer lists.
import "package:expect/expect.dart";
class C {
final int x;
// Const constructors.
const C.cc01(this.x, y) : assert(x < y);
const C.cc02(x, y) : x = x, assert(x < y);
const C.cc03(x, y) : assert(x < y), x = x;
const C.cc04(this.x, y) : assert(x < y), super();
const C.cc05(x, y) : x = x, assert(x < y), super();
const C.cc06(x, y) : assert(x < y), x = x, super();
const C.cc07(x, y) : assert(x < y), x = x, assert(y > x), super();
const C.cc08(this.x, y) : assert(x < y, "$x < $y");
const C.cc09(this.x, y) : assert(x < y);
const C.cc10(this.x, y) : assert(x < y, "$x < $y");
}
main() {
const x = 3;
{
const C.cc01(2, x);
}
{
const C.cc02(2, x);
}
{
const C.cc03(2, x);
}
{
const C.cc04(2, x);
}
{
const C.cc05(2, x);
}
{
const C.cc06(2, x);
}
{
const C.cc07(2, x);
}
{
const C.cc08(2, x);
}
{
const C.cc09(2, x);
}
{
const C.cc10(2, x);
}
}
@@ -20,7 +20,21 @@ class C {
const C.cc10(this.x, y) : assert(x < y, "$x < $y");
}
main() {
void main() {
{
const x = 3;
const C.cc01(2, x);
const C.cc02(2, x);
const C.cc03(2, x);
const C.cc04(2, x);
const C.cc05(2, x);
const C.cc06(2, x);
const C.cc07(2, x);
const C.cc08(2, x);
const C.cc09(2, x);
const C.cc10(2, x);
}
{
const x = 1;
const C.cc01(2, x);
@@ -28,73 +42,55 @@ main() {
// [analyzer] COMPILE_TIME_ERROR.CONST_EVAL_THROWS_EXCEPTION
// ^
// [cfe] Constant evaluation error:
}
{
const x = 1;
const C.cc02(2, x);
// [error column 5, length 18]
// [analyzer] COMPILE_TIME_ERROR.CONST_EVAL_THROWS_EXCEPTION
// ^
// [cfe] Constant evaluation error:
}
{
const x = 1;
const C.cc03(2, x);
// [error column 5, length 18]
// [analyzer] COMPILE_TIME_ERROR.CONST_EVAL_THROWS_EXCEPTION
// ^
// [cfe] Constant evaluation error:
}
{
const x = 1;
const C.cc04(2, x);
// [error column 5, length 18]
// [analyzer] COMPILE_TIME_ERROR.CONST_EVAL_THROWS_EXCEPTION
// ^
// [cfe] Constant evaluation error:
}
{
const x = 1;
const C.cc05(2, x);
// [error column 5, length 18]
// [analyzer] COMPILE_TIME_ERROR.CONST_EVAL_THROWS_EXCEPTION
// ^
// [cfe] Constant evaluation error:
}
{
const x = 1;
const C.cc06(2, x);
// [error column 5, length 18]
// [analyzer] COMPILE_TIME_ERROR.CONST_EVAL_THROWS_EXCEPTION
// ^
// [cfe] Constant evaluation error:
}
{
const x = 1;
const C.cc07(2, x);
// [error column 5, length 18]
// [analyzer] COMPILE_TIME_ERROR.CONST_EVAL_THROWS_EXCEPTION
// ^
// [cfe] Constant evaluation error:
}
{
const x = 1;
const C.cc08(2, x);
// [error column 5, length 18]
// [analyzer] COMPILE_TIME_ERROR.CONST_EVAL_THROWS_EXCEPTION
// ^
// [cfe] Constant evaluation error:
}
{
const x = 1;
const C.cc09(2, x);
// [error column 5, length 18]
// [analyzer] COMPILE_TIME_ERROR.CONST_EVAL_THROWS_EXCEPTION
// ^
// [cfe] Constant evaluation error:
}
{
const x = 1;
const C.cc10(2, x);
// [error column 5, length 18]
// [analyzer] COMPILE_TIME_ERROR.CONST_EVAL_THROWS_EXCEPTION
@@ -1,17 +0,0 @@
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class C {
static bool check(x, y) => x < y;
final int x;
const C(this.x);
// The expression is not a potentially constant expression.
// This is a compile-time error even in production mode.
const C.bc03(this.x, y);
}
main() {
var c = new C.bc03(1, 2);
if (c.x != 1) throw "non-trivial use of c";
}
@@ -1,119 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// This test verifies that for a local async function, the following three
// types are all appropriately matched:
// - The static return type
// - The return type of reified runtime type of a tearoff of the function or
// method
// - The reified type of the future returned by the function or method
//
// Specific attention is paid to the following conditions:
// - The static return type is determined by type inference
// - The static return type is `dynamic`
// - The function or method immediately returns a value or future with a
// different type (possibly using `=>` syntax)
import 'dart:async';
import 'package:expect/expect.dart';
class A {}
class B extends A {}
Future quick() async {}
Future<B> futureB() => new Future<B>.value(new B());
void checkDynamic(dynamic tearoff) {
Expect.isTrue(tearoff is dynamic Function());
Expect.isFalse(tearoff is Future<dynamic> Function());
dynamic f = tearoff();
Expect.isTrue(f is Future<dynamic>);
Expect.isFalse(f is Future<A>);
}
void checkFutureObject(dynamic tearoff) {
Expect.isTrue(tearoff is Future<Object> Function());
Expect.isFalse(tearoff is Future<A> Function());
dynamic f = tearoff();
Expect.isTrue(f is Future<Object>);
Expect.isFalse(f is Future<A>);
}
void checkFutureA(dynamic tearoff) {
Expect.isTrue(tearoff is Future<A> Function());
Expect.isFalse(tearoff is Future<B> Function());
dynamic f = tearoff();
Expect.isTrue(f is Future<A>);
Expect.isFalse(f is Future<B>);
}
main() {
f_inferred_futureObject() async {
await quick();
if (false) {
return 0;
} else {
return new A();
}
}
f_inferred_A() async {
await quick();
if (false) {
return new A();
} else {
return new B();
}
}
dynamic f_dynamic() async {
await quick();
return new B();
}
Future<A> f_A() async {
await quick();
return new B();
}
Future<A> f_immediateReturn_B() async {
return new B();
}
Future<A> f_immediateReturn_FutureB() async {
return futureB();
}
Future<A> f_expressionSyntax_B() async => new B();
Future<A> f_expressionSyntax_FutureB() async => futureB();
// Not executed
void checkStaticTypes() {
// Check that f_inferred_futureObject's static return type is
// `Future<Object>`, by verifying that its return value can be assigned to
// `Future<Object>` but not `Future<int>`.
Future<Object> v1 = f_inferred_futureObject();
// Check that f_inferred_A's static return type is `Future<A>`, by verifying
// that its return value can be assigned to `Future<A>` but not
// `Future<B>`.
Future<A> v3 = f_inferred_A();
}
checkFutureObject(f_inferred_futureObject);
checkFutureA(f_inferred_A);
checkDynamic(f_dynamic);
checkFutureA(f_A);
checkFutureA(f_immediateReturn_B);
checkFutureA(f_immediateReturn_FutureB);
checkFutureA(f_expressionSyntax_B);
checkFutureA(f_expressionSyntax_FutureB);
}
@@ -1,113 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// This test verifies that for an async method, the following three
// types are all appropriately matched:
// - The static return type
// - The return type of reified runtime type of a tearoff of the function or
// method
// - The reified type of the future returned by the function or method
//
// Specific attention is paid to the following conditions:
// - The static return type is determined by type inference
// - The static return type is `dynamic`
// - The function or method immediately returns a value or future with a
// different type (possibly using `=>` syntax)
import 'dart:async';
import 'package:expect/expect.dart';
class A {}
class B extends A {}
Future quick() async {}
Future<B> futureB() => new Future<B>.value(new B());
abstract class I {
dynamic f_inferred_dynamic();
Future<A> f_inferred_A();
}
class C implements I {
f_inferred_dynamic() async {
await quick();
return new B();
}
f_inferred_A() async {
await quick();
return new B();
}
dynamic f_dynamic() async {
await quick();
return new B();
}
Future<A> f_A() async {
await quick();
return new B();
}
Future<A> f_immediateReturn_B() async {
return new B();
}
Future<A> f_immediateReturn_FutureB() async {
return futureB();
}
Future<A> f_expressionSyntax_B() async => new B();
Future<A> f_expressionSyntax_FutureB() async => futureB();
}
// Not executed
void checkStaticTypes(C c) {
// Check that f_inferred_dynamic's static return type is `dynamic`, by
// verifying that no error occurs if we try to call `foo` on its return value.
c.f_inferred_dynamic().foo();
// Check that f_inferred_A's static return type is `Future<A>`, by verifying
// that its return value can be assigned to `Future<A>` but not
// `Future<B>`.
Future<A> v1 = c.f_inferred_A();
}
void checkDynamic(dynamic tearoff) {
Expect.isTrue(tearoff is dynamic Function());
Expect.isFalse(tearoff is Future<dynamic> Function());
dynamic f = tearoff();
Expect.isTrue(f is Future<dynamic>);
Expect.isFalse(f is Future<A>);
}
void checkFutureA(dynamic tearoff) {
Expect.isTrue(tearoff is Future<A> Function());
Expect.isFalse(tearoff is Future<B> Function());
dynamic f = tearoff();
Expect.isTrue(f is Future<A>);
Expect.isFalse(f is Future<B>);
}
void test(C c) {
checkDynamic(c.f_inferred_dynamic);
checkFutureA(c.f_inferred_A);
checkDynamic(c.f_dynamic);
checkFutureA(c.f_A);
checkFutureA(c.f_immediateReturn_B);
checkFutureA(c.f_immediateReturn_FutureB);
checkFutureA(c.f_expressionSyntax_B);
checkFutureA(c.f_expressionSyntax_FutureB);
}
main() {
test(new C());
}
@@ -1,139 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// This test verifies that for an unnamed async closure, the following three
// types are all appropriately matched:
// - The static return type
// - The return type of reified runtime type of a tearoff of the function or
// method
// - The reified type of the future returned by the function or method
//
// Specific attention is paid to the following conditions:
// - The static return type is determined by type inference
// - The static return type is `dynamic`
// - The function or method immediately returns a value or future with a
// different type (possibly using `=>` syntax)
import 'dart:async';
import 'package:expect/expect.dart';
class A {}
class B extends A {}
Future quick() async {}
Future<A> futureA() => new Future<A>.value(new A());
Future<B> futureB() => new Future<B>.value(new B());
void checkFutureObject(dynamic tearoff) {
Expect.isTrue(tearoff is Future<Object> Function());
Expect.isFalse(tearoff is Future<A> Function());
dynamic f = tearoff();
Expect.isTrue(f is Future<Object>);
Expect.isFalse(f is Future<A>);
}
void checkFutureDynamic(dynamic tearoff) {
Expect.isTrue(tearoff is Future<dynamic> Function());
Expect.isFalse(tearoff is Future<A> Function());
dynamic f = tearoff();
Expect.isTrue(f is Future<dynamic>);
Expect.isFalse(f is Future<A>);
}
void checkFutureA(dynamic tearoff) {
Expect.isTrue(tearoff is Future<A> Function());
Expect.isFalse(tearoff is Future<B> Function());
dynamic f = tearoff();
Expect.isTrue(f is Future<A>);
Expect.isFalse(f is Future<B>);
}
main() {
var f_inferred_futureObject = () async {
await quick();
if (false) {
return 0;
} else {
return new A();
}
};
var f_inferred_A = () async {
await quick();
if (false) {
return new A();
} else {
return new B();
}
};
Future<dynamic> Function() f_futureDynamic = () async {
await quick();
if (false) {
return 0;
} else {
return new B();
}
};
Future<A> Function() f_A = () async {
await quick();
if (false) {
return new A();
} else {
return new B();
}
};
Future<A> Function() f_immediateReturn_B = () async {
if (false) {
return new A();
} else {
return new B();
}
};
Future<A> Function() f_immediateReturn_FutureB = () async {
if (false) {
return new A();
} else {
return futureB();
}
};
Future<A> Function() f_expressionSyntax_B =
() async => false ? new A() : new B();
Future<A> Function() f_expressionSyntax_FutureB =
() async => false ? futureA() : futureB();
// Not executed
void checkStaticTypes() {
// Check that f_inferred_futureObject's static return type is
// `Future<Object>`, by verifying that its return value can be assigned to
// `Future<Object>` but not `Future<int>`.
Future<Object> v1 = f_inferred_futureObject();
// Check that f_inferred_A's static return type is `Future<A>`, by verifying
// that its return value can be assigned to `Future<A>` but not
// `Future<B>`.
Future<A> v3 = f_inferred_A();
}
checkFutureObject(f_inferred_futureObject);
checkFutureA(f_inferred_A);
checkFutureDynamic(f_futureDynamic);
checkFutureA(f_A);
checkFutureA(f_immediateReturn_B);
checkFutureA(f_immediateReturn_FutureB);
checkFutureA(f_expressionSyntax_B);
checkFutureA(f_expressionSyntax_FutureB);
}
@@ -1,10 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
void main() {}
@@ -1,67 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "dart:async";
import "package:expect/async_helper.dart";
import "package:expect/expect.dart";
Future foo1() async {
return 3;
}
Future<int> foo2() async {
return 3;
}
foo3() async {
return "String";
}
foo4() async {
return "String";
}
foo5() async {
return 3;
}
Future<int> foo6() async {
// This is fine, the future is flattened
return new Future<int>.value(3);
}
foo7() async {
return new Future<int>.value(3);
}
Iterable<int> foo8() sync* {
yield 1;
// Can only have valueless return in sync* functions.
return;
}
Stream<int> foo9() async* {
yield 1;
// Can only have valueless return in async* functions.
return;
}
Future test() async {
Expect.equals(3, await foo1());
Expect.equals(3, await foo2());
Expect.equals("String", await foo3());
Expect.equals("String", await foo4());
Expect.equals(3, await foo5());
Expect.equals(3, await await foo6());
Expect.equals(3, await await foo7());
Expect.listEquals([1], foo8().toList());
Expect.listEquals([1], await foo9().toList());
}
main() {
asyncTest(test);
}
@@ -1,45 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:async';
import 'package:expect/expect.dart';
get await => 4;
// For functions that are declared with the async modifier we treat await as
// keyword.
test0() async {
var x = await 7;
Expect.equals(7, x);
}
test1() async {
var x = await 9;
Expect.equals(9, x);
}
// For functions that are not declared with the async modifier we allow await to
// be used as an identifier.
test2() {
var y = await;
Expect.equals(4, y);
}
test3() {
var await = 3;
Expect.equals(3, await);
}
main() {
test0();
test1();
test2();
test3();
}
@@ -1,37 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Implements Function which is not allowed in Dart 3.
// @dart=2.19
// Dart test program to test arithmetic operations.
import "package:expect/expect.dart";
class C1 {
int call(int i) => 2 * i;
}
class C2 implements Function {
int call(int i) => 2 * i;
}
main() {
C1 c1 = new C1();
// Implicitly invokes c1.call(1)
Expect.equals(c1(1), 2);
dynamic d1 = c1;
// Implicitly invokes d1.call(1)
C2 c2 = new C2();
// Implicitly invokes c2.call(1)
dynamic d2 = c2;
// Implicitly invokes d2.call(1)
// Cannot invoke with the wrong signature.
}
@@ -1,34 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program to test arithmetic operations.
import "package:expect/expect.dart";
class C1 {
int call(int i) => 2 * i;
}
class C2 {
int call(int i) => 2 * i;
}
main() {
C1 c1 = new C1();
// Implicitly invokes c1.call(1)
Expect.equals(c1(1), 2);
dynamic d1 = c1;
// Implicitly invokes d1.call(1)
C2 c2 = new C2();
// Implicitly invokes c2.call(1)
dynamic d2 = c2;
// Implicitly invokes d2.call(1)
// Cannot invoke with the wrong signature.
}
@@ -1,37 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Implements Function which is not allowed in Dart 3.
// @dart=2.19
// Dart test program to test arithmetic operations.
import "package:expect/expect.dart";
class C1 {
int call(int i) => 2 * i;
}
class C2 implements Function {
int call(int i) => 2 * i;
}
main() {
C1 c1 = new C1();
// Implicitly invokes c1.call(1)
dynamic d1 = c1;
// Implicitly invokes d1.call(1)
Expect.equals(d1(1), 2);
C2 c2 = new C2();
// Implicitly invokes c2.call(1)
dynamic d2 = c2;
// Implicitly invokes d2.call(1)
// Cannot invoke with the wrong signature.
}
@@ -1,34 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program to test arithmetic operations.
import "package:expect/expect.dart";
class C1 {
int call(int i) => 2 * i;
}
class C2 {
int call(int i) => 2 * i;
}
main() {
C1 c1 = new C1();
// Implicitly invokes c1.call(1)
dynamic d1 = c1;
// Implicitly invokes d1.call(1)
Expect.equals(d1(1), 2);
C2 c2 = new C2();
// Implicitly invokes c2.call(1)
dynamic d2 = c2;
// Implicitly invokes d2.call(1)
// Cannot invoke with the wrong signature.
}
@@ -1,37 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Implements Function which is not allowed in Dart 3.
// @dart=2.19
// Dart test program to test arithmetic operations.
import "package:expect/expect.dart";
class C1 {
int call(int i) => 2 * i;
}
class C2 implements Function {
int call(int i) => 2 * i;
}
main() {
C1 c1 = new C1();
// Implicitly invokes c1.call(1)
dynamic d1 = c1;
// Implicitly invokes d1.call(1)
C2 c2 = new C2();
// Implicitly invokes c2.call(1)
Expect.equals(c2(1), 2);
dynamic d2 = c2;
// Implicitly invokes d2.call(1)
// Cannot invoke with the wrong signature.
}
@@ -1,34 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program to test arithmetic operations.
import "package:expect/expect.dart";
class C1 {
int call(int i) => 2 * i;
}
class C2 {
int call(int i) => 2 * i;
}
main() {
C1 c1 = new C1();
// Implicitly invokes c1.call(1)
dynamic d1 = c1;
// Implicitly invokes d1.call(1)
C2 c2 = new C2();
// Implicitly invokes c2.call(1)
Expect.equals(c2(1), 2);
dynamic d2 = c2;
// Implicitly invokes d2.call(1)
// Cannot invoke with the wrong signature.
}
@@ -1,37 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Implements Function which is not allowed in Dart 3.
// @dart=2.19
// Dart test program to test arithmetic operations.
import "package:expect/expect.dart";
class C1 {
int call(int i) => 2 * i;
}
class C2 implements Function {
int call(int i) => 2 * i;
}
main() {
C1 c1 = new C1();
// Implicitly invokes c1.call(1)
dynamic d1 = c1;
// Implicitly invokes d1.call(1)
C2 c2 = new C2();
// Implicitly invokes c2.call(1)
dynamic d2 = c2;
// Implicitly invokes d2.call(1)
Expect.equals(d2(1), 2);
// Cannot invoke with the wrong signature.
}
@@ -1,34 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program to test arithmetic operations.
import "package:expect/expect.dart";
class C1 {
int call(int i) => 2 * i;
}
class C2 {
int call(int i) => 2 * i;
}
main() {
C1 c1 = new C1();
// Implicitly invokes c1.call(1)
dynamic d1 = c1;
// Implicitly invokes d1.call(1)
C2 c2 = new C2();
// Implicitly invokes c2.call(1)
dynamic d2 = c2;
// Implicitly invokes d2.call(1)
Expect.equals(d2(1), 2);
// Cannot invoke with the wrong signature.
}
@@ -1,6 +1,3 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -8,8 +5,6 @@
// Implements Function which is not allowed in Dart 3.
// @dart=2.19
// Dart test program to test arithmetic operations.
import "package:expect/expect.dart";
class C1 {
@@ -23,15 +18,14 @@ class C2 implements Function {
main() {
C1 c1 = new C1();
// Implicitly invokes c1.call(1)
Expect.equals(c1(1), 2);
dynamic d1 = c1;
// Implicitly invokes d1.call(1)
Expect.equals(d1(1), 2);
C2 c2 = new C2();
// Implicitly invokes c2.call(1)
Expect.equals(c2(1), 2);
dynamic d2 = c2;
// Implicitly invokes d2.call(1)
// Cannot invoke with the wrong signature.
Expect.equals(d2(1), 2);
}
@@ -1,34 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program to test arithmetic operations.
import "package:expect/expect.dart";
class C1 {
int call(int i) => 2 * i;
}
class C2 {
int call(int i) => 2 * i;
}
main() {
C1 c1 = new C1();
// Implicitly invokes c1.call(1)
dynamic d1 = c1;
// Implicitly invokes d1.call(1)
C2 c2 = new C2();
// Implicitly invokes c2.call(1)
dynamic d2 = c2;
// Implicitly invokes d2.call(1)
// Cannot invoke with the wrong signature.
}
@@ -1,176 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
// Tests that we can call functions through getters.
const TOP_LEVEL_CONST = 1;
const TOP_LEVEL_CONST_REF = TOP_LEVEL_CONST;
const TOP_LEVEL_NULL = null;
var topLevel;
class CallThroughGetterTest {
static void testMain() {
testTopLevel();
testField();
testGetter();
testMethod();
testEvaluationOrder();
}
static void testTopLevel() {
topLevel = () {
return 2;
};
Expect.equals(1, TOP_LEVEL_CONST);
Expect.equals(1, TOP_LEVEL_CONST_REF);
Expect.equals(2, topLevel());
}
static void testField() {
A a = new A();
a.field = () => 42;
Expect.equals(42, a.field());
Expect.equals(42, (a.field)());
a.field = () => 87;
Expect.equals(87, a.field());
Expect.equals(87, (a.field)());
a.field = 99;
Expect.throwsNoSuchMethodError(() => a.field());
Expect.throwsNoSuchMethodError(() => (a.field)());
}
static void testGetter() {
A a = new A();
a.field = () => 42;
Expect.equals(42, a.getter());
Expect.equals(42, (a.getter)());
a.field = () => 87;
Expect.equals(87, a.getter());
Expect.equals(87, (a.getter)());
a.field = 99;
Expect.throwsNoSuchMethodError(() => a.getter());
Expect.throwsNoSuchMethodError(() => (a.getter)());
}
static void testMethod() {
A a = new A();
a.field = () => 42;
Expect.equals(true, a.method() is Function);
Expect.equals(42, a.method()());
a.field = () => 87;
Expect.equals(true, a.method() is Function);
Expect.equals(87, a.method()());
a.field = null;
Expect.equals(null, a.method());
}
static void testEvaluationOrder() {
B b = new B();
Expect.equals("gf", b.g0());
b = new B();
Expect.equals("gf", (b.g0)());
b = new B();
Expect.equals("xgf", b.g1(b.x));
b = new B();
Expect.equals("gxf", (b.g1)(b.x));
b = new B();
Expect.equals("xygf", b.g2(b.x, b.y));
b = new B();
Expect.equals("gxyf", (b.g2)(b.x, b.y));
b = new B();
Expect.equals("xyzgf", b.g3(b.x, b.y, b.z));
b = new B();
Expect.equals("gxyzf", (b.g3)(b.x, b.y, b.z));
b = new B();
Expect.equals("yzxgf", b.g3(b.y, b.z, b.x));
b = new B();
Expect.equals("gyzxf", (b.g3)(b.y, b.z, b.x));
}
}
class A {
A() {}
var field;
get getter {
return field;
}
method() {
return field;
}
}
class B {
B() : _order = new StringBuffer("") {}
get g0 {
_mark('g');
return () {
return _mark('f');
};
}
get g1 {
_mark('g');
return (x) {
return _mark('f');
};
}
get g2 {
_mark('g');
return (x, y) {
return _mark('f');
};
}
get g3 {
_mark('g');
return (x, y, z) {
return _mark('f');
};
}
get x {
_mark('x');
return 0;
}
get y {
_mark('y');
return 1;
}
get z {
_mark('z');
return 2;
}
_mark(m) {
_order.write(m);
return _order.toString();
}
StringBuffer _order;
}
main() {
CallThroughGetterTest.testMain();
}
-88
View File
@@ -1,88 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
// Test cascades.
class A {
int x;
int y;
A(this.x, this.y);
A setX(int x) {
this.x = x;
return this;
}
void setY(int y) {
this.y = y;
}
Function swap() {
int tmp = x;
x = y;
y = tmp;
return this.swap;
}
void check(int x, int y) {
Expect.equals(x, this.x);
Expect.equals(y, this.y);
}
operator [](var i) {
if (i == 0) return x;
if (i == 1) return y;
if (i == "swap") return this.swap;
return null;
}
operator []=(int i, int value) {
if (i == 0) {
x = value;
} else if (i == 1) {
y = value;
}
}
/**
* A pseudo-keyword.
*/
import() {
x++;
}
}
main() {
A a = new A(1, 2);
a
..check(1, 2)
..swap()
..check(2, 1)
..x = 4
..y = 9
..check(4, 9)
..setX(10)
..check(10, 9)
..y = 5
..check(10, 5)
..swap()()()
..check(5, 10)
..[0] = 2
..check(2, 10)
..setX(10).setY(3)
..check(10, 3)
..setX(7)["swap"]()
..check(3, 7)
..import()
..check(4, 7)
..["swap"]()()()
..check(7, 4);
a.check(7, 4);
}
@@ -1,18 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that class with a cyclic hierarchy doesn't cause a loop in dart2js.
class A {
// When checking that foo isn't overriding an instance method in the
// superclass, dart2js might loop.
static foo() {}
}
main() {
new A();
}
@@ -1,12 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that "class" cannot be used as identifier.
class foo {}
void main() {}
@@ -1,28 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
// Local variables can shadow class names.
class Test {
final int field;
Test.named(this.field);
}
main() {
{
// Now this refers to the variable.
var i = new Test.named(10);
Expect.equals(10, i.field);
}
{
// Shadowing is allowed.
var Test = 1;
Expect.equals(2, Test + 1);
}
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
class C {
foo() => 123;
}
main() {
var f = new C().foo;
}
@@ -1,26 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
topFn<T extends num>(T x) {
print(T);
}
class C<T> {
instanceFn<S extends T>(S x) {
print(S);
}
}
class D<T> extends C<T> {
void foo() {}
}
void main() {
localFn<T extends num>(T x) {
print(T);
}
}
@@ -1,21 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class A {
const A(a);
const A.named({a = 42});
const A.optional([a]);
}
main() {
const A(1);
const A.named();
const A.optional();
const A.optional(42);
}
@@ -1,20 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
const m0 = const {499: 400 + 99};
const m1 = const {"foo" + "bar": 42};
const m2 = const {};
const m3 = const {};
use(x) => x;
main() {
use(m0);
use(m1);
use(m2);
use(m3);
}
@@ -1,20 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
const m0 = const {499: 400 + 99};
const m1 = const {};
const m2 = const {};
const m3 = const {};
use(x) => x;
main() {
use(m0);
use(m1);
use(m2);
use(m3);
}
@@ -1,23 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
const x = const {'a': 4};
const y = const {};
const z = const {'__proto__': 499};
const x2 = const {'a': 4};
const y2 = const {'a': 14, 'b': 13};
const z2 = const {'__proto__': 499};
main() {
Expect.identical(x2, x);
Expect.identical(z2, z);
}
@@ -1,57 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test compile-time constants with string-interpolation.
import "package:expect/expect.dart";
const str = "foo";
const m1 = const {"foo": 499};
const m2 = const {"$str": 499};
const m3 = const {
// Causes in a duplicate key error.
"foo": 499,
};
const m4 = const {
// Causes in a duplicate key error.
"$str": 499,
};
const m5 = const {
"f"
"o"
"o":
499,
};
const mm1 = const {"afoo#foo": 499};
const mm2 = const {"a$str#$str": 499};
const mm3 = const {
"a"
"$str"
"#"
"foo":
499,
};
const mm4 = const {
"a$str"
"#$str":
499,
};
main() {
Expect.equals(1, m1.length);
Expect.equals(499, m1["foo"]);
Expect.identical(m1, m2);
Expect.identical(m1, m3);
Expect.identical(m1, m4);
Expect.identical(m1, m5);
Expect.equals(1, mm1.length);
Expect.equals(499, mm1["afoo#foo"]);
Expect.identical(mm1, mm2);
Expect.identical(mm1, mm3);
Expect.identical(mm1, mm4);
}
@@ -1,23 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
class A {
const A();
final x = null;
}
class B extends A {
const B();
}
var b = const B();
main() {
Expect.equals(null, b.x);
}
@@ -1,17 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
const x = "x";
const y = const {0: "y"};
main() {
print(x);
print(y);
const z = 1 + 1 + 1;
print(z);
}
@@ -1,19 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Bad {
int foo = 0;
final int bar = -1;
static const int toto = -3;
}
void use(x) {}
main() {
use(new Bad().bar);
use(Bad.toto);
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class A {
final int x;
const A.a2(this.x);
const A.a6(int x) : this.x = x;
}
main() {}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class A {
final int x;
const A.a2(this.x);
const A.a6(int x) : this.x = x;
}
main() {}
@@ -1,8 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
main() {}
@@ -1,35 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test for conditionals as compile-time constants.
import 'package:expect/expect.dart';
class Marker {
final field;
const Marker(this.field);
}
var var0 = const Marker(0);
var var1 = const Marker(1);
const const0 = const Marker(0);
const const1 = const Marker(1);
const trueConst = true;
const falseConst = false;
var nonConst = true;
const zeroConst = 0;
const cond1 = trueConst ? const0 : const1;
const cond2 = falseConst ? const0 : const1;
void main() {
Expect.identical(var0, cond1);
Expect.identical(var1, cond2);
}
@@ -1,30 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that constant local variables have constant initializers.
import "package:expect/expect.dart";
void main() {
const c2 = 0;
const c5 = constField;
const c8 = const Class();
}
var field = 0;
final finalField = 0;
const constField = 0;
method() => 0;
class Class {
const Class();
}
@@ -1,22 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class C {
final double d;
const C(this.d);
}
class D extends C {
const D(var d) : super(d);
}
const intValue = 0;
const c = const C(0.0);
main() {
print(c);
}
@@ -1,23 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class C {
final double d;
const C(this.d);
}
class D extends C {
const D(var d) : super(d);
}
const intValue = 0;
const e = const D(0.0);
main() {
print(e);
}
@@ -1,19 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class C {
final double d;
const C(this.d);
}
class D extends C {
const D(var d) : super(d);
}
const intValue = 0;
main() {}
@@ -1,22 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Mixin {
var nonFinalField;
}
class A {
const A(foo);
}
class B extends A {
const B(foo) : super(foo);
}
main() {
var a = const B(42);
}
@@ -1,21 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
class A {
final int j = 1;
const A();
}
int f() {
return 3;
}
main() {
const A().j;
}
@@ -1,19 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class A {
const A(int a);
}
class B {
const B(dynamic v) //
;
}
void main() {
const B("");
}
@@ -1,19 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
class A<T> {
final int x;
const A.named() : x = 42;
A() : x = -1;
}
main() {
Expect.equals(42, (const A<int>.named()).x);
Expect.equals(42, (new A<int>.named()).x);
}
@@ -1,30 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
class A {
final a;
A(this.a); // Not const.
const A.five() : a = 5;
}
class B extends A {
final b;
B(x) : b = x + 1, super(x);
// Const constructor cannot call non-const super constructor.
}
class C extends A {
C() : super(0);
// Implicit call to non-const constructor A(x).
}
main() {
var b1 = new B(0);
}
@@ -1,33 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
main() {
var c1 = const C1();
var c3 = const C3();
}
abstract class I0 {
factory I0() = C0;
}
class C0 implements I0 {
C0();
}
class C1 {
const C1();
}
class C2 {
C2();
}
class C3 {
const C3();
final field = null;
}
@@ -1,19 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that 'dynamic' can be used in const expressions and has the expected
// behavior.
import "package:expect/expect.dart";
const d = dynamic;
const i = int;
void main() {
Expect.isTrue(identical(d, dynamic));
// Duplicate key error.
}
@@ -1,20 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that 'dynamic' can be used in const expressions and has the expected
// behavior.
import "package:expect/expect.dart";
const d = dynamic;
const i = int;
void main() {
// Duplicate key error.
Expect.equals(2, const {d: 1, i: 2}.length);
}
@@ -1,18 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that 'dynamic' can be used in const expressions and has the expected
// behavior.
import "package:expect/expect.dart";
const d = dynamic;
const i = int;
void main() {
// Duplicate key error.
}
@@ -1,12 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
//
// Tests that a "const factory" with body produces a compile-time error.
class ConstFactoryWithBody {}
main() {}
@@ -1,23 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Check that const getters are not allowed.
import 'package:expect/expect.dart';
class C {
const C();
get x => 1;
}
get y => 2;
main() {
const C().x;
y;
}
@@ -1,13 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
const intValue = 0;
const double c = 0.0;
main() {
print(c);
}
@@ -1,10 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
const intValue = 0;
main() {}
@@ -1,14 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test that const instance fields are compile-time errors.
class C {}
void main() {
new C();
}
@@ -1,30 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
class A {
const factory A() = B;
}
class B implements A {
const B();
}
confuse(x) {
if (DateTime.now().millisecondsSinceEpoch == 42) return confuse(2);
return x;
}
main() {
// It is a compile-time error if the key type overrides operator ==.
dynamic m = const {const A(): 42};
Expect.equals(42, m[confuse(const B())]);
m = const {"foo": 99, const A(): 499};
Expect.equals(499, m[confuse(const B())]);
}
@@ -1,25 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
class A {
static const b = const B();
}
class B implements A {
const B();
}
main() {
// It is a compile-time error if the key type overrides operator ==.
dynamic m = const {A.b: 42};
Expect.equals(42, m[const B()]);
m = const {"foo": 99, A.b: 499};
Expect.equals(499, m[const B()]);
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:expect/expect.dart';
void main() {
var a = [1, 2, 3][2];
switch (a) {
case 1:
print("OK");
}
}
@@ -1,71 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
main() {
const f0 = 42;
const int f2 = 87;
Expect.equals(42, f0);
Expect.equals(87, f2);
Expect.equals(42, F0);
Expect.equals(87, F2);
Expect.isTrue(P0 is Point);
Expect.isTrue(A0 is int);
Expect.isTrue(A1 is int);
Expect.isTrue(C0.X is C1);
Expect.equals("Hello 42", B2);
const cf1 = identical(const Point(1, 2), const Point(1, 2));
var f5 = B5;
}
const F0 = 42;
const int F2 = 87;
class Point {
final x, y;
const Point(this.x, this.y);
operator +(int other) => x;
}
// Check that compile time expressions can include invocations of
// user-defined const constructors.
const P0 = const Point(0, 0);
// Check that we cannot have cyclic references in compile time
// expressions.
const A0 = 42;
const A1 = A0 + 1;
class C0 {
static const X = const C1();
}
class C1 {
const C1();
final x = null;
}
// Check that sub-expressions of binary + are numeric.
const B0 = 42;
const B1 = "Hello";
const B2 = "$B1 $B0";
// Check identical.
const B5 = identical(1, const Point(1, 2));
@@ -1,38 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// A constructor can't be static.
class A {
A();
}
// A factory constructor can't be static.
class B {
factory B() {
return B._();
}
B._();
}
// A named constructor can have the same name as a setter.
class E {
set setter(value) {}
E.setter();
}
// A constructor can't be static.
class F {
F() {}
}
main() {
new A();
new B();
new E.setter();
new F();
}
@@ -1,37 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// A constructor can't be static.
class A {
A();
}
// A factory constructor can't be static.
class B {
factory B() {
return B._();
}
B._();
}
// A named constructor can have the same name as a setter.
class E {
E.setter();
}
// A constructor can't be static.
class F {
F() {}
}
main() {
new A();
new B();
new E.setter();
new F();
}
@@ -1,14 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class A {
A() {}
}
main() {
new A();
}
@@ -1,23 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Base {
final String name;
const Base(this.name);
}
class C extends Base {
const C(String s)
: super(
// Call super constructor with wrong argument count.
s,
);
}
main() {
const C("str");
}
@@ -1,14 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Stockhorn {
Stockhorn(int a);
}
main() {
new Stockhorn(1);
}
@@ -1,41 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Check that the implicit super call for synthetic constructors are checked.
class A {
final x;
A(this.x);
}
class B extends A {
B() : super(null);
}
// ==========
class Y extends A {
Y() : super(null);
}
class Z extends Y {
Z() : super();
}
// ==============
class G extends A {
G() : super(null);
}
class H extends G {}
main() {
new B().x;
new Z().x;
new H().x;
}
@@ -1,17 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Check that there's no crash when constructor called with wrong
// number of args.
class Klass {
Klass(v) {}
}
main() {
new Klass(1);
}
@@ -1,19 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Check that all final instance fields of a class are initialized by
// constructors.
class Klass {
Klass(var v) : field_ = v {}
var field_;
}
main() {
new Klass(5);
}
@@ -1,18 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class A {
A.a() : this.b();
A.b();
A.c() : this.b();
}
main() {
new A.a();
new A.b();
new A.c();
}
@@ -1,22 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Check type bounds when invoking a redirecting factory method
abstract class Foo {}
abstract class IA<T> {}
class A<T extends Foo> implements IA<T> {
factory A() {
return A._();
}
A._();
}
main() {}
@@ -1,35 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
// Dart test program for testing default factories.
abstract class Vehicle {}
class Bike implements Vehicle, GoogleOne {
Bike.redOne() {}
}
abstract class SpaceShip {
factory SpaceShip() = GoogleOne;
}
class GoogleOne implements SpaceShip {
GoogleOne.internal_() {}
factory GoogleOne() {
return new GoogleOne.internal_();
}
factory GoogleOne.Vehicle() {
return new Bike.redOne();
}
}
main() {
Expect.equals(true, (new Bike.redOne()) is Bike);
Expect.equals(true, (new SpaceShip()) is GoogleOne);
}
@@ -1,26 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Check that initializers are not duplicated
class Class {
Class(var v) : field_ = v;
// Test against duplicate final field initialization in initializing list.
Class.field(this.field_);
// Test against duplicate final field initialization between initializing
// formals and initializer list.
// Test against duplicate final field initialization in initializing formals.
Class.two_fields(this.field_);
final field_;
}
main() {
new Class(42);
new Class.field(42);
new Class.two_fields(42);
}
@@ -1,14 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo {
Foo();
}
main() {
new Foo();
}
@@ -1,49 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library named_constructor_test;
import 'package:expect/expect.dart';
import 'named_lib.dart' as prefix;
class Class<T> {
final int value;
Class() : value = 0;
Class.named() : value = 1;
}
void main() {
Expect.equals(0, new Class().value);
Expect.equals(0, new Class<int>().value);
Expect.equals(1, new Class.named().value);
Expect.equals(1, new Class<int>.named().value);
// 'Class.named' is not a type:
// 'Class<int>.named<int>' doesn't fit the grammar syntax T.id:
new prefix.Class().value;
// 'prefix' is not a type:
new prefix.Class<int>().value;
// 'prefix<int>.Class<int>' doesn't fit the grammar syntax T.id:
new prefix.Class.named().value;
// 'prefix<int>.Class.named' doesn't fit the grammar syntax T.id:
// 'prefix.Class<int>.named' doesn't fit the grammar syntax T.id:
new prefix.Class<int>.named().value;
// 'prefix.Class.named<int>' doesn't fit the grammar syntax T.id:
// 'prefix<int>.Class<int>' doesn't fit the grammar syntax T.id:
// 'prefix<int>.Class.named<int>' doesn't fit the grammar syntax T.id:
// 'prefix.Class<int>.named<int>' doesn't fit the grammar syntax T.id:
// 'prefix<int>.Class<int>.named<int>' doesn't fit the grammar syntax T.id:
}
@@ -1,12 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class A {
A();
}
main() {}
@@ -1,24 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Redirection constructors must not have a function body.
class A {
var x;
A(this.x) {}
// Redirecting constructor must not have a function body.
// Redirecting constructor must not initialize any fields.
// Redirecting constructor must not have initializing formal parameters.
// Redirection constructors must not call super constructor.
}
main() {
new A(3);
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Redirection constructors must not be cyclic.
class A {
var x;
A(x);
}
main() {
new A(10);
}
@@ -1,17 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class A {
var x;
A(x) : this.named(x, 0);
A.named(x, int y);
// Redirecting constructors must not be cyclic.
}
main() {
new A(10);
}
@@ -1,73 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Dart test program for redirection constructors.
import "package:expect/expect.dart";
class A {
var x;
A(this.x) {}
A.named(x, int y) : this(x + y);
A.named2(int x, int y, z) : this.named(staticFun(x, y), z);
// The following is a bit tricky. It is a compile-time error to
// refer to this (implicitly or explicitly) from an initializer.
// When we remove the line with moreStaticFun, staticFun is really a
// static function and it is legal to call it. This is what will
// happen in the /none version of this test. However, in /01,
// staticFun isn't really a static function and should cause a
// compile-time error.
static int staticFun(int v1, int v2) {
return v1 * v2;
}
}
class B extends A {
B(y) : super(y + 1) {}
B.named(y) : super.named(y, y + 1) {}
}
class C {
final x;
const C(this.x);
const C.named(x, int y) : this(x + y);
}
class D extends C {
const D(y) : super(y + 1);
const D.named(y) : super.named(y, y + 1);
}
class ConstructorRedirectTest {
static testMain() {
var a = new A(499);
Expect.equals(499, a.x);
a = new A.named(349, 499);
Expect.equals(349 + 499, a.x);
a = new A.named2(11, 42, 99);
Expect.equals(11 * 42 + 99, a.x);
var b = new B(498);
Expect.equals(499, b.x);
b = new B.named(249);
Expect.equals(499, b.x);
C c = const C(499);
Expect.equals(499, c.x);
c = const C.named(249, 250);
Expect.equals(499, c.x);
D d = const D(498);
Expect.equals(499, d.x);
d = const D.named(249);
Expect.equals(499, d.x);
}
}
main() {
ConstructorRedirectTest.testMain();
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo<X> {
const Foo();
const Foo.bar();
const Foo.baz();
}
main() {
Foo.bar();
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo<X> {
const Foo();
const Foo.bar();
const Foo.baz();
}
main() {
Foo<int>();
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo<X> {
const Foo();
const Foo.bar();
const Foo.baz();
}
main() {
Foo<int>.bar();
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo<X> {
const Foo();
const Foo.bar();
const Foo.baz();
}
main() {
new Foo();
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo<X> {
const Foo();
const Foo.bar();
const Foo.baz();
}
main() {
new Foo.bar();
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo<X> {
const Foo();
const Foo.bar();
const Foo.baz();
}
main() {
new Foo<int>();
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo<X> {
const Foo();
const Foo.bar();
const Foo.baz();
}
main() {
new Foo<int>.bar();
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo<X> {
const Foo();
const Foo.bar();
const Foo.baz();
}
main() {
const Foo();
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo<X> {
const Foo();
const Foo.bar();
const Foo.baz();
}
main() {
const Foo.bar();
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo<X> {
const Foo();
const Foo.bar();
const Foo.baz();
}
main() {
const Foo<int>();
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo<X> {
const Foo();
const Foo.bar();
const Foo.baz();
}
main() {
const Foo<int>.bar();
}
@@ -1,16 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo<X> {
const Foo();
const Foo.bar();
const Foo.baz();
}
main() {
Foo();
}
@@ -1,14 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo<X> {
const Foo();
const Foo.bar();
const Foo.baz();
}
main() {}
@@ -1,39 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
// Dart spec 0.03, section 11.10 - generative constructors can only have return
// statements in the form 'return;'.
class A {
int x;
A(this.x) {
return;
}
A.test1(this.x) {}
A.test2(this.x) {}
int foo(int y) => x + y;
}
class B {}
class C {
int value = -1;
}
class D {
int value = -1;
}
main() {
Expect.equals((new A(1)).foo(10), 11);
Expect.equals((new A.test1(1)).foo(10), 11);
Expect.equals((new A.test2(1)).foo(10), 11);
new B();
new C();
new D();
}
@@ -1,12 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
class Foo {}
main() {
new Foo();
}
@@ -1,19 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// Test unresolved default constructor calls cause compilation errors.
import 'package:expect/expect.dart';
class A {
A.named();
static method() {}
}
main() {
A.method();
}
@@ -1,10 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import "prefix_constraints_lib2.dart" as lib;
void main() {}

Some files were not shown because too many files have changed in this diff Show More