From b101a7d002fa6db1f436c96d3945aa62aec73ba9 Mon Sep 17 00:00:00 2001 From: Leaf Petersen Date: Mon, 26 Apr 2021 17:58:57 +0000 Subject: [PATCH] Add language versions to _2 test libraries Change-Id: Ib33169c3e0ffc870915c189404074a1dea472546 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/196548 Reviewed-by: Bob Nystrom Commit-Queue: Leaf Petersen --- tests/corelib_2/apply2_test.dart | 2 + tests/corelib_2/apply3_test.dart | 2 + tests/corelib_2/apply4_test.dart | 2 + tests/corelib_2/apply5_test.dart | 2 + .../apply_generic_function_test.dart | 2 + tests/corelib_2/apply_test.dart | 2 + tests/corelib_2/bigint_from_test.dart | 2 + tests/corelib_2/bigint_js_test.dart | 2 + tests/corelib_2/bigint_parse_radix_test.dart | 2 + tests/corelib_2/bigint_test.dart | 2 + tests/corelib_2/bit_twiddling_test.dart | 2 + .../bool_from_environment2_test.dart | 2 + .../corelib_2/bool_from_environment_test.dart | 2 + tests/corelib_2/bool_hashcode_test.dart | 2 + tests/corelib_2/bool_operator_test.dart | 2 + tests/corelib_2/cast_helper.dart | 2 + tests/corelib_2/cast_iterable_test.dart | 2 + tests/corelib_2/cast_list_test.dart | 2 + tests/corelib_2/cast_map_test.dart | 2 + tests/corelib_2/cast_set_test.dart | 2 + tests/corelib_2/collection_from_test.dart | 2 + tests/corelib_2/collection_length_test.dart | 2 + tests/corelib_2/collection_of_test.dart | 2 + tests/corelib_2/collection_removes_test.dart | 2 + tests/corelib_2/collection_test.dart | 2 + .../corelib_2/collection_to_string_test.dart | 2 + tests/corelib_2/compare_to2_test.dart | 2 + tests/corelib_2/compare_to_test.dart | 2 + tests/corelib_2/const_list_literal_test.dart | 2 + .../const_list_remove_range_test.dart | 2 + .../corelib_2/const_list_set_range_test.dart | 2 + .../core_runtime_types_static_test.dart | 2 + tests/corelib_2/core_runtime_types_test.dart | 2 + tests/corelib_2/data_uri_test.dart | 2 + tests/corelib_2/date_time10_test.dart | 2 + tests/corelib_2/date_time11_test.dart | 2 + tests/corelib_2/date_time2_test.dart | 2 + tests/corelib_2/date_time3_test.dart | 2 + tests/corelib_2/date_time4_test.dart | 2 + tests/corelib_2/date_time5_test.dart | 2 + tests/corelib_2/date_time6_test.dart | 2 + tests/corelib_2/date_time7_test.dart | 2 + tests/corelib_2/date_time8_test.dart | 2 + tests/corelib_2/date_time9_test.dart | 2 + tests/corelib_2/date_time_extremes_test.dart | 2 + .../date_time_far_away_dates_test.dart | 2 + .../corelib_2/date_time_js_modified_test.dart | 2 + tests/corelib_2/date_time_parse_test.dart | 2 + tests/corelib_2/date_time_test.dart | 2 + tests/corelib_2/double_ceil2_test.dart | 2 + tests/corelib_2/double_ceil_test.dart | 2 + .../corelib_2/double_ceil_to_double_test.dart | 2 + tests/corelib_2/double_compare_test.dart | 2 + tests/corelib_2/double_floor2_test.dart | 2 + tests/corelib_2/double_floor_test.dart | 2 + .../double_floor_to_double_test.dart | 2 + tests/corelib_2/double_hash_code_test.dart | 2 + tests/corelib_2/double_parse_test.dart | 2 + tests/corelib_2/double_round2_test.dart | 2 + tests/corelib_2/double_round3_test.dart | 2 + tests/corelib_2/double_round4_test.dart | 2 + tests/corelib_2/double_round_test.dart | 2 + .../double_round_to_double2_test.dart | 2 + .../double_round_to_double3_test.dart | 2 + .../double_round_to_double_test.dart | 2 + tests/corelib_2/double_truncate2_test.dart | 2 + tests/corelib_2/double_truncate_test.dart | 2 + .../double_truncate_to_double_test.dart | 2 + tests/corelib_2/double_try_parse_test.dart | 2 + tests/corelib_2/duration_big_num_test.dart | 2 + .../duration_double_multiplication_test.dart | 2 + tests/corelib_2/duration_test.dart | 2 + .../corelib_2/dynamic_nosuchmethod_test.dart | 2 + tests/corelib_2/error_stack_trace1_test.dart | 2 + tests/corelib_2/error_stack_trace2_test.dart | 2 + tests/corelib_2/error_stack_trace_test.dart | 2 + tests/corelib_2/errors_test.dart | 2 + .../exception_implementation_test.dart | 2 + tests/corelib_2/expando_test.dart | 2 + tests/corelib_2/expression_test.dart | 2 + tests/corelib_2/for_in_test.dart | 2 + tests/corelib_2/format_exception_test.dart | 2 + .../from_environment_const_type_test.dart | 2 + ...environment_const_type_undefined_test.dart | 2 + .../from_environment_default_value_test.dart | 2 + tests/corelib_2/growable_list_test.dart | 2 + tests/corelib_2/has_next_iterator_test.dart | 2 + tests/corelib_2/hash_map2_test.dart | 2 + tests/corelib_2/hash_map_test.dart | 2 + tests/corelib_2/hash_set_test.dart | 2 + tests/corelib_2/hash_set_type_check_test.dart | 2 + tests/corelib_2/hashcode_boxed_test.dart | 2 + tests/corelib_2/hashcode_test.dart | 2 + tests/corelib_2/hidden_library2_test.dart | 2 + tests/corelib_2/int_ceil_test.dart | 2 + tests/corelib_2/int_ceil_to_double_test.dart | 2 + tests/corelib_2/int_floor_test.dart | 2 + tests/corelib_2/int_floor_to_double_test.dart | 2 + .../corelib_2/int_from_environment2_test.dart | 2 + .../int_from_environment_int64_test.dart | 2 + .../corelib_2/int_from_environment_test.dart | 2 + tests/corelib_2/int_modpow_hard_test.dart | 2 + tests/corelib_2/int_modulo_arith_test.dart | 2 + .../int_parse_radix_bad_handler_test.dart | 2 + .../corelib_2/int_parse_radix_int64_test.dart | 2 + tests/corelib_2/int_parse_radix_test.dart | 2 + .../int_parse_with_limited_ints_test.dart | 2 + tests/corelib_2/int_round_test.dart | 2 + tests/corelib_2/int_round_to_double_test.dart | 2 + tests/corelib_2/int_to_int_test.dart | 2 + tests/corelib_2/int_truncate_test.dart | 2 + .../int_truncate_to_double_test.dart | 2 + tests/corelib_2/int_try_parse_int64_test.dart | 2 + tests/corelib_2/int_try_parse_test.dart | 2 + tests/corelib_2/integer_arith_vm_test.dart | 2 + .../integer_parsed_arith_vm_test.dart | 2 + .../integer_parsed_div_rem_vm_test.dart | 2 + .../integer_parsed_mul_div_vm_test.dart | 2 + .../integer_to_radix_string_test.dart | 2 + tests/corelib_2/integer_to_string_test.dart | 2 + tests/corelib_2/invocation_test.dart | 2 + .../is_operator_basic_types_test.dart | 2 + tests/corelib_2/iterable_contains2_test.dart | 2 + tests/corelib_2/iterable_contains_test.dart | 2 + tests/corelib_2/iterable_element_at_test.dart | 2 + tests/corelib_2/iterable_empty_test.dart | 2 + tests/corelib_2/iterable_expand_test.dart | 2 + tests/corelib_2/iterable_first_test.dart | 2 + .../corelib_2/iterable_first_where_test.dart | 2 + tests/corelib_2/iterable_fold_test.dart | 2 + .../corelib_2/iterable_followed_by_test.dart | 2 + tests/corelib_2/iterable_generate_test.dart | 2 + tests/corelib_2/iterable_join_test.dart | 2 + tests/corelib_2/iterable_last_test.dart | 2 + tests/corelib_2/iterable_last_where_test.dart | 2 + tests/corelib_2/iterable_length_test.dart | 2 + tests/corelib_2/iterable_mapping_test.dart | 2 + tests/corelib_2/iterable_reduce_test.dart | 2 + .../iterable_return_type_helper.dart | 2 + .../iterable_return_type_int64_test.dart | 2 + .../corelib_2/iterable_return_type_test.dart | 2 + tests/corelib_2/iterable_single_test.dart | 2 + .../corelib_2/iterable_single_where_test.dart | 2 + tests/corelib_2/iterable_skip_test.dart | 2 + tests/corelib_2/iterable_skip_while_test.dart | 2 + tests/corelib_2/iterable_take_test.dart | 2 + tests/corelib_2/iterable_take_while_test.dart | 2 + tests/corelib_2/iterable_test.dart | 2 + tests/corelib_2/iterable_to_list_test.dart | 2 + tests/corelib_2/iterable_to_set_test.dart | 2 + tests/corelib_2/iterable_tostring_test.dart | 2 + tests/corelib_2/iterable_where_type_test.dart | 2 + tests/corelib_2/json_map_test.dart | 2 + .../linked_hash_map_from_iterable_test.dart | 2 + .../linked_hash_map_from_iterables_test.dart | 2 + tests/corelib_2/linked_hash_map_test.dart | 2 + tests/corelib_2/list_as_map_test.dart | 2 + .../list_concurrent_modify_self_test.dart | 2 + .../list_concurrent_modify_test.dart | 2 + .../list_contains_argument_order_test.dart | 2 + tests/corelib_2/list_copy_range_test.dart | 2 + tests/corelib_2/list_fill_range_test.dart | 2 + .../list_filled_type_argument_test.dart | 2 + tests/corelib_2/list_first_test.dart | 2 + tests/corelib_2/list_fixed_test.dart | 2 + tests/corelib_2/list_for_each_test.dart | 2 + tests/corelib_2/list_get_range_test.dart | 2 + tests/corelib_2/list_growable_test.dart | 2 + tests/corelib_2/list_index_of_test.dart | 2 + tests/corelib_2/list_insert_all_test.dart | 2 + tests/corelib_2/list_insert_test.dart | 2 + tests/corelib_2/list_iterators_test.dart | 2 + tests/corelib_2/list_last_test.dart | 2 + .../list_literal_is_growable_test.dart | 2 + tests/corelib_2/list_literal_test.dart | 2 + tests/corelib_2/list_map_test.dart | 2 + tests/corelib_2/list_remove_range_test.dart | 2 + tests/corelib_2/list_removeat_test.dart | 2 + tests/corelib_2/list_replace_range_test.dart | 2 + tests/corelib_2/list_reversed_test.dart | 2 + tests/corelib_2/list_set_all_test.dart | 2 + tests/corelib_2/list_set_range_test.dart | 2 + tests/corelib_2/list_sort_test.dart | 2 + tests/corelib_2/list_sublist_test.dart | 2 + tests/corelib_2/list_test.dart | 2 + tests/corelib_2/list_to_string2_test.dart | 2 + tests/corelib_2/list_to_string_test.dart | 2 + .../list_unmodifiable_cast_test.dart | 2 + tests/corelib_2/list_unmodifiable_test.dart | 2 + tests/corelib_2/list_write_elements_test.dart | 2 + tests/corelib_2/local_date_time_test.dart | 2 + tests/corelib_2/main_test.dart | 2 + tests/corelib_2/map_contains_key_test.dart | 2 + tests/corelib_2/map_contains_value_test.dart | 2 + tests/corelib_2/map_entry_test.dart | 2 + tests/corelib_2/map_from_entries_test.dart | 2 + tests/corelib_2/map_from_iterable_test.dart | 2 + tests/corelib_2/map_from_iterables_test.dart | 2 + tests/corelib_2/map_from_test.dart | 2 + tests/corelib_2/map_index_test.dart | 2 + tests/corelib_2/map_keys2_test.dart | 2 + tests/corelib_2/map_keys_test.dart | 2 + tests/corelib_2/map_of_test.dart | 2 + tests/corelib_2/map_remove_test.dart | 2 + tests/corelib_2/map_set_undefined_test.dart | 2 + tests/corelib_2/map_test.dart | 2 + tests/corelib_2/map_to_string_test.dart | 2 + .../corelib_2/map_unmodifiable_cast_test.dart | 2 + tests/corelib_2/map_update_test.dart | 2 + tests/corelib_2/map_values2_test.dart | 2 + tests/corelib_2/map_values3_test.dart | 2 + tests/corelib_2/map_values4_test.dart | 2 + tests/corelib_2/map_values_test.dart | 2 + tests/corelib_2/nan_infinity_test.dart | 2 + .../nsm_invocation_generic_test.dart | 2 + tests/corelib_2/nsm_invocation_test.dart | 2 + tests/corelib_2/null_nosuchmethod_test.dart | 2 + tests/corelib_2/null_test.dart | 2 + tests/corelib_2/num_clamp_test.dart | 2 + tests/corelib_2/num_parse_test.dart | 2 + tests/corelib_2/num_sign_test.dart | 2 + tests/corelib_2/num_try_parse_test.dart | 2 + tests/corelib_2/queue_first_test.dart | 2 + tests/corelib_2/queue_iterator_test.dart | 2 + tests/corelib_2/queue_last_test.dart | 2 + tests/corelib_2/queue_single_test.dart | 2 + tests/corelib_2/queue_test.dart | 2 + tests/corelib_2/range_error_test.dart | 2 + tests/corelib_2/reg_exp1_test.dart | 2 + tests/corelib_2/reg_exp4_test.dart | 2 + tests/corelib_2/reg_exp5_test.dart | 2 + tests/corelib_2/reg_exp_all_matches_test.dart | 2 + tests/corelib_2/reg_exp_cache_test.dart | 2 + tests/corelib_2/reg_exp_first_match_test.dart | 2 + tests/corelib_2/reg_exp_group_test.dart | 2 + tests/corelib_2/reg_exp_groups_test.dart | 2 + tests/corelib_2/reg_exp_has_match_test.dart | 2 + tests/corelib_2/reg_exp_pattern_test.dart | 2 + tests/corelib_2/reg_exp_start_end_test.dart | 2 + .../corelib_2/reg_exp_string_match_test.dart | 2 + tests/corelib_2/regexp/UC16_test.dart | 2 + ...lternative-length-miscalculation_test.dart | 2 + tests/corelib_2/regexp/alternatives_test.dart | 2 + .../regexp/ascii-regexp-subject_test.dart | 2 + tests/corelib_2/regexp/assertion_test.dart | 2 + .../corelib_2/regexp/backreferences_test.dart | 2 + .../regexp/bol-with-multiline_test.dart | 2 + tests/corelib_2/regexp/bol_test.dart | 2 + tests/corelib_2/regexp/capture-3_test.dart | 2 + tests/corelib_2/regexp/capture_test.dart | 2 + tests/corelib_2/regexp/captures_test.dart | 2 + .../regexp/char-insensitive_test.dart | 2 + .../character-match-out-of-order_test.dart | 2 + .../corelib_2/regexp/compile-crash_test.dart | 2 + tests/corelib_2/regexp/compile_test.dart | 2 + tests/corelib_2/regexp/constructor_test.dart | 2 + .../regexp/default_arguments_test.dart | 2 + tests/corelib_2/regexp/dot-all_test.dart | 2 + tests/corelib_2/regexp/dotstar_test.dart | 2 + .../corelib_2/regexp/early-acid3-86_test.dart | 2 + .../regexp/ecma-regex-examples_test.dart | 2 + .../extended-characters-match_test.dart | 2 + .../regexp/extended-characters-more_test.dart | 2 + .../regexp/find-first-asserted_test.dart | 2 + tests/corelib_2/regexp/global_test.dart | 2 + tests/corelib_2/regexp/indexof_test.dart | 2 + .../regexp/invalid-range-in-class_test.dart | 2 + tests/corelib_2/regexp/issue_19193_test.dart | 2 + ...jemalloc_leak_backtracking_stack_test.dart | 2 + tests/corelib_2/regexp/lastindex_test.dart | 2 + tests/corelib_2/regexp/look-ahead_test.dart | 2 + tests/corelib_2/regexp/lookahead_test.dart | 2 + tests/corelib_2/regexp/lookbehind_test.dart | 2 + tests/corelib_2/regexp/loop-capture_test.dart | 2 + .../regexp/malformed-escapes_test.dart | 2 + .../corelib_2/regexp/many-brackets_test.dart | 2 + tests/corelib_2/regexp/multiline_test.dart | 2 + .../corelib_2/regexp/named-captures_test.dart | 2 + .../negative-special-characters_test.dart | 2 + .../corelib_2/regexp/no-extensions_test.dart | 2 + tests/corelib_2/regexp/non-bmp_test.dart | 2 + .../non-capturing-backtracking_test.dart | 2 + .../regexp/non-capturing-groups_test.dart | 2 + .../corelib_2/regexp/non-character_test.dart | 2 + .../regexp/non-greedy-parentheses_test.dart | 2 + tests/corelib_2/regexp/norepeat_test.dart | 2 + tests/corelib_2/regexp/overflow_test.dart | 2 + tests/corelib_2/regexp/parentheses_test.dart | 2 + tests/corelib_2/regexp/pcre-test-4_test.dart | 2 + tests/corelib_2/regexp/pcre_test.dart | 2 + .../regexp/quantified-assertions_test.dart | 2 + .../regexp/range-bound-ffff_test.dart | 2 + .../regexp/range-out-of-order_test.dart | 2 + .../ranges-and-escaped-hyphens_test.dart | 2 + .../corelib_2/regexp/regexp_escape_test.dart | 2 + tests/corelib_2/regexp/regexp_kde_test.dart | 2 + .../regexp/regexp_regression_39406_test.dart | 4 +- tests/corelib_2/regexp/regexp_test.dart | 2 + .../regexp/regress-6-9-regexp_test.dart | 2 + .../regexp/regress-regexp-codeflush_test.dart | 2 + .../regress-regexp-construct-result_test.dart | 2 + .../regexp/repeat-match-waldemar_test.dart | 2 + .../corelib_2/regexp/results-cache_test.dart | 2 + .../regexp/stack-overflow2_test.dart | 2 + .../corelib_2/regexp/stack-overflow_test.dart | 2 + tests/corelib_2/regexp/standalones_test.dart | 2 + tests/corelib_2/regexp/toString_test.dart | 2 + .../regexp/unicode-character-ranges_test.dart | 2 + .../unicode-escapes-in-regexps_test.dart | 2 + .../regexp/unicode-handling_test.dart | 2 + .../regexp/unicode-property-binary_test.dart | 2 + .../unicode-property-char-class_test.dart | 2 + .../unicode-property-enumerated_test.dart | 2 + .../unicode-property-exact-match_test.dart | 2 + ...nicode-property-general-category_test.dart | 2 + .../regexp/unicode-property-invalid_test.dart | 2 + .../regexp/unicode-property-scripts_test.dart | 2 + .../regexp/unicode-property-special_test.dart | 2 + .../regexp/unicode-regexp-backrefs_test.dart | 2 + .../unicode-regexp-ignore-case_test.dart | 2 + .../unicode-regexp-match-index_test.dart | 2 + ...unicode-regexp-restricted-syntax_test.dart | 2 + ...nicode-regexp-unanchored-advance_test.dart | 2 + .../unicode-regexp-zero-length_test.dart | 2 + .../regexp/unicodeCaseInsensitive_test.dart | 2 + tests/corelib_2/regexp/v8_regexp_utils.dart | 2 + .../regexp/zero-length-alternatives_test.dart | 2 + tests/corelib_2/regress_11099_test.dart | 2 + tests/corelib_2/regress_33166_test.dart | 2 + tests/corelib_2/regress_42011_test.dart | 2 + tests/corelib_2/regress_r21715_test.dart | 2 + tests/corelib_2/safe_to_string_test.dart | 2 + tests/corelib_2/set_containsAll_test.dart | 2 + tests/corelib_2/set_contains_test.dart | 2 + tests/corelib_2/set_intersection_test.dart | 2 + tests/corelib_2/set_iterator_test.dart | 2 + tests/corelib_2/set_removeAll_test.dart | 2 + tests/corelib_2/set_remove_test.dart | 2 + tests/corelib_2/set_retainAll_test.dart | 2 + tests/corelib_2/set_test.dart | 2 + tests/corelib_2/set_to_string_test.dart | 2 + .../corelib_2/set_unmodifiable_view_test.dart | 2 + tests/corelib_2/shuffle_test.dart | 2 + tests/corelib_2/sort_helper.dart | 2 + tests/corelib_2/sort_test.dart | 2 + .../splay_tree_from_iterable_test.dart | 2 + .../splay_tree_from_iterables_test.dart | 2 + tests/corelib_2/splay_tree_test.dart | 2 + tests/corelib_2/stacktrace_current_test.dart | 2 + .../corelib_2/stacktrace_fromstring_test.dart | 2 + tests/corelib_2/stopwatch2_test.dart | 2 + tests/corelib_2/stopwatch_test.dart | 2 + .../corelib_2/string_base_vm_static_test.dart | 2 + tests/corelib_2/string_base_vm_test.dart | 2 + tests/corelib_2/string_buffer_test.dart | 2 + tests/corelib_2/string_case_test.dart | 2 + tests/corelib_2/string_codeunits_test.dart | 2 + .../string_from_environment2_test.dart | 2 + .../string_from_environment3_test.dart | 2 + .../string_from_environment_test.dart | 2 + tests/corelib_2/string_from_list_test.dart | 2 + tests/corelib_2/string_fromcharcode_test.dart | 2 + .../corelib_2/string_fromcharcodes_test.dart | 2 + .../string_operations_with_null_test.dart | 2 + tests/corelib_2/string_pattern_test.dart | 2 + .../corelib_2/string_replace_all_2_test.dart | 2 + tests/corelib_2/string_replace_all_test.dart | 2 + .../corelib_2/string_replace_dollar_test.dart | 2 + .../corelib_2/string_replace_static_test.dart | 2 + tests/corelib_2/string_replace_test.dart | 2 + tests/corelib_2/string_runes_test.dart | 2 + tests/corelib_2/string_source_test.dart | 2 + tests/corelib_2/string_split_test.dart | 2 + tests/corelib_2/string_static_test.dart | 2 + tests/corelib_2/string_substring_test.dart | 2 + tests/corelib_2/string_test.dart | 2 + .../corelib_2/string_to_lower_case_test.dart | 2 + tests/corelib_2/string_trim2_test.dart | 2 + tests/corelib_2/string_trim_test.dart | 2 + tests/corelib_2/string_trimlr_test.dart | 2 + tests/corelib_2/strings_test.dart | 2 + tests/corelib_2/symbol_map_helper.dart | 2 + tests/corelib_2/symbol_operator_test.dart | 2 + .../corelib_2/symbol_reserved_word_test.dart | 2 + tests/corelib_2/symbol_test.dart | 2 + .../throw_half_surrogate_pair_test.dart | 2 + tests/corelib_2/toInt_test.dart | 2 + tests/corelib_2/type_hashcode_test.dart | 2 + tests/corelib_2/type_tostring_test.dart | 2 + .../typed_data_with_limited_ints_test.dart | 2 + tests/corelib_2/unicode2_test.dart | 2 + tests/corelib_2/unicode_test.dart | 2 + tests/corelib_2/unsigned_shift_test.dart | 116 ------ tests/corelib_2/uri_base_test.dart | 2 + tests/corelib_2/uri_file_test.dart | 2 + tests/corelib_2/uri_http_test.dart | 2 + tests/corelib_2/uri_ipv4_test.dart | 2 + tests/corelib_2/uri_ipv6_test.dart | 2 + tests/corelib_2/uri_normalize_path_test.dart | 2 + tests/corelib_2/uri_normalize_test.dart | 2 + tests/corelib_2/uri_parameters_all_test.dart | 2 + tests/corelib_2/uri_parse_test.dart | 2 + tests/corelib_2/uri_path_test.dart | 2 + tests/corelib_2/uri_query_test.dart | 2 + tests/corelib_2/uri_scheme_test.dart | 2 + tests/corelib_2/uri_test.dart | 2 + tests/dartdevc_2/cast_error/lib_a.dart | 2 + tests/dartdevc_2/cast_error/lib_b.dart | 2 + tests/dartdevc_2/hot_restart_lazy_test.dart | 2 + tests/dartdevc_2/runtime_utils.dart | 2 + tests/ffi_2/aliasing_test.dart | 2 + tests/ffi_2/all_positive.dart | 2 + tests/ffi_2/allocator_test.dart | 2 + tests/ffi_2/callback_tests_utils.dart | 2 + tests/ffi_2/calloc_test.dart | 2 + tests/ffi_2/coordinate.dart | 2 + tests/ffi_2/data_not_asan_test.dart | 2 + tests/ffi_2/data_test.dart | 2 + tests/ffi_2/dylib_isolates_test.dart | 2 + tests/ffi_2/dylib_utils.dart | 2 + tests/ffi_2/expando_test.dart | 2 + tests/ffi_2/extension_methods_test.dart | 2 + tests/ffi_2/external_typed_data_test.dart | 2 + tests/ffi_2/ffi_test_helpers.dart | 2 + tests/ffi_2/function_callbacks_many_test.dart | 2 + ...backs_structs_by_value_generated_test.dart | 2 + ...ction_callbacks_structs_by_value_test.dart | 2 + tests/ffi_2/function_callbacks_test.dart | 2 + ...unction_callbacks_very_many_test copy.dart | 2 + .../function_callbacks_very_many_test.dart | 2 + ...ction_structs_by_value_generated_test.dart | 2 + tests/ffi_2/function_structs_test.dart | 2 + tests/ffi_2/function_test.dart | 2 + tests/ffi_2/function_very_many_test.dart | 2 + tests/ffi_2/generator/c_types.dart | 2 + .../structs_by_value_tests_configuration.dart | 2 + .../structs_by_value_tests_generator.dart | 2 + tests/ffi_2/generator/utils.dart | 2 + tests/ffi_2/hardfp_test.dart | 2 + .../inline_array_multi_dimensional_test.dart | 2 + tests/ffi_2/inline_array_test.dart | 2 + tests/ffi_2/native_effect_test.dart | 2 + tests/ffi_2/negative_function_test.dart | 2 + tests/ffi_2/null_regress_39068_test.dart | 2 + tests/ffi_2/null_test.dart | 2 + tests/ffi_2/prepare_flutter_bundle.dart | 2 + tests/ffi_2/regress_37254_test.dart | 2 + tests/ffi_2/regress_39044_test.dart | 2 + tests/ffi_2/regress_39063_test.dart | 2 + tests/ffi_2/regress_39885_test.dart | 2 + tests/ffi_2/regress_40537_test.dart | 2 + tests/ffi_2/regress_43016_test.dart | 2 + tests/ffi_2/regress_43693_test.dart | 2 + tests/ffi_2/regress_44985_test.dart | 2 + tests/ffi_2/regress_44986_test.dart | 2 + tests/ffi_2/regress_45189_test.dart | 2 + tests/ffi_2/regress_45198_test.dart | 2 + tests/ffi_2/regress_45507_test.dart | 2 + tests/ffi_2/regress_flutter79441_test.dart | 2 + tests/ffi_2/regress_jump_to_frame_test.dart | 2 + tests/ffi_2/sizeof_test.dart | 2 + tests/ffi_2/snapshot_test.dart | 2 + .../ffi_2/stacktrace_regress_37910_test.dart | 2 + tests/ffi_2/structs_nested_test.dart | 2 + tests/ffi_2/structs_packed_test.dart | 2 + tests/ffi_2/structs_test.dart | 2 + tests/ffi_2/unaligned_test.dart | 2 + tests/ffi_2/variance_function_test.dart | 2 + tests/ffi_2/very_large_struct.dart | 2 + .../vmspecific_dynamic_library_test.dart | 2 + tests/ffi_2/vmspecific_enable_ffi_test.dart | 2 + ...specific_function_callbacks_exit_test.dart | 2 + ...ific_function_callbacks_negative_test.dart | 2 + .../vmspecific_function_callbacks_test.dart | 2 + tests/ffi_2/vmspecific_function_gc_test.dart | 2 + tests/ffi_2/vmspecific_function_test.dart | 2 + ...ecific_handle_dynamically_linked_test.dart | 2 + tests/ffi_2/vmspecific_handle_test.dart | 2 + .../ffi_2/vmspecific_highmem_32bit_test.dart | 2 + tests/ffi_2/vmspecific_null_test.dart | 2 + tests/ffi_2/vmspecific_object_gc_test.dart | 2 + .../ffi_2/vmspecific_regress_37100_test.dart | 2 + ...specific_regress_37511_callbacks_test.dart | 2 + .../ffi_2/vmspecific_regress_37511_test.dart | 2 + .../ffi_2/vmspecific_regress_37780_test.dart | 2 + .../ffi_2/vmspecific_regress_38993_test.dart | 2 + tests/ffi_2/vmspecific_send_port_id_test.dart | 2 + .../ffi_2/vmspecific_static_checks_test.dart | 2 + ...pecific_variance_function_checks_test.dart | 2 + .../abstract/beats_arguments_test.dart | 2 + tests/language_2/abstract/equal_test.dart | 2 + .../abstract/exact_selector_runtime_test.dart | 2 + .../abstract/exact_selector_test.dart | 2 + .../factory_constructor_runtime_test.dart | 2 + .../abstract/factory_constructor_test.dart | 2 + tests/language_2/abstract/getter2_test.dart | 2 + tests/language_2/abstract/getter_test.dart | 2 + tests/language_2/abstract/method_test.dart | 2 + .../abstract/object_method_test.dart | 2 + ..._optional_args_concrete_subclass_test.dart | 2 + ...ride_adds_optional_args_concrete_test.dart | 2 + ...ide_adds_optional_args_supercall_test.dart | 2 + .../override_adds_optional_args_test.dart | 2 + .../abstract/syntax_runtime_test.dart | 2 + tests/language_2/abstract/syntax_test.dart | 2 + .../accessor_conflict/export2_helper.dart | 2 + .../accessor_conflict/export2_test.dart | 2 + .../accessor_conflict/export_helper.dart | 2 + .../accessor_conflict/export_test.dart | 2 + .../language_2/accessor_conflict/getter.dart | 2 + .../accessor_conflict/import2_test.dart | 2 + .../import_prefixed2_test.dart | 2 + .../import_prefixed_test.dart | 2 + .../accessor_conflict/import_test.dart | 2 + .../language_2/accessor_conflict/setter.dart | 2 + ...ability_function_typed_runtime_1_test.dart | 2 + ...ability_function_typed_runtime_2_test.dart | 2 + ...ability_function_typed_runtime_3_test.dart | 2 + ...ability_function_typed_runtime_4_test.dart | 2 + ...ability_function_typed_runtime_5_test.dart | 2 + ...ability_function_typed_runtime_6_test.dart | 2 + ...ability_function_typed_runtime_7_test.dart | 2 + ...gnability_function_typed_runtime_test.dart | 2 + .../assignability_function_typed_test.dart | 2 + .../argument/named_argument_test.dart | 2 + .../named_in_const_creation_test.dart | 2 + .../not_enough_positional_arguments_test.dart | 2 + .../not_enough_positional_runtime_test.dart | 2 + tests/language_2/assert/assert_test.dart | 2 + .../assert/assignable_type_test.dart | 2 + ...initializer_const_error2_runtime_test.dart | 2 + .../assert/initializer_const_error2_test.dart | 2 + .../initializer_const_error_runtime_test.dart | 2 + .../assert/initializer_const_error_test.dart | 2 + ...itializer_const_function_runtime_test.dart | 2 + .../initializer_const_function_test.dart | 2 + tests/language_2/assert/initializer_test.dart | 2 + tests/language_2/assert/message_test.dart | 2 + .../assert/trailing_comma_runtime_test.dart | 2 + .../assert/trailing_comma_test.dart | 2 + .../language_2/assert/with_message_test.dart | 2 + .../assert/with_type_test_or_cast_test.dart | 2 + .../assign/instance_method_test.dart | 2 + tests/language_2/assign/op_test.dart | 2 + .../assign/static_type_runtime_test.dart | 2 + tests/language_2/assign/static_type_test.dart | 2 + .../assign/to_type_runtime_test.dart | 2 + tests/language_2/assign/to_type_test.dart | 2 + tests/language_2/assign/top_method_test.dart | 2 + tests/language_2/async/and_or_test.dart | 2 + tests/language_2/async/async_test.dart | 2 + .../async/await_catch_regression_test.dart | 2 + .../language_2/async/await_foreign_test.dart | 2 + tests/language_2/async/await_syntax_test.dart | 2 + tests/language_2/async/await_test.dart | 2 + .../async/backwards_compatibility_1_test.dart | 2 + .../async/backwards_compatibility_2_test.dart | 2 + .../async/break_in_finally_test.dart | 2 + tests/language_2/async/call_test.dart | 2 + tests/language_2/async/cascade_test.dart | 2 + .../async/congruence_local_runtime_test.dart | 2 + .../async/congruence_local_test.dart | 2 + .../async/congruence_method_runtime_test.dart | 2 + .../async/congruence_method_test.dart | 2 + .../async/congruence_top_level_test.dart | 2 + .../congruence_unnamed_runtime_test.dart | 2 + .../async/congruence_unnamed_test.dart | 2 + .../language_2/async/continue_label_test.dart | 2 + .../async/control_structures_test.dart | 2 + .../language_2/async/covariant_type_test.dart | 2 + tests/language_2/async/dcall_type_test.dart | 2 + tests/language_2/async/error_timing_test.dart | 2 + .../async/finally_rethrow_test.dart | 2 + tests/language_2/async/helper_lib.dart | 2 + tests/language_2/async/identifier_test.dart | 2 + tests/language_2/async/lib.dart | 2 + ...r_return_type_stacktrace_runtime_test.dart | 2 + ...generator_return_type_stacktrace_test.dart | 8 +- .../async/regression_23058_test.dart | 2 + tests/language_2/async/rethrow_test.dart | 2 + tests/language_2/async/return_throw_test.dart | 2 + .../async/return_types_runtime_test.dart | 2 + tests/language_2/async/return_types_test.dart | 12 +- tests/language_2/async/switch_test.dart | 2 + tests/language_2/async/this_bound_test.dart | 2 + .../language_2/async/throw_in_catch_test.dart | 2 + .../async_nested/async_nested01_test.dart | 2 + .../async_nested/async_nested02_test.dart | 2 + .../async_nested/async_nested03_test.dart | 2 + .../async_nested/async_nested04_test.dart | 2 + .../async_nested/async_nested05_test.dart | 2 + .../async_nested/async_nested06_test.dart | 2 + .../async_nested/async_nested07_test.dart | 2 + .../async_nested/async_nested08_test.dart | 2 + .../async_nested/async_nested09_test.dart | 2 + .../async_nested/async_nested10_test.dart | 2 + .../async_nested/async_nested11_test.dart | 2 + .../async_nested/async_nested12_test.dart | 2 + .../async_nested/async_nested13_test.dart | 2 + .../async_nested/async_nested14_test.dart | 2 + .../async_nested/async_nested15_test.dart | 2 + .../async_nested/async_nested16_test.dart | 2 + .../async_nested/async_nested17_test.dart | 2 + .../async_nested/async_nested18_test.dart | 2 + .../async_nested/async_nested19_test.dart | 2 + .../async_nested/async_nested20_test.dart | 2 + .../async_nested/async_nested21_test.dart | 2 + .../async_nested/async_nested22_test.dart | 2 + .../async_nested/async_nested23_test.dart | 2 + .../async_nested/async_nested24_test.dart | 2 + .../async_nested/async_nested25_test.dart | 2 + .../async_nested/async_nested26_test.dart | 2 + .../async_nested/async_nested27_test.dart | 2 + .../async_nested/async_nested28_test.dart | 2 + .../async_nested/async_nested29_test.dart | 2 + .../async_nested/async_nested30_test.dart | 2 + .../async_nested/async_nested31_test.dart | 2 + .../async_nested/async_nested32_test.dart | 2 + .../async_nested/async_nested33_test.dart | 2 + .../async_nested/async_nested34_test.dart | 2 + .../async_nested/async_nested35_test.dart | 2 + .../async_nested/async_nested36_test.dart | 2 + .../async_nested/async_nested37_test.dart | 2 + .../async_nested/async_nested38_test.dart | 2 + .../async_nested/async_nested39_test.dart | 2 + .../async_nested/async_nested40_test.dart | 2 + .../async_nested/async_nested41_test.dart | 2 + .../async_star2_regression_test.dart | 2 + .../async_star/async_star_await_for_test.dart | 2 + .../async_star/async_star_cancel_test.dart | 2 + .../async_star/async_star_invalid_test.dart | 2 + .../async_star/async_star_test.dart | 2 + .../language_2/async_star/await_for_test.dart | 2 + .../async_star/await_pauses_test.dart | 2 + tests/language_2/async_star/basic_test.dart | 2 + .../cancel_and_throw_in_finally_test.dart | 2 + tests/language_2/async_star/cancel_test.dart | 2 + .../cancel_while_paused_at_yield_test.dart | 2 + .../async_star/cancel_while_paused_test.dart | 2 + tests/language_2/async_star/concat_test.dart | 2 + .../async_star/covariant_type_test.dart | 2 + .../async_star/dcall_type_test.dart | 2 + tests/language_2/async_star/error_test.dart | 2 + tests/language_2/async_star/loops_test.dart | 2 + .../async_star/no_cancel2_test.dart | 2 + .../language_2/async_star/no_cancel_test.dart | 2 + tests/language_2/async_star/pause_test.dart | 2 + tests/language_2/async_star/pause_test2.dart | 2 + .../async_star/regression_2238_test.dart | 2 + .../async_star/regression_23116_test.dart | 2 + .../async_star/regression_fisk_test.dart | 2 + .../async_star/stream_take_test.dart | 2 + .../async_star/take_reyield_test.dart | 2 + .../async_star/throw_in_catch_test.dart | 2 + tests/language_2/async_star/utils.dart | 2 + .../async_star/void_async_star_test.dart | 2 + .../async_star/yield_expressions_test.dart | 2 + .../async_star/yield_from_catch_test.dart | 2 + .../yield_statement_context_test.dart | 2 + tests/language_2/async_star/yield_test.dart | 2 + .../language_2/async_star/yieldstar_test.dart | 2 + tests/language_2/await/and_ifnull_test.dart | 2 + tests/language_2/await/await_test.dart | 2 + .../backwards_compatibility_runtime_test.dart | 2 + .../await/backwards_compatibility_test.dart | 2 + tests/language_2/await/exceptions_test.dart | 2 + tests/language_2/await/for_cancel_test.dart | 2 + tests/language_2/await/for_test.dart | 2 + .../language_2/await/for_use_local_test.dart | 2 + tests/language_2/await/future_test.dart | 2 + tests/language_2/await/in_cascade_test.dart | 2 + tests/language_2/await/nonfuture_test.dart | 2 + tests/language_2/await/null_aware_test.dart | 2 + tests/language_2/await/postfix_expr_test.dart | 2 + tests/language_2/await/regression_test.dart | 2 + .../await/started_immediately_test.dart | 2 + tests/language_2/await_type_error_test.dart | 2 + tests/language_2/await_type_test.dart | 2 + tests/language_2/bool/bool_test.dart | 2 + tests/language_2/bool/check_test.dart | 2 + .../language_2/bool/condition_check_test.dart | 2 + .../bool/has_environment_not_new_test.dart | 2 + .../language_2/bool/has_environment_test.dart | 2 + .../call/argument_inference_test.dart | 2 + tests/language_2/call/call_test.dart | 2 + tests/language_2/call/closurization_test.dart | 2 + ...or_on_unresolvable_class_runtime_test.dart | 2 + ...onstructor_on_unresolvable_class_test.dart | 2 + tests/language_2/call/function2_test.dart | 2 + .../language_2/call/function_apply_test.dart | 2 + tests/language_2/call/function_test.dart | 2 + .../language_2/call/method_as_cast_test.dart | 2 + .../method_function_typed_value_test.dart | 2 + .../method_implicit_invoke_instance_test.dart | 2 + ..._implicit_invoke_local_runtime_1_test.dart | 2 + ..._implicit_invoke_local_runtime_2_test.dart | 2 + ..._implicit_invoke_local_runtime_3_test.dart | 2 + ..._implicit_invoke_local_runtime_4_test.dart | 2 + ...od_implicit_invoke_local_runtime_test.dart | 2 + .../method_implicit_invoke_local_test.dart | 2 + .../method_implicit_invoke_static_test.dart | 2 + ...method_implicit_invoke_top_level_test.dart | 2 + ...hod_implicit_tear_off_assignable_test.dart | 2 + ...ethod_implicit_tear_off_nullable_test.dart | 2 + .../call/method_implicit_tear_off_test.dart | 2 + .../language_2/call/method_is_check_test.dart | 2 + .../call/method_must_not_be_field_test.dart | 2 + .../call/method_must_not_be_getter_test.dart | 2 + .../call/method_override_runtime_test.dart | 2 + .../language_2/call/method_override_test.dart | 2 + .../call/non_method_field_runtime_test.dart | 2 + .../call/non_method_field_test.dart | 2 + .../nonexistent_constructor_runtime_test.dart | 2 + .../call/nonexistent_constructor_test.dart | 2 + .../call/nonexistent_static_test.dart | 2 + .../call/object_has_no_call_method_test.dart | 2 + .../object_has_no_call_runtime_1_test.dart | 2 + .../object_has_no_call_runtime_2_test.dart | 2 + .../object_has_no_call_runtime_3_test.dart | 2 + .../object_has_no_call_runtime_4_test.dart | 2 + .../object_has_no_call_runtime_5_test.dart | 2 + .../object_has_no_call_runtime_6_test.dart | 2 + .../call/object_has_no_call_runtime_test.dart | 2 + tests/language_2/call/operator_test.dart | 2 + tests/language_2/call/property_test.dart | 2 + .../call/through_getter_runtime_test.dart | 2 + .../language_2/call/through_getter_test.dart | 2 + .../call/through_null_getter_test.dart | 2 + tests/language_2/call/type_literal_test.dart | 2 + .../call/with_no_such_method_test.dart | 2 + .../language_2/canonicalize/const2_test.dart | 2 + .../language_2/canonicalize/const3_test.dart | 2 + tests/language_2/canonicalize/const_test.dart | 2 + .../hashing_memoize_array_test.dart | 2 + .../hashing_memoize_instance_test.dart | 2 + .../hashing_shallow_collision_array_test.dart | 2 + ...ing_shallow_collision_instance_2_test.dart | 2 + ...ing_shallow_collision_instance_3_test.dart | 2 + ...shing_shallow_collision_instance_test.dart | 2 + tests/language_2/cascade/cascade2_test.dart | 2 + tests/language_2/cascade/cascade3_test.dart | 2 + tests/language_2/cascade/cascade_test.dart | 2 + .../cascade/in_expression_function_test.dart | 2 + .../cascade/in_initializer_list_test.dart | 2 + tests/language_2/cascade/nested_test.dart | 2 + .../cascade/on_static_field_test.dart | 2 + tests/language_2/cascade/precedence_test.dart | 2 + tests/language_2/cascade/runtime_test.dart | 2 + ..._optional_args_concrete_subclass_test.dart | 2 + tests/language_2/class/class_test.dart | 2 + .../classes_static_method_clash_test.dart | 2 + tests/language_2/class/codegen_test.dart | 2 + tests/language_2/class/cycle2_test.dart | 2 + tests/language_2/class/cycle_test.dart | 2 + .../cyclic_class_member_runtime_test.dart | 2 + .../class/cyclic_class_member_test.dart | 2 + .../class/inheritance_chain_lib.dart | 2 + .../class/inheritance_chain_test.dart | 2 + .../class/keyword_runtime_test.dart | 2 + tests/language_2/class/keyword_test.dart | 2 + .../class/large_class_declaration_test.dart | 2 + .../language_2/class/literal_static_test.dart | 2 + tests/language_2/class/literal_test.dart | 2 + .../multiple_interface_inheritance_test.dart | 2 + tests/language_2/class/override_test.dart | 2 + .../class/recursive_inheritance_test.dart | 2 + tests/language_2/class/syntax2_test.dart | 2 + tests/language_2/class/syntax_test.dart | 2 + .../variable_shadow_class_runtime_test.dart | 2 + .../class/variable_shadow_class_test.dart | 2 + .../closure/bound_closure_equality_test.dart | 2 + .../bound_closure_primitives_test.dart | 2 + tests/language_2/closure/break1_test.dart | 2 + tests/language_2/closure/break2_test.dart | 2 + tests/language_2/closure/break_test.dart | 2 + .../call_wrong_argument_count_test.dart | 2 + tests/language_2/closure/closure2_test.dart | 2 + tests/language_2/closure/closure3_test.dart | 2 + tests/language_2/closure/closure4_test.dart | 2 + tests/language_2/closure/closure5_test.dart | 2 + tests/language_2/closure/closure6_test.dart | 2 + tests/language_2/closure/closure7_test.dart | 2 + tests/language_2/closure/closure8_test.dart | 2 + tests/language_2/closure/closure_test.dart | 2 + .../closure/closures_initializer2_test.dart | 2 + .../closure/closures_initializer_test.dart | 2 + .../closures_with_complex_params_test.dart | 2 + tests/language_2/closure/cycles_test.dart | 2 + tests/language_2/closure/dynamic_test.dart | 2 + .../forwarding_stub_tearoff_generic_test.dart | 2 + .../closure/forwarding_stub_tearoff_test.dart | 2 + tests/language_2/closure/implicit1_test.dart | 2 + tests/language_2/closure/implicit2_test.dart | 2 + .../closure/implicit_closure_test.dart | 2 + .../closure/in_constructor_test.dart | 2 + .../closure/in_field_initializer_test.dart | 2 + .../closure/in_initializer2_test.dart | 2 + .../closure/in_initializer_test.dart | 2 + .../closure/internals_runtime_test.dart | 2 + tests/language_2/closure/internals_test.dart | 2 + ...d_through_interface_target_field_test.dart | 2 + ..._through_interface_target_getter_test.dart | 2 + ...inify_closure_variable_collision_test.dart | 2 + .../closure/nested_generic_closure_test.dart | 2 + .../closure/param_null_to_object_test.dart | 2 + .../closure/parameter_types_test.dart | 2 + .../parse_closures_in_initializers_test.dart | 2 + ...instantiation_eager_bounds_check_test.dart | 2 + ...tion_static_bounds_check_runtime_test.dart | 2 + ...nstantiation_static_bounds_check_test.dart | 2 + .../partial_tearoff_instantiation_test.dart | 2 + .../closure/self_reference_test.dart | 2 + .../language_2/closure/shared_state_test.dart | 2 + .../language_2/closure/side_effect_test.dart | 2 + .../tearoff_bounds_instantiation_test.dart | 2 + .../closure/tearoff_dynamic_test.dart | 2 + .../closure/type_arguments_test.dart | 2 + tests/language_2/closure/type_test.dart | 2 + .../closure/type_variable_test.dart | 2 + .../closure/type_variables_test.dart | 2 + .../closure/unnamed_closure_test.dart | 2 + .../closure/variable_shadow_test.dart | 2 + .../closure/with_super_field_test.dart | 2 + .../closure/with_super_send_test.dart | 2 + .../compile_time_constant/a_test.dart | 2 + .../arguments_runtime_test.dart | 2 + .../compile_time_constant/arguments_test.dart | 2 + .../compile_time_constant/b_test.dart | 2 + .../c_runtime_1_test.dart | 2 + .../compile_time_constant/c_runtime_test.dart | 2 + .../compile_time_constant/c_test.dart | 2 + .../compile_time_constant10_test.dart | 2 + .../compile_time_constant11_test.dart | 2 + .../compile_time_constant12_test.dart | 2 + .../compile_time_constant13_test.dart | 2 + .../compile_time_constant2_test.dart | 2 + .../compile_time_constant3_test.dart | 2 + .../compile_time_constant5_test.dart | 2 + .../compile_time_constant6_test.dart | 2 + .../compile_time_constant7_test.dart | 2 + .../compile_time_constant8_test.dart | 2 + .../compile_time_constant9_test.dart | 2 + .../compile_time_constant_test.dart | 2 + .../compile_time_constant/d_test.dart | 2 + .../compile_time_constant/e_test.dart | 2 + .../compile_time_constant/f_test.dart | 2 + .../compile_time_constant/g_test.dart | 2 + .../compile_time_constant/h_test.dart | 2 + .../compile_time_constant/i_test.dart | 2 + .../compile_time_constant/j_test.dart | 2 + .../compile_time_constant/k_runtime_test.dart | 2 + .../compile_time_constant/k_test.dart | 2 + .../compile_time_constant/l_test.dart | 2 + .../compile_time_constant/m_test.dart | 2 + .../compile_time_constant/n_test.dart | 2 + .../compile_time_constant/o_runtime_test.dart | 2 + .../compile_time_constant/o_test.dart | 2 + .../compile_time_constant/p_runtime_test.dart | 2 + .../compile_time_constant/p_test.dart | 2 + .../compile_time_constant/q_test.dart | 2 + .../compile_time_constant/r_runtime_test.dart | 2 + .../compile_time_constant/r_test.dart | 2 + .../compile_time_constant/runtime_test.dart | 2 + .../static2_runtime_test.dart | 2 + .../compile_time_constant/static2_test.dart | 2 + .../static3_runtime_test.dart | 2 + .../compile_time_constant/static3_test.dart | 2 + .../compile_time_constant/static4_test.dart | 2 + .../compile_time_constant/static5_test.dart | 2 + .../static_runtime_test.dart | 2 + .../compile_time_constant/static_test.dart | 2 + tests/language_2/compiler_annotations.dart | 2 + tests/language_2/const/cast1_test.dart | 2 + tests/language_2/const/cast2_test.dart | 2 + tests/language_2/const/cast3_test.dart | 2 + tests/language_2/const/cast4_test.dart | 2 + .../const/conditional_runtime_test.dart | 2 + tests/language_2/const/conditional_test.dart | 2 + tests/language_2/const/const2_test.dart | 2 + tests/language_2/const/const3_test.dart | 2 + tests/language_2/const/const4_lib.dart | 2 + tests/language_2/const/const4_test.dart | 2 + .../const_locals_constant_locals_test.dart | 2 + .../const/const_locals_runtime_test.dart | 2 + tests/language_2/const/const_test.dart | 2 + tests/language_2/const/constant_dag_test.dart | 2 + tests/language_2/const/constants_test.dart | 7 +- tests/language_2/const/constructor2_test.dart | 2 + .../const/constructor3_runtime_1_test.dart | 2 + .../const/constructor3_runtime_2_test.dart | 2 + .../const/constructor3_runtime_test.dart | 2 + tests/language_2/const/constructor3_test.dart | 2 + .../constructor_mixin2_runtime_test.dart | 2 + .../const/constructor_mixin2_test.dart | 2 + .../const/constructor_mixin3_test.dart | 2 + .../const/constructor_mixin_test.dart | 2 + ...nstructor_nonconst_field_runtime_test.dart | 2 + .../constructor_nonconst_field_test.dart | 2 + ...nstructor_nonconst_param_runtime_test.dart | 2 + .../constructor_nonconst_param_test.dart | 2 + .../const/constructor_runtime_test.dart | 2 + .../const/constructor_super2_test.dart | 2 + .../const/constructor_super_runtime_test.dart | 2 + .../const/constructor_super_test.dart | 2 + .../constructor_syntax_runtime_test.dart | 2 + .../const/constructor_syntax_test.dart | 2 + tests/language_2/const/constructor_test.dart | 2 + .../const/counter_runtime_test.dart | 2 + tests/language_2/const/counter_test.dart | 2 + tests/language_2/const/ct_const_test.dart | 2 + .../const/double_in_int_op_test.dart | 6 +- .../dynamic_type_literal_runtime_1_test.dart | 2 + .../dynamic_type_literal_runtime_2_test.dart | 2 + .../dynamic_type_literal_runtime_test.dart | 2 + .../const/dynamic_type_literal_test.dart | 2 + .../error_multiply_initialized_test.dart | 2 + tests/language_2/const/escape_frog_test.dart | 2 + tests/language_2/const/evaluation_test.dart | 2 + .../const/factory_redirection_test.dart | 2 + .../const/factory_with_body_runtime_test.dart | 2 + .../const/factory_with_body_test.dart | 2 + .../const/for_in_variable_test.dart | 2 + .../language_2/const/getter_runtime_test.dart | 2 + tests/language_2/const/getter_test.dart | 4 +- tests/language_2/const/global_test.dart | 2 + tests/language_2/const/inference_test.dart | 2 + .../const/init2_runtime_1_test.dart | 2 + .../language_2/const/init2_runtime_test.dart | 2 + tests/language_2/const/init2_test.dart | 2 + tests/language_2/const/init_test.dart | 2 + .../const/instance_field_runtime_test.dart | 2 + .../language_2/const/instance_field_test.dart | 2 + tests/language_2/const/list_test.dart | 2 + tests/language_2/const/local_test.dart | 2 + tests/language_2/const/locals_test.dart | 2 + tests/language_2/const/map2_runtime_test.dart | 2 + tests/language_2/const/map2_test.dart | 2 + tests/language_2/const/map3_runtime_test.dart | 2 + tests/language_2/const/map3_test.dart | 2 + tests/language_2/const/map4_test.dart | 2 + tests/language_2/const/map_test.dart | 2 + tests/language_2/const/named_test.dart | 2 + .../language_2/const/native_factory_test.dart | 2 + tests/language_2/const/nested_test.dart | 2 + .../const/objects_are_immutable_test.dart | 2 + .../const/optional_args_runtime_test.dart | 2 + .../language_2/const/optional_args_test.dart | 2 + tests/language_2/const/qq_test.dart | 2 + .../const/redirect_skips_supertype_test.dart | 2 + .../const/redirecting_factory_test.dart | 2 + tests/language_2/const/string_test.dart | 2 + .../const/switch2_runtime_test.dart | 2 + tests/language_2/const/switch2_test.dart | 2 + tests/language_2/const/switch_test.dart | 2 + .../language_2/const/syntax_runtime_test.dart | 2 + tests/language_2/const/syntax_test.dart | 2 + tests/language_2/const/tree_test.dart | 2 + tests/language_2/const/types_test.dart | 2 + tests/language_2/const/var_helper.dart | 2 + tests/language_2/const/var_test.dart | 2 + .../constants_2018/const_type_test.dart | 4 +- .../constant_type_literal_test.dart | 2 + .../constant_type_literal_types.dart | 2 + .../constants_2018/constant_types_test.dart | 2 + .../constants_2018/equals_test.dart | 2 + .../potential_const_dynamic_test.dart | 5 +- .../potential_const_shortcircuit_test.dart | 2 + .../constants_2018/potential_const_test.dart | 2 + .../potential_const_type_test.dart | 6 +- .../constants_2018/type_cast_test.dart | 2 + .../constants_2018/type_check_test.dart | 2 + .../bad_constructor_runtime_1_test.dart | 2 + .../bad_constructor_runtime_test.dart | 2 + .../constructor/bad_constructor_test.dart | 2 + .../bad_named_constructor_runtime_test.dart | 2 + .../bad_named_constructor_test.dart | 2 + tests/language_2/constructor/body_test.dart | 2 + .../bodyless_wrong_arg_runtime_test.dart | 2 + .../constructor/bodyless_wrong_arg_test.dart | 2 + .../constructor/call_as_function_test.dart | 2 + ...all_wrong_argument_count_runtime_test.dart | 2 + .../call_wrong_argument_count_test.dart | 2 + .../constructor10_runtime_test.dart | 2 + .../constructor/constructor10_test.dart | 2 + .../constructor/constructor11_test.dart | 2 + .../constructor/constructor12_test.dart | 2 + .../constructor13_runtime_test.dart | 2 + .../constructor/constructor13_test.dart | 2 + .../constructor/constructor2_test.dart | 2 + .../constructor/constructor3_test.dart | 2 + .../constructor/constructor4_test.dart | 2 + .../constructor/constructor5_test.dart | 2 + .../constructor/constructor6_test.dart | 2 + .../constructor/constructor7_test.dart | 2 + .../constructor/constructor8_test.dart | 2 + .../constructor9_runtime_test.dart | 2 + .../constructor/constructor9_test.dart | 2 + .../constructor/constructor_test.dart | 2 + .../constructor/cyclic_constructor_test.dart | 2 + .../constructor/cyclic_runtime_test.dart | 2 + ...fault_class_implicit_constructor_test.dart | 2 + .../default_factory2_runtime_test.dart | 2 + .../constructor/default_factory2_test.dart | 2 + .../constructor/default_factory3_test.dart | 2 + .../constructor/default_factory_library.dart | 2 + .../default_factory_library_test.dart | 2 + .../default_factory_runtime_test.dart | 2 + .../constructor/default_factory_test.dart | 2 + .../language_2/constructor/default_test.dart | 2 + .../constructor/duplicate_final_test.dart | 2 + .../duplicate_initializers_runtime_test.dart | 2 + .../duplicate_initializers_test.dart | 2 + .../constructor/duplicate_runtime_test.dart | 2 + .../constructor/duplicate_test.dart | 2 + ...aluation_redirecting_constructor_test.dart | 2 + .../constructor/example_constructor_test.dart | 2 + ...ctory_constructor_default_values_test.dart | 2 + .../implicit_super_constructor_call_test.dart | 2 + .../implicit_super_constructor_test.dart | 2 + ...inference_super_constructor_call_test.dart | 2 + .../constructor/initializer_test.dart | 2 + .../missing_const_constructor_test.dart | 2 + ...ple_field_assignment_constructor_test.dart | 2 + .../constructor/name_clash_lib.dart | 2 + .../constructor/name_clash_test.dart | 2 + tests/language_2/constructor/name_test.dart | 2 + .../constructor/named_arguments_test.dart | 2 + .../constructor/named_constructor_test.dart | 2 + tests/language_2/constructor/named_lib.dart | 2 + .../constructor/named_runtime_test.dart | 2 + .../no_such_constructor_runtime_test.dart | 2 + .../constructor/no_such_constructor_test.dart | 2 + ...n_const_constructor_without_body_test.dart | 2 + .../non_parameterized_factory2_test.dart | 2 + .../non_parameterized_factory_test.dart | 2 + .../constructor/redirect2_runtime_test.dart | 2 + .../constructor/redirect2_test.dart | 2 + .../redirect_cycle_runtime_test.dart | 2 + .../constructor/redirect_cycle_test.dart | 2 + .../redirect_indirect_cycle_runtime_test.dart | 2 + .../redirect_indirect_cycle_test.dart | 2 + .../constructor/redirect_runtime_test.dart | 2 + .../language_2/constructor/redirect_test.dart | 2 + .../reference_runtime_10_test.dart | 2 + .../reference_runtime_11_test.dart | 2 + .../reference_runtime_12_test.dart | 2 + .../constructor/reference_runtime_1_test.dart | 2 + .../constructor/reference_runtime_2_test.dart | 2 + .../constructor/reference_runtime_3_test.dart | 2 + .../constructor/reference_runtime_4_test.dart | 2 + .../constructor/reference_runtime_5_test.dart | 2 + .../constructor/reference_runtime_6_test.dart | 2 + .../constructor/reference_runtime_7_test.dart | 2 + .../constructor/reference_runtime_8_test.dart | 2 + .../constructor/reference_runtime_9_test.dart | 2 + .../constructor/reference_runtime_test.dart | 2 + .../constructor/reference_test.dart | 2 + .../constructor/return_runtime_test.dart | 2 + tests/language_2/constructor/return_test.dart | 2 + tests/language_2/constructor/setter_test.dart | 2 + .../type_parameter_runtime_test.dart | 2 + .../constructor/type_parameter_test.dart | 2 + .../unresolved_default_constructor_test.dart | 2 + .../unresolved_default_runtime_test.dart | 2 + .../unresolved_in_factory_test.dart | 2 + .../constructor/with_mixin_test.dart | 2 + .../with_type_parameters_test.dart | 2 + .../await_for_inference_test.dart | 2 + .../await_for_null_test.dart | 2 + .../await_for_syntax_error_test.dart | 2 + .../await_for_test.dart | 2 + .../await_for_type_error_test.dart | 2 + .../for_await_test.dart | 2 + .../for_const_error_test.dart | 2 + .../for_inference_test.dart | 2 + .../for_non_bool_condition_test.dart | 2 + .../for_null_condition_test.dart | 2 + .../for_runtime_error_test.dart | 2 + .../control_flow_collections/for_test.dart | 2 + .../for_variable_test.dart | 2 + .../if_await_test.dart | 2 + .../if_const_error_test.dart | 2 + .../if_const_test.dart | 2 + .../if_inference_test.dart | 2 + .../if_null_condition_test.dart | 2 + .../if_promotion_test.dart | 2 + .../if_runtime_error_test.dart | 2 + .../control_flow_collections/if_test.dart | 2 + .../map_set_ambiguity_error_test.dart | 2 + .../map_set_ambiguity_test.dart | 2 + .../syntax_error_test.dart | 2 + .../control_flow_collections/syntax_test.dart | 2 + .../type_error_test.dart | 2 + .../control_flow_collections/utils.dart | 2 + .../language_2/covariant/covariant_test.dart | 2 + tests/language_2/covariant/field_test.dart | 2 + tests/language_2/covariant/method_test.dart | 2 + tests/language_2/covariant/override_test.dart | 2 + .../covariant/return_type_test.dart | 2 + tests/language_2/covariant/setter_test.dart | 2 + .../covariant/subtyping_tearoff1_test.dart | 2 + .../covariant/subtyping_tearoff2_test.dart | 2 + .../covariant/subtyping_tearoff3_test.dart | 2 + .../language_2/covariant/subtyping_test.dart | 2 + .../subtyping_unsafe_call1_test.dart | 2 + .../subtyping_unsafe_call2_test.dart | 2 + .../subtyping_unsafe_call3_test.dart | 2 + .../covariant/subtyping_with_mixin_test.dart | 2 + .../covariant/tear_off_type_test.dart | 2 + .../covariant/type_parameter_test.dart | 2 + .../runtime_check_test.dart | 2 + .../tear_off_type_test.dart | 2 + .../deferred/call_empty_before_load_lib.dart | 2 + .../deferred/call_empty_before_load_test.dart | 2 + .../deferred/closurize_load_library_lib.dart | 2 + .../deferred/closurize_load_library_test.dart | 2 + .../deferred/constant_list_lib.dart | 2 + .../deferred/constant_list_test.dart | 2 + .../language_2/deferred/constraints_lib.dart | 2 + .../language_2/deferred/constraints_lib2.dart | 2 + .../constraints_type_annotation_test.dart | 2 + .../deferred_and_immediate_import_lib.dart | 2 + .../deferred_and_immediate_import_test.dart | 2 + .../duplicate_prefix1_runtime_test.dart | 2 + .../deferred/duplicate_prefix1_test.dart | 2 + .../duplicate_prefix2_runtime_test.dart | 2 + .../deferred/duplicate_prefix2_test.dart | 2 + .../duplicate_prefix3_runtime_test.dart | 2 + .../deferred/duplicate_prefix3_test.dart | 2 + .../deferred/function_type_lib.dart | 2 + .../deferred/function_type_test.dart | 2 + tests/language_2/deferred/global_lib.dart | 2 + tests/language_2/deferred/global_test.dart | 2 + .../language_2/deferred/import_core_test.dart | 2 + .../deferred/inheritance_constraints_lib.dart | 2 + .../inheritance_constraints_runtime_test.dart | 2 + .../inheritance_constraints_test.dart | 2 + tests/language_2/deferred/inlined_test.dart | 2 + tests/language_2/deferred/load_constants.dart | 2 + .../deferred/load_constants_runtime_test.dart | 2 + .../deferred/load_constants_test.dart | 2 + .../deferred/load_inval_code_lib.dart | 2 + .../deferred/load_inval_code_test.dart | 2 + .../deferred/load_library_wrong_args_lib.dart | 2 + .../load_library_wrong_args_test.dart | 2 + tests/language_2/deferred/mixin_lib1.dart | 2 + tests/language_2/deferred/mixin_lib2.dart | 2 + tests/language_2/deferred/mixin_shared.dart | 2 + tests/language_2/deferred/mixin_test.dart | 2 + .../deferred/no_prefix_runtime_test.dart | 2 + tests/language_2/deferred/no_prefix_test.dart | 2 + .../deferred/no_such_method_lib.dart | 2 + .../deferred/no_such_method_test.dart | 2 + .../deferred/not_loaded_check_lib.dart | 2 + .../deferred/not_loaded_check_test.dart | 2 + .../deferred/only_constant_lib.dart | 2 + .../deferred/only_constant_test.dart | 2 + tests/language_2/deferred/optimized_test.dart | 2 + .../deferred/prefix_constraints_lib.dart | 2 + .../deferred/prefix_constraints_lib2.dart | 2 + .../prefix_importer_tree_shaken_deferred.dart | 2 + ...prefix_importer_tree_shaken_immediate.dart | 2 + .../prefix_importer_tree_shaken_test.dart | 2 + .../deferred/redirecting_factory_lib1.dart | 2 + .../deferred/redirecting_factory_lib2.dart | 2 + .../deferred/redirecting_factory_test.dart | 2 + .../deferred/regression_22995_lib.dart | 2 + .../deferred/regression_22995_test.dart | 2 + .../deferred/regression_28678_lib.dart | 2 + .../deferred/regression_28678_test.dart | 2 + .../deferred/shadow_load_library_lib.dart | 2 + .../deferred/shadow_load_library_test.dart | 2 + .../shared_and_unshared_classes_lib1.dart | 2 + .../shared_and_unshared_classes_lib2.dart | 2 + ...hared_and_unshared_classes_lib_shared.dart | 2 + .../shared_and_unshared_classes_test.dart | 2 + .../split_constants_canonicalization_a.dart | 2 + .../split_constants_canonicalization_a_1.dart | 2 + .../split_constants_canonicalization_a_2.dart | 2 + .../split_constants_canonicalization_b.dart | 2 + .../split_constants_canonicalization_b_1.dart | 2 + .../split_constants_canonicalization_b_2.dart | 2 + ...split_constants_canonicalization_test.dart | 2 + .../deferred/static_seperate_lib1.dart | 2 + .../deferred/static_seperate_lib2.dart | 2 + .../deferred/static_seperate_test.dart | 2 + .../deferred/super_dependency_lib.dart | 2 + .../super_dependency_runtime_test.dart | 2 + .../deferred/super_dependency_test.dart | 2 + .../deferred/type_dependency_lib1.dart | 2 + .../deferred/type_dependency_lib2.dart | 2 + .../deferred/type_dependency_lib3.dart | 2 + .../deferred/type_dependency_test.dart | 2 + .../unreachable_loading_unit_deferred.dart | 2 + .../unreachable_loading_unit_immediate.dart | 2 + .../unreachable_loading_unit_test.dart | 2 + tests/language_2/double/comparison_test.dart | 2 + tests/language_2/double/identical_test.dart | 2 + .../language_2/double/int_addition_test.dart | 2 + .../language_2/double/int_to_string_test.dart | 2 + .../double/invalid_runtime_test.dart | 2 + tests/language_2/double/invalid_test.dart | 2 + tests/language_2/double/modulo_test.dart | 2 + .../double/nan_comparison_test.dart | 2 + ...o_string_as_exponential2_runtime_test.dart | 2 + .../to_string_as_exponential2_test.dart | 2 + .../to_string_as_exponential3_test.dart | 2 + .../double/to_string_as_exponential_test.dart | 2 + .../to_string_as_fixed2_runtime_test.dart | 2 + .../double/to_string_as_fixed2_test.dart | 2 + .../double/to_string_as_fixed_test.dart | 2 + .../to_string_as_precision2_runtime_test.dart | 2 + .../double/to_string_as_precision2_test.dart | 2 + .../double/to_string_as_precision3_test.dart | 2 + .../double/to_string_as_precision_test.dart | 2 + tests/language_2/double/to_string_test.dart | 2 + .../double_literal_coercion_error_test.dart | 2 + .../double_literal_coercion_test.dart | 2 + .../implicit_double_context_test.dart | 2 + tests/language_2/dynamic/call_test.dart | 2 + .../dynamic/dynamic2_runtime_test.dart | 2 + tests/language_2/dynamic/dynamic2_test.dart | 2 + tests/language_2/dynamic/dynamic_test.dart | 2 + .../dynamic/field_runtime_test.dart | 2 + tests/language_2/dynamic/field_test.dart | 2 + tests/language_2/dynamic/hash_code_test.dart | 2 + tests/language_2/dynamic/invoke_test.dart | 2 + .../language_2/dynamic/prefix_core_test.dart | 2 + tests/language_2/dynamic/set_test.dart | 2 + .../language_2/dynamic/type_literal_test.dart | 2 + tests/language_2/dynamic_type_helper.dart | 2 + tests/language_2/enum/duplicate_lib.dart | 2 + tests/language_2/enum/duplicate_test.dart | 2 + tests/language_2/enum/enum_test.dart | 2 + tests/language_2/enum/index_test.dart | 2 + ...itialization_near_stack_overflow_test.dart | 2 + .../enum/is_keyword_runtime_test.dart | 2 + tests/language_2/enum/is_keyword_test.dart | 2 + tests/language_2/enum/private_lib.dart | 2 + .../enum/private_runtime_1_test.dart | 2 + .../language_2/enum/private_runtime_test.dart | 2 + tests/language_2/enum/private_test.dart | 2 + tests/language_2/enum/syntax_test.dart | 2 + tests/language_2/enum/value_name_test.dart | 2 + .../exception/catch_liveness_test.dart | 2 + .../code_after_try_is_executed_test.dart | 2 + .../language_2/exception/exception_test.dart | 2 + .../language_2/exception/finally10_test.dart | 2 + .../language_2/exception/finally11_test.dart | 2 + .../language_2/exception/finally12_test.dart | 2 + tests/language_2/exception/finally1_test.dart | 2 + tests/language_2/exception/finally2_test.dart | 2 + tests/language_2/exception/finally3_test.dart | 2 + tests/language_2/exception/finally4_test.dart | 2 + tests/language_2/exception/finally5_test.dart | 2 + tests/language_2/exception/finally6_test.dart | 2 + tests/language_2/exception/finally7_test.dart | 2 + tests/language_2/exception/finally8_test.dart | 2 + tests/language_2/exception/finally9_test.dart | 2 + tests/language_2/exception/finally_test.dart | 2 + tests/language_2/exception/identity_test.dart | 2 + .../exception/in_increment_test.dart | 2 + .../on_catch_malformed_type_test.dart | 2 + tests/language_2/exception/rethrow_test.dart | 2 + tests/language_2/exception/throw1_test.dart | 2 + tests/language_2/exception/throw2_test.dart | 2 + tests/language_2/exception/throw3_test.dart | 2 + tests/language_2/exception/throw4_test.dart | 2 + tests/language_2/exception/throw5_test.dart | 2 + tests/language_2/exception/throw6_test.dart | 2 + tests/language_2/exception/throw8_test.dart | 2 + .../language_2/exception/throw_expr_test.dart | 2 + tests/language_2/exception/throw_test.dart | 2 + .../language_2/exception/try_catch2_test.dart | 2 + .../language_2/exception/try_catch3_test.dart | 2 + .../language_2/exception/try_catch4_test.dart | 2 + .../language_2/exception/try_catch5_test.dart | 2 + .../exception/try_catch_on_syntax_test.dart | 2 + .../exception/try_catch_optimized1_test.dart | 2 + .../exception/try_catch_optimized2_test.dart | 2 + .../exception/try_catch_optimized3_test.dart | 2 + .../exception/try_catch_optimized4_test.dart | 2 + .../exception/try_catch_optimized5_test.dart | 2 + .../exception/try_catch_osr_test.dart | 2 + .../try_catch_regress_27483_test.dart | 2 + .../exception/try_catch_runtime_test.dart | 2 + .../exception/try_catch_syntax_test.dart | 2 + .../language_2/exception/try_catch_test.dart | 2 + .../try_finally_regress_25333_test.dart | 2 + .../try_finally_regress_25654_test.dart | 2 + tests/language_2/export/ambiguous_main_a.dart | 2 + tests/language_2/export/ambiguous_main_b.dart | 2 + .../export/ambiguous_main_test.dart | 2 + tests/language_2/export/cyclic_helper1.dart | 2 + tests/language_2/export/cyclic_helper2.dart | 2 + tests/language_2/export/cyclic_helper3.dart | 2 + tests/language_2/export/cyclic_test.dart | 2 + .../export/double_same_main_test.dart | 2 + .../export/duplicate_collision_test.dart | 2 + .../export/duplicate_export_test.dart | 2 + .../export/duplicate_import_liba.dart | 2 + .../export/duplicate_import_libb.dart | 2 + .../export/duplicate_import_libc.dart | 2 + .../export/duplicate_import_libd.dart | 2 + tests/language_2/export/duplicate_liba.dart | 2 + tests/language_2/export/export_test.dart | 2 + tests/language_2/export/helper1.dart | 2 + tests/language_2/export/helper2.dart | 2 + tests/language_2/export/helper3.dart | 2 + tests/language_2/export/helper4.dart | 2 + tests/language_2/export/local_a.dart | 2 + tests/language_2/export/local_a_export.dart | 2 + .../language_2/export/local_export_test.dart | 2 + .../language_2/export/main_override_test.dart | 2 + tests/language_2/export/main_test.dart | 2 + .../export/not_shadowed_by_prefix_helper.dart | 2 + .../not_shadowed_by_prefix_helper2.dart | 2 + .../export/not_shadowed_by_prefix_test.dart | 2 + tests/language_2/export/order_helper1.dart | 2 + tests/language_2/export/order_helper2.dart | 2 + tests/language_2/export/order_test.dart | 2 + .../export/private_runtime_test.dart | 2 + tests/language_2/export/private_test.dart | 4 +- .../export/reexport_core_helper.dart | 2 + .../language_2/export/reexport_core_test.dart | 2 + tests/language_2/export/top_level_entry.dart | 2 + .../export/top_level_entry_test.dart | 2 + .../basic_static_extension_test.dart | 2 + .../extension_operation_in_const_test.dart | 2 + .../helpers/also_on_object.dart | 2 + .../helpers/class_no_shadow.dart | 2 + .../helpers/class_shadow.dart | 2 + .../helpers/extension_all.dart | 2 + .../helpers/extension_global_instance.dart | 2 + .../helpers/extension_only.dart | 2 + .../helpers/global_scope.dart | 2 + .../extension_methods/helpers/on_int.dart | 2 + .../extension_methods/helpers/on_object.dart | 2 + .../issue_45551_error_test.dart | 2 + .../static_extension_bounds_error_test.dart | 2 + .../static_extension_constant_error_test.dart | 2 + .../static_extension_constant_lib.dart | 2 + .../static_extension_constant_test.dart | 2 + ...extension_deferred_double_import_test.dart | 2 + ..._extension_deferred_import_error_test.dart | 4 +- ...deferred_import_resolution_error_test.dart | 2 + ...static_extension_deferred_import_test.dart | 2 + ...xtension_getter_setter_conflicts_test.dart | 2 + .../static_extension_getter_setter_test.dart | 2 + ...atic_extension_import_hide_error_test.dart | 2 + .../static_extension_import_hide_test.dart | 2 + ...nsion_import_prefixed_hide_error_test.dart | 2 + ...c_extension_import_prefixed_hide_test.dart | 2 + ...c_extension_import_prefixed_show_test.dart | 2 + ...static_extension_import_prefixed_test.dart | 2 + .../static_extension_import_test.dart | 2 + ...extension_import_unprefixed_show_test.dart | 2 + .../static_extension_inference_test.dart | 2 + ...nternal_basename_shadowing_error_test.dart | 2 + ...sion_internal_basename_shadowing_test.dart | 2 + ...ion_internal_name_conflict_error_test.dart | 2 + ..._extension_internal_resolution_0_test.dart | 2 + ..._extension_internal_resolution_1_test.dart | 2 + ..._extension_internal_resolution_2_test.dart | 2 + ...sion_internal_resolution_3_error_test.dart | 2 + ..._extension_internal_resolution_3_test.dart | 2 + ...sion_internal_resolution_4_error_test.dart | 2 + ..._extension_internal_resolution_4_test.dart | 2 + ..._extension_internal_resolution_5_test.dart | 2 + ...sion_internal_resolution_6_error_test.dart | 2 + ..._extension_internal_resolution_6_test.dart | 2 + ...xtension_operator_override_error_test.dart | 2 + .../static_extension_operators_test.dart | 2 + ...c_extension_prefix_double_import_test.dart | 2 + ...extension_prefix_import_conflict_test.dart | 2 + ...tic_extension_prefix_import_show_test.dart | 2 + .../static_extension_prefix_import_test.dart | 2 + ...ic_extension_resolution_failures_test.dart | 2 + .../static_extension_resolution_test.dart | 2 + ...etter_getter_assignability_error_test.dart | 2 + .../static_extension_silly_types_test.dart | 2 + .../static_extension_syntax_test.dart | 2 + ...xtension_this_not_promoted_error_test.dart | 2 + .../syntax/extension_methods_test.dart | 2 + .../and_instance_variable_runtime_test.dart | 2 + .../factory/and_instance_variable_test.dart | 2 + tests/language_2/factory/arrow_test.dart | 2 + tests/language_2/factory/factory1_test.dart | 2 + tests/language_2/factory/factory2_test.dart | 2 + tests/language_2/factory/factory3_test.dart | 2 + .../factory/factory4_runtime_test.dart | 2 + tests/language_2/factory/factory4_test.dart | 2 + .../factory/factory5_runtime_test.dart | 2 + tests/language_2/factory/factory5_test.dart | 2 + .../factory/factory6_runtime_test.dart | 2 + tests/language_2/factory/factory6_test.dart | 2 + tests/language_2/factory/factory_test.dart | 2 + .../factory/implementation_test.dart | 2 + .../factory/redirection2_runtime_test.dart | 2 + .../language_2/factory/redirection2_test.dart | 2 + .../redirection3_cyclic_runtime_test.dart | 2 + .../factory/redirection3_cyclic_test.dart | 2 + .../language_2/factory/redirection_test.dart | 2 + .../return_type_checked_runtime_test.dart | 2 + .../factory/return_type_checked_test.dart | 2 + tests/language_2/factory/runtime_test.dart | 2 + .../factory/type_parameter2_test.dart | 2 + .../factory/type_parameter_test.dart | 2 + .../factory/with_type_parameters_test.dart | 2 + .../decl_missing_var_type_runtime_test.dart | 2 + .../field/decl_missing_var_type_test.dart | 2 + tests/language_2/field/field1_test.dart | 2 + tests/language_2/field/field2_test.dart | 2 + tests/language_2/field/field3_test.dart | 2 + tests/language_2/field/field4_test.dart | 2 + tests/language_2/field/field5_test.dart | 2 + tests/language_2/field/field6_test.dart | 2 + tests/language_2/field/field_test.dart | 2 + .../field/increment_bailout_test.dart | 2 + tests/language_2/field/inference_test.dart | 2 + .../field/initialization_order_test.dart | 2 + tests/language_2/field/method4_test.dart | 2 + tests/language_2/field/method_test.dart | 2 + .../language_2/field/optimization2_test.dart | 2 + .../language_2/field/optimization3_test.dart | 2 + tests/language_2/field/optimization_test.dart | 2 + tests/language_2/field/override2_test.dart | 2 + tests/language_2/field/override3_test.dart | 2 + tests/language_2/field/override4_test.dart | 2 + .../field/override_optimization_test.dart | 2 + tests/language_2/field/override_test.dart | 2 + tests/language_2/field/parameter_test.dart | 2 + .../language_2/field/super_access2_test.dart | 2 + tests/language_2/field/super_access_test.dart | 2 + tests/language_2/field/type_check2_test.dart | 2 + .../field/type_check_runtime_test.dart | 2 + tests/language_2/field/type_check_test.dart | 2 + tests/language_2/field/wierd_name_test.dart | 2 + ...attempt_reinitialization_runtime_test.dart | 2 + .../final/attempt_reinitialization_test.dart | 2 + .../field_initialization_order_test.dart | 2 + .../language_2/final/field_override_test.dart | 2 + .../final/for_in_variable_test.dart | 2 + .../initializer_instance_reference_test.dart | 2 + tests/language_2/final/is_not_const_test.dart | 2 + tests/language_2/final/param_test.dart | 2 + .../final/super_field_set_test.dart | 2 + tests/language_2/final/syntax_test.dart | 2 + tests/language_2/final/used_in_try_test.dart | 2 + .../variable_assignment_runtime_test.dart | 2 + .../final/variable_assignment_test.dart | 2 + .../function/apply_generic2_test.dart | 2 + .../function/apply_generic_test.dart | 2 + tests/language_2/function/argument_test.dart | 2 + .../function/call_generic_test.dart | 2 + tests/language_2/function/field_test.dart | 2 + tests/language_2/function/function_test.dart | 2 + tests/language_2/function/getter_test.dart | 2 + tests/language_2/function/literals2_test.dart | 2 + tests/language_2/function/literals_test.dart | 2 + tests/language_2/function/local2_test.dart | 2 + tests/language_2/function/local3_test.dart | 2 + .../function/local_function_test.dart | 2 + .../function/local_non_equal_test.dart | 2 + .../malformed_result_type_runtime_test.dart | 2 + .../function/malformed_result_type_test.dart | 2 + .../language_2/function/propagation_test.dart | 2 + .../function/regress_45601_test.dart | 2 + tests/language_2/function/syntax_test.dart | 2 + tests/language_2/function/type2_test.dart | 2 + tests/language_2/function/type3_test.dart | 2 + .../function/type_alias10_test.dart | 2 + .../language_2/function/type_alias2_test.dart | 2 + .../language_2/function/type_alias3_test.dart | 2 + .../language_2/function/type_alias4_test.dart | 2 + .../language_2/function/type_alias5_test.dart | 2 + .../function/type_alias6_runtime_test.dart | 2 + .../language_2/function/type_alias6_test.dart | 4 +- .../language_2/function/type_alias7_test.dart | 2 + .../language_2/function/type_alias8_test.dart | 2 + .../function/type_alias9_runtime_test.dart | 2 + .../language_2/function/type_alias9_test.dart | 6 +- .../language_2/function/type_alias_test.dart | 2 + .../type_call_getter2_runtime_test.dart | 2 + .../function/type_call_getter2_test.dart | 2 + .../function/type_call_getter_test.dart | 2 + .../function/type_in_constant_test.dart | 2 + .../function/type_parameter2_test.dart | 2 + .../function/type_parameter3_test.dart | 2 + .../type_parameter_bound_object_test.dart | 2 + .../function/type_parameter_test.dart | 2 + tests/language_2/function/type_test.dart | 2 + .../function/type_this_parameter_test.dart | 2 + .../function_subtype/bound_closure0_test.dart | 2 + .../function_subtype/bound_closure1_test.dart | 2 + .../function_subtype/bound_closure2_test.dart | 2 + .../function_subtype/bound_closure3_test.dart | 2 + .../function_subtype/bound_closure4_test.dart | 2 + .../function_subtype/bound_closure5_test.dart | 2 + .../bound_closure5a_test.dart | 2 + .../function_subtype/bound_closure6_test.dart | 2 + .../function_subtype/bound_closure7_test.dart | 2 + .../function_subtype/call0_test.dart | 2 + .../function_subtype/call1_test.dart | 2 + .../function_subtype/call2_test.dart | 2 + .../call_type_variable_test.dart | 2 + .../function_subtype/cast0_test.dart | 2 + .../function_subtype/cast1_test.dart | 2 + .../function_subtype/cast2_test.dart | 2 + .../function_subtype/cast3_test.dart | 2 + .../function_subtype/checked0_test.dart | 2 + .../function_subtype/closure0_test.dart | 2 + .../function_subtype/closure1_test.dart | 2 + .../function_subtype/factory0_test.dart | 2 + .../function_subtype/factory1_test.dart | 2 + .../function_subtype0_test.dart | 2 + .../function_subtype1_test.dart | 2 + .../function_subtype2_test.dart | 2 + .../function_subtype3_test.dart | 2 + .../function_subtype/inline0_test.dart | 2 + .../function_subtype/inline1_test.dart | 2 + .../function_subtype/inline2_test.dart | 2 + .../function_subtype/local0_test.dart | 2 + .../function_subtype/local1_test.dart | 2 + .../function_subtype/local2_test.dart | 2 + .../function_subtype/local3_test.dart | 2 + .../function_subtype/local4_test.dart | 2 + .../function_subtype/local5_test.dart | 2 + .../function_subtype/local6_test.dart | 2 + .../function_subtype/named1_test.dart | 2 + .../function_subtype/named2_test.dart | 2 + .../function_subtype/not0_test.dart | 2 + .../function_subtype/not1_test.dart | 2 + .../function_subtype/not2_test.dart | 2 + .../function_subtype/not3_test.dart | 2 + tests/language_2/function_subtype/null.dart | 2 + .../function_subtype/optional1_test.dart | 2 + .../function_subtype/optional2_test.dart | 2 + .../function_subtype/regress41680_test.dart | 2 + .../regression_ddc_588_test.dart | 2 + .../function_subtype/setter0_test.dart | 2 + .../function_subtype/simple0_test.dart | 2 + .../function_subtype/simple1_test.dart | 2 + .../function_subtype/simple2_test.dart | 2 + .../function_subtype/top_level0_test.dart | 2 + .../function_subtype/top_level1_test.dart | 2 + .../function_subtype/typearg0_test.dart | 2 + .../function_subtype/typearg1_test.dart | 2 + .../function_subtype/typearg2_test.dart | 2 + .../function_subtype/typearg3_test.dart | 2 + .../function_subtype/typearg5_test.dart | 2 + .../function_type/function_type0_test.dart | 2 + .../function_type/function_type10_test.dart | 2 + .../function_type/function_type11_test.dart | 2 + .../function_type/function_type12_test.dart | 2 + .../function_type/function_type13_test.dart | 2 + .../function_type/function_type14_test.dart | 2 + .../function_type/function_type15_test.dart | 2 + .../function_type/function_type16_test.dart | 2 + .../function_type/function_type17_test.dart | 2 + .../function_type/function_type18_test.dart | 2 + .../function_type/function_type19_test.dart | 2 + .../function_type/function_type1_test.dart | 2 + .../function_type/function_type20_test.dart | 2 + .../function_type/function_type21_test.dart | 2 + .../function_type/function_type22_test.dart | 2 + .../function_type/function_type23_test.dart | 2 + .../function_type/function_type24_test.dart | 2 + .../function_type/function_type25_test.dart | 2 + .../function_type/function_type26_test.dart | 2 + .../function_type/function_type27_test.dart | 2 + .../function_type/function_type28_test.dart | 2 + .../function_type/function_type29_test.dart | 2 + .../function_type/function_type2_test.dart | 2 + .../function_type/function_type30_test.dart | 2 + .../function_type/function_type31_test.dart | 2 + .../function_type/function_type32_test.dart | 2 + .../function_type/function_type33_test.dart | 2 + .../function_type/function_type34_test.dart | 2 + .../function_type/function_type35_test.dart | 2 + .../function_type/function_type36_test.dart | 2 + .../function_type/function_type37_test.dart | 2 + .../function_type/function_type38_test.dart | 2 + .../function_type/function_type39_test.dart | 2 + .../function_type/function_type3_test.dart | 2 + .../function_type/function_type40_test.dart | 2 + .../function_type/function_type41_test.dart | 2 + .../function_type/function_type42_test.dart | 2 + .../function_type/function_type43_test.dart | 2 + .../function_type/function_type44_test.dart | 2 + .../function_type/function_type45_test.dart | 2 + .../function_type/function_type46_test.dart | 2 + .../function_type/function_type47_test.dart | 2 + .../function_type/function_type48_test.dart | 2 + .../function_type/function_type49_test.dart | 2 + .../function_type/function_type4_test.dart | 2 + .../function_type/function_type50_test.dart | 2 + .../function_type/function_type51_test.dart | 2 + .../function_type/function_type52_test.dart | 2 + .../function_type/function_type53_test.dart | 2 + .../function_type/function_type54_test.dart | 2 + .../function_type/function_type55_test.dart | 2 + .../function_type/function_type56_test.dart | 2 + .../function_type/function_type57_test.dart | 2 + .../function_type/function_type58_test.dart | 2 + .../function_type/function_type59_test.dart | 2 + .../function_type/function_type5_test.dart | 2 + .../function_type/function_type60_test.dart | 2 + .../function_type/function_type61_test.dart | 2 + .../function_type/function_type62_test.dart | 2 + .../function_type/function_type63_test.dart | 2 + .../function_type/function_type64_test.dart | 2 + .../function_type/function_type65_test.dart | 2 + .../function_type/function_type66_test.dart | 2 + .../function_type/function_type67_test.dart | 2 + .../function_type/function_type68_test.dart | 2 + .../function_type/function_type69_test.dart | 2 + .../function_type/function_type6_test.dart | 2 + .../function_type/function_type70_test.dart | 2 + .../function_type/function_type71_test.dart | 2 + .../function_type/function_type72_test.dart | 2 + .../function_type/function_type73_test.dart | 2 + .../function_type/function_type74_test.dart | 2 + .../function_type/function_type75_test.dart | 2 + .../function_type/function_type76_test.dart | 2 + .../function_type/function_type77_test.dart | 2 + .../function_type/function_type78_test.dart | 2 + .../function_type/function_type79_test.dart | 2 + .../function_type/function_type7_test.dart | 2 + .../function_type/function_type80_test.dart | 2 + .../function_type/function_type81_test.dart | 2 + .../function_type/function_type82_test.dart | 2 + .../function_type/function_type83_test.dart | 2 + .../function_type/function_type84_test.dart | 2 + .../function_type/function_type85_test.dart | 2 + .../function_type/function_type86_test.dart | 2 + .../function_type/function_type87_test.dart | 2 + .../function_type/function_type88_test.dart | 2 + .../function_type/function_type89_test.dart | 2 + .../function_type/function_type8_test.dart | 2 + .../function_type/function_type90_test.dart | 2 + .../function_type/function_type91_test.dart | 2 + .../function_type/function_type92_test.dart | 2 + .../function_type/function_type93_test.dart | 2 + .../function_type/function_type94_test.dart | 2 + .../function_type/function_type95_test.dart | 2 + .../function_type/function_type96_test.dart | 2 + .../function_type/function_type97_test.dart | 2 + .../function_type/function_type98_test.dart | 2 + .../function_type/function_type99_test.dart | 2 + .../function_type/function_type9_test.dart | 2 + .../function_type/test_generator.dart | 2 + tests/language_2/generic/async_star_test.dart | 2 + tests/language_2/generic/async_test.dart | 2 + ...ascaded_forwarding_stubs_generic_test.dart | 2 + tests/language_2/generic/closure_test.dart | 2 + ...terfaces_hierarchy_loop_infinite_test.dart | 2 + ...eneric_interfaces_hierarchy_loop_test.dart | 2 + ...g_generic_interfaces_no_conflict_test.dart | 2 + ...icting_generic_interfaces_simple_test.dart | 2 + .../constructor_mixin2_runtime_test.dart | 2 + .../generic/constructor_mixin2_test.dart | 2 + .../constructor_mixin3_runtime_test.dart | 2 + .../generic/constructor_mixin3_test.dart | 2 + .../constructor_mixin_runtime_test.dart | 2 + .../generic/constructor_mixin_test.dart | 2 + tests/language_2/generic/creation_test.dart | 2 + tests/language_2/generic/deep_test.dart | 2 + .../generic/f_bounded_equality_test.dart | 2 + .../f_bounded_quantification2_test.dart | 2 + .../f_bounded_quantification3_test.dart | 2 + .../f_bounded_quantification4_test.dart | 2 + .../f_bounded_quantification5_test.dart | 2 + ...f_bounded_quantification_runtime_test.dart | 2 + .../f_bounded_quantification_test.dart | 2 + .../language_2/generic/field_mixin2_test.dart | 2 + .../language_2/generic/field_mixin3_test.dart | 2 + .../language_2/generic/field_mixin4_test.dart | 2 + .../language_2/generic/field_mixin5_test.dart | 2 + .../generic/field_mixin6_runtime_test.dart | 2 + .../language_2/generic/field_mixin6_test.dart | 2 + .../language_2/generic/field_mixin_test.dart | 2 + .../generic/function_bounds_test.dart | 2 + .../generic/function_dcall_test.dart | 2 + ...e_parametrized_typedef_runtime_1_test.dart | 2 + ...e_parametrized_typedef_runtime_2_test.dart | 2 + ...e_parametrized_typedef_runtime_3_test.dart | 2 + ...ype_parametrized_typedef_runtime_test.dart | 2 + ...ion_subtype_parametrized_typedef_test.dart | 2 + .../function_subtype_runtime_1_test.dart | 2 + .../function_subtype_runtime_2_test.dart | 2 + .../function_subtype_runtime_test.dart | 2 + .../generic/function_subtype_test.dart | 2 + ..._type_as_type_argument_runtime_1_test.dart | 2 + ...on_type_as_type_argument_runtime_test.dart | 2 + .../function_type_as_type_argument_test.dart | 2 + .../function_typedef2_runtime_test.dart | 2 + .../generic/function_typedef2_test.dart | 2 + .../generic/function_typedef_test.dart | 2 + tests/language_2/generic/functions_test.dart | 2 + tests/language_2/generic/generic2_test.dart | 2 + tests/language_2/generic/generic_test.dart | 2 + tests/language_2/generic/generics2_test.dart | 2 + tests/language_2/generic/generics3_test.dart | 2 + tests/language_2/generic/generics_test.dart | 2 + .../language_2/generic/inheritance_test.dart | 2 + tests/language_2/generic/instanceof.dart | 2 + .../language_2/generic/instanceof2_test.dart | 2 + .../language_2/generic/instanceof3_test.dart | 2 + .../language_2/generic/instanceof4_test.dart | 2 + .../language_2/generic/instanceof5_test.dart | 2 + tests/language_2/generic/instanceof_test.dart | 2 + ...aroff_after_contravariance_check_test.dart | 2 + .../instantiate_tearoff_of_call_test.dart | 2 + .../generic/instantiate_tearoff_test.dart | 2 + ...tantiate_to_bounds_super_bounded_test.dart | 2 + ...nstantiate_type_variable_runtime_test.dart | 2 + .../instantiate_type_variable_test.dart | 2 + tests/language_2/generic/is_check_test.dart | 2 + .../language_2/generic/list_checked_test.dart | 2 + .../generic/local_functions_test.dart | 2 + .../generic/many_generic_instanceof_test.dart | 2 + .../metadata_in_function_body_test.dart | 2 + .../generic/metadata_runtime_1_test.dart | 2 + .../generic/metadata_runtime_test.dart | 2 + tests/language_2/generic/metadata_test.dart | 2 + .../language_2/generic/method_types_test.dart | 2 + tests/language_2/generic/mock_test.dart | 2 + tests/language_2/generic/native_test.dart | 2 + .../no_such_method_dispatcher_test.dart | 2 + .../language_2/generic/object_type_test.dart | 2 + .../generic/parameterized_extends_test.dart | 2 + .../generic/recursive_generic_test.dart | 2 + .../generic/reify_typevar_runtime_1_test.dart | 2 + .../generic/reify_typevar_runtime_2_test.dart | 2 + .../generic/reify_typevar_runtime_3_test.dart | 2 + .../generic/reify_typevar_runtime_test.dart | 2 + .../generic/reify_typevar_static_test.dart | 2 + .../generic/self_reference_test.dart | 2 + tests/language_2/generic/sends_test.dart | 2 + tests/language_2/generic/sync_star_test.dart | 2 + tests/language_2/generic/syntax_test.dart | 2 + tests/language_2/generic/tearoff_test.dart | 2 + .../type_argument_in_super_type_test.dart | 2 + .../type_argument_substitution_test.dart | 2 + .../generic/type_parameter_literal_test.dart | 2 + .../generic/type_parameter_test.dart | 2 + tests/language_2/generic/typedef_test.dart | 2 + ...ng_number_type_arguments_runtime_test.dart | 2 + .../wrong_number_type_arguments_test.dart | 6 +- .../generic_methods/bounds_test.dart | 2 + .../generic_methods/closure_test.dart | 2 + .../generic_methods/dynamic_test.dart | 2 + .../generic_methods/function_type_test.dart | 2 + .../generic_class_tearoff_test.dart | 2 + .../generic_function_parameter_test.dart | 2 + .../generic_function_result_runtime_test.dart | 2 + .../generic_function_result_test.dart | 2 + .../generic_methods/generic_methods_test.dart | 2 + .../local_variable_declaration_test.dart | 2 + .../named_parameters_test.dart | 2 + .../language_2/generic_methods/new_test.dart | 2 + .../optional_parameters_test.dart | 2 + .../generic_methods/overriding_test.dart | 2 + .../generic_methods/recursive_bound_test.dart | 2 + .../reuse_type_variables_test.dart | 2 + .../generic_methods/shadowing_test.dart | 2 + .../simple_as_expression_test.dart | 2 + .../simple_is_expression_test.dart | 2 + .../tearoff_specialization_test.dart | 2 + .../generic_methods/type_expression_test.dart | 2 + .../unused_parameter_test.dart | 2 + .../getter/closure_execution_order_test.dart | 2 + tests/language_2/getter/declaration_test.dart | 2 + .../getter/no_setter2_runtime_test.dart | 2 + tests/language_2/getter/no_setter2_test.dart | 2 + .../getter/no_setter_runtime_test.dart | 2 + tests/language_2/getter/no_setter_test.dart | 2 + tests/language_2/getter/override2_test.dart | 2 + tests/language_2/getter/override3_test.dart | 2 + tests/language_2/getter/override_test.dart | 2 + .../getter/parameters_runtime_test.dart | 2 + tests/language_2/getter/parameters_test.dart | 10 +- .../getter/setter2_runtime_test.dart | 2 + tests/language_2/getter/setter2_test.dart | 2 + .../getter/setter_getters_setters_test.dart | 2 + tests/language_2/getter/setter_in_lib.dart | 2 + tests/language_2/getter/setter_in_lib2.dart | 2 + tests/language_2/getter/setter_in_lib3.dart | 2 + .../language_2/getter/setter_in_lib_test.dart | 2 + .../getter/setter_interceptor_test.dart | 2 + .../language_2/getter/setter_order_test.dart | 2 + .../language_2/getter/setter_type2_test.dart | 2 + .../language_2/getter/setter_type3_test.dart | 2 + .../getter/setter_type_runtime_test.dart | 2 + tests/language_2/getter/setter_type_test.dart | 2 + .../getter/syntax_get_set_syntax_test.dart | 69 ++-- .../getter/syntax_runtime_1_test.dart | 2 + .../getter/syntax_runtime_test.dart | 2 + tests/language_2/getter/unbound_test.dart | 2 + .../identifier/built_in_identifier_test.dart | 2 + .../built_in_illegal_runtime_test.dart | 2 + .../identifier/built_in_illegal_test.dart | 84 ++--- .../identifier/built_in_not_prefix_test.dart | 2 + .../built_in_prefix_library_async.dart | 2 + .../built_in_prefix_library_await.dart | 2 + .../built_in_prefix_library_hide.dart | 2 + .../built_in_prefix_library_library.dart | 2 + .../built_in_prefix_library_of.dart | 2 + .../built_in_prefix_library_on.dart | 2 + .../built_in_prefix_library_show.dart | 2 + .../built_in_prefix_library_sync.dart | 2 + .../built_in_prefix_library_yield.dart | 2 + .../built_in_type_annotation_test.dart | 2 + .../known_prefix_error_runtime_test.dart | 2 + .../identifier/known_prefix_error_test.dart | 32 +- .../identifier/known_prefix_test.dart | 2 + .../known_usage_error_runtime_test.dart | 2 + .../identifier/known_usage_error_test.dart | 2 + .../identifier/known_usage_test.dart | 2 + tests/language_2/identifier/naming2_test.dart | 2 + tests/language_2/identifier/naming3_test.dart | 2 + tests/language_2/identifier/naming_test.dart | 2 + tests/language_2/identity/closure2_test.dart | 2 + tests/language_2/identity/closure_test.dart | 2 + tests/language_2/identity/const_test.dart | 2 + tests/language_2/identity/identical_test.dart | 2 + .../identity/mint_identical_test.dart | 2 + .../identity/nan_identical_test.dart | 2 + .../identity/strict_equal_test.dart | 2 + tests/language_2/if/and_test.dart | 2 + tests/language_2/if/dangling_else_test.dart | 2 + tests/language_2/if/if_test.dart | 2 + tests/language_2/if/nested_if_test.dart | 2 + .../assignment_behavior_runtime_10_test.dart | 2 + .../assignment_behavior_runtime_13_test.dart | 2 + .../assignment_behavior_runtime_14_test.dart | 2 + .../assignment_behavior_runtime_15_test.dart | 2 + .../assignment_behavior_runtime_16_test.dart | 2 + .../assignment_behavior_runtime_17_test.dart | 2 + .../assignment_behavior_runtime_18_test.dart | 2 + .../assignment_behavior_runtime_19_test.dart | 2 + .../assignment_behavior_runtime_1_test.dart | 2 + .../assignment_behavior_runtime_20_test.dart | 2 + .../assignment_behavior_runtime_21_test.dart | 2 + .../assignment_behavior_runtime_22_test.dart | 2 + .../assignment_behavior_runtime_23_test.dart | 2 + .../assignment_behavior_runtime_24_test.dart | 2 + .../assignment_behavior_runtime_25_test.dart | 2 + .../assignment_behavior_runtime_26_test.dart | 2 + .../assignment_behavior_runtime_27_test.dart | 2 + .../assignment_behavior_runtime_2_test.dart | 2 + .../assignment_behavior_runtime_3_test.dart | 2 + .../assignment_behavior_runtime_4_test.dart | 2 + .../assignment_behavior_runtime_5_test.dart | 2 + .../assignment_behavior_runtime_6_test.dart | 2 + .../assignment_behavior_runtime_7_test.dart | 2 + .../assignment_behavior_runtime_8_test.dart | 2 + .../assignment_behavior_runtime_9_test.dart | 2 + .../assignment_behavior_runtime_test.dart | 2 + .../if_null/assignment_behavior_test.dart | 2 + .../language_2/if_null/assignment_helper.dart | 2 + .../if_null/assignment_static_test.dart | 2 + tests/language_2/if_null/behavior_test.dart | 2 + .../if_null/evaluation_order_test.dart | 2 + .../if_null/precedence_runtime_test.dart | 2 + tests/language_2/if_null/precedence_test.dart | 2 + ...ontext_constructor_generic_named_test.dart | 2 + ...onst_context_constructor_generic_test.dart | 2 + ..._const_context_constructor_named_test.dart | 2 + ...plicit_const_context_constructor_test.dart | 2 + .../implicit_const_context_list_test.dart | 2 + .../implicit_const_context_map_test.dart | 2 + .../implicit_const_context_not_test.dart | 2 + ...prefix_constructor_generic_named_test.dart | 2 + ...ntext_prefix_constructor_generic_test.dart | 2 + ...context_prefix_constructor_named_test.dart | 2 + ...const_context_prefix_constructor_test.dart | 2 + ...mplicit_const_not_default_values_test.dart | 2 + ...it_new_constructor_generic_named_test.dart | 2 + ...implicit_new_constructor_generic_test.dart | 2 + .../implicit_new_constructor_named_test.dart | 2 + .../implicit_new_constructor_test.dart | 2 + .../implicit_new_or_const_composite_test.dart | 2 + .../implicit_new_or_const_generic_test.dart | 2 + .../implicit_new_or_const_test.dart | 2 + ...prefix_constructor_generic_named_test.dart | 2 + ...t_new_prefix_constructor_generic_test.dart | 2 + ...cit_new_prefix_constructor_named_test.dart | 2 + .../implicit_new_prefix_constructor_test.dart | 2 + .../assert_initializer_test.dart | 2 + .../assert_statement_test.dart | 2 + .../assignment_test.dart | 2 + .../combiner_test.dart | 2 + .../compound_assignment_test.dart | 2 + .../conditional_expression_test.dart | 2 + .../constructor_initializer_test.dart | 2 + .../constructor_invocation_test.dart | 2 + .../implicit_downcast_during/do_test.dart | 2 + .../factory_constructor_invocation_test.dart | 2 + .../field_declaration_test.dart | 2 + .../for_condition_test.dart | 2 + .../for_in_element_test.dart | 2 + .../for_in_iterable_test.dart | 2 + .../for_initializer_expression_test.dart | 2 + .../for_initializer_var_test.dart | 2 + .../function_literal_arrow_test.dart | 2 + .../function_literal_return_test.dart | 2 + .../if_null_assignment_test.dart | 2 + .../if_statement_test.dart | 2 + .../indexed_assignment_test.dart | 2 + .../indexed_compound_assignment_test.dart | 2 + .../indexed_get_test.dart | 2 + .../indexed_if_null_assignment_test.dart | 2 + .../invocation_test.dart | 2 + .../list_literal_test.dart | 2 + .../logical_expression_test.dart | 2 + .../map_literal_test.dart | 2 + .../method_invocation_test.dart | 2 + .../implicit_downcast_during/not_test.dart | 2 + .../null_aware_method_invocation_test.dart | 2 + .../redirecting_initializer_test.dart | 2 + .../return_async_test.dart | 2 + .../implicit_downcast_during/return_test.dart | 2 + .../static_method_invocation_test.dart | 2 + .../super_initializer_test.dart | 2 + .../super_method_invocation_test.dart | 2 + .../variable_declaration_test.dart | 2 + .../while_statement_test.dart | 2 + .../yield_star_test.dart | 2 + .../implicit_downcast_during/yield_test.dart | 2 + .../import/collection_no_prefix_test.dart | 2 + .../import/combinators2_runtime_test.dart | 2 + .../language_2/import/combinators2_test.dart | 2 + tests/language_2/import/combinators_part.dart | 2 + tests/language_2/import/combinators_test.dart | 2 + .../import/conditional_import_test.dart | 2 + .../import/conditional_string_test.dart | 2 + .../import/config_corelib_general.dart | 2 + .../import/config_corelib_http.dart | 2 + .../language_2/import/config_corelib_io.dart | 2 + .../import/config_corelib_test.dart | 2 + .../import/core_no_prefix_test.dart | 2 + tests/language_2/import/core_prefix_test.dart | 2 + tests/language_2/import/core_test.dart | 2 + tests/language_2/import/cyclic_test.dart | 2 + .../import/duplicate_import_liba.dart | 2 + tests/language_2/import/duplicate_libb.dart | 2 + .../import/duplicate_prefix_test.dart | 2 + tests/language_2/import/export1_lib.dart | 2 + .../language_2/import/hidden_import_test.dart | 2 + tests/language_2/import/hidden_lib.dart | 2 + .../import/hidden_runtime_test.dart | 2 + tests/language_2/import/import1_lib.dart | 2 + .../import/internal_library_runtime_test.dart | 2 + .../import/internal_library_test.dart | 33 -- tests/language_2/import/name_clash_lib1.dart | 2 + tests/language_2/import/name_clash_lib2.dart | 2 + tests/language_2/import/name_clash_test.dart | 2 + .../nonexisting_dart_uri_runtime_test.dart | 2 + .../import/nonexisting_dart_uri_test.dart | 2 + .../import/private_runtime_test.dart | 2 + tests/language_2/import/private_test.dart | 2 + .../language_2/import/self_runtime_test.dart | 2 + tests/language_2/import/self_test.dart | 2 + tests/language_2/import/show_lib.dart | 2 + tests/language_2/import/show_test.dart | 2 + tests/language_2/import/sub/sub.dart | 2 + ...ransitive_private_library_access_test.dart | 2 + .../accessor_ref_runtime_1_test.dart | 2 + .../accessor_ref_runtime_2_test.dart | 2 + .../accessor_ref_runtime_3_test.dart | 2 + .../accessor_ref_runtime_4_test.dart | 2 + .../inference/accessor_ref_runtime_test.dart | 2 + .../inference/accessor_ref_test.dart | 2 + .../inference/circularity_test.dart | 2 + .../inconsistent_inheritance_test.dart | 2 + .../initializing_formal/access_test.dart | 2 + .../initializing_formal/capture_test.dart | 2 + .../initializing_formal/final_test.dart | 2 + .../initializing_formal/promotion_test.dart | 2 + .../initializing_formal/scope_test.dart | 2 + .../type_annotation_runtime_test.dart | 2 + .../type_annotation_test.dart | 2 + .../initializing_formal/type_test.dart | 2 + .../call_wrong_argument_count_test.dart | 2 + .../compound_assignment_operator_test.dart | 2 + .../instance/field_initializer_test.dart | 2 + .../language_2/instance/incr_deopt_test.dart | 2 + tests/language_2/instance/inline_test.dart | 2 + tests/language_2/instance/method2_test.dart | 2 + tests/language_2/instance/method_test.dart | 2 + .../interceptor/interceptor2_test.dart | 2 + .../interceptor/interceptor3_test.dart | 2 + .../interceptor/interceptor4_test.dart | 2 + .../interceptor/interceptor5_test.dart | 2 + .../interceptor/interceptor7_test.dart | 2 + .../interceptor/interceptor8_test.dart | 2 + .../interceptor/interceptor9_test.dart | 2 + .../interceptor/interceptor_test.dart | 2 + .../language_2/interface/constants_test.dart | 2 + tests/language_2/interface/cycle_test.dart | 2 + .../interface/duplicate_implements_test.dart | 2 + ...ate_interface_implements_runtime_test.dart | 2 + .../duplicate_interface_implements_test.dart | 2 + .../interface/duplicate_interface_lib.dart | 2 + .../interface/duplicate_interface_test.dart | 2 + .../implements_futureor_runtime_test.dart | 2 + .../interface/implements_futureor_test.dart | 2 + .../interface/inherit_field_test.dart | 2 + .../interface/injection1_runtime_test.dart | 2 + .../language_2/interface/injection1_test.dart | 2 + .../interface/injection2_runtime_test.dart | 2 + .../language_2/interface/injection2_test.dart | 2 + .../language_2/interface/interface2_test.dart | 2 + .../language_2/interface/interface_test.dart | 2 + tests/language_2/interface/runtime_test.dart | 2 + .../interface/static_method_test.dart | 2 + .../async_invalid_return_00_test.dart | 2 + .../async_invalid_return_01_test.dart | 2 + .../async_invalid_return_02_test.dart | 2 + .../async_invalid_return_03_test.dart | 2 + .../async_invalid_return_04_test.dart | 2 + .../async_invalid_return_05_test.dart | 2 + .../async_invalid_return_08_test.dart | 2 + .../async_invalid_return_11_test.dart | 2 + .../async_invalid_return_14_test.dart | 2 + .../async_invalid_return_17_test.dart | 2 + .../async_invalid_return_20_test.dart | 2 + .../async_invalid_return_23_test.dart | 2 + .../async_invalid_return_24_test.dart | 2 + .../async_invalid_return_25_test.dart | 2 + .../async_invalid_return_26_test.dart | 2 + .../async_invalid_return_27_test.dart | 2 + .../async_invalid_return_28_test.dart | 2 + .../async_invalid_return_29_test.dart | 2 + .../async_invalid_return_30_test.dart | 2 + .../async_invalid_return_31_test.dart | 2 + .../async_invalid_return_32_test.dart | 2 + .../async_invalid_return_33_test.dart | 2 + .../async_invalid_return_34_test.dart | 2 + .../async_invalid_return_35_test.dart | 2 + .../async_invalid_return_36_test.dart | 2 + .../async_invalid_return_37_test.dart | 2 + .../async_invalid_return_38_test.dart | 2 + .../async_invalid_return_39_test.dart | 2 + .../async_invalid_return_40_test.dart | 2 + .../async_invalid_return_41_test.dart | 2 + .../async_invalid_return_42_test.dart | 2 + .../async_invalid_return_43_test.dart | 2 + .../async_invalid_return_44_test.dart | 2 + .../async_invalid_return_45_test.dart | 2 + .../async_valid_returns_test.dart | 2 + .../sync_invalid_return_00_test.dart | 2 + .../sync_invalid_return_01_test.dart | 2 + .../sync_invalid_return_02_test.dart | 2 + .../sync_invalid_return_03_test.dart | 2 + .../sync_invalid_return_04_test.dart | 2 + .../sync_invalid_return_05_test.dart | 2 + .../sync_invalid_return_06_test.dart | 2 + .../sync_invalid_return_07_test.dart | 2 + .../sync_invalid_return_08_test.dart | 2 + .../sync_invalid_return_09_test.dart | 2 + .../sync_invalid_return_10_test.dart | 2 + .../sync_invalid_return_11_test.dart | 2 + .../sync_invalid_return_12_test.dart | 2 + .../sync_invalid_return_13_test.dart | 2 + .../sync_invalid_return_14_test.dart | 2 + .../sync_invalid_return_15_test.dart | 2 + .../sync_invalid_return_16_test.dart | 2 + .../sync_invalid_return_17_test.dart | 2 + .../sync_invalid_return_18_test.dart | 2 + .../sync_invalid_return_19_test.dart | 2 + .../sync_invalid_return_20_test.dart | 2 + .../sync_invalid_return_21_test.dart | 2 + .../sync_invalid_return_22_test.dart | 2 + .../sync_invalid_return_23_test.dart | 2 + .../sync_invalid_return_24_test.dart | 2 + .../sync_invalid_return_25_test.dart | 2 + .../sync_invalid_return_26_test.dart | 2 + .../sync_valid_returns_test.dart | 2 + tests/language_2/is/function_test.dart | 2 + tests/language_2/is/instanceof_test.dart | 2 + tests/language_2/is/interfaces2_test.dart | 2 + tests/language_2/is/interfaces_test.dart | 2 + tests/language_2/is/is2_test.dart | 2 + tests/language_2/is/is4_test.dart | 2 + .../is/isnot_malformed_type_runtime_test.dart | 2 + .../is/isnot_malformed_type_test.dart | 2 + .../is/malformed_type_runtime_test.dart | 2 + tests/language_2/is/malformed_type_test.dart | 2 + tests/language_2/is/nan_test.dart | 2 + tests/language_2/is/not_class1_test.dart | 9 +- .../is/not_class2_runtime_test.dart | 2 + tests/language_2/is/not_class2_test.dart | 2 + tests/language_2/is/not_class4_test.dart | 2 + tests/language_2/is/object_test.dart | 2 + tests/language_2/is/operator_clash_test.dart | 2 + tests/language_2/is/operator_test.dart | 2 + tests/language_2/is/optimized_test.dart | 2 + .../label/label3_runtime_1_test.dart | 2 + .../language_2/label/label3_runtime_test.dart | 2 + tests/language_2/label/label3_test.dart | 2 + .../language_2/label/label5_runtime_test.dart | 2 + tests/language_2/label/label5_test.dart | 2 + .../label/label6_runtime_1_test.dart | 2 + .../label/label6_runtime_2_test.dart | 2 + .../language_2/label/label6_runtime_test.dart | 2 + tests/language_2/label/label6_test.dart | 2 + .../language_2/label/label8_runtime_test.dart | 2 + tests/language_2/label/label8_test.dart | 2 + tests/language_2/label/label_test.dart | 2 + tests/language_2/lazy/map_test.dart | 2 + tests/language_2/lazy/static2_test.dart | 2 + tests/language_2/lazy/static3_test.dart | 2 + tests/language_2/lazy/static4_test.dart | 2 + tests/language_2/lazy/static5_test.dart | 2 + tests/language_2/lazy/static6_src.dart | 2 + tests/language_2/lazy/static6_test.dart | 2 + tests/language_2/lazy/static7_test.dart | 2 + tests/language_2/lazy/static8_test.dart | 2 + tests/language_2/lazy/static_test.dart | 2 + .../lazy/throwing_variable_test.dart | 2 + .../expansive_runtime_test.dart | 2 + .../least_upper_bound/expansive_test.dart | 2 + .../least_upper_bound_test.dart | 2 + .../least_upper_bound/runtime_10_test.dart | 2 + .../least_upper_bound/runtime_11_test.dart | 2 + .../least_upper_bound/runtime_12_test.dart | 2 + .../least_upper_bound/runtime_13_test.dart | 2 + .../least_upper_bound/runtime_14_test.dart | 2 + .../least_upper_bound/runtime_15_test.dart | 2 + .../least_upper_bound/runtime_16_test.dart | 2 + .../least_upper_bound/runtime_17_test.dart | 2 + .../least_upper_bound/runtime_18_test.dart | 2 + .../least_upper_bound/runtime_19_test.dart | 2 + .../least_upper_bound/runtime_1_test.dart | 2 + .../least_upper_bound/runtime_20_test.dart | 2 + .../least_upper_bound/runtime_21_test.dart | 2 + .../least_upper_bound/runtime_22_test.dart | 2 + .../least_upper_bound/runtime_2_test.dart | 2 + .../least_upper_bound/runtime_3_test.dart | 2 + .../least_upper_bound/runtime_4_test.dart | 2 + .../least_upper_bound/runtime_5_test.dart | 2 + .../least_upper_bound/runtime_6_test.dart | 2 + .../least_upper_bound/runtime_7_test.dart | 2 + .../least_upper_bound/runtime_8_test.dart | 2 + .../least_upper_bound/runtime_9_test.dart | 2 + .../least_upper_bound/runtime_test.dart | 2 + tests/language_2/library/a.dart | 2 + tests/language_2/library/ambiguous_test.dart | 2 + tests/language_2/library/b.dart | 2 + tests/language_2/library/c.dart | 2 + tests/language_2/library/d.dart | 2 + tests/language_2/library/e.dart | 2 + tests/language_2/library/env_test.dart | 2 + tests/language_2/library/f.dart | 2 + .../language_2/library/juxtaposition_lib.dart | 2 + .../library/juxtaposition_part.dart | 2 + .../library/juxtaposition_test.dart | 2 + tests/language_2/library/library1.dart | 2 + tests/language_2/library/library1_lib.dart | 2 + tests/language_2/library/library1_test.dart | 2 + tests/language_2/library/library2.dart | 2 + tests/language_2/library/library3.dart | 2 + tests/language_2/library/library4.dart | 2 + tests/language_2/library/library5_test.dart | 2 + tests/language_2/library/library5a.dart | 2 + tests/language_2/library/library5b.dart | 2 + tests/language_2/library/library6.dart | 2 + tests/language_2/library/library_test.dart | 2 + tests/language_2/library/prefixes.dart | 2 + tests/language_2/library/prefixes_test.dart | 2 + tests/language_2/library/prefixes_test1.dart | 2 + tests/language_2/library/prefixes_test2.dart | 2 + .../library/private_in_constructor_a.dart | 2 + .../library/private_in_constructor_b.dart | 2 + .../library/private_in_constructor_test.dart | 2 + .../library/same_name_used_lib1.dart | 2 + .../library/same_name_used_lib2.dart | 2 + .../library/same_name_used_test.dart | 2 + tests/language_2/library1.dart | 2 + tests/language_2/library10.dart | 2 + tests/language_2/library11.dart | 2 + tests/language_2/library12.dart | 2 + tests/language_2/library2.dart | 2 + .../list/double_index_in_loop2_test.dart | 2 + .../list/double_index_in_loop_test.dart | 2 + tests/language_2/list/in_closure_test.dart | 2 + tests/language_2/list/is_test.dart | 2 + tests/language_2/list/length_tracer_test.dart | 2 + tests/language_2/list/list_test.dart | 2 + .../list/literal1_runtime_test.dart | 2 + tests/language_2/list/literal1_test.dart | 2 + tests/language_2/list/literal2_test.dart | 2 + tests/language_2/list/literal3_test.dart | 2 + tests/language_2/list/literal4_test.dart | 2 + tests/language_2/list/literal5_test.dart | 2 + tests/language_2/list/literal6_test.dart | 2 + .../language_2/list/literal_syntax_test.dart | 2 + tests/language_2/list/literal_test.dart | 2 + tests/language_2/list/mixin_test.dart | 2 + .../list/tracer_call_last_test.dart | 2 + .../language_2/list/tracer_closure_test.dart | 2 + .../language_2/list/tracer_in_list_test.dart | 2 + tests/language_2/list/tracer_in_map_test.dart | 2 + ...acer_return_from_tearoff_closure_test.dart | 2 + .../loop/break_outside_loop_runtime_test.dart | 2 + .../loop/break_outside_loop_test.dart | 2 + tests/language_2/loop/break_test.dart | 2 + tests/language_2/loop/continue_test.dart | 2 + tests/language_2/loop/do_while2_test.dart | 2 + tests/language_2/loop/do_while3_test.dart | 2 + tests/language_2/loop/do_while4_test.dart | 2 + tests/language_2/loop/do_while_test.dart | 2 + tests/language_2/loop/exchange2_test.dart | 2 + tests/language_2/loop/exchange3_test.dart | 2 + tests/language_2/loop/exchange4_test.dart | 2 + .../loop/exchange_loop_exchange_test.dart | 2 + .../language_2/loop/exhaustive_for_test.dart | 2 + tests/language_2/loop/for2_test.dart | 2 + tests/language_2/loop/for_in2_test.dart | 2 + tests/language_2/loop/for_in3_test.dart | 2 + .../loop/for_in_side_effects_test.dart | 2 + tests/language_2/loop/for_in_test.dart | 2 + tests/language_2/loop/for_inlining_test.dart | 2 + tests/language_2/loop/for_runtime_test.dart | 2 + tests/language_2/loop/for_test.dart | 2 + .../loop/for_variable_capture_test.dart | 2 + .../loop/for_without_condition_test.dart | 2 + tests/language_2/loop/hoist_test.dart | 2 + .../loop/non_dominating_loop_test.dart | 2 + .../loop/unconditional_break_test.dart | 2 + tests/language_2/loop/while_test.dart | 2 + tests/language_2/main/main_test.dart | 2 + tests/language_2/main/no_main_test.dart | 2 + .../language_2/main/not_a_function_test.dart | 2 + .../instantiation_runtime_test.dart | 2 + .../malbounded/instantiation_test.dart | 2 + .../malbounded/redirecting_factory_test.dart | 2 + .../malbounded/type_cast2_test.dart | 2 + .../malbounded/type_cast_runtime_test.dart | 2 + .../language_2/malbounded/type_cast_test.dart | 2 + .../malbounded/type_literal_runtime_test.dart | 2 + .../malbounded/type_literal_test.dart | 2 + .../malbounded/type_test2_runtime_test.dart | 2 + .../malbounded/type_test2_test.dart | 2 + .../malbounded/type_test_runtime_test.dart | 2 + .../language_2/malbounded/type_test_test.dart | 2 + tests/language_2/malformed/bound_test.dart | 2 + .../malformed/inheritance_runtime_test.dart | 2 + .../malformed/inheritance_test.dart | 2 + .../language_2/malformed/malformed2_lib.dart | 2 + .../language_2/malformed/malformed2_test.dart | 2 + .../language_2/malformed/malformed_test.dart | 2 + tests/language_2/malformed/runtime_test.dart | 2 + tests/language_2/malformed/type_test.dart | 2 + tests/language_2/map/literal10_test.dart | 2 + tests/language_2/map/literal11_test.dart | 2 + tests/language_2/map/literal12_test.dart | 2 + tests/language_2/map/literal13_test.dart | 2 + tests/language_2/map/literal14_test.dart | 2 + .../language_2/map/literal1_runtime_test.dart | 2 + tests/language_2/map/literal1_test.dart | 2 + tests/language_2/map/literal2_test.dart | 2 + tests/language_2/map/literal3_test.dart | 2 + tests/language_2/map/literal4_test.dart | 2 + tests/language_2/map/literal5_test.dart | 2 + tests/language_2/map/literal6_test.dart | 2 + tests/language_2/map/literal7_test.dart | 2 + tests/language_2/map/literal8_test.dart | 2 + tests/language_2/map/literal9_test.dart | 2 + tests/language_2/map/literal_syntax_test.dart | 2 + tests/language_2/map/literal_test.dart | 2 + tests/language_2/map/map_test.dart | 2 + .../language_2/map/null_key_foreach_test.dart | 2 + tests/language_2/map/ordered_test.dart | 2 + tests/language_2/metadata/cyclic_test.dart | 2 + tests/language_2/metadata/lib.dart | 2 + .../metadata/metadata_builtin_test.dart | 2 + tests/language_2/metadata/metadata_test.dart | 2 + tests/language_2/metadata/scope1_test.dart | 2 + tests/language_2/metadata/scope2_test.dart | 2 + tests/language_2/metadata/self_test.dart | 2 + .../language_2/method/as_constants2_test.dart | 2 + .../language_2/method/as_constants_test.dart | 2 + tests/language_2/method/binding_test.dart | 2 + tests/language_2/method/invocation_test.dart | 2 + tests/language_2/method/name_test.dart | 2 + .../method/not_found_runtime_test.dart | 2 + tests/language_2/method/not_found_test.dart | 2 + tests/language_2/method/override2_test.dart | 2 + .../method/override3_runtime_test.dart | 2 + tests/language_2/method/override3_test.dart | 2 + tests/language_2/method/override7_test.dart | 2 + tests/language_2/method/override8_test.dart | 2 + tests/language_2/method/override_test.dart | 2 + .../mixin/abstract_getter_test.dart | 2 + tests/language_2/mixin/accessor_test.dart | 2 + .../mixin/and_extension_member_test.dart | 2 + tests/language_2/mixin/black_listed_test.dart | 2 + tests/language_2/mixin/bound_test.dart | 2 + .../mixin/class_from_core_library_test.dart | 2 + .../language_2/mixin/cyclic_runtime_test.dart | 2 + tests/language_2/mixin/cyclic_test.dart | 2 + .../language_2/mixin/deduplication_test.dart | 2 + .../language_2/mixin/extends_field_test.dart | 2 + tests/language_2/mixin/extends_is_test.dart | 2 + .../language_2/mixin/extends_method_test.dart | 2 + .../mixin/factory_constructor_test.dart | 2 + .../mixin/field_initializer_test.dart | 2 + tests/language_2/mixin/field_test.dart | 2 + .../mixin/forwarding_constructor1_test.dart | 2 + .../mixin/forwarding_constructor2_test.dart | 2 + .../mixin/forwarding_constructor3_test.dart | 2 + .../mixin/forwarding_constructor4_test.dart | 2 + tests/language_2/mixin/generic_test.dart | 2 + .../mixin/getter_regression_test.dart | 2 + .../illegal_constructor_runtime_test.dart | 2 + .../mixin/illegal_constructor_test.dart | 2 + .../mixin/illegal_cycles_runtime_test.dart | 2 + .../language_2/mixin/illegal_cycles_test.dart | 2 + .../mixin/illegal_object_runtime_test.dart | 2 + .../language_2/mixin/illegal_object_test.dart | 2 + .../illegal_static_access_runtime_test.dart | 2 + .../mixin/illegal_static_access_test.dart | 2 + .../mixin/illegal_super_use_runtime_test.dart | 2 + .../mixin/illegal_super_use_test.dart | 2 + .../illegal_superclass_runtime_test.dart | 2 + .../mixin/illegal_superclass_test.dart | 2 + .../language_2/mixin/illegal_syntax_test.dart | 2 + tests/language_2/mixin/implements2_test.dart | 2 + tests/language_2/mixin/implements_test.dart | 2 + .../mixin/implicit_covariance_test.dart | 2 + .../mixin/inference_mixin_field_test.dart | 2 + .../mixin/interface_check_runtime_test.dart | 2 + .../mixin/interface_check_test.dart | 2 + .../language_2/mixin/invalid_bound2_test.dart | 2 + .../language_2/mixin/invalid_bound_test.dart | 2 + .../mixin/invalid_inheritance1_test.dart | 2 + .../mixin/invalid_inheritance2_test.dart | 2 + ...nvalid_override_in_mixin_runtime_test.dart | 2 + .../mixin/invalid_override_in_mixin_test.dart | 2 + tests/language_2/mixin/is_test.dart | 2 + tests/language_2/mixin/issue10216_2_test.dart | 2 + tests/language_2/mixin/issue10216_test.dart | 2 + .../mixin/lib_extends_field_lib.dart | 2 + .../mixin/lib_extends_field_test.dart | 2 + .../mixin/lib_extends_method_lib.dart | 2 + .../mixin/lib_extends_method_test.dart | 2 + .../mixin/method_override_runtime_test.dart | 2 + .../mixin/method_override_test.dart | 2 + tests/language_2/mixin/method_test.dart | 2 + tests/language_2/mixin/mixin2_test.dart | 2 + tests/language_2/mixin/mixin3_test.dart | 2 + tests/language_2/mixin/mixin4_test.dart | 2 + tests/language_2/mixin/mixin5_test.dart | 2 + tests/language_2/mixin/mixin6_test.dart | 2 + tests/language_2/mixin/mixin7_test.dart | 2 + tests/language_2/mixin/mixin_bound2_test.dart | 2 + tests/language_2/mixin/mixin_bound_test.dart | 2 + tests/language_2/mixin/mixin_test.dart | 2 + .../mixin/mixin_type_arguments_test.dart | 2 + .../mixin/named_constructor_test.dart | 2 + tests/language_2/mixin/naming_test.dart | 2 + tests/language_2/mixin/only_for_rti_test.dart | 2 + .../mixin/override_regression_test.dart | 2 + tests/language_2/mixin/prefix_lib.dart | 2 + tests/language_2/mixin/prefix_test.dart | 2 + tests/language_2/mixin/proto_test.dart | 2 + .../mixin/recursive_mixin_test.dart | 2 + .../language_2/mixin/regress_11398_test.dart | 2 + .../language_2/mixin/regress_13688_test.dart | 2 + .../regress_flutter_55345_const_test.dart | 2 + .../mixin/regress_flutter_55345_test.dart | 2 + .../mixin/regress_flutter_66859_1_test.dart | 2 + .../mixin/regress_flutter_66859_2_test.dart | 2 + tests/language_2/mixin/substitution_test.dart | 2 + tests/language_2/mixin/super_2_test.dart | 2 + .../mixin/super_bound_runtime_test.dart | 2 + tests/language_2/mixin/super_bound_test.dart | 2 + .../mixin/super_constructor2_test.dart | 2 + .../mixin/super_constructor_default_test.dart | 2 + .../super_constructor_multiple_test.dart | 2 + .../mixin/super_constructor_named_test.dart | 2 + .../super_constructor_positionals_test.dart | 2 + .../mixin/super_constructor_test.dart | 2 + tests/language_2/mixin/super_test.dart | 2 + tests/language_2/mixin/super_use_test.dart | 2 + .../mixin/superclass_runtime_test.dart | 2 + tests/language_2/mixin/superclass_test.dart | 2 + .../mixin/supertype_subclass2_test.dart | 2 + .../mixin/supertype_subclass_test.dart | 2 + tests/language_2/mixin/this_use_test.dart | 2 + .../mixin/type_parameter1_test.dart | 2 + .../mixin/type_parameter2_test.dart | 2 + .../mixin/type_parameter3_test.dart | 2 + .../mixin/type_parameter4_test.dart | 2 + .../mixin/type_parameter5_test.dart | 2 + .../mixin/type_parameter6_test.dart | 2 + .../type_parameter_inference_error_test.dart | 2 + ...rameter_inference_previous_mixin_test.dart | 2 + .../mixin/type_parameter_inference_test.dart | 2 + .../type_parameters_errors_runtime_test.dart | 2 + .../mixin/type_parameters_errors_test.dart | 2 + .../type_parameters_mixin_extends_test.dart | 2 + .../mixin/type_parameters_mixin_test.dart | 2 + .../mixin/type_parameters_simple_test.dart | 2 + .../type_parameters_super_extends_test.dart | 2 + .../mixin/type_parameters_super_test.dart | 2 + .../language_2/mixin/type_variable_test.dart | 2 + .../mixin/typedef_constructor_test.dart | 2 + .../mixin/with_named_import_test.dart | 2 + .../with_two_implicit_constructors_test.dart | 2 + .../const_constructor_test.dart | 2 + .../const_constructor_with_field_test.dart | 2 + ...nstructor_parameter_forwarding_helper.dart | 2 + ...constructor_parameter_forwarding_test.dart | 2 + .../optional_named_parameters_test.dart | 2 + .../optional_positional_parameters_test.dart | 2 + .../mixin_declaration_factory_test.dart | 2 + ...declaration_inference_invalid_00_test.dart | 4 +- ...declaration_inference_invalid_01_test.dart | 4 +- ...declaration_inference_invalid_02_test.dart | 4 +- ...declaration_inference_invalid_03_test.dart | 4 +- ...declaration_inference_invalid_04_test.dart | 4 +- ...declaration_inference_invalid_05_test.dart | 4 +- ...declaration_inference_invalid_06_test.dart | 4 +- ...declaration_inference_invalid_07_test.dart | 4 +- ...declaration_inference_invalid_08_test.dart | 4 +- ...declaration_inference_invalid_09_test.dart | 4 +- ...declaration_inference_invalid_10_test.dart | 4 +- ...declaration_inference_invalid_11_test.dart | 4 +- ..._declaration_inference_valid_A00_test.dart | 2 + ..._declaration_inference_valid_A01_test.dart | 2 + ..._declaration_inference_valid_A02_test.dart | 2 + ..._declaration_inference_valid_A10_test.dart | 2 + ..._declaration_inference_valid_A11_test.dart | 2 + ..._declaration_inference_valid_A12_test.dart | 2 + ..._declaration_inference_valid_A20_test.dart | 2 + ..._declaration_inference_valid_A21_test.dart | 2 + ..._declaration_inference_valid_A22_test.dart | 2 + ..._declaration_inference_valid_A23_test.dart | 2 + ..._declaration_inference_valid_A30_test.dart | 2 + ..._declaration_inference_valid_A31_test.dart | 2 + ..._declaration_inference_valid_A42_test.dart | 2 + ..._declaration_inference_valid_B00_test.dart | 2 + ..._declaration_inference_valid_B01_test.dart | 2 + ..._declaration_inference_valid_B02_test.dart | 2 + ..._declaration_inference_valid_B03_test.dart | 2 + ..._declaration_inference_valid_B10_test.dart | 2 + ..._declaration_inference_valid_B11_test.dart | 2 + ..._declaration_inference_valid_B12_test.dart | 2 + ..._declaration_inference_valid_B13_test.dart | 2 + ..._declaration_inference_valid_C00_test.dart | 2 + ..._declaration_inference_valid_C01_test.dart | 2 + ..._declaration_inference_valid_C02_test.dart | 2 + ..._declaration_inference_valid_C03_test.dart | 2 + ..._declaration_inference_valid_C10_test.dart | 2 + ..._declaration_inference_valid_C11_test.dart | 2 + ..._declaration_inference_valid_C12_test.dart | 2 + ..._declaration_inference_valid_C13_test.dart | 2 + ...ference_valid_mixin_applications_test.dart | 4 +- ...on_invalid_application_supertype_test.dart | 2 + ...xin_declaration_invalid_override_test.dart | 4 +- ...laration_invalid_superinvocation_test.dart | 2 + ...mixin_declaration_invalid_syntax_test.dart | 4 +- .../mixin_declaration_invalid_type_test.dart | 2 + .../mixin_declaration_invalid_usage_test.dart | 4 +- .../mixin_declaration_nsm_test.dart | 4 +- .../mixin_declaration_on_keyword_test.dart | 4 +- .../mixin_declaration_static_scope_test.dart | 2 + .../mixin_declaration_subtype_test.dart | 4 +- ...tion_superinvocation_application_test.dart | 4 +- ...declaration_supertype_compatible_test.dart | 4 +- .../mixin_declaration_syntax_test.dart | 2 + .../create_unresolved_type_runtime_test.dart | 2 + .../new/create_unresolved_type_test.dart | 2 + tests/language_2/new/expression1_test.dart | 2 + tests/language_2/new/expression2_test.dart | 2 + tests/language_2/new/expression3_test.dart | 2 + .../expression_type_args_runtime_test.dart | 2 + .../new/expression_type_args_test.dart | 2 + tests/language_2/new/prefix_runtime_test.dart | 2 + tests/language_2/new/prefix_test.dart | 2 + tests/language_2/new/statement_test.dart | 2 + .../no_such_method/dispatcher_test.dart | 2 + .../no_such_method/empty_selector_test.dart | 2 + .../no_such_method/many_overridden_test.dart | 2 + .../no_such_method/megamorphic_test.dart | 2 + .../language_2/no_such_method/mock_test.dart | 2 + .../no_such_method/native_test.dart | 2 + .../no_such_method/no_such_method2_test.dart | 2 + .../no_such_method/no_such_method3_test.dart | 2 + .../no_such_method/no_such_method4_test.dart | 2 + .../no_such_method_private_setter_lib.dart | 2 + .../no_such_method/no_such_method_test.dart | 2 + .../language_2/no_such_method/nsm4_test.dart | 2 + .../language_2/no_such_method/nsm5_test.dart | 2 + .../language_2/no_such_method/overridden.dart | 2 + .../overridden_no_such_method_test.dart | 2 + .../no_such_method/private_setter_test.dart | 2 + .../simple_type_arguments_test.dart | 2 + .../no_such_method/subtype_test.dart | 2 + .../no_such_method/tearoff_fta_test.dart | 2 + ...abstract_override_with_different_type.dart | 2 + ...osuchmethod_forwarding_arguments_test.dart | 2 + ...forwarding_partial_instantiation_test.dart | 2 + .../nosuchmethod_forwarding_test.dart | 2 + tests/language_2/null/access_error_test.dart | 2 + tests/language_2/null/checked_null_test.dart | 2 + .../language_2/null/checked_runtime_test.dart | 2 + tests/language_2/null/inline_test.dart | 2 + tests/language_2/null/is2_test.dart | 2 + tests/language_2/null/is_test.dart | 2 + tests/language_2/null/method_test.dart | 2 + .../language_2/null/no_such_method_test.dart | 2 + tests/language_2/null/null2_test.dart | 2 + tests/language_2/null/null_test.dart | 2 + tests/language_2/null/to_string2_test.dart | 2 + tests/language_2/null/to_string_test.dart | 2 + .../null_aware/access_runtime_1_test.dart | 2 + .../null_aware/access_runtime_2_test.dart | 2 + .../null_aware/access_runtime_3_test.dart | 2 + .../null_aware/access_runtime_4_test.dart | 2 + .../null_aware/access_runtime_5_test.dart | 2 + .../null_aware/access_runtime_6_test.dart | 2 + .../null_aware/access_runtime_7_test.dart | 2 + .../null_aware/access_runtime_test.dart | 2 + tests/language_2/null_aware/access_test.dart | 2 + .../assignment_runtime_10_test.dart | 2 + .../assignment_runtime_11_test.dart | 2 + .../assignment_runtime_12_test.dart | 2 + .../assignment_runtime_13_test.dart | 2 + .../null_aware/assignment_runtime_1_test.dart | 2 + .../null_aware/assignment_runtime_2_test.dart | 2 + .../null_aware/assignment_runtime_3_test.dart | 2 + .../null_aware/assignment_runtime_4_test.dart | 2 + .../null_aware/assignment_runtime_5_test.dart | 2 + .../null_aware/assignment_runtime_6_test.dart | 2 + .../null_aware/assignment_runtime_7_test.dart | 2 + .../null_aware/assignment_runtime_8_test.dart | 2 + .../null_aware/assignment_runtime_9_test.dart | 2 + .../null_aware/assignment_runtime_test.dart | 2 + .../null_aware/assignment_test.dart | 2 + .../null_aware/conditional_access_helper.dart | 2 + tests/language_2/null_aware/dynamic_test.dart | 2 + .../increment_decrement_runtime_10_test.dart | 2 + .../increment_decrement_runtime_11_test.dart | 2 + .../increment_decrement_runtime_12_test.dart | 2 + .../increment_decrement_runtime_13_test.dart | 2 + .../increment_decrement_runtime_14_test.dart | 2 + .../increment_decrement_runtime_15_test.dart | 2 + .../increment_decrement_runtime_16_test.dart | 2 + .../increment_decrement_runtime_17_test.dart | 2 + .../increment_decrement_runtime_18_test.dart | 2 + .../increment_decrement_runtime_19_test.dart | 2 + .../increment_decrement_runtime_1_test.dart | 2 + .../increment_decrement_runtime_20_test.dart | 2 + .../increment_decrement_runtime_21_test.dart | 2 + .../increment_decrement_runtime_22_test.dart | 2 + .../increment_decrement_runtime_23_test.dart | 2 + .../increment_decrement_runtime_24_test.dart | 2 + .../increment_decrement_runtime_25_test.dart | 2 + .../increment_decrement_runtime_26_test.dart | 2 + .../increment_decrement_runtime_27_test.dart | 2 + .../increment_decrement_runtime_28_test.dart | 2 + .../increment_decrement_runtime_2_test.dart | 2 + .../increment_decrement_runtime_3_test.dart | 2 + .../increment_decrement_runtime_4_test.dart | 2 + .../increment_decrement_runtime_5_test.dart | 2 + .../increment_decrement_runtime_6_test.dart | 2 + .../increment_decrement_runtime_7_test.dart | 2 + .../increment_decrement_runtime_8_test.dart | 2 + .../increment_decrement_runtime_9_test.dart | 2 + .../increment_decrement_runtime_test.dart | 2 + .../null_aware/increment_decrement_test.dart | 2 + .../index_this_null_aware_equals_test.dart | 2 + .../null_aware/invocation_runtime_1_test.dart | 2 + .../null_aware/invocation_runtime_2_test.dart | 2 + .../null_aware/invocation_runtime_3_test.dart | 2 + .../null_aware/invocation_runtime_4_test.dart | 2 + .../null_aware/invocation_runtime_5_test.dart | 2 + .../null_aware/invocation_runtime_6_test.dart | 2 + .../null_aware/invocation_runtime_7_test.dart | 2 + .../null_aware/invocation_runtime_8_test.dart | 2 + .../null_aware/invocation_runtime_test.dart | 2 + .../null_aware/invocation_test.dart | 2 + tests/language_2/null_aware/opt_test.dart | 2 + .../number/constant_folding1_test.dart | 2 + .../number/identifier_runtime_test.dart | 2 + tests/language_2/number/identifier_test.dart | 2 + tests/language_2/number/identity2_test.dart | 2 + tests/language_2/number/identity_test.dart | 2 + tests/language_2/number/infinity_test.dart | 2 + tests/language_2/number/int2_test.dart | 2 + .../number/int64_literal_runtime_10_test.dart | 2 + .../number/int64_literal_runtime_11_test.dart | 2 + .../number/int64_literal_runtime_1_test.dart | 2 + .../number/int64_literal_runtime_2_test.dart | 2 + .../number/int64_literal_runtime_3_test.dart | 2 + .../number/int64_literal_runtime_4_test.dart | 2 + .../number/int64_literal_runtime_5_test.dart | 2 + .../number/int64_literal_runtime_6_test.dart | 2 + .../number/int64_literal_runtime_7_test.dart | 2 + .../number/int64_literal_runtime_8_test.dart | 2 + .../number/int64_literal_runtime_9_test.dart | 2 + .../number/int64_literal_runtime_test.dart | 2 + .../language_2/number/int64_literal_test.dart | 2 + tests/language_2/number/int_test.dart | 2 + tests/language_2/number/numbers_test.dart | 2 + tests/language_2/number/syntax_test.dart | 2 + .../number/web_int_literals_runtime_test.dart | 2 + .../number/web_int_literals_test.dart | 2 + ...operation_on_non_integer_operand_test.dart | 2 + .../arithmetic_canonicalization_test.dart | 2 + .../operator/arithmetic_int64_test.dart | 2 + .../arithmetic_smi_overflow_test.dart | 2 + .../language_2/operator/arithmetic_test.dart | 2 + .../operator/bit_operations_test.dart | 2 + tests/language_2/operator/bit_shift_test.dart | 2 + .../language_2/operator/comparison_test.dart | 2 + .../operator/compound_assignment_test.dart | 2 + tests/language_2/operator/cond_expr_test.dart | 2 + .../language_2/operator/div_by_zero_test.dart | 2 + .../operator/div_with_power_of_two2_test.dart | 2 + .../operator/div_with_power_of_two_test.dart | 2 + tests/language_2/operator/equality_test.dart | 2 + tests/language_2/operator/equals_test.dart | 2 + tests/language_2/operator/incr_op_test.dart | 2 + .../operator/index_evaluation_order_test.dart | 2 + tests/language_2/operator/index_test.dart | 2 + .../integer_division_by_zero_test.dart | 2 + ...ent_to_postfix_increment_runtime_test.dart | 2 + ..._assignment_to_postfix_increment_test.dart | 2 + .../operator/invalid_operators_test.dart | 2 + .../language_2/operator/left_shift_test.dart | 2 + .../operator/literal_unary_plus_test.dart | 2 + .../operator/logical_expression2_test.dart | 2 + .../operator/logical_expression3_test.dart | 2 + .../operator/logical_expression4_test.dart | 2 + .../operator/logical_expression5_test.dart | 2 + .../operator/logical_expression_test.dart | 2 + .../operator/mint_arithmetic_test.dart | 2 + tests/language_2/operator/modulo_test.dart | 2 + .../language_2/operator/mul_recipr_test.dart | 2 + .../operator/multi_assign_test.dart | 2 + .../negate_and_method_negate_test.dart | 2 + .../operations_on_non_num_operand_test.dart | 2 + tests/language_2/operator/operator1_test.dart | 2 + tests/language_2/operator/operator2_test.dart | 2 + tests/language_2/operator/operator3_test.dart | 2 + tests/language_2/operator/operator4_test.dart | 2 + tests/language_2/operator/operator5_test.dart | 2 + tests/language_2/operator/operator6_test.dart | 2 + tests/language_2/operator/operator7_test.dart | 2 + tests/language_2/operator/operator_test.dart | 2 + .../positive_bit_operations_test.dart | 2 + .../language_2/operator/precedence_test.dart | 2 + tests/language_2/operator/round_test.dart | 2 + tests/language_2/operator/smi_type_test.dart | 2 + tests/language_2/operator/ternary_test.dart | 2 + tests/language_2/operator/truncdiv_test.dart | 2 + .../operator/truncdiv_uint32_test.dart | 2 + .../operator/truncdiv_zero_test.dart | 2 + tests/language_2/operator/unary2_test.dart | 2 + .../language_2/operator/unary_plus_test.dart | 2 + tests/language_2/operator/unary_test.dart | 2 + .../operator/unsigned_right_shift_test.dart | 229 ----------- .../operator/unsupported_runtime_test.dart | 2 + .../language_2/operator/unsupported_test.dart | 2 + .../allocation_sinking_inlining_test.dart | 2 + tests/language_2/optimize/bailout2_test.dart | 2 + tests/language_2/optimize/bailout3_test.dart | 2 + tests/language_2/optimize/bailout4_test.dart | 2 + tests/language_2/optimize/bailout5_test.dart | 2 + tests/language_2/optimize/bailout6_test.dart | 2 + tests/language_2/optimize/bailout7_test.dart | 2 + .../optimize/bailout_container_type_test.dart | 2 + tests/language_2/optimize/bailout_test.dart | 2 + .../optimize/cha_deopt1_deferred_lib.dart | 2 + tests/language_2/optimize/cha_deopt1_lib.dart | 2 + .../language_2/optimize/cha_deopt1_test.dart | 2 + .../optimize/cha_deopt2_deferred_lib.dart | 2 + tests/language_2/optimize/cha_deopt2_lib.dart | 2 + .../language_2/optimize/cha_deopt2_test.dart | 2 + .../optimize/cha_deopt3_deferred_lib.dart | 2 + tests/language_2/optimize/cha_deopt3_lib.dart | 2 + .../language_2/optimize/cha_deopt3_test.dart | 2 + .../optimize/code_motion_crash_test.dart | 2 + .../constant_array_string_access_test.dart | 2 + .../optimize/constant_fold_equals_test.dart | 2 + .../constant_propagation_phis_test.dart | 2 + .../optimize/critical_edge2_test.dart | 2 + .../optimize/critical_edge_test.dart | 2 + .../optimize/dead_field_access_test.dart | 2 + .../deopt_inlined_function_lazy_test.dart | 2 + .../optimize/deopt_inlined_function_test.dart | 2 + .../deopt_lazy_finalization_test.dart | 2 + .../optimize/deopt_no_feedback_test.dart | 2 + .../optimize/deopt_smi_op_test.dart | 2 + .../deoptimized_function_on_stack_test.dart | 2 + .../hoisting_checked_mode_assert_test.dart | 2 + .../optimize/inferrer_closure_test.dart | 2 + .../optimize/inferrer_constructor2_test.dart | 2 + .../optimize/inferrer_constructor3_test.dart | 2 + .../optimize/inferrer_constructor4_test.dart | 2 + .../inferrer_constructor5_runtime_test.dart | 2 + .../optimize/inferrer_constructor5_test.dart | 2 + .../optimize/inferrer_constructor_test.dart | 2 + .../inferrer_named_parameter_test.dart | 2 + ...inferrer_synthesized_constructor_test.dart | 2 + ...r_synthesized_super_constructor2_test.dart | 2 + ...er_synthesized_super_constructor_test.dart | 2 + .../optimize/inferrer_this_access_test.dart | 2 + ...ine_add_constants_to_initial_env_test.dart | 2 + .../optimize/inline_argument_test.dart | 2 + ..._closure_with_constant_arguments_test.dart | 2 + .../optimize/inline_conditional_test.dart | 2 + .../optimize/inline_effect_context_test.dart | 2 + .../optimize/inline_getter_test.dart | 2 + ...e_in_for_initializer_and_bailout_test.dart | 2 + .../optimize/inline_super_field_lib.dart | 2 + .../optimize/inline_super_field_test.dart | 2 + .../optimize/inline_super_part.dart | 2 + .../optimize/inline_super_test.dart | 2 + tests/language_2/optimize/inline_test.dart | 2 + .../optimize/inline_test_context_test.dart | 2 + .../optimize/inline_throw_test.dart | 2 + .../optimize/inline_value_context_test.dart | 2 + tests/language_2/optimize/isempty_test.dart | 2 + tests/language_2/optimize/licm2_test.dart | 2 + tests/language_2/optimize/licm3_test.dart | 2 + tests/language_2/optimize/licm_test.dart | 2 + tests/language_2/optimize/lists_test.dart | 2 + tests/language_2/optimize/osr_test.dart | 2 + tests/language_2/optimize/phi_merge_test.dart | 2 + .../optimize/pure_function2_test.dart | 2 + .../optimize/pure_function_test.dart | 2 + .../optimize/redundant_array_load_test.dart | 2 + tests/language_2/optimize/setter_test.dart | 2 + .../optimize/string_charat_test.dart | 2 + .../optimize/string_charcodeat_test.dart | 2 + .../language_2/override/const_field_test.dart | 2 + .../override/field_method1_test.dart | 2 + .../override/field_method2_test.dart | 2 + .../override/field_method3_test.dart | 2 + .../override/field_method4_test.dart | 2 + tests/language_2/override/field_test.dart | 2 + .../inheritance_abstract_runtime_1_test.dart | 2 + .../inheritance_abstract_runtime_2_test.dart | 2 + .../inheritance_abstract_runtime_3_test.dart | 2 + .../inheritance_abstract_runtime_4_test.dart | 2 + .../inheritance_abstract_runtime_5_test.dart | 2 + .../inheritance_abstract_runtime_6_test.dart | 2 + .../inheritance_abstract_runtime_7_test.dart | 2 + .../inheritance_abstract_runtime_test.dart | 2 + .../override/inheritance_abstract_test.dart | 2 + .../override/inheritance_field_test.dart | 2 + .../override/inheritance_generic_test.dart | 2 + .../override/inheritance_method2_test.dart | 2 + .../override/inheritance_method_test.dart | 2 + .../override/inheritance_mixed_test.dart | 2 + .../inheritance_no_such_method_test.dart | 2 + .../override/inheritance_setter_test.dart | 2 + .../method_with_field_runtime_test.dart | 2 + .../override/method_with_field_test.dart | 2 + .../parameter/bad_named2_runtime_test.dart | 2 + .../language_2/parameter/bad_named2_test.dart | 2 + .../parameter/bad_named_parameters_test.dart | 2 + .../parameter/bad_named_runtime_test.dart | 2 + tests/language_2/parameter/default_test.dart | 2 + .../parameter/initializer1_test.dart | 2 + .../parameter/initializer2_test.dart | 2 + .../parameter/initializer3_test.dart | 2 + .../parameter/initializer4_test.dart | 2 + .../parameter/initializer5_test.dart | 2 + .../parameter/initializer6_test.dart | 2 + .../parameter/initializer7_test.dart | 2 + .../parameter/initializer_test.dart | 2 + tests/language_2/parameter/metadata_test.dart | 2 + .../parameter/name_conflict_test.dart | 2 + tests/language_2/parameter/named2_test.dart | 2 + tests/language_2/parameter/named3_test.dart | 2 + tests/language_2/parameter/named4_test.dart | 2 + .../named_aggregated_runtime_test.dart | 2 + .../parameter/named_aggregated_test.dart | 2 + .../parameter/named_clash_test.dart | 2 + .../parameter/named_count_test.dart | 2 + .../named_default_eq_runtime_test.dart | 2 + .../parameter/named_default_eq_test.dart | 2 + .../parameter/named_parameters_test.dart | 2 + .../parameter/named_passing_false_test.dart | 2 + .../parameter/named_passing_falsy_test.dart | 2 + .../parameter/named_passing_null_test.dart | 2 + .../parameter/named_passing_zero_test.dart | 2 + .../parameter/named_regression_test.dart | 2 + .../parameter/named_runtime_test.dart | 2 + .../parameter/named_type_runtime_test.dart | 2 + .../language_2/parameter/named_type_test.dart | 2 + .../named_with_conversions_test.dart | 2 + .../parameter/named_with_dollars_test.dart | 2 + ...named_with_object_property_names_test.dart | 2 + .../optional_named_runtime_test.dart | 2 + .../parameter/optional_named_test.dart | 2 + tests/language_2/parameter/param_test.dart | 2 + .../language_2/parameter/parameter1_test.dart | 2 + .../language_2/parameter/parameter2_test.dart | 2 + .../positional_type_runtime_test.dart | 2 + .../parameter/positional_type_test.dart | 2 + .../parameter/types_specialization_test.dart | 2 + .../part/missing_part_of_tag_part.dart | 2 + .../part/missing_part_of_tag_test.dart | 2 + .../language_2/part/of_multiple_libs_lib.dart | 2 + .../part/of_multiple_libs_part.dart | 2 + .../part/of_multiple_libs_runtime_test.dart | 2 + .../part/of_multiple_libs_test.dart | 2 + tests/language_2/part/of_uri2_part.dart | 2 + tests/language_2/part/of_uri2_part2.dart | 2 + tests/language_2/part/of_uri2_test.dart | 2 + tests/language_2/part/of_uri_part.dart | 2 + tests/language_2/part/of_uri_part2.dart | 2 + tests/language_2/part/of_uri_test.dart | 2 + tests/language_2/part/part.dart | 2 + tests/language_2/part/part2_test.dart | 2 + tests/language_2/part/part_test.dart | 2 + .../refers_to_core_library_runtime_test.dart | 2 + .../part/refers_to_core_library_test.dart | 15 - tests/language_2/part/self_test.dart | 2 + .../prefix/assignment_runtime_test.dart | 2 + tests/language_2/prefix/assignment_test.dart | 2 + tests/language_2/prefix/empty_library.dart | 2 + .../prefix/identifier_reference_test.dart | 2 + .../prefix/import_collision_runtime_test.dart | 2 + .../prefix/import_collision_test.dart | 2 + .../prefix/invalid_name_runtime_test.dart | 2 + .../language_2/prefix/invalid_name_test.dart | 2 + tests/language_2/prefix/new_test.dart | 2 + tests/language_2/prefix/new_test1.dart | 2 + tests/language_2/prefix/new_test2.dart | 2 + tests/language_2/prefix/prefix101_test.dart | 2 + tests/language_2/prefix/prefix10_test.dart | 2 + tests/language_2/prefix/prefix11_test.dart | 2 + tests/language_2/prefix/prefix12_test.dart | 2 + tests/language_2/prefix/prefix14_test.dart | 2 + tests/language_2/prefix/prefix15_test.dart | 2 + .../prefix/prefix16_runtime_test.dart | 2 + tests/language_2/prefix/prefix16_test.dart | 2 + tests/language_2/prefix/prefix17_test.dart | 2 + tests/language_2/prefix/prefix21_bad_lib.dart | 2 + .../language_2/prefix/prefix21_good_lib.dart | 2 + tests/language_2/prefix/prefix21_test.dart | 2 + .../prefix/prefix22_runtime_test.dart | 2 + tests/language_2/prefix/prefix22_test.dart | 2 + .../prefix/prefix23_runtime_test.dart | 2 + tests/language_2/prefix/prefix23_test.dart | 2 + tests/language_2/prefix/prefix24_lib1.dart | 2 + tests/language_2/prefix/prefix24_lib2.dart | 2 + tests/language_2/prefix/prefix24_lib3.dart | 2 + tests/language_2/prefix/prefix24_test.dart | 2 + tests/language_2/prefix/prefix_test.dart | 2 + .../prefix/shadow_runtime_test.dart | 2 + tests/language_2/prefix/shadow_test.dart | 2 + tests/language_2/prefix/test1.dart | 2 + tests/language_2/prefix/test2.dart | 2 + ...transitive_import_prefix_runtime_test.dart | 2 + .../prefix/transitive_import_prefix_test.dart | 2 + .../transitive_import_runtime_test.dart | 2 + .../prefix/transitive_import_test.dart | 2 + .../unqualified_invocation_runtime_test.dart | 2 + .../prefix/unqualified_invocation_test.dart | 2 + .../prefix/unresolved_class_runtime_test.dart | 2 + .../prefix/unresolved_class_test.dart | 2 + .../variable_collision_runtime_test.dart | 2 + .../prefix/variable_collision_test.dart | 2 + tests/language_2/private/access_lib.dart | 2 + .../private/access_runtime_test.dart | 2 + tests/language_2/private/access_test.dart | 2 + tests/language_2/private/clash_lib.dart | 2 + tests/language_2/private/clash_test.dart | 2 + tests/language_2/private/lib.dart | 2 + tests/language_2/private/main.dart | 2 + tests/language_2/private/member1_lib.dart | 2 + tests/language_2/private/member1_test.dart | 2 + tests/language_2/private/member2_lib.dart | 2 + tests/language_2/private/member2_test.dart | 2 + tests/language_2/private/member3_lib.dart | 2 + tests/language_2/private/member3_test.dart | 2 + tests/language_2/private/member_lib_b.dart | 2 + tests/language_2/private/member_test.dart | 2 + .../private/method_tearoff_lib.dart | 2 + .../private/method_tearoff_test.dart | 2 + tests/language_2/private/mixin2_test.dart | 2 + .../private/mixin_exception_throw_test.dart | 2 + tests/language_2/private/other.dart | 2 + tests/language_2/private/other_lib.dart | 2 + tests/language_2/private/other_library.dart | 2 + tests/language_2/private/other_mixin2.dart | 2 + tests/language_2/private/private1.dart | 2 + tests/language_2/private/private2.dart | 2 + tests/language_2/private/private2_lib.dart | 2 + tests/language_2/private/private2_main.dart | 2 + tests/language_2/private/private2_test.dart | 2 + tests/language_2/private/private3_test.dart | 2 + tests/language_2/private/private4_test.dart | 2 + tests/language_2/private/private_test.dart | 2 + tests/language_2/private/selector_lib.dart | 2 + tests/language_2/private/selector_test.dart | 2 + .../private/super_constructor_lib.dart | 2 + .../super_constructor_runtime_test.dart | 2 + .../private/super_constructor_test.dart | 2 + .../propagate/argument_type_check_test.dart | 2 + .../propagate/assert_assignable_test.dart | 2 + .../propagate/in_for_update_test.dart | 2 + .../propagate/past_constant_test.dart | 2 + tests/language_2/propagate/phi_test.dart | 2 + .../language_2/propagate/propagate2_test.dart | 2 + .../language_2/propagate/propagate3_test.dart | 2 + .../propagate/type_propagation_test.dart | 2 + .../constructor_initializer_test.dart | 2 + .../redirecting/factory_bounds_test.dart | 2 + .../factory_default_values_runtime_test.dart | 2 + .../factory_default_values_test.dart | 2 + ...y_incompatible_signature_runtime_test.dart | 2 + .../factory_incompatible_signature_test.dart | 2 + .../factory_infinite_steps_test.dart | 2 + .../redirecting/factory_long_test.dart | 2 + .../factory_malbounded_runtime_test.dart | 2 + .../redirecting/factory_malbounded_test.dart | 2 + .../redirecting/factory_upcast_test.dart | 2 + tests/language_2/reg_exp/reg_exp2_test.dart | 2 + tests/language_2/reg_exp/reg_exp3_test.dart | 2 + tests/language_2/reg_exp/reg_exp4_test.dart | 2 + tests/language_2/reg_exp/reg_exp_test.dart | 2 + tests/language_2/regress/r24720_test.dart | 2 + .../language_2/regress/regress10204_test.dart | 2 + .../language_2/regress/regress10321_test.dart | 2 + .../language_2/regress/regress10561_test.dart | 2 + .../language_2/regress/regress10581_test.dart | 2 + .../language_2/regress/regress10721_test.dart | 2 + .../language_2/regress/regress10747_test.dart | 2 + .../language_2/regress/regress10783_test.dart | 2 + .../language_2/regress/regress10996_lib.dart | 2 + .../language_2/regress/regress10996_test.dart | 2 + .../language_2/regress/regress11010_test.dart | 2 + .../regress/regress11724_runtime_test.dart | 2 + .../language_2/regress/regress11724_test.dart | 2 + .../language_2/regress/regress11793_test.dart | 2 + .../language_2/regress/regress11800_test.dart | 2 + .../language_2/regress/regress12023_test.dart | 2 + .../language_2/regress/regress12118_test.dart | 2 + .../language_2/regress/regress12284_test.dart | 2 + .../language_2/regress/regress12288_test.dart | 2 + .../language_2/regress/regress12336_test.dart | 2 + .../regress/regress124683_test.dart | 2 + .../language_2/regress/regress12561_test.dart | 2 + .../language_2/regress/regress12615_test.dart | 2 + .../language_2/regress/regress13179_test.dart | 2 + .../language_2/regress/regress13494_test.dart | 2 + .../language_2/regress/regress13556_test.dart | 2 + tests/language_2/regress/regress1363_lib.dart | 2 + .../regress/regress1363_runtime_test.dart | 2 + .../language_2/regress/regress1363_test.dart | 2 + .../language_2/regress/regress13673_test.dart | 2 + .../regress/regress14014_2_test.dart | 2 + .../regress/regress14014_3_test.dart | 2 + .../language_2/regress/regress14014_test.dart | 2 + .../language_2/regress/regress14105_test.dart | 2 + .../language_2/regress/regress14242_test.dart | 2 + .../language_2/regress/regress14348_test.dart | 2 + .../regress/regress15606_runtime_test.dart | 2 + .../language_2/regress/regress15606_test.dart | 2 + .../language_2/regress/regress15702_test.dart | 2 + .../language_2/regress/regress15720_test.dart | 2 + .../language_2/regress/regress1578_test.dart | 9 +- .../language_2/regress/regress16640_test.dart | 2 + .../language_2/regress/regress17382_test.dart | 2 + .../regress/regress1751477_lib1.dart | 2 + .../regress/regress1751477_lib11.dart | 2 + .../regress/regress1751477_lib2.dart | 2 + .../regress/regress1751477_lib21.dart | 2 + .../regress/regress1751477_lib3.dart | 2 + .../regress/regress1751477_lib31.dart | 2 + .../regress/regress1751477_lib4.dart | 2 + .../regress/regress1751477_lib41.dart | 2 + .../regress/regress1751477_lib5.dart | 2 + .../regress/regress1751477_lib51.dart | 2 + .../regress/regress1751477_lib6.dart | 2 + .../regress/regress1751477_lib61.dart | 2 + .../regress/regress1751477_lib7.dart | 2 + .../regress/regress1751477_lib71.dart | 2 + .../regress/regress1751477_lib8.dart | 2 + .../regress/regress1751477_lib81.dart | 2 + .../regress/regress1751477_lib9.dart | 2 + .../regress/regress1751477_lib91.dart | 2 + .../regress/regress1751477_test.dart | 2 + .../language_2/regress/regress18435_test.dart | 2 + .../regress/regress18628_1_runtime_test.dart | 2 + .../regress/regress18628_1_test.dart | 2 + .../regress/regress18628_2_runtime_test.dart | 2 + .../regress/regress18628_2_test.dart | 2 + .../language_2/regress/regress18713_test.dart | 2 + .../language_2/regress/regress18865_test.dart | 2 + .../language_2/regress/regress19413_bar.dart | 2 + .../language_2/regress/regress19413_foo.dart | 2 + .../language_2/regress/regress19413_test.dart | 2 + .../language_2/regress/regress19728_test.dart | 2 + .../language_2/regress/regress20074_test.dart | 2 + .../language_2/regress/regress20394_lib.dart | 2 + .../regress/regress20394_runtime_test.dart | 2 + .../language_2/regress/regress20394_test.dart | 2 + .../language_2/regress/regress20476_test.dart | 2 + .../language_2/regress/regress20840_test.dart | 2 + .../language_2/regress/regress21016_test.dart | 2 + .../regress/regress21793_runtime_test.dart | 2 + .../language_2/regress/regress21793_test.dart | 2 + .../language_2/regress/regress21795_test.dart | 2 + .../regress/regress21912_runtime_test.dart | 2 + .../language_2/regress/regress21912_test.dart | 2 + .../regress/regress21957_double_test.dart | 2 + .../regress/regress21957_float32x4_test.dart | 2 + .../regress/regress21957_float64x2_test.dart | 2 + .../regress/regress21998_1_test.dart | 2 + .../regress/regress21998_2_test.dart | 2 + .../regress/regress21998_3_test.dart | 2 + .../regress/regress21998_4_test.dart | 2 + .../language_2/regress/regress21998_lib1.dart | 2 + .../language_2/regress/regress21998_lib2.dart | 2 + .../language_2/regress/regress21998_lib3.dart | 2 + .../language_2/regress/regress22438_test.dart | 2 + .../language_2/regress/regress22443_lib.dart | 2 + .../language_2/regress/regress22443_test.dart | 2 + .../language_2/regress/regress22445_test.dart | 2 + .../language_2/regress/regress22579_test.dart | 2 + .../language_2/regress/regress22666_test.dart | 2 + .../language_2/regress/regress22700_test.dart | 2 + .../language_2/regress/regress22719_test.dart | 2 + .../language_2/regress/regress22728_test.dart | 2 + .../language_2/regress/regress22777_test.dart | 2 + .../language_2/regress/regress22780_test.dart | 2 + .../language_2/regress/regress22800_test.dart | 2 + .../language_2/regress/regress22822_test.dart | 2 + .../language_2/regress/regress22858_test.dart | 2 + .../language_2/regress/regress22936_test.dart | 2 + .../language_2/regress/regress22976_test.dart | 5 +- .../regress/regress23038_runtime_test.dart | 2 + .../language_2/regress/regress23038_test.dart | 2 + .../language_2/regress/regress23046_test.dart | 2 + .../language_2/regress/regress23051_test.dart | 2 + .../language_2/regress/regress23089_test.dart | 2 + .../language_2/regress/regress23244_test.dart | 2 + .../language_2/regress/regress23408_lib.dart | 2 + .../language_2/regress/regress23408_test.dart | 2 + .../regress/regress23408a_test.dart | 2 + .../language_2/regress/regress23498_test.dart | 2 + .../language_2/regress/regress23500_test.dart | 2 + .../language_2/regress/regress23537_test.dart | 2 + .../language_2/regress/regress23650_test.dart | 2 + .../language_2/regress/regress23914_test.dart | 2 + .../language_2/regress/regress23996_test.dart | 2 + .../language_2/regress/regress24283_test.dart | 2 + .../language_2/regress/regress24567_test.dart | 2 + .../language_2/regress/regress24935_test.dart | 2 + .../language_2/regress/regress25122_test.dart | 2 + .../regress/regress25246_1_test.dart | 2 + tests/language_2/regress/regress25246_2.dart | 2 + tests/language_2/regress/regress25246_3.dart | 2 + .../language_2/regress/regress25389_part.dart | 2 + .../language_2/regress/regress25389_test.dart | 2 + .../language_2/regress/regress25550_test.dart | 2 + .../language_2/regress/regress25568_test.dart | 2 + .../language_2/regress/regress25609_lib1.dart | 2 + .../language_2/regress/regress25609_lib2.dart | 2 + .../language_2/regress/regress25609_test.dart | 2 + .../language_2/regress/regress25620_test.dart | 2 + .../language_2/regress/regress25935_test.dart | 2 + .../language_2/regress/regress26133_test.dart | 2 + .../language_2/regress/regress26175_test.dart | 2 + .../language_2/regress/regress26230_test.dart | 2 + .../language_2/regress/regress26453_test.dart | 2 + .../language_2/regress/regress26530_test.dart | 2 + .../regress/regress26543_1_test.dart | 2 + .../regress/regress26543_2_test.dart | 2 + .../regress/regress26543_3_test.dart | 2 + .../language_2/regress/regress26668_test.dart | 2 + .../regress/regress26855_runtime_test.dart | 2 + .../language_2/regress/regress26855_test.dart | 2 + .../language_2/regress/regress26948_test.dart | 2 + .../language_2/regress/regress27164_test.dart | 2 + .../language_2/regress/regress27572_test.dart | 2 + .../regress/regress27617_runtime_test.dart | 2 + .../language_2/regress/regress27617_test.dart | 2 + .../language_2/regress/regress27659_test.dart | 2 + .../language_2/regress/regress27700_test.dart | 2 + .../language_2/regress/regress27957_lib1.dart | 2 + .../language_2/regress/regress27957_lib2.dart | 2 + .../language_2/regress/regress27957_test.dart | 2 + .../language_2/regress/regress28217_test.dart | 2 + .../language_2/regress/regress28268_test.dart | 2 + .../language_2/regress/regress28278_lib.dart | 2 + .../language_2/regress/regress28278_test.dart | 2 + .../language_2/regress/regress28341_test.dart | 2 + .../language_2/regress/regress28498_test.dart | 2 + .../language_2/regress/regress28610_test.dart | 2 + .../language_2/regress/regress29025_test.dart | 2 + .../language_2/regress/regress29243_test.dart | 2 + .../language_2/regress/regress29349_test.dart | 2 + .../language_2/regress/regress29357_test.dart | 2 + .../regress/regress29784_runtime_test.dart | 2 + .../language_2/regress/regress29784_test.dart | 2 + .../language_2/regress/regress29949_test.dart | 2 + .../language_2/regress/regress30092_test.dart | 2 + .../language_2/regress/regress30121_test.dart | 2 + .../language_2/regress/regress30339_test.dart | 2 + .../language_2/regress/regress30516_test.dart | 2 + .../language_2/regress/regress30669_test.dart | 2 + .../language_2/regress/regress30927_test.dart | 2 + .../language_2/regress/regress31057_test.dart | 2 + .../language_2/regress/regress31066_test.dart | 2 + .../language_2/regress/regress31106_test.dart | 2 + .../language_2/regress/regress31279_test.dart | 2 + .../language_2/regress/regress31436_test.dart | 2 + .../language_2/regress/regress31591_test.dart | 2 + ...gress31596_covariant_declaration_test.dart | 2 + .../regress/regress31596_override_test.dart | 2 + .../regress/regress31596_runtime_test.dart | 2 + .../regress31596_super_runtime_1_test.dart | 2 + .../regress31596_super_runtime_2_test.dart | 2 + .../regress31596_super_runtime_3_test.dart | 2 + .../regress31596_super_runtime_test.dart | 2 + .../regress/regress31596_super_test.dart | 2 + .../regress/regress31596_tearoff_test.dart | 2 + .../language_2/regress/regress31596_test.dart | 2 + .../language_2/regress/regress32012_test.dart | 2 + .../language_2/regress/regress32267_test.dart | 2 + .../language_2/regress/regress32305_test.dart | 2 + .../regress/regress32353_2_test.dart | 2 + .../language_2/regress/regress32353_test.dart | 2 + .../language_2/regress/regress32372_test.dart | 2 + .../language_2/regress/regress32425_test.dart | 2 + .../language_2/regress/regress32660_test.dart | 2 + .../language_2/regress/regress33009_lib.dart | 2 + .../language_2/regress/regress33009_test.dart | 2 + .../regress/regress33235_01_runtime_test.dart | 2 + .../regress/regress33235_01_test.dart | 2 + .../regress/regress33235_02_runtime_test.dart | 2 + .../regress/regress33235_02_test.dart | 2 + .../regress/regress33235_03_runtime_test.dart | 2 + .../regress/regress33235_03_test.dart | 2 + .../regress/regress33235_04_runtime_test.dart | 2 + .../regress/regress33235_04_test.dart | 2 + .../regress/regress33235_05_runtime_test.dart | 2 + .../regress/regress33235_05_test.dart | 2 + .../regress/regress33235_06_runtime_test.dart | 2 + .../regress/regress33235_06_test.dart | 2 + .../regress/regress33235_07_runtime_test.dart | 2 + .../regress/regress33235_07_test.dart | 2 + .../regress/regress33235_08_runtime_test.dart | 2 + .../regress/regress33235_08_test.dart | 2 + .../regress/regress33235_09_runtime_test.dart | 2 + .../regress/regress33235_09_test.dart | 2 + .../regress/regress33235_10_runtime_test.dart | 2 + .../regress/regress33235_10_test.dart | 2 + .../regress/regress33235_11_runtime_test.dart | 2 + .../regress/regress33235_11_test.dart | 2 + .../regress/regress33235_12_runtime_test.dart | 2 + .../regress/regress33235_12_test.dart | 2 + .../regress/regress33235_13_runtime_test.dart | 2 + .../regress/regress33235_13_test.dart | 2 + .../regress/regress33235_14_runtime_test.dart | 2 + .../regress/regress33235_14_test.dart | 2 + .../regress/regress33235_15_runtime_test.dart | 2 + .../regress/regress33235_15_test.dart | 2 + .../regress/regress33235_16_runtime_test.dart | 2 + .../regress/regress33235_16_test.dart | 2 + .../regress/regress33235_17_test.dart | 2 + .../regress/regress33235_18_test.dart | 2 + .../regress/regress33235_19_test.dart | 2 + .../regress/regress33235_20_test.dart | 2 + .../regress/regress33235_21_test.dart | 2 + .../language_2/regress/regress33392_test.dart | 2 + .../regress/regress33479_runtime_test.dart | 2 + .../language_2/regress/regress33479_test.dart | 8 +- .../language_2/regress/regress34034_test.dart | 2 + tests/language_2/regress/regress34091.dart | 2 + .../language_2/regress/regress34147_test.dart | 2 + .../language_2/regress/regress34225_test.dart | 2 + .../regress/regress34235_runtime_test.dart | 2 + .../language_2/regress/regress34235_test.dart | 2 + .../language_2/regress/regress34392_test.dart | 2 + .../regress34404_flutter_modified_test.dart | 2 + .../regress/regress34404_flutter_test.dart | 2 + .../language_2/regress/regress34482_test.dart | 2 + .../regress/regress34488_runtime_test.dart | 2 + .../language_2/regress/regress34488_test.dart | 2 + .../regress/regress34489_runtime_test.dart | 2 + .../language_2/regress/regress34489_test.dart | 2 + .../regress/regress34495_runtime_test.dart | 2 + .../language_2/regress/regress34495_test.dart | 2 + .../language_2/regress/regress34498_test.dart | 2 + .../language_2/regress/regress34514_test.dart | 2 + .../language_2/regress/regress34532_test.dart | 2 + .../language_2/regress/regress34635_test.dart | 2 + .../language_2/regress/regress34636_test.dart | 2 + .../language_2/regress/regress34870_test.dart | 2 + .../language_2/regress/regress34877_test.dart | 2 + .../language_2/regress/regress34896_test.dart | 2 + .../language_2/regress/regress34907_test.dart | 2 + .../regress/regress35043_runtime_test.dart | 2 + .../language_2/regress/regress35043_test.dart | 2 + .../language_2/regress/regress35090_test.dart | 2 + .../regress/regress35258_runtime_test.dart | 2 + .../language_2/regress/regress35258_test.dart | 2 + .../regress/regress35259_runtime_test.dart | 2 + .../language_2/regress/regress35259_test.dart | 2 + .../regress/regress35260_runtime_test.dart | 2 + .../language_2/regress/regress35260_test.dart | 2 + .../regress/regress35266_runtime_test.dart | 2 + .../language_2/regress/regress35266_test.dart | 2 + .../language_2/regress/regress35542_test.dart | 2 + .../language_2/regress/regress36084_test.dart | 2 + .../language_2/regress/regress3806_test.dart | 2 + .../language_2/regress/regress38816_test.dart | 2 + .../language_2/regress/regress40066_test.dart | 2 + .../language_2/regress/regress40765_test.dart | 2 + .../regress/regress4157508_test.dart | 2 + .../language_2/regress/regress41613_test.dart | 2 + .../language_2/regress/regress41983_test.dart | 2 + .../language_2/regress/regress42946_test.dart | 2 + .../regress/regress4295001_test.dart | 2 + .../language_2/regress/regress42954_test.dart | 2 + .../language_2/regress/regress44136_test.dart | 2 + .../language_2/regress/regress45060_test.dart | 2 + .../regress/regress4515170_test.dart | 2 + .../language_2/regress/regress45428_test.dart | 2 + .../language_2/regress/regress45642_test.dart | 2 + .../language_2/regress/regress65278_test.dart | 2 + .../language_2/regress/regress6725_part.dart | 2 + .../regress/regress6725_runtime_test.dart | 2 + .../language_2/regress/regress6725_test.dart | 2 + .../language_2/regress/regress7513_test.dart | 2 + .../language_2/regress/regress7525_test.dart | 2 + .../language_2/regress/regress9602_other.dart | 2 + .../language_2/regress/regress9602_test.dart | 2 + .../language_2/regress/regress9664_test.dart | 2 + .../language_2/regress/regress9687_test.dart | 2 + .../language_2/regress/regress9939_test.dart | 2 + .../language_2/regress/regress9949_test.dart | 2 + .../resolution/resolution_test.dart | 2 + tests/language_2/resolution/resolve_test.dart | 2 + .../resolution/unqual_name_test.dart | 2 + tests/language_2/return/in_loop_test.dart | 2 + .../return/skip_expression_test.dart | 2 + tests/language_2/return/this_type_test.dart | 2 + tests/language_2/return/type_test.dart | 2 + tests/language_2/rewrite/assign_test.dart | 2 + .../rewrite/compound_assign_test.dart | 2 + .../language_2/rewrite/conditional_test.dart | 2 + .../rewrite/for_update_order_test.dart | 2 + .../rewrite/if_empty_then_test.dart | 2 + tests/language_2/rewrite/if_return_test.dart | 2 + tests/language_2/rewrite/if_swap_test.dart | 2 + .../rewrite/implicit_this_runtime_test.dart | 2 + .../rewrite/implicit_this_test.dart | 2 + tests/language_2/rewrite/logical_test.dart | 2 + tests/language_2/rewrite/nested_if1_test.dart | 2 + tests/language_2/rewrite/nested_if2_test.dart | 2 + tests/language_2/rewrite/nested_if3_test.dart | 2 + tests/language_2/rewrite/swap_test.dart | 2 + .../rewrite/variable_initializer_test.dart | 2 + .../rewrite/while_many_exits_test.dart | 2 + tests/language_2/rewrite/while_test.dart | 2 + tests/language_2/script/lib.dart | 2 + tests/language_2/script/script1_lib.dart | 2 + tests/language_2/script/script1_part.dart | 2 + tests/language_2/script/script1_test.dart | 4 +- tests/language_2/script/script2_part.dart | 2 + tests/language_2/script/script2_test.dart | 2 + tests/language_2/script/source.dart | 2 + .../set_literals/big_set_literal_test.dart | 2 + .../const_big_set_literal_test.dart | 2 + .../set_literals/const_set_literal_test.dart | 2 + .../set_literals/in_annotations_test.dart | 2 + .../set_literals/in_initializer_test.dart | 2 + .../invalid_set_literal_test.dart | 2 + .../set_literals/set_literal_test.dart | 2 + tests/language_2/setter/checked2_test.dart | 2 + tests/language_2/setter/checked3_test.dart | 2 + .../setter/checked_setter_test.dart | 2 + tests/language_2/setter/declaration_test.dart | 2 + .../setter/no_getter_call_runtime_test.dart | 2 + .../setter/no_getter_call_test.dart | 2 + tests/language_2/setter/no_getter_test.dart | 2 + tests/language_2/setter/override2_test.dart | 2 + tests/language_2/setter/override3_test.dart | 2 + tests/language_2/setter/override_test.dart | 2 + tests/language_2/setter/setter0_test.dart | 2 + tests/language_2/setter/setter1_test.dart | 2 + tests/language_2/setter/setter2_test.dart | 2 + .../setter/setter3_runtime_test.dart | 2 + tests/language_2/setter/setter3_test.dart | 2 + tests/language_2/setter/setter4_test.dart | 2 + .../spread_collections/await_test.dart | 2 + .../spread_collections/bind_test.dart | 2 + .../spread_collections/const_error_test.dart | 2 + .../spread_collections/const_test.dart | 2 + .../spread_collections/helper_classes.dart | 2 + .../spread_collections/inference_test.dart | 2 + .../issue_45174_error_test.dart | 2 + .../map_set_ambiguity_error_test.dart | 2 + .../map_set_ambiguity_test.dart | 2 + .../runtime_error_test.dart | 2 + .../spread_collections/spread_test.dart | 2 + .../spread_collections/syntax_error_test.dart | 2 + .../spread_collections/syntax_test.dart | 2 + .../spread_collections/type_error_test.dart | 2 + .../spread_collections/unevaluated_test.dart | 2 + .../stack_trace/custom_await_test.dart | 2 + .../stack_trace/demangle_ctors_test.dart | 2 + .../stack_trace/error_runtime_test.dart | 2 + tests/language_2/stack_trace/full1_test.dart | 2 + tests/language_2/stack_trace/full2_test.dart | 2 + tests/language_2/stack_trace/full3_test.dart | 2 + .../stack_trace/rethrow_error_test.dart | 2 + .../stack_trace/rethrow_nonerror_test.dart | 2 + .../stack_trace/stack_trace_test.dart | 2 + .../stack_trace/stacktrace_test.dart | 2 + .../call_wrong_argument_count_test.dart | 2 + .../static/closure_identical_test.dart | 2 + .../const_field_reserved_name_test.dart | 2 + tests/language_2/static/const_field_test.dart | 2 + .../static/field1_runtime_test.dart | 2 + tests/language_2/static/field1_test.dart | 2 + .../static/field1a_runtime_test.dart | 2 + tests/language_2/static/field1a_test.dart | 2 + .../static/field3_runtime_test.dart | 2 + tests/language_2/static/field3_test.dart | 2 + .../static/field_override1_test.dart | 2 + .../static/field_override2_test.dart | 2 + .../static/field_override3_test.dart | 2 + tests/language_2/static/field_test.dart | 2 + .../static/final_field2_runtime_test.dart | 2 + .../language_2/static/final_field2_test.dart | 2 + .../getter_no_setter1_runtime_test.dart | 2 + .../static/getter_no_setter1_test.dart | 2 + .../getter_no_setter2_runtime_test.dart | 2 + .../static/getter_no_setter2_test.dart | 2 + .../static/implicit_closure_test.dart | 2 + .../static/initializer_type_error_test.dart | 2 + tests/language_2/static/inline_test.dart | 2 + tests/language_2/static/parameter_test.dart | 2 + .../static/postfix_operator_test.dart | 2 + .../static/setter_conflicts_test.dart | 2 + .../static/setter_get_runtime_test.dart | 2 + tests/language_2/static/setter_get_test.dart | 2 + .../static/top_level_runtime_test.dart | 2 + tests/language_2/static/top_level_test.dart | 18 +- .../adjacent_const_string_literals_test.dart | 2 + .../string/adjacent_string_literals_test.dart | 2 + .../string/bad_raw_string_runtime_test.dart | 2 + .../string/bad_raw_string_test.dart | 8 +- tests/language_2/string/char_escape_test.dart | 2 + tests/language_2/string/charcode_test.dart | 2 + .../string/const_interpolation2_test.dart | 2 + ...on_constant_string_interpolation_test.dart | 2 + tests/language_2/string/escape4_test.dart | 18 +- tests/language_2/string/escapes_test.dart | 2 + .../language_2/string/interpolate1_test.dart | 2 + .../language_2/string/interpolate2_test.dart | 2 + .../language_2/string/interpolate3_test.dart | 2 + .../string/interpolate_null_test.dart | 2 + tests/language_2/string/interpolate_test.dart | 2 + .../string/interpolation1_runtime_test.dart | 2 + .../string/interpolation1_test.dart | 7 +- .../string/interpolation2_runtime_test.dart | 2 + .../string/interpolation2_test.dart | 2 + .../string/interpolation3_runtime_test.dart | 2 + .../string/interpolation3_test.dart | 2 + .../string/interpolation4_runtime_test.dart | 2 + .../string/interpolation4_test.dart | 2 + .../string/interpolation5_runtime_test.dart | 2 + .../string/interpolation5_test.dart | 2 + .../string/interpolation6_test.dart | 2 + .../string/interpolation7_test.dart | 2 + .../string/interpolation8_test.dart | 2 + .../string/interpolation9_runtime_test.dart | 2 + .../string/interpolation9_test.dart | 2 + .../string/interpolation_and_buffer_test.dart | 2 + .../string/interpolation_newline_test.dart | 2 + .../string/interpolation_runtime_test.dart | 2 + .../language_2/string/interpolation_test.dart | 2 + tests/language_2/string/intrinsics_test.dart | 2 + tests/language_2/string/join_test.dart | 2 + tests/language_2/string/literals_test.dart | 2 + .../string/multiline_newline_cr.dart | 2 + .../string/multiline_newline_crlf.dart | 58 +-- .../string/multiline_newline_lf.dart | 2 + .../multiline_newline_runtime_1_test.dart | 2 + .../multiline_newline_runtime_2_test.dart | 2 + .../multiline_newline_runtime_3_test.dart | 2 + .../multiline_newline_runtime_4_test.dart | 2 + .../multiline_newline_runtime_5_test.dart | 2 + .../multiline_newline_runtime_6_test.dart | 2 + .../multiline_newline_runtime_test.dart | 2 + .../string/multiline_newline_test.dart | 2 + .../string/multiline_strings_test.dart | 2 + .../string/no_operator_runtime_test.dart | 2 + tests/language_2/string/no_operator_test.dart | 2 + .../language_2/string/optimizations_test.dart | 2 + tests/language_2/string/overflow.dart | 2 + tests/language_2/string/raw_string_test.dart | 2 + tests/language_2/string/runtime_test.dart | 2 + tests/language_2/string/split_test.dart | 2 + tests/language_2/string/string_test.dart | 2 + .../string/substring_runtime_test.dart | 2 + tests/language_2/string/substring_test.dart | 2 + .../string/supertype_checked_test.dart | 2 + tests/language_2/string/unicode1_test.dart | 2 + tests/language_2/string/unicode2_test.dart | 2 + tests/language_2/string/unicode3_test.dart | 2 + tests/language_2/string/unicode4_test.dart | 2 + .../string/unicode_bom_middle_test.dart | 2 + tests/language_2/string/unicode_bom_test.dart | 4 +- .../language_2/string/unicode_hash_test.dart | 2 + .../future_or_subtype_test.dart | 2 + .../super/abstract_method_test.dart | 2 + ...ace_adds_optional_args_supercall_test.dart | 2 + .../super/all_named_constructor_test.dart | 2 + .../language_2/super/assign_runtime_test.dart | 2 + tests/language_2/super/assign_test.dart | 2 + .../language_2/super/bound_closure_test.dart | 2 + tests/language_2/super/call2_test.dart | 2 + .../language_2/super/call3_runtime_test.dart | 2 + tests/language_2/super/call3_test.dart | 2 + tests/language_2/super/call4_test.dart | 2 + tests/language_2/super/call_test.dart | 2 + tests/language_2/super/closure_test.dart | 2 + .../conditional_operator_runtime_test.dart | 2 + .../super/conditional_operator_test.dart | 2 + tests/language_2/super/field_2_test.dart | 2 + tests/language_2/super/field_access_test.dart | 2 + tests/language_2/super/field_test.dart | 2 + .../super/from_constructor_test.dart | 2 + .../super/implicit_closure_test.dart | 2 + tests/language_2/super/in_async1_test.dart | 2 + tests/language_2/super/in_async2_test.dart | 2 + tests/language_2/super/in_async3_test.dart | 2 + tests/language_2/super/in_async4_test.dart | 2 + tests/language_2/super/in_async5_test.dart | 2 + tests/language_2/super/in_async6_test.dart | 2 + .../language_2/super/in_constructor_test.dart | 2 + tests/language_2/super/in_finally_test.dart | 2 + tests/language_2/super/inferrer_test.dart | 2 + tests/language_2/super/mixin_test.dart | 2 + .../super/no_such_method1_test.dart | 2 + .../super/no_such_method2_test.dart | 2 + .../super/no_such_method3_test.dart | 2 + .../super/no_such_method4_runtime_test.dart | 2 + .../super/no_such_method4_test.dart | 2 + .../super/no_such_method5_runtime_test.dart | 2 + .../super/no_such_method5_test.dart | 2 + tests/language_2/super/non_const_test.dart | 2 + .../super/operator_index2_test.dart | 2 + .../super/operator_index3_test.dart | 2 + .../super/operator_index4_test.dart | 2 + .../super/operator_index5_test.dart | 2 + .../super/operator_index6_test.dart | 2 + .../super/operator_index7_test.dart | 2 + .../super/operator_index8_test.dart | 2 + .../language_2/super/operator_index_test.dart | 2 + tests/language_2/super/operator_test.dart | 2 + .../super/setter_interceptor_test.dart | 2 + tests/language_2/super/setter_test.dart | 2 + tests/language_2/super/super_test.dart | 2 + .../abstract_class_error_test.dart | 2 + ...abstract_mixin_application_error_test.dart | 2 + .../concrete_class_error_test.dart | 2 + ...concrete_mixin_application_error_test.dart | 2 + .../covariance_test.dart | 2 + .../mixin_error_test.dart | 2 + .../switch/aborting_switch_case_test.dart | 2 + .../switch/bad_case_runtime_test.dart | 2 + tests/language_2/switch/bad_case_test.dart | 2 + ...pression_with_assignment_runtime_test.dart | 2 + .../case_expression_with_assignment_test.dart | 2 + .../language_2/switch/case_runtime_test.dart | 2 + .../switch/case_static_const_test.dart | 2 + tests/language_2/switch/case_test.dart | 2 + tests/language_2/switch/case_warn_test.dart | 2 + .../switch/empty_block_case_test.dart | 2 + .../switch/fallthru_runtime_test.dart | 2 + tests/language_2/switch/fallthru_test.dart | 2 + .../switch/infinite_switch_label_test.dart | 2 + tests/language_2/switch/label2_test.dart | 2 + tests/language_2/switch/label_test.dart | 2 + .../switch/nested_switch_label_test.dart | 2 + tests/language_2/switch/scope_test.dart | 2 + tests/language_2/switch/switch1_test.dart | 2 + tests/language_2/switch/switch3_test.dart | 2 + tests/language_2/switch/switch4_test.dart | 2 + tests/language_2/switch/switch5_test.dart | 2 + tests/language_2/switch/switch6_test.dart | 2 + tests/language_2/switch/switch7_test.dart | 2 + tests/language_2/switch/switch8_test.dart | 2 + tests/language_2/switch/switch_test.dart | 2 + tests/language_2/switch/try_catch_test.dart | 2 + tests/language_2/symbol/conflict_test.dart | 2 + .../symbol/literal_runtime_1_test.dart | 2 + .../symbol/literal_runtime_test.dart | 2 + tests/language_2/symbol/literal_test.dart | 2 + .../sync_star/covariant_type_test.dart | 2 + .../language_2/sync_star/dcall_type_test.dart | 2 + .../sync_star/generator1_runtime_test.dart | 2 + .../language_2/sync_star/generator1_test.dart | 2 + .../language_2/sync_star/generator2_test.dart | 2 + .../language_2/sync_star/generator3_test.dart | 2 + .../language_2/sync_star/less_than_test.dart | 2 + .../sync_star/nested_subtype_test.dart | 2 + .../sync_star_exception_nested_test.dart | 2 + .../sync_star/sync_star_exception_test.dart | 2 + .../sync_star/void_sync_star_test.dart | 2 + .../sync_star/yield_star_pause_test.dart | 2 + tests/language_2/sync_star/yield_test.dart | 2 + .../language_2/sync_star/yieldstar_test.dart | 2 + .../syntax/deep_nesting_expression_test.dart | 2 + .../syntax/deep_nesting_statement_test.dart | 2 + .../syntax/nested_comments_test.dart | 2 + .../syntax/pre_nnbd_modifiers_test.dart | 2 + tests/language_2/syntax/statement_test.dart | 2 + tests/language_2/syntax/syntax_test.dart | 2 + .../syntax/unbalanced_brace_test.dart | 2 + .../this/as_covariant_call_checks_test.dart | 2 + .../this/as_dynamic_call_checks_test.dart | 2 + tests/language_2/this/call_this_test.dart | 2 + .../conditional_operator_runtime_test.dart | 2 + .../this/conditional_operator_test.dart | 8 +- .../this/implicit_runtime_test.dart | 2 + tests/language_2/this/implicit_this_test.dart | 2 + .../language_2/this/in_initializer_test.dart | 2 + tests/language_2/this/runtime_test.dart | 2 + tests/language_2/this/this_test.dart | 2 + .../language_2/top_level/collision1_test.dart | 2 + .../language_2/top_level/collision2_test.dart | 2 + tests/language_2/top_level/file1.dart | 2 + tests/language_2/top_level/file2.dart | 2 + tests/language_2/top_level/file3.dart | 2 + tests/language_2/top_level/func_test.dart | 2 + .../top_level/getter_arrow_syntax_test.dart | 2 + .../top_level/getter_no_setter1_test.dart | 2 + .../top_level/getter_no_setter2_test.dart | 2 + .../top_level/in_initializer_test.dart | 2 + tests/language_2/top_level/method_test.dart | 2 + .../top_level/multiple_files_test.dart | 2 + .../top_level/non_prefixed_library_test.dart | 2 + .../top_level/prefixed_declaration_test.dart | 2 + .../top_level/prefixed_library.dart | 2 + .../top_level/unresolved_method_test.dart | 2 + .../top_level/unresolved_var_test.dart | 2 + tests/language_2/top_level/var_test.dart | 2 + .../language_2/type/alias_equality_test.dart | 2 + .../check_const_function_typedef2_test.dart | 2 + .../check_const_function_typedef_test.dart | 2 + tests/language_2/type/check_test.dart | 2 + ...checks_in_factory_method_runtime_test.dart | 2 + .../type/checks_in_factory_method_test.dart | 2 + tests/language_2/type/constants_test.dart | 2 + .../language_2/type/conversion_ssa_test.dart | 2 + tests/language_2/type/error_test.dart | 2 + .../type/guard_conversion_test.dart | 2 + tests/language_2/type/hoisting_test.dart | 2 + .../language_2/type/implicit_error_test.dart | 2 + tests/language_2/type/intersection_test.dart | 2 + .../constant_type_literal_runtime_test.dart | 2 + .../constant_type_literal_test.dart | 2 + .../first_class_types_constants_test.dart | 2 + .../type_object/first_class_types_lib1.dart | 2 + .../type_object/first_class_types_lib2.dart | 2 + .../first_class_types_libraries_test.dart | 2 + ...t_class_types_literals_runtime_1_test.dart | 2 + ...t_class_types_literals_runtime_2_test.dart | 2 + ...rst_class_types_literals_runtime_test.dart | 2 + .../first_class_types_literals_test.dart | 2 + .../type_object/first_class_types_test.dart | 2 + .../literal_canonicalization_test.dart | 2 + .../type_object/literal_prefix_call_test.dart | 2 + .../literal_type_literal_test.dart | 2 + .../type_object/reify_type_variable_test.dart | 2 + .../runtime_type_function_test.dart | 2 + .../type_object/runtime_type_test.dart | 2 + .../type_promotion/assign_runtime_test.dart | 2 + .../type_promotion/assign_test.dart | 2 + ...assignment_defeats_promotion_and_test.dart | 2 + ...nment_defeats_promotion_cascaded_test.dart | 2 + ...ment_defeats_promotion_immediate_test.dart | 2 + ...gnment_defeats_promotion_lhs_and_test.dart | 2 + ...eats_promotion_nested_other_bool_test.dart | 2 + ...t_defeats_promotion_nested_other_test.dart | 2 + ...nt_defeats_promotion_nested_same_test.dart | 2 + .../closure_runtime_1_test.dart | 2 + .../closure_runtime_2_test.dart | 2 + .../type_promotion/closure_runtime_test.dart | 2 + .../type_promotion/closure_test.dart | 2 + .../functions_runtime_test.dart | 2 + .../type_promotion/functions_test.dart | 2 + .../type_promotion/local_runtime_test.dart | 2 + .../language_2/type_promotion/local_test.dart | 2 + .../logical_and_runtime_test.dart | 2 + .../type_promotion/logical_and_test.dart | 2 + .../more_specific_runtime_1_test.dart | 2 + .../more_specific_runtime_2_test.dart | 2 + .../more_specific_runtime_3_test.dart | 2 + .../more_specific_runtime_4_test.dart | 2 + .../more_specific_runtime_5_test.dart | 2 + .../more_specific_runtime_6_test.dart | 2 + .../more_specific_runtime_test.dart | 2 + .../type_promotion/more_specific_test.dart | 2 + .../type_promotion/multiple_runtime_test.dart | 2 + .../type_promotion/multiple_test.dart | 2 + .../parameter_runtime_test.dart | 2 + .../type_promotion/parameter_test.dart | 2 + .../bound_access_runtime_test.dart | 2 + .../type_variable/bound_access_test.dart | 2 + .../type_variable/bounds2_test.dart | 2 + .../type_variable/bounds3_runtime_test.dart | 2 + .../type_variable/bounds3_test.dart | 2 + .../type_variable/bounds4_runtime_test.dart | 2 + .../type_variable/bounds4_test.dart | 2 + .../language_2/type_variable/bounds_test.dart | 2 + .../type_variable/closure2_test.dart | 2 + .../type_variable/closure3_test.dart | 2 + .../type_variable/closure4_test.dart | 2 + .../type_variable/closure_test.dart | 2 + .../type_variable/conflict2_runtime_test.dart | 2 + .../type_variable/conflict2_test.dart | 2 + .../type_variable/conflict_runtime_test.dart | 2 + .../type_variable/conflict_test.dart | 2 + .../field_initializer2_test.dart | 2 + .../field_initializer_closure2_test.dart | 2 + .../field_initializer_closure_test.dart | 2 + .../type_variable/field_initializer_test.dart | 2 + .../type_variable/function_type_test.dart | 2 + .../identifier_expression_test.dart | 2 + .../type_variable/initializer_test.dart | 2 + .../language_2/type_variable/nested_test.dart | 2 + .../promotion_issue39752_test.dart | 2 + .../type_variable/promotion_test.dart | 2 + .../language_2/type_variable/scope2_test.dart | 2 + .../type_variable/scope3_runtime_test.dart | 2 + .../language_2/type_variable/scope3_test.dart | 2 + .../type_variable/scope_runtime_test.dart | 2 + .../language_2/type_variable/scope_test.dart | 2 + .../type_variable/static_context_test.dart | 2 + .../type_variable/typedef_test.dart | 2 + .../typedef/bad_typedef_runtime_test.dart | 2 + .../language_2/typedef/bad_typedef_test.dart | 2 + .../typedef/check_bounds_generic_test.dart | 2 + .../language_2/typedef/check_bounds_test.dart | 2 + .../typedef/check_bounds_unused_test.dart | 2 + .../typedef/class_in_other_file_helper.dart | 2 + .../typedef/class_in_other_file_test.dart | 2 + tests/language_2/typedef/cyclic_test.dart | 2 + tests/language_2/typedef/is_test.dart | 2 + tests/language_2/unsorted/ackermann_test.dart | 2 + ...face_adds_optional_args_concrete_test.dart | 2 + ...nal_interface_adds_optional_args_test.dart | 2 + .../unsorted/allocate_large_object_test.dart | 2 + tests/language_2/unsorted/allocate_test.dart | 2 + .../arg_param_trailing_comma_test.dart | 2 + .../assignable_expression_runtime_test.dart | 2 + .../unsorted/assignable_expression_test.dart | 2 + .../unsorted/bad_override_runtime_test.dart | 2 + .../unsorted/bad_override_test.dart | 2 + tests/language_2/unsorted/bind_test.dart | 2 + tests/language_2/unsorted/bootstrap_test.dart | 2 + tests/language_2/unsorted/bottom_test.dart | 2 + .../branch_canonicalization_test.dart | 2 + tests/language_2/unsorted/branches_test.dart | 2 + .../unsorted/callable_runtime_test.dart | 2 + tests/language_2/unsorted/callable_test.dart | 2 + .../cascaded_forwarding_stubs_test.dart | 2 + tests/language_2/unsorted/cast2_test.dart | 2 + tests/language_2/unsorted/cast_test.dart | 2 + .../check_member_static_runtime_1_test.dart | 2 + .../check_member_static_runtime_test.dart | 2 + .../unsorted/check_member_static_test.dart | 2 + .../check_method_override_runtime_test.dart | 2 + .../unsorted/check_method_override_test.dart | 2 + .../checked_method_error_order_test.dart | 2 + .../combiner_type_lookup_indexed_test.dart | 2 + .../combiner_type_lookup_instance_test.dart | 2 + .../combiner_type_lookup_static_test.dart | 2 + .../combiner_type_lookup_top_level_test.dart | 2 + .../unsorted/condition_bailout_test.dart | 2 + tests/language_2/unsorted/context2_test.dart | 2 + .../context_args_with_defaults_test.dart | 2 + tests/language_2/unsorted/context_test.dart | 2 + .../unsorted/core_type_check_test.dart | 2 + .../unsorted/cyclic_default_values_test.dart | 2 + .../unsorted/cyclic_type2_test.dart | 2 + .../language_2/unsorted/cyclic_type_test.dart | 2 + .../default_implementation2_test.dart | 2 + .../unsorted/default_implementation_test.dart | 2 + .../unsorted/default_init_test.dart | 2 + .../language_2/unsorted/deny_listed_test.dart | 2 + .../language_2/unsorted/disassemble_test.dart | 2 + .../efficient_length_warning_test.dart | 2 + .../unsorted/emit_const_fields_test.dart | 2 + tests/language_2/unsorted/expect_test.dart | 2 + .../unsorted/extend_type_parameter_test.dart | 2 + tests/language_2/unsorted/extends_test.dart | 2 + .../language_2/unsorted/extends_test_lib.dart | 2 + .../unsorted/external_runtime_test.dart | 2 + tests/language_2/unsorted/external_test.dart | 6 +- .../unsorted/extract_type_arguments_test.dart | 2 + tests/language_2/unsorted/fannkuch_test.dart | 2 + .../unsorted/fast_method_extraction_test.dart | 2 + .../unsorted/fauxverride_runtime_test.dart | 2 + .../language_2/unsorted/fauxverride_test.dart | 2 + tests/language_2/unsorted/fibo_test.dart | 2 + tests/language_2/unsorted/first_test.dart | 2 + .../unsorted/fixed_length_test.dart | 2 + tests/language_2/unsorted/flatten_test.dart | 2 + .../unsorted/forwarding_semi_stub_test.dart | 2 + .../unsorted/future_or_function_test.dart | 2 + .../unsorted/fuzzy_arrows_test.dart | 2 + tests/language_2/unsorted/gc_test.dart | 2 + tests/language_2/unsorted/guess_cid_test.dart | 2 + .../unsorted/gvn_field_access_test.dart | 2 + .../unsorted/gvn_interceptor_test.dart | 2 + tests/language_2/unsorted/gvn_test.dart | 2 + .../unsorted/hash_code_mangling_test.dart | 2 + .../language_2/unsorted/hello_dart_test.dart | 2 + .../language_2/unsorted/hello_script_lib.dart | 2 + .../unsorted/hello_script_lib_source.dart | 2 + .../unsorted/hello_script_test.dart | 2 + .../unsorted/illegal_declaration_test.dart | 2 + .../unsorted/illegal_invocation_lib.dart | 2 + .../illegal_invocation_runtime_test.dart | 2 + .../unsorted/illegal_invocation_test.dart | 2 + .../unsorted/implicit_scope_test.dart | 2 + ...ssign_operator_infer_return_type_test.dart | 2 + .../unsorted/indirect_const_null_test.dart | 2 + .../unsorted/inference_enum_list_test.dart | 2 + .../unsorted/inference_list_or_null_test.dart | 2 + .../unsorted/intrinsified_methods_test.dart | 2 + .../unsorted/inv_cse_licm_test.dart | 2 + .../unsorted/invalid_cast_runtime_1_test.dart | 2 + .../unsorted/invalid_cast_runtime_2_test.dart | 2 + .../unsorted/invalid_cast_runtime_test.dart | 2 + .../unsorted/invalid_cast_test.dart | 2 + ...alid_type_argument_count_runtime_test.dart | 2 + .../invalid_type_argument_count_test.dart | 10 +- .../unsorted/invocation_mirror2_test.dart | 2 + ...nvocation_mirror_empty_arguments_test.dart | 2 + .../unsorted/invocation_mirror_test.dart | 2 + .../unsorted/js_properties_test.dart | 2 + .../keyword_type_expression_test.dart | 2 + .../unsorted/large_implicit_getter_test.dart | 2 + .../unsorted/larger_implicit_getter_test.dart | 2 + tests/language_2/unsorted/liveness_test.dart | 2 + .../unsorted/load_indexed_constant_test.dart | 2 + .../local_var_in_annotation_test.dart | 2 + .../language_2/unsorted/many_calls_test.dart | 2 + .../unsorted/many_method_calls_test.dart | 2 + .../unsorted/many_named_arguments_test.dart | 2 + tests/language_2/unsorted/mega_load_test.dart | 2 + .../language_2/unsorted/memory_swap_test.dart | 2 + .../unsorted/mint_compares_test.dart | 2 + .../mock_writable_final_field_test.dart | 2 + .../language_2/unsorted/multi_pass2_test.dart | 2 + tests/language_2/unsorted/multi_pass_a.dart | 2 + tests/language_2/unsorted/multi_pass_b.dart | 2 + .../language_2/unsorted/multi_pass_test.dart | 2 + tests/language_2/unsorted/namer2_test.dart | 2 + tests/language_2/unsorted/namer_test.dart | 2 + tests/language_2/unsorted/native_test.dart | 2 + .../language_2/unsorted/parse_types_test.dart | 2 + .../language_2/unsorted/partial_min_test.dart | 2 + tests/language_2/unsorted/patch_test.dart | 2 + .../property_field_override_test.dart | 2 + .../unsorted/range_analysis2_test.dart | 2 + .../unsorted/range_analysis3_test.dart | 2 + .../unsorted/range_analysis_test.dart | 2 + .../unsorted/recursive_calls_test.dart | 2 + .../unsorted/recursive_loop_phis_test.dart | 2 + .../unsorted/refine_receiver_null_test.dart | 2 + tests/language_2/unsorted/savannah_test.dart | 2 + tests/language_2/unsorted/scanner_test.dart | 2 + tests/language_2/unsorted/second_test.dart | 2 + .../shadow_parameter_and_local_test.dart | 2 + .../unsorted/side_effect_throw_test.dart | 2 + ...maller_4_Interface_Types_A11_t01_test.dart | 2 + ...maller_4_Interface_Types_A11_t02_test.dart | 2 + .../stack_overflow_stacktrace_test.dart | 2 + .../unsorted/stack_overflow_test.dart | 2 + .../unsorted/state_mangling2_test.dart | 2 + .../unsorted/state_mangling3_test.dart | 2 + .../unsorted/state_mangling4_test.dart | 2 + .../unsorted/state_mangling_test.dart | 2 + .../unsorted/temp_mangling_test.dart | 2 + tests/language_2/unsorted/third_test.dart | 2 + .../tree_shake_typed_selector_test.dart | 2 + ...typecheck_multifield_declaration_test.dart | 2 + .../unsorted/typed_equality_test.dart | 2 + .../unsorted/typed_selector2_test.dart | 2 + .../unsorted/typed_selector_test.dart | 2 + .../unsorted/unevaluated_field.dart | 2 + .../unused_overridden_async_test.dart | 2 + .../unsorted/value_range2_test.dart | 2 + .../unsorted/value_range3_test.dart | 2 + .../language_2/unsorted/value_range_test.dart | 2 + tests/language_2/unsorted/var_init_test.dart | 2 + .../bad_initializer1_runtime_test.dart | 2 + .../variable/bad_initializer1_test.dart | 2 + .../bad_initializer2_runtime_test.dart | 2 + .../variable/bad_initializer2_test.dart | 2 + ...licting_type_variable_and_setter_test.dart | 2 + .../variable/cyclic_type_variable_test.dart | 2 + ...e_field_with_initializer_runtime_test.dart | 2 + ...duplicate_field_with_initializer_test.dart | 2 + .../variable/fixed_type_variable2_test.dart | 2 + .../variable/fixed_type_variable_test.dart | 2 + .../illegal_initializer_runtime_test.dart | 2 + .../variable/illegal_initializer_test.dart | 14 +- .../inference_captured_variable2_test.dart | 2 + .../inference_captured_variable_test.dart | 2 + .../initializer_super_last_runtime_test.dart | 2 + .../variable/initializer_super_last_test.dart | 2 + .../inst_field_initializer1_test.dart | 2 + .../variable/inst_field_initializer_test.dart | 2 + .../labeled_variable_declaration_test.dart | 2 + .../ref_before_declaration_runtime_test.dart | 2 + .../variable/ref_before_declaration_test.dart | 2 + .../variable/scope_variable_runtime_test.dart | 2 + .../variable/scope_variable_test.dart | 2 + .../scoped_variables_try_catch_test.dart | 2 + .../variable_declaration_metadata_test.dart | 2 + .../variable/variable_named_dart_test.dart | 2 + ...sabled_keyword_identifier_syntax_test.dart | 48 --- .../syntax/variance_disabled_syntax_test.dart | 76 ---- ...riance_keyword_identifier_syntax_test.dart | 51 --- .../variance/syntax/variance_syntax_test.dart | 45 --- ...ance_type_parameter_error_syntax_test.dart | 68 ---- .../variance_downwards_inference_test.dart | 53 --- .../variance_in_field_error_test.dart | 78 ---- .../variance/variance_in_field_test.dart | 56 --- .../variance_in_inference_error_test.dart | 101 ----- .../variance/variance_in_inference_test.dart | 76 ---- .../variance_in_method_error_test.dart | 351 ----------------- .../variance/variance_in_method_test.dart | 246 ------------ .../variance_in_subclass_error_test.dart | 144 ------- .../variance/variance_in_subclass_test.dart | 49 --- .../variance_in_subtyping_error_test.dart | 80 ---- .../variance/variance_in_subtyping_test.dart | 102 ----- .../variance/variance_inout_field_test.dart | 99 ----- .../variance_inout_inference_error_test.dart | 70 ---- .../variance_inout_inference_test.dart | 54 --- .../variance/variance_inout_method_test.dart | 287 -------------- .../variance_inout_subclass_test.dart | 90 ----- .../variance_inout_subtyping_error_test.dart | 130 ------- .../variance_inout_subtyping_test.dart | 170 --------- .../variance_method_tearoff_test.dart | 52 --- .../variance_multi_subclass_error_test.dart | 84 ----- .../variance_multi_subclass_test.dart | 42 --- .../variance_out_field_error_test.dart | 54 --- .../variance/variance_out_field_test.dart | 72 ---- .../variance_out_inference_error_test.dart | 60 --- .../variance/variance_out_inference_test.dart | 55 --- .../variance_out_method_error_test.dart | 357 ------------------ .../variance/variance_out_method_test.dart | 233 ------------ .../variance_out_subclass_error_test.dart | 124 ------ .../variance/variance_out_subclass_test.dart | 58 --- .../variance_out_subtyping_error_test.dart | 80 ---- .../variance/variance_out_subtyping_test.dart | 102 ----- ...variance_unconstrained_inference_test.dart | 26 -- ...ariance_upper_lower_bounds_error_test.dart | 102 ----- .../variance_upper_lower_bounds_test.dart | 71 ---- .../vm/allocate_overflow_array_test.dart | 2 + .../vm/allocate_overflow_bytearray_test.dart | 2 + .../vm/allocate_overflow_string_test.dart | 2 + .../vm/allocation_sinking_arrays_test.dart | 2 + .../vm/allocation_sinking_vm_test.dart | 2 + .../vm/async_await_catch_stacktrace_test.dart | 2 + .../vm/await_synchronous_future_test.dart | 2 + tests/language_2/vm/bitnot_int_test.dart | 2 + .../vm/bool_check_stack_traces_test.dart | 12 +- ...canonicalization_preserves_deopt_test.dart | 2 + .../causal_async_exception_stack2_test.dart | 2 + .../causal_async_exception_stack_helper.dart | 2 + .../vm/causal_async_exception_stack_test.dart | 10 +- .../vm/checked_smi_comparison_test.dart | 2 + tests/language_2/vm/checked_smi_op_test.dart | 8 +- tests/language_2/vm/clamp_37868_test.dart | 2 + .../vm/closure_memory_retention_test.dart | 2 + .../vm/create_array_instr_deopt2_test.dart | 2 + .../vm/create_array_instr_deopt_test.dart | 2 + .../vm/debug_break_enabled_vm_test.dart | 2 + tests/language_2/vm/debug_break_vm_test.dart | 2 + tests/language_2/vm/deep_loop_test.dart | 2 + .../vm/deopt_hoisted_smi_check_vm_test.dart | 2 + .../vm/deopt_smi_check_vm_test.dart | 2 + tests/language_2/vm/div_mod_test.dart | 2 + .../future_or_regression_34238_test.dart | 2 + .../vm/function_equality_vm_test.dart | 2 + .../language_2/vm/if_conversion_vm_test.dart | 2 + .../language_2/vm/inline_heuristic_test.dart | 2 + .../vm/integer_type_propagation2_test.dart | 2 + .../vm/integer_type_propagation_test.dart | 2 + .../language_2/vm/irreducible_loop_test.dart | 2 + tests/language_2/vm/issue11087_vm_test.dart | 2 + tests/language_2/vm/issue21220_vm_test.dart | 2 + tests/language_2/vm/lazy_deopt_vm_test.dart | 2 + ...pt_with_exception_and_stacktrace_test.dart | 2 + .../vm/lazy_deopt_with_exception_test.dart | 2 + .../licm_constant_redefinition_vm_test.dart | 2 + ...limination_any_use_creates_alias_test.dart | 2 + ...elimination_has_loads_from_place_test.dart | 2 + ...tion_mark_stored_values_escaping_test.dart | 2 + ...ad_elimination_two_redefinitions_test.dart | 2 + ...ad_to_load_forwarding_cutdown_vm_test.dart | 2 + .../vm/load_to_load_forwarding_vm_test.dart | 2 + ..._to_load_unaligned_forwarding_vm_test.dart | 2 + tests/language_2/vm/math_vm_test.dart | 2 + tests/language_2/vm/mixin_test.dart | 2 + tests/language_2/vm/modtruncdiv_int_test.dart | 2 + tests/language_2/vm/mult_int_test.dart | 2 + tests/language_2/vm/negate_int_test.dart | 2 + .../no_such_args_error_message_vm_test.dart | 2 + ...method_error_message_callable_vm_test.dart | 2 + .../no_such_method_error_message_vm_test.dart | 2 + .../vm/null_hashcode_optimized_vm_test.dart | 2 + tests/language_2/vm/optimization_test.dart | 2 + .../vm/optimized_await_regress_test.dart | 2 + .../vm/optimized_check_class_test.dart | 2 + ...optimized_guarded_field_isolates_test.dart | 2 + .../vm/optimized_guarded_field_test.dart | 2 + .../vm/optimized_identical_test.dart | 2 + .../vm/optimized_list_constructor_test.dart | 2 + ...ptimized_polymorphic_list_access_test.dart | 2 + tests/language_2/vm/optimized_shl_test.dart | 2 + .../vm/optimized_stacktrace_test.dart | 2 + .../language_2/vm/optimized_testsmi_test.dart | 2 + .../vm/optimized_try_catch_cha_test.dart | 2 + .../vm/optimized_unique_selector_test.dart | 2 + .../vm/osr_nonempty_stack_test.dart | 2 + tests/language_2/vm/plus_null_37719_test.dart | 2 + tests/language_2/vm/power_int_test.dart | 2 + .../precompiled_static_initializer_test.dart | 2 + tests/language_2/vm/reflect_core_vm_test.dart | 2 + tests/language_2/vm/regress_14903_test.dart | 2 + tests/language_2/vm/regress_16873_test.dart | 2 + tests/language_2/vm/regress_21245_test.dart | 2 + tests/language_2/vm/regress_22480_test.dart | 2 + .../language_2/vm/regress_22541_vm_test.dart | 2 + .../language_2/vm/regress_22621_vm_test.dart | 2 + .../language_2/vm/regress_22693_vm_test.dart | 2 + .../language_2/vm/regress_23117_vm_test.dart | 2 + tests/language_2/vm/regress_23238_test.dart | 2 + tests/language_2/vm/regress_24517_test.dart | 2 + tests/language_2/vm/regress_27201_lib.dart | 2 + tests/language_2/vm/regress_27201_test.dart | 2 + tests/language_2/vm/regress_27671_other.dart | 2 + tests/language_2/vm/regress_27671_test.dart | 2 + .../language_2/vm/regress_29137_vm_test.dart | 2 + tests/language_2/vm/regress_29145_test.dart | 2 + tests/language_2/vm/regress_31946_test.dart | 2 + tests/language_2/vm/regress_32204_test.dart | 2 + tests/language_2/vm/regress_32322_test.dart | 2 + tests/language_2/vm/regress_32502_test.dart | 2 + tests/language_2/vm/regress_32971_test.dart | 2 + tests/language_2/vm/regress_33025_test.dart | 2 + .../vm/regress_33040_instantiation_test.dart | 2 + tests/language_2/vm/regress_33040_test.dart | 2 + tests/language_2/vm/regress_33073_test.dart | 2 + tests/language_2/vm/regress_33095_test.dart | 2 + tests/language_2/vm/regress_33469_test.dart | 2 + tests/language_2/vm/regress_33794_test.dart | 2 + tests/language_2/vm/regress_34051_test.dart | 2 + tests/language_2/vm/regress_34288_test.dart | 2 + tests/language_2/vm/regress_34396_helper.dart | 2 + tests/language_2/vm/regress_34396_test.dart | 2 + tests/language_2/vm/regress_34435_test.dart | 2 + tests/language_2/vm/regress_34466_test.dart | 2 + tests/language_2/vm/regress_34644_test.dart | 2 + tests/language_2/vm/regress_34684_test.dart | 2 + tests/language_2/vm/regress_35321_test.dart | 2 + tests/language_2/vm/regress_35325_test.dart | 2 + tests/language_2/vm/regress_36589_test.dart | 2 + tests/language_2/vm/regress_36681_test.dart | 2 + tests/language_2/vm/regress_36778_test.dart | 2 + tests/language_2/vm/regress_36803_test.dart | 2 + tests/language_2/vm/regress_36977_test.dart | 2 + tests/language_2/vm/regress_37149_test.dart | 2 + tests/language_2/vm/regress_37984_test.dart | 2 + tests/language_2/vm/regress_39283_test.dart | 2 + tests/language_2/vm/regress_40792_test.dart | 2 + tests/language_2/vm/regress_45525_test.dart | 2 + tests/language_2/vm/regress_45674_test.dart | 2 + .../vm/regress_b131091988_test.dart | 2 + .../language_2/vm/regress_b80154489_test.dart | 2 + .../vm/regress_flutter_14891_test.dart | 2 + .../vm/regress_flutter_19612_test.dart | 2 + .../vm/regress_flutter_21957_test.dart | 2 + .../vm/regress_flutter_22131_test.dart | 2 + .../vm/regress_flutter_23879_test.dart | 2 + .../vm/regress_flutter_28260_test.dart | 2 + .../vm/regress_flutter_42845_lib.dart | 2 + .../vm/regress_flutter_42845_test.dart | 2 +- .../vm/regress_flutter_51828_bug2_test.dart | 2 + .../vm/regress_flutter_56479_test.dart | 2 + tests/language_2/vm/regress_licm_test.dart | 2 + .../vm/regress_protobuf_95_test.dart | 2 + .../language_2/vm/regression_32912_test.dart | 2 + .../language_2/vm/regression_36076_test.dart | 2 + .../language_2/vm/regression_36587_test.dart | 2 + .../language_2/vm/regression_37408_test.dart | 2 + .../language_2/vm/regression_37622_test.dart | 2 + .../language_2/vm/regression_37633_test.dart | 2 + .../language_2/vm/regression_37821_test.dart | 2 + .../language_2/vm/regression_38147_test.dart | 2 + .../language_2/vm/regression_38231_test.dart | 2 + tests/language_2/vm/regression_38412.dart | 2 + tests/language_2/vm/regression_38436.dart | 2 + tests/language_2/vm/regression_38741.dart | 2 + .../language_2/vm/regression_39071_test.dart | 2 + .../language_2/vm/regression_39193_test.dart | 2 + tests/language_2/vm/reusable_boxes_test.dart | 2 + .../vm/shift_special_cases_test.dart | 2 + tests/language_2/vm/smi_widening_test.dart | 2 + .../vm/store_elimination_vm_test.dart | 2 + ...store_to_load_forwarding_phis_vm_test.dart | 2 + .../vm/string_polymorphic_test.dart | 2 + tests/language_2/vm/symbols_test.dart | 2 + ...tree_shake_type_args_in_constant_test.dart | 2 + tests/language_2/vm/type_cast_vm_test.dart | 2 + .../vm/type_of_call_via_getter_test.dart | 2 + .../language_2/vm/type_propagation_test.dart | 2 + tests/language_2/vm/type_vm_test.dart | 2 + tests/language_2/vm/uint32_add_test.dart | 2 + .../vm/uint32_right_shift_test.dart | 2 + tests/language_2/vm/uint32_shift_test.dart | 2 + ...igned_float_access_literal_index_test.dart | 2 + ...gned_float_access_register_index_test.dart | 2 + ...ned_integer_access_literal_index_test.dart | 2 + ...ed_integer_access_register_index_test.dart | 2 + tests/language_2/vm/unique_selector_test.dart | 2 + .../language_2/vm/unreachable_code_test.dart | 2 + .../unregistered_closure_in_finally_test.dart | 2 + tests/language_2/void/await_void_test.dart | 2 + .../void/generalized_void_syntax_test.dart | 2 + .../void/generalized_void_usage_test.dart | 2 + ...ture_future_or_void_async_error0_test.dart | 2 + ...ture_future_or_void_async_error1_test.dart | 2 + ...turn_future_future_or_void_async_test.dart | 2 + ...uture_future_or_void_sync_error0_test.dart | 2 + ...uture_future_or_void_sync_error1_test.dart | 2 + ...eturn_future_future_or_void_sync_test.dart | 2 + ...re_or_future_or_void_sync_error1_test.dart | 2 + ...re_or_future_or_void_sync_error2_test.dart | 2 + ...rn_future_or_future_or_void_sync_test.dart | 2 + .../return_future_or_void_async_test.dart | 2 + ...eturn_future_or_void_sync_error3_test.dart | 2 + ...eturn_future_or_void_sync_error4_test.dart | 2 + .../void/return_future_or_void_sync_test.dart | 2 + .../void/return_future_void_async_test.dart | 2 + .../void/return_void_async_error0_test.dart | 2 + .../void/return_void_async_error1_test.dart | 2 + .../void/return_void_async_error2_test.dart | 2 + .../void/return_void_async_test.dart | 2 + .../void/return_void_sync_error0_test.dart | 2 + .../void/return_void_sync_error1_test.dart | 2 + .../void/return_void_sync_error2_test.dart | 2 + .../void/return_void_sync_test.dart | 2 + .../void/void_arrow_return_test.dart | 2 + .../void/void_block_return_test.dart | 2 + tests/language_2/void/void_check_test.dart | 2 + tests/language_2/void/void_subtype_test.dart | 2 + .../void/void_type_callbacks_test.dart | 2 + .../void/void_type_function_types_test.dart | 2 + .../void/void_type_override_test.dart | 2 + tests/language_2/void/void_type_test.dart | 2 + .../language_2/void/void_type_usage_test.dart | 2 + .../async_await_sync_completer_test.dart | 2 + tests/lib_2/async/async_await_zones_test.dart | 2 + .../async/async_no_await_zones_test.dart | 2 + tests/lib_2/async/catch_errors.dart | 2 + tests/lib_2/async/catch_errors11_test.dart | 2 + tests/lib_2/async/catch_errors12_test.dart | 2 + tests/lib_2/async/catch_errors13_test.dart | 2 + tests/lib_2/async/catch_errors14_test.dart | 2 + tests/lib_2/async/catch_errors15_test.dart | 2 + tests/lib_2/async/catch_errors16_test.dart | 2 + tests/lib_2/async/catch_errors17_test.dart | 2 + tests/lib_2/async/catch_errors18_test.dart | 2 + tests/lib_2/async/catch_errors19_test.dart | 2 + tests/lib_2/async/catch_errors20_test.dart | 2 + tests/lib_2/async/catch_errors21_test.dart | 2 + tests/lib_2/async/catch_errors22_test.dart | 2 + tests/lib_2/async/catch_errors23_test.dart | 2 + tests/lib_2/async/catch_errors24_test.dart | 2 + tests/lib_2/async/catch_errors25_test.dart | 2 + tests/lib_2/async/catch_errors26_test.dart | 2 + tests/lib_2/async/catch_errors27_test.dart | 2 + tests/lib_2/async/catch_errors28_test.dart | 2 + tests/lib_2/async/catch_errors2_test.dart | 2 + tests/lib_2/async/catch_errors3_test.dart | 2 + tests/lib_2/async/catch_errors4_test.dart | 2 + tests/lib_2/async/catch_errors5_test.dart | 2 + tests/lib_2/async/catch_errors6_test.dart | 2 + tests/lib_2/async/catch_errors7_test.dart | 2 + tests/lib_2/async/catch_errors8_test.dart | 2 + tests/lib_2/async/catch_errors_test.dart | 2 + .../async/dart2js_uncaught_error_test.dart | 2 + tests/lib_2/async/event_helper.dart | 2 + tests/lib_2/async/first_regression_test.dart | 2 + .../lib_2/async/future_constructor2_test.dart | 2 + .../lib_2/async/future_constructor_test.dart | 2 + .../async/future_delayed_error_test.dart | 2 + tests/lib_2/async/future_error_test.dart | 2 + tests/lib_2/async/future_foreach_test.dart | 2 + tests/lib_2/async/future_future_test.dart | 2 + tests/lib_2/async/future_microtask_test.dart | 2 + .../lib_2/async/future_or_bad_type_test.dart | 2 + .../async/future_or_only_in_async_test.dart | 2 + tests/lib_2/async/future_or_strong_test.dart | 2 + tests/lib_2/async/future_or_type_test.dart | 2 + tests/lib_2/async/future_test.dart | 2 + tests/lib_2/async/future_timeout_test.dart | 2 + .../lib_2/async/future_value_chain2_test.dart | 2 + .../lib_2/async/future_value_chain3_test.dart | 2 + .../lib_2/async/future_value_chain4_test.dart | 2 + .../lib_2/async/future_value_chain_test.dart | 2 + tests/lib_2/async/futures_test.dart | 2 + tests/lib_2/async/intercept_print1_test.dart | 2 + .../intercept_schedule_microtask1_test.dart | 2 + .../intercept_schedule_microtask2_test.dart | 2 + .../intercept_schedule_microtask3_test.dart | 2 + .../intercept_schedule_microtask4_test.dart | 2 + .../intercept_schedule_microtask5_test.dart | 2 + .../intercept_schedule_microtask6_test.dart | 2 + tests/lib_2/async/multiple_timer_test.dart | 2 + tests/lib_2/async/null_future_zone_test.dart | 2 + tests/lib_2/async/periodic_timer2_test.dart | 2 + tests/lib_2/async/periodic_timer3_test.dart | 2 + tests/lib_2/async/periodic_timer4_test.dart | 2 + tests/lib_2/async/run_zoned1_test.dart | 2 + tests/lib_2/async/run_zoned4_test.dart | 2 + tests/lib_2/async/run_zoned5_test.dart | 2 + tests/lib_2/async/run_zoned6_test.dart | 2 + tests/lib_2/async/run_zoned7_test.dart | 2 + tests/lib_2/async/run_zoned8_test.dart | 2 + tests/lib_2/async/run_zoned9_test.dart | 2 + .../lib_2/async/schedule_microtask2_test.dart | 2 + .../lib_2/async/schedule_microtask3_test.dart | 2 + .../lib_2/async/schedule_microtask5_test.dart | 2 + .../lib_2/async/schedule_microtask_test.dart | 2 + tests/lib_2/async/slow_consumer2_test.dart | 2 + tests/lib_2/async/slow_consumer3_test.dart | 2 + tests/lib_2/async/slow_consumer_test.dart | 2 + tests/lib_2/async/stack_trace01_test.dart | 2 + tests/lib_2/async/stack_trace02_test.dart | 2 + tests/lib_2/async/stack_trace03_test.dart | 2 + tests/lib_2/async/stack_trace04_test.dart | 2 + tests/lib_2/async/stack_trace05_test.dart | 2 + tests/lib_2/async/stack_trace06_test.dart | 2 + tests/lib_2/async/stack_trace07_test.dart | 2 + tests/lib_2/async/stack_trace08_test.dart | 2 + tests/lib_2/async/stack_trace09_test.dart | 2 + tests/lib_2/async/stack_trace10_test.dart | 2 + tests/lib_2/async/stack_trace11_test.dart | 2 + tests/lib_2/async/stack_trace12_test.dart | 2 + tests/lib_2/async/stack_trace13_test.dart | 2 + tests/lib_2/async/stack_trace14_test.dart | 2 + tests/lib_2/async/stack_trace15_test.dart | 2 + tests/lib_2/async/stack_trace16_test.dart | 2 + tests/lib_2/async/stack_trace17_test.dart | 2 + tests/lib_2/async/stack_trace18_test.dart | 2 + tests/lib_2/async/stack_trace19_test.dart | 2 + tests/lib_2/async/stack_trace20_test.dart | 2 + tests/lib_2/async/stack_trace21_test.dart | 2 + tests/lib_2/async/stack_trace22_test.dart | 2 + tests/lib_2/async/stack_trace23_test.dart | 2 + tests/lib_2/async/stack_trace24_test.dart | 2 + tests/lib_2/async/stack_trace25_test.dart | 2 + .../stream_controller_add_error_test.dart | 2 + .../async/stream_controller_async_test.dart | 2 + tests/lib_2/async/stream_controller_test.dart | 2 + tests/lib_2/async/stream_distinct_test.dart | 2 + tests/lib_2/async/stream_empty_test.dart | 2 + tests/lib_2/async/stream_error_test.dart | 2 + .../async/stream_event_transformed_test.dart | 2 + .../lib_2/async/stream_first_where_test.dart | 2 + .../lib_2/async/stream_from_futures_test.dart | 2 + .../async/stream_from_iterable_test.dart | 2 + .../stream_iterator_double_cancel_test.dart | 2 + tests/lib_2/async/stream_iterator_test.dart | 2 + tests/lib_2/async/stream_join_test.dart | 2 + tests/lib_2/async/stream_last_where_test.dart | 2 + .../lib_2/async/stream_listen_zone_test.dart | 2 + tests/lib_2/async/stream_multi_test.dart | 2 + tests/lib_2/async/stream_periodic2_test.dart | 2 + tests/lib_2/async/stream_periodic3_test.dart | 2 + tests/lib_2/async/stream_periodic4_test.dart | 2 + tests/lib_2/async/stream_periodic5_test.dart | 2 + tests/lib_2/async/stream_periodic6_test.dart | 2 + tests/lib_2/async/stream_periodic_test.dart | 2 + tests/lib_2/async/stream_single_test.dart | 2 + ...tream_single_to_multi_subscriber_test.dart | 2 + tests/lib_2/async/stream_state_helper.dart | 2 + .../stream_state_nonzero_timer_test.dart | 2 + tests/lib_2/async/stream_state_test.dart | 2 + .../stream_subscription_as_future_test.dart | 2 + .../stream_subscription_cancel_test.dart | 2 + tests/lib_2/async/stream_take_test.dart | 2 + tests/lib_2/async/stream_timeout_test.dart | 2 + tests/lib_2/async/stream_transform_test.dart | 2 + .../stream_transformation_broadcast_test.dart | 2 + .../stream_transformer_from_bind_test.dart | 2 + ...stream_transformer_from_handlers_test.dart | 2 + .../lib_2/async/stream_transformer_test.dart | 2 + tests/lib_2/async/stream_type_test.dart | 2 + tests/lib_2/async/stream_value_test.dart | 2 + tests/lib_2/async/stream_view_test.dart | 2 + tests/lib_2/async/stream_zones_test.dart | 2 + tests/lib_2/async/timer_cancel1_test.dart | 2 + tests/lib_2/async/timer_cancel2_test.dart | 2 + tests/lib_2/async/timer_cancel_test.dart | 2 + tests/lib_2/async/timer_isActive_test.dart | 2 + tests/lib_2/async/timer_repeat_test.dart | 2 + tests/lib_2/async/timer_test.dart | 2 + .../uncaught_error_handler_throws_test.dart | 2 + tests/lib_2/async/wait_for_cancel_test.dart | 2 + tests/lib_2/async/zone_async_error_test.dart | 2 + .../lib_2/async/zone_bind_callback_test.dart | 2 + .../async/zone_bind_callback_unary_test.dart | 2 + tests/lib_2/async/zone_bind_test.dart | 2 + .../zone_create_periodic_timer_test.dart | 2 + .../lib_2/async/zone_create_timer2_test.dart | 2 + tests/lib_2/async/zone_create_timer_test.dart | 2 + tests/lib_2/async/zone_debug_test.dart | 2 + .../async/zone_empty_description2_test.dart | 2 + .../async/zone_empty_description_test.dart | 2 + .../lib_2/async/zone_error_callback_test.dart | 2 + tests/lib_2/async/zone_fork_test.dart | 2 + .../zone_future_schedule_microtask_test.dart | 2 + .../async/zone_register_callback_test.dart | 2 + .../zone_register_callback_unary_test.dart | 2 + tests/lib_2/async/zone_root_bind_test.dart | 2 + tests/lib_2/async/zone_run_guarded_test.dart | 2 + tests/lib_2/async/zone_run_test.dart | 2 + tests/lib_2/async/zone_run_unary_test.dart | 2 + tests/lib_2/async/zone_value_test.dart | 2 + tests/lib_2/collection/hash_map_test.dart | 2 + tests/lib_2/collection/hash_set_test.dart | 2 + tests/lib_2/collection/linked_list_test.dart | 2 + tests/lib_2/collection/list_test.dart | 2 + tests/lib_2/convert/ascii_test.dart | 2 + tests/lib_2/convert/base64_test.dart | 2 + .../convert/chunked_conversion1_test.dart | 2 + .../convert/chunked_conversion2_test.dart | 2 + .../chunked_conversion_json_decode1_test.dart | 2 + .../chunked_conversion_json_encode1_test.dart | 2 + .../chunked_conversion_utf82_test.dart | 2 + .../chunked_conversion_utf83_test.dart | 2 + .../chunked_conversion_utf84_test.dart | 2 + .../chunked_conversion_utf85_test.dart | 2 + .../chunked_conversion_utf86_test.dart | 2 + .../chunked_conversion_utf87_test.dart | 2 + .../chunked_conversion_utf88_test.dart | 2 + .../chunked_conversion_utf89_test.dart | 2 + .../convert/chunked_conversion_utf8_test.dart | 2 + tests/lib_2/convert/close_test.dart | 2 + tests/lib_2/convert/codec1_test.dart | 2 + tests/lib_2/convert/codec2_test.dart | 2 + tests/lib_2/convert/encoding_test.dart | 2 + tests/lib_2/convert/html_escape_test.dart | 2 + tests/lib_2/convert/json_chunk_test.dart | 2 + tests/lib_2/convert/json_lib_test.dart | 2 + tests/lib_2/convert/json_pretty_test.dart | 2 + tests/lib_2/convert/json_test.dart | 2 + .../json_toEncodable_reviver_test.dart | 2 + tests/lib_2/convert/json_unicode_tests.dart | 2 + tests/lib_2/convert/json_utf8_chunk_test.dart | 2 + tests/lib_2/convert/json_utf8_test.dart | 2 + tests/lib_2/convert/json_util_test.dart | 2 + tests/lib_2/convert/latin1_test.dart | 2 + tests/lib_2/convert/line_splitter_test.dart | 2 + ...streamed_conversion_json_decode1_test.dart | 2 + ...streamed_conversion_json_encode1_test.dart | 2 + ...amed_conversion_json_utf8_decode_test.dart | 2 + ...amed_conversion_json_utf8_encode_test.dart | 2 + .../streamed_conversion_utf8_decode_test.dart | 2 + .../streamed_conversion_utf8_encode_test.dart | 2 + tests/lib_2/convert/unicode_tests.dart | 2 + tests/lib_2/convert/utf82_test.dart | 2 + tests/lib_2/convert/utf83_test.dart | 2 + tests/lib_2/convert/utf84_test.dart | 2 + tests/lib_2/convert/utf85_test.dart | 2 + tests/lib_2/convert/utf8_encode_test.dart | 2 + tests/lib_2/convert/utf8_test.dart | 2 + tests/lib_2/developer/inspect_test.dart | 2 + tests/lib_2/developer/metrics_num_test.dart | 2 + tests/lib_2/developer/metrics_test.dart | 2 + .../developer/timeline_recorders_test.dart | 2 + tests/lib_2/developer/timeline_test.dart | 2 + tests/lib_2/developer/user_tags_test.dart | 2 + tests/lib_2/html/async_cancellingisolate.dart | 2 + tests/lib_2/html/async_oneshot.dart | 2 + tests/lib_2/html/async_periodictimer.dart | 2 + tests/lib_2/html/async_test.dart | 2 + .../html/audiobuffersourcenode_test.dart | 2 + tests/lib_2/html/audiocontext_test.dart | 2 + tests/lib_2/html/audioelement_test.dart | 2 + tests/lib_2/html/b_element_test.dart | 2 + tests/lib_2/html/blob_constructor_test.dart | 2 + tests/lib_2/html/cache_test.dart | 2 + tests/lib_2/html/callback_list_test.dart | 2 + tests/lib_2/html/callbacks_test.dart | 2 + .../canvas_pixel_array_type_alias_test.dart | 2 + tests/lib_2/html/canvas_test.dart | 2 + .../lib_2/html/canvasrendering/arc_test.dart | 2 + .../canvas_rendering_util.dart | 2 + .../draw_image_canvas_element_test.dart | 2 + .../draw_image_video_element_test.dart | 2 + .../html/canvasrendering/fill_text_test.dart | 2 + .../canvasrendering/image_element_test.dart | 2 + .../pixel_manipulation_test.dart | 2 + tests/lib_2/html/cdata_test.dart | 2 + tests/lib_2/html/client_rect_test.dart | 2 + .../lib_2/html/cross_domain_iframe_test.dart | 2 + tests/lib_2/html/cross_frame_test.dart | 2 + tests/lib_2/html/crypto_test.dart | 2 + tests/lib_2/html/css_rule_list_test.dart | 2 + tests/lib_2/html/css_selector_test.dart | 2 + tests/lib_2/html/css_test.dart | 2 + .../lib_2/html/cssstyledeclaration_test.dart | 2 + .../attribute_changed_callback_test.dart | 2 + .../html/custom/created_callback_test.dart | 2 + .../custom/document_register_basic_test.dart | 2 + .../document_register_template_test.dart | 2 + ...ocument_register_type_extensions_test.dart | 2 + .../custom/element_upgrade_failure_test.dart | 2 + .../html/custom/element_upgrade_test.dart | 2 + .../disconnected_subtree_test.dart | 2 + ...ntered_left_view_standard_events_test.dart | 2 + .../entered_left_view_util.dart | 2 + .../entered_left_view/shadow_dom_test.dart | 2 + ...andard_events_old_callback_names_test.dart | 2 + .../viewless_document_test.dart | 2 + .../html/custom/regress_194523002_test.dart | 2 + tests/lib_2/html/custom/utils.dart | 2 + .../custom_element_method_clash_test.dart | 2 + .../html/custom_element_name_clash_test.dart | 2 + .../html/custom_elements_23127_test.dart | 2 + tests/lib_2/html/custom_elements_test.dart | 2 + tests/lib_2/html/custom_tags_test.dart | 2 + .../html/dart_object_local_storage_test.dart | 2 + tests/lib_2/html/datalistelement_test.dart | 2 + tests/lib_2/html/document_test.dart | 2 + tests/lib_2/html/documentfragment_test.dart | 2 + tests/lib_2/html/dom_constructors_test.dart | 2 + .../dom_isolates_test.dart.child_isolate.dart | 2 + tests/lib_2/html/domparser_test.dart | 2 + tests/lib_2/html/element_add_test.dart | 2 + .../element_animate_omit_timing_test.dart | 2 + .../element_animate_simple_timing_test.dart | 2 + .../html/element_animate_supported_test.dart | 2 + .../element_animate_timing_dict_test.dart | 2 + .../lib_2/html/element_classes_svg_test.dart | 2 + tests/lib_2/html/element_classes_test.dart | 2 + .../html/element_constructor_1_test.dart | 2 + tests/lib_2/html/element_dimensions_test.dart | 2 + tests/lib_2/html/element_offset_test.dart | 2 + tests/lib_2/html/element_test.dart | 2 + .../element_types_constructors1_test.dart | 2 + .../element_types_constructors2_test.dart | 2 + .../element_types_constructors3_test.dart | 2 + .../element_types_constructors4_test.dart | 2 + .../element_types_constructors5_test.dart | 2 + .../element_types_constructors6_test.dart | 2 + .../html/element_types_content_test.dart | 2 + .../html/element_types_datalist_test.dart | 2 + .../html/element_types_details_test.dart | 2 + .../lib_2/html/element_types_embed_test.dart | 2 + .../lib_2/html/element_types_meter_test.dart | 2 + .../lib_2/html/element_types_object_test.dart | 2 + .../lib_2/html/element_types_output_test.dart | 2 + .../html/element_types_progress_test.dart | 2 + .../lib_2/html/element_types_shadow_test.dart | 2 + .../html/element_types_template_test.dart | 2 + .../lib_2/html/element_types_track_test.dart | 2 + tests/lib_2/html/event_callback_test.dart | 2 + tests/lib_2/html/event_customevent_test.dart | 2 + tests/lib_2/html/event_test.dart | 2 + tests/lib_2/html/events_test.dart | 2 + tests/lib_2/html/exceptions_test.dart | 2 + tests/lib_2/html/file_sample_test.dart | 2 + .../html/fileapi_directory_reader_test.dart | 2 + tests/lib_2/html/fileapi_directory_test.dart | 2 + tests/lib_2/html/fileapi_entry_test.dart | 2 + tests/lib_2/html/fileapi_file_entry_test.dart | 2 + tests/lib_2/html/fileapi_file_test.dart | 2 + tests/lib_2/html/fileapi_supported_test.dart | 2 + .../html/fileapi_supported_throws_test.dart | 2 + tests/lib_2/html/filereader_test.dart | 2 + .../lib_2/html/filteredelementlist_test.dart | 2 + tests/lib_2/html/fontface_loaded_test.dart | 2 + tests/lib_2/html/fontface_test.dart | 2 + tests/lib_2/html/form_data_test.dart | 2 + tests/lib_2/html/form_element_test.dart | 2 + tests/lib_2/html/gamepad_test.dart | 2 + tests/lib_2/html/geolocation_test.dart | 2 + tests/lib_2/html/hidden_dom_1_test.dart | 2 + tests/lib_2/html/hidden_dom_2_test.dart | 2 + .../lib_2/html/history_hash_change_test.dart | 2 + tests/lib_2/html/history_supported_test.dart | 2 + tests/lib_2/html/history_test.dart | 2 + tests/lib_2/html/html_mock_test.dart | 2 + tests/lib_2/html/htmlcollection_test.dart | 2 + tests/lib_2/html/htmlelement_test.dart | 2 + .../html/htmloptionscollection_test.dart | 2 + tests/lib_2/html/http_test.dart | 2 + tests/lib_2/html/indexeddb_1_test.dart | 2 + tests/lib_2/html/indexeddb_2_test.dart | 2 + tests/lib_2/html/indexeddb_3_test.dart | 2 + tests/lib_2/html/indexeddb_4_test.dart | 2 + tests/lib_2/html/indexeddb_5_test.dart | 2 + .../html/input_element_attributes_test.dart | 2 + .../html/input_element_constructor_test.dart | 2 + tests/lib_2/html/input_element_date_test.dart | 2 + .../html/input_element_datetime_test.dart | 2 + .../lib_2/html/input_element_email_test.dart | 2 + .../lib_2/html/input_element_month_test.dart | 2 + .../lib_2/html/input_element_number_test.dart | 2 + .../lib_2/html/input_element_range_test.dart | 2 + .../lib_2/html/input_element_search_test.dart | 2 + tests/lib_2/html/input_element_tel_test.dart | 2 + tests/lib_2/html/input_element_time_test.dart | 2 + tests/lib_2/html/input_element_url_test.dart | 2 + tests/lib_2/html/input_element_week_test.dart | 2 + tests/lib_2/html/instance_of_test.dart | 2 + .../html/interactive_geolocation_test.dart | 2 + tests/lib_2/html/interactive_media_test.dart | 2 + tests/lib_2/html/interactive_test.dart | 2 + tests/lib_2/html/isolates_test.dart | 2 + tests/lib_2/html/js_array_test.dart | 2 + tests/lib_2/html/js_browser_test.dart | 2 + tests/lib_2/html/js_caching_test.dart | 2 + tests/lib_2/html/js_context_test.dart | 2 + tests/lib_2/html/js_dart_functions_test.dart | 2 + tests/lib_2/html/js_dart_js_test.dart | 2 + tests/lib_2/html/js_dart_to_string_test.dart | 2 + .../lib_2/html/js_dispatch_property_test.dart | 2 + .../html/js_dispatch_property_test_lib.dart | 2 + tests/lib_2/html/js_function_getter_test.dart | 2 + .../compile_test.dart | 2 + .../function_test.dart | 2 + .../js_function_util.dart | 2 + tests/lib_2/html/js_identity_test.dart | 2 + tests/lib_2/html/js_interop_1_test.dart | 2 + .../js_interop_constructor_name/div_test.dart | 2 + .../error1_test.dart | 2 + .../error2_test.dart | 2 + .../method_test.dart | 2 + .../js_interop_constructor_name/util.dart | 2 + .../html/js_javascript_function_test.dart | 2 + tests/lib_2/html/js_jsarray_test.dart | 2 + .../lib_2/html/js_jsfunc_callmethod_test.dart | 2 + tests/lib_2/html/js_jsify_test.dart | 2 + tests/lib_2/html/js_jsobject_test.dart | 2 + tests/lib_2/html/js_methods_test.dart | 2 + tests/lib_2/html/js_test_util.dart | 2 + tests/lib_2/html/js_transferrables_test.dart | 2 + .../js_typed_interop_anonymous2_test.dart | 2 + .../html/js_typed_interop_anonymous_test.dart | 2 + ...ed_interop_anonymous_unreachable_test.dart | 2 + .../html/js_typed_interop_bind_this_test.dart | 2 + ...js_typed_interop_callable_object_test.dart | 2 + ...typed_interop_default_arg_static_test.dart | 2 + .../js_typed_interop_default_arg_test.dart | 2 + .../html/js_typed_interop_dynamic_test.dart | 2 + .../html/js_typed_interop_lazy_test.dart | 2 + .../js_typed_interop_rename_static_test.dart | 2 + .../html/js_typed_interop_side_cast_test.dart | 2 + tests/lib_2/html/js_typed_interop_test.dart | 2 + .../html/js_typed_interop_type1_test.dart | 2 + .../html/js_typed_interop_type2_test.dart | 2 + .../html/js_typed_interop_type3_test.dart | 2 + .../html/js_typed_interop_type_test.dart | 2 + ...js_typed_interop_window_property_test.dart | 2 + tests/lib_2/html/js_util_test.dart | 2 + tests/lib_2/html/json_helper.dart | 2 + tests/lib_2/html/keyboard_event_test.dart | 2 + tests/lib_2/html/localstorage_test.dart | 2 + tests/lib_2/html/location_test.dart | 2 + tests/lib_2/html/media_stream_test.dart | 2 + tests/lib_2/html/mediadevices_test.dart | 2 + tests/lib_2/html/mediasource_test.dart | 2 + tests/lib_2/html/message_channel_test.dart | 2 + tests/lib_2/html/messageevent_test.dart | 2 + tests/lib_2/html/mouse_event_test.dart | 2 + tests/lib_2/html/mutationobserver_test.dart | 2 + tests/lib_2/html/native_gc_test.dart | 2 + tests/lib_2/html/navigator_test.dart | 2 + tests/lib_2/html/node_test.dart | 2 + ...u_suppress_make_the_bug_critical_test.dart | 2 + .../lib_2/html/non_instantiated_is_test.dart | 2 + .../html/notification_permission_test.dart | 2 + tests/lib_2/html/notification_test.dart | 2 + tests/lib_2/html/performance_api_test.dart | 2 + .../html/postmessage_anonymous_test.dart | 2 + .../html/postmessage_structured_test.dart | 2 + .../html/private_extension_member_test.dart | 2 + tests/lib_2/html/query_test.dart | 2 + tests/lib_2/html/queryall_test.dart | 2 + tests/lib_2/html/range_test.dart | 2 + .../html/request_animation_frame_test.dart | 2 + tests/lib_2/html/rtc_test.dart | 2 + tests/lib_2/html/selectelement_test.dart | 2 + .../html/serialized_script_value_test.dart | 2 + tests/lib_2/html/shadow_dom_test.dart | 2 + tests/lib_2/html/shadowroot_test.dart | 2 + tests/lib_2/html/speechrecognition_test.dart | 2 + tests/lib_2/html/storage_promise_test.dart | 2 + tests/lib_2/html/storage_test.dart | 2 + tests/lib_2/html/streams_test.dart | 2 + tests/lib_2/html/svg_test.dart | 2 + tests/lib_2/html/svgelement_test.dart | 2 + tests/lib_2/html/table_test.dart | 2 + tests/lib_2/html/text_event_test.dart | 2 + tests/lib_2/html/touchevent_test.dart | 2 + .../html/track_element_constructor_test.dart | 2 + tests/lib_2/html/transferables_test.dart | 2 + tests/lib_2/html/transition_event_test.dart | 2 + .../trusted_html_tree_sanitizer_test.dart | 2 + tests/lib_2/html/typed_arrays_1_test.dart | 2 + tests/lib_2/html/typed_arrays_2_test.dart | 2 + tests/lib_2/html/typed_arrays_3_test.dart | 2 + tests/lib_2/html/typed_arrays_4_test.dart | 2 + tests/lib_2/html/typed_arrays_5_test.dart | 2 + .../html/typed_arrays_arraybuffer_test.dart | 2 + .../html/typed_arrays_dataview_test.dart | 2 + .../html/typed_arrays_range_checks_test.dart | 2 + tests/lib_2/html/typed_arrays_simd_test.dart | 2 + tests/lib_2/html/typing_test.dart | 2 + tests/lib_2/html/unknownelement_test.dart | 2 + tests/lib_2/html/uri_test.dart | 2 + tests/lib_2/html/url_test.dart | 2 + tests/lib_2/html/utils.dart | 2 + tests/lib_2/html/webgl_1_test.dart | 2 + tests/lib_2/html/webgl_extensions_test.dart | 2 + tests/lib_2/html/websocket_test.dart | 2 + tests/lib_2/html/websql_test.dart | 2 + tests/lib_2/html/wheelevent_test.dart | 2 + tests/lib_2/html/window_eq_test.dart | 2 + tests/lib_2/html/window_mangling_test.dart | 2 + .../lib_2/html/window_nosuchmethod_test.dart | 2 + tests/lib_2/html/window_test.dart | 2 + tests/lib_2/html/worker_api_test.dart | 2 + tests/lib_2/html/worker_functional_test.dart | 2 + tests/lib_2/html/worker_supported_test.dart | 2 + .../lib_2/html/wrapping_collections_test.dart | 2 + tests/lib_2/html/xhr_cross_origin_test.dart | 2 + tests/lib_2/html/xhr_test.dart | 2 + tests/lib_2/html/xsltprocessor_test.dart | 2 + .../appjit_serialization_regression_test.dart | 2 + ...l_from_environment_default_value_test.dart | 2 + tests/lib_2/isolate/capability_test.dart | 2 + .../isolate/compile_time_error_test.dart | 2 + tests/lib_2/isolate/count_test.dart | 2 + .../isolate/cross_isolate_message_test.dart | 2 + .../isolate/deferred_in_isolate2_lib.dart | 2 + .../isolate/deferred_in_isolate2_test.dart | 2 + .../isolate/deferred_in_isolate_app.dart | 2 + .../isolate/deferred_in_isolate_lib.dart | 2 + .../isolate/deferred_in_isolate_test.dart | 2 + tests/lib_2/isolate/deferred_loaded_lib.dart | 2 + tests/lib_2/isolate/enum_const_test.dart | 2 + tests/lib_2/isolate/error_at_spawn_test.dart | 2 + .../lib_2/isolate/error_at_spawnuri_iso.dart | 2 + .../lib_2/isolate/error_at_spawnuri_test.dart | 2 + .../isolate/error_exit_at_spawn_test.dart | 2 + .../error_exit_at_spawning_shared.dart | 2 + .../isolate/error_exit_at_spawnuri_test.dart | 2 + tests/lib_2/isolate/exit_at_spawn_test.dart | 2 + tests/lib_2/isolate/exit_at_spawnuri_iso.dart | 2 + .../lib_2/isolate/exit_at_spawnuri_test.dart | 2 + tests/lib_2/isolate/function_send1_test.dart | 2 + tests/lib_2/isolate/function_send_test.dart | 2 + tests/lib_2/isolate/handle_error2_test.dart | 2 + tests/lib_2/isolate/handle_error3_test.dart | 2 + tests/lib_2/isolate/handle_error_test.dart | 2 + .../isolate/illegal_msg_function_test.dart | 2 + .../isolate/illegal_msg_mirror_test.dart | 2 + .../isolate/int32_length_overflow_test.dart | 2 + ...t_from_environment_default_value_test.dart | 2 + .../isolate_complex_messages_test.dart | 2 + tests/lib_2/isolate/isolate_current_test.dart | 2 + tests/lib_2/isolate/isolate_import_test.dart | 2 + tests/lib_2/isolate/isolate_stress_test.dart | 2 + .../isolate/issue_21398_child_isolate.dart | 2 + .../isolate/issue_21398_child_isolate1.dart | 2 + .../isolate/issue_21398_child_isolate11.dart | 2 + .../issue_21398_parent_isolate1_test.dart | 2 + .../issue_21398_parent_isolate2_test.dart | 2 + .../issue_21398_parent_isolate_test.dart | 2 + tests/lib_2/isolate/issue_22778_test.dart | 2 + .../isolate/issue_24243_child1_isolate.dart | 2 + .../isolate/issue_24243_child2_isolate.dart | 2 + .../isolate/issue_24243_child3_isolate.dart | 2 + .../issue_24243_parent_isolate_test.dart | 2 + tests/lib_2/isolate/issue_35626_test.dart | 2 + tests/lib_2/isolate/kill2_test.dart | 2 + .../isolate/kill_self_synchronously_test.dart | 2 + tests/lib_2/isolate/kill_self_test.dart | 2 + tests/lib_2/isolate/kill_test.dart | 2 + .../isolate/large_byte_data_leak_test.dart | 2 + tests/lib_2/isolate/large_byte_data_test.dart | 2 + tests/lib_2/isolate/mandel_isolate_test.dart | 2 + tests/lib_2/isolate/message2_test.dart | 2 + tests/lib_2/isolate/message3_test.dart | 2 + tests/lib_2/isolate/message4_test.dart | 2 + .../message_const_type_arguments_1_test.dart | 2 + .../message_const_type_arguments_2_test.dart | 2 + tests/lib_2/isolate/message_enum_test.dart | 2 + tests/lib_2/isolate/message_test.dart | 2 + tests/lib_2/isolate/mint_maker_test.dart | 2 + .../isolate/native_wrapper_message_test.dart | 2 + tests/lib_2/isolate/nested_spawn2_test.dart | 2 + tests/lib_2/isolate/nested_spawn_test.dart | 2 + ...atal_exception_in_timer_callback_test.dart | 2 + tests/lib_2/isolate/object_leak_test.dart | 2 + tests/lib_2/isolate/ondone_test.dart | 2 + .../isolate/package_config_getter_test.dart | 2 + tests/lib_2/isolate/package_config_test.dart | 2 + tests/lib_2/isolate/package_resolve_test.dart | 2 + tests/lib_2/isolate/package_root_test.dart | 2 + tests/lib_2/isolate/pause_test.dart | 2 + tests/lib_2/isolate/ping_pause_test.dart | 2 + tests/lib_2/isolate/ping_test.dart | 2 + tests/lib_2/isolate/port_test.dart | 2 + tests/lib_2/isolate/raw_port_test.dart | 2 + tests/lib_2/isolate/regress_34752_test.dart | 2 + .../isolate/regress_flutter_22796_test.dart | 2 + tests/lib_2/isolate/request_reply_test.dart | 2 + .../isolate/resolve_package_uri_test.dart | 2 + .../package_resolve_test.dart | 2 + .../package_resolve_test.dart | 2 + .../bad_resolve_package_test.dart | 2 + .../package_resolve_test.dart | 2 + .../package_relative_root_test.dart | 2 + .../packages/bar/bar.dart | 2 + .../bar/spawned_packages/bar/bar.dart | 2 + .../bar/spawned_packages/foo/foo.dart | 2 + .../packages/foo/foo.dart | 2 + .../bar1_package/bar.dart | 2 + .../bar2_package/bar.dart | 2 + .../foo_package/foo.dart | 2 + .../package_relative_spec_test.dart | 2 + .../short_package/flu_package/flu.dart | 2 + .../short_package/short_package_test.dart | 2 + tests/lib_2/isolate/send_private_test.dart | 2 + tests/lib_2/isolate/simple_message_test.dart | 2 + .../spawn_function_custom_class_test.dart | 2 + tests/lib_2/isolate/spawn_function_test.dart | 2 + tests/lib_2/isolate/spawn_generic_test.dart | 2 + .../isolate/spawn_uri__package_uri__test.dart | 2 + .../isolate/spawn_uri_child_isolate.dart | 2 + .../isolate/spawn_uri_exported_main.dart | 2 + .../isolate/spawn_uri_exported_main_lib.dart | 2 + .../isolate/spawn_uri_exported_main_test.dart | 2 + tests/lib_2/isolate/spawn_uri_fail_test.dart | 2 + .../spawn_uri_missing_from_isolate_test.dart | 2 + .../lib_2/isolate/spawn_uri_missing_test.dart | 2 + tests/lib_2/isolate/spawn_uri_multi_test.dart | 2 + .../spawn_uri_nested_child1_vm_isolate.dart | 2 + .../spawn_uri_nested_child2_vm_isolate.dart | 2 + .../isolate/spawn_uri_nested_vm_test.dart | 2 + tests/lib_2/isolate/spawn_uri_test.dart | 2 + tests/lib_2/isolate/spawn_uri_vm_test.dart | 2 + .../isolate/stacktrace_message_test.dart | 2 + tests/lib_2/isolate/start_paused_test.dart | 2 + tests/lib_2/isolate/static_function_lib.dart | 2 + tests/lib_2/isolate/static_function_test.dart | 2 + ...g_from_environment_default_value_test.dart | 2 + tests/lib_2/isolate/timer_isolate_test.dart | 2 + .../isolate/timer_multiple_isolates_test.dart | 2 + .../transferable_failed_to_send_test.dart | 2 + tests/lib_2/isolate/transferable_test.dart | 2 + tests/lib_2/isolate/typed_message_test.dart | 2 + .../unboxed_double_snapshot_writer_test.dart | 2 + .../lib_2/isolate/unresolved_ports_test.dart | 2 + tests/lib_2/isolate/vm_rehash_test.dart | 2 + tests/lib_2/js/array_test.dart | 2 + tests/lib_2/js/datetime_roundtrip_test.dart | 2 + .../lib_2/js/external_nonjs_static_test.dart | 2 + tests/lib_2/js/external_static_test.dart | 2 + tests/lib_2/js/instanceof_test.dart | 2 + tests/lib_2/js/js_util/async_test.dart | 2 + tests/lib_2/js/js_util/js_prefix_test.dart | 2 + tests/lib_2/js/js_util/jsify_test.dart | 2 + .../js/js_util/promise_reject_null_test.dart | 2 + tests/lib_2/js/js_util/properties_test.dart | 2 + .../lib_2/js/method_call_on_object_test.dart | 2 + tests/lib_2/js/mock_test.dart | 2 + tests/lib_2/js/null_test.dart | 2 + tests/lib_2/js/parameters_test.dart | 2 + tests/lib_2/js/prototype_access_test.dart | 2 + .../call_cmath_box_failure_path_test.dart | 2 + tests/lib_2/math/coin_test.dart | 2 + tests/lib_2/math/double_pow_test.dart | 2 + .../lib_2/math/implement_rectangle_test.dart | 2 + tests/lib_2/math/low_test.dart | 2 + tests/lib_2/math/math2_test.dart | 2 + tests/lib_2/math/math_parse_double_test.dart | 2 + tests/lib_2/math/math_test.dart | 2 + tests/lib_2/math/min_max_test.dart | 2 + tests/lib_2/math/pi_test.dart | 2 + tests/lib_2/math/point_test.dart | 2 + tests/lib_2/math/random_big_test.dart | 2 + tests/lib_2/math/random_secure_test.dart | 2 + .../math/random_secure_unsupported_test.dart | 2 + tests/lib_2/math/random_test.dart | 2 + tests/lib_2/math/rectangle_test.dart | 2 + tests/lib_2/mirrors/abstract_class_test.dart | 2 + tests/lib_2/mirrors/abstract_test.dart | 2 + .../mirrors/accessor_cache_overflow_test.dart | 2 + tests/lib_2/mirrors/apply3_test.dart | 2 + tests/lib_2/mirrors/array_tracing2_test.dart | 2 + tests/lib_2/mirrors/array_tracing3_test.dart | 2 + tests/lib_2/mirrors/array_tracing_test.dart | 2 + .../mirrors/bad_argument_types_test.dart | 2 + .../basic_types_in_dart_core_test.dart | 2 + .../circular_factory_redirection_test.dart | 2 + .../mirrors/class_declarations_test.dart | 2 + .../mirrors/class_mirror_location_other.dart | 2 + .../mirrors/class_mirror_location_test.dart | 2 + .../class_mirror_type_variables_data.dart | 2 + .../class_mirror_type_variables_expect.dart | 2 + .../class_mirror_type_variables_test.dart | 2 + .../lib_2/mirrors/closure_mirror_import1.dart | 2 + .../lib_2/mirrors/closure_mirror_import2.dart | 2 + tests/lib_2/mirrors/closures_test.dart | 2 + .../closurization_equivalence_test.dart | 2 + .../lib_2/mirrors/const_evaluation_test.dart | 2 + .../lib_2/mirrors/constructor_kinds_test.dart | 2 + .../constructor_optional_args_test.dart | 2 + .../constructor_private_name_test.dart | 2 + tests/lib_2/mirrors/constructors_test.dart | 2 + tests/lib_2/mirrors/dart2js_mirrors_test.dart | 2 + tests/lib_2/mirrors/declarations_model.dart | 2 + .../mirrors/declarations_model_easier.dart | 2 + .../lib_2/mirrors/declarations_type_test.dart | 2 + .../deferred_constraints_constants_lib.dart | 2 + .../deferred_constraints_constants_test.dart | 2 + .../deferred_mirrors_metadata_lib.dart | 2 + .../deferred_mirrors_metadata_test.dart | 2 + .../deferred_mirrors_metatarget_lib.dart | 2 + .../deferred_mirrors_metatarget_test.dart | 2 + .../mirrors/deferred_mirrors_update_lib.dart | 2 + .../mirrors/deferred_mirrors_update_test.dart | 2 + tests/lib_2/mirrors/deferred_type_other.dart | 2 + tests/lib_2/mirrors/deferred_type_test.dart | 2 + .../delegate_call_through_getter_test.dart | 2 + tests/lib_2/mirrors/delegate_class_test.dart | 2 + .../delegate_function_invocation_test.dart | 2 + .../lib_2/mirrors/delegate_library_test.dart | 2 + tests/lib_2/mirrors/delegate_test.dart | 2 + .../mirrors/disable_tree_shaking_test.dart | 2 + tests/lib_2/mirrors/dynamic_load_error.dart | 2 + tests/lib_2/mirrors/dynamic_load_success.dart | 2 + tests/lib_2/mirrors/dynamic_load_test.dart | 2 + tests/lib_2/mirrors/empty.dart | 2 + tests/lib_2/mirrors/empty_test.dart | 2 + tests/lib_2/mirrors/enum_mirror_test.dart | 2 + tests/lib_2/mirrors/enum_test.dart | 2 + tests/lib_2/mirrors/equality_test.dart | 2 + .../mirrors/fake_function_with_call_test.dart | 2 + .../fake_function_without_call_test.dart | 2 + tests/lib_2/mirrors/field_metadata_test.dart | 2 + tests/lib_2/mirrors/field_type_test.dart | 2 + .../mirrors/function_apply_mirrors_lib.dart | 2 + .../mirrors/function_apply_mirrors_test.dart | 2 + tests/lib_2/mirrors/function_apply_test.dart | 2 + .../mirrors/function_type_mirror_test.dart | 2 + ...eneric_bounded_by_type_parameter_test.dart | 2 + tests/lib_2/mirrors/generic_bounded_test.dart | 2 + .../generic_class_declaration_test.dart | 2 + ...eric_f_bounded_mixin_application_test.dart | 2 + .../lib_2/mirrors/generic_f_bounded_test.dart | 2 + .../generic_function_typedef_test.dart | 2 + .../lib_2/mirrors/generic_interface_test.dart | 2 + tests/lib_2/mirrors/generic_list_test.dart | 2 + .../mirrors/generic_local_function_test.dart | 2 + tests/lib_2/mirrors/generic_method_test.dart | 2 + .../generic_mixin_applications_test.dart | 2 + tests/lib_2/mirrors/generic_mixin_test.dart | 2 + .../mirrors/generic_superclass_test.dart | 2 + .../mirrors/generic_type_mirror_test.dart | 2 + .../generics_double_substitution_test.dart | 2 + .../lib_2/mirrors/generics_dynamic_test.dart | 2 + tests/lib_2/mirrors/generics_helper.dart | 2 + .../mirrors/generics_special_types_test.dart | 2 + .../mirrors/generics_substitution_test.dart | 2 + tests/lib_2/mirrors/generics_test.dart | 2 + tests/lib_2/mirrors/get_field_cache_test.dart | 2 + .../lib_2/mirrors/get_field_static_test.dart | 2 + tests/lib_2/mirrors/get_field_test.dart | 2 + .../get_symbol_name_no_such_method_test.dart | 2 + tests/lib_2/mirrors/get_symbol_name_test.dart | 2 + .../mirrors/globalized_closures2_test.dart | 2 + .../mirrors/globalized_closures_test.dart | 2 + .../mirrors/hierarchy_invariants_test.dart | 2 + tests/lib_2/mirrors/hot_get_field_test.dart | 2 + tests/lib_2/mirrors/hot_set_field_test.dart | 2 + .../mirrors/immutable_collections_test.dart | 2 + .../inference_and_no_such_method_test.dart | 2 + tests/lib_2/mirrors/inherit_field_test.dart | 2 + .../mirrors/inherited_metadata_test.dart | 2 + .../mirrors/initializing_formals_test.dart | 2 + ..._creation_in_function_annotation_test.dart | 2 + .../mirrors/instance_members_easier_test.dart | 2 + .../lib_2/mirrors/instance_members_test.dart | 2 + ..._members_unimplemented_interface_test.dart | 2 + .../instance_members_with_override_test.dart | 2 + .../instantiate_abstract_class_test.dart | 2 + .../lib_2/mirrors/intercepted_cache_test.dart | 2 + .../lib_2/mirrors/intercepted_class_test.dart | 2 + .../mirrors/intercepted_object_test.dart | 2 + .../mirrors/intercepted_superclass_test.dart | 2 + .../lib_2/mirrors/invocation_cache_test.dart | 2 + tests/lib_2/mirrors/invocation_fuzz_test.dart | 2 + .../invocation_mirror_invoke_on2_test.dart | 2 + .../invocation_mirror_invoke_on_test.dart | 2 + .../mirrors/invoke_call_on_closure_test.dart | 2 + ...rough_getter_previously_accessed_test.dart | 2 + .../invoke_call_through_getter_test.dart | 2 + ...licit_getter_previously_accessed_test.dart | 2 + ...oke_call_through_implicit_getter_test.dart | 2 + .../mirrors/invoke_closurization2_test.dart | 2 + .../mirrors/invoke_closurization_test.dart | 2 + tests/lib_2/mirrors/invoke_import_test.dart | 2 + tests/lib_2/mirrors/invoke_named_test.dart | 2 + .../invoke_natives_malicious_test.dart | 2 + tests/lib_2/mirrors/invoke_private_test.dart | 2 + .../invoke_private_wrong_library_test.dart | 2 + tests/lib_2/mirrors/invoke_test.dart | 2 + tests/lib_2/mirrors/invoke_throws_test.dart | 2 + .../io_html_mutual_exclusion_test.dart | 2 + tests/lib_2/mirrors/is_odd_test.dart | 2 + tests/lib_2/mirrors/issue21079_test.dart | 2 + tests/lib_2/mirrors/lazy_static_test.dart | 2 + tests/lib_2/mirrors/libraries_test.dart | 2 + .../mirrors/library_declarations_test.dart | 2 + ...ary_enumeration_deferred_loading_test.dart | 2 + .../lib_2/mirrors/library_exports_hidden.dart | 2 + .../mirrors/library_exports_hidden_test.dart | 2 + .../lib_2/mirrors/library_exports_shown.dart | 2 + .../mirrors/library_exports_shown_test.dart | 2 + .../library_import_deferred_loading_test.dart | 2 + tests/lib_2/mirrors/library_imports_a.dart | 2 + tests/lib_2/mirrors/library_imports_b.dart | 2 + .../library_imports_bad_metadata_test.dart | 2 + .../library_imports_deferred_test.dart | 2 + .../lib_2/mirrors/library_imports_hidden.dart | 2 + .../mirrors/library_imports_hidden_test.dart | 2 + .../mirrors/library_imports_metadata.dart | 2 + .../library_imports_metadata_test.dart | 2 + .../mirrors/library_imports_prefixed.dart | 2 + .../library_imports_prefixed_show_hide.dart | 2 + ...brary_imports_prefixed_show_hide_test.dart | 2 + .../library_imports_prefixed_test.dart | 2 + .../lib_2/mirrors/library_imports_shown.dart | 2 + .../mirrors/library_imports_shown_test.dart | 2 + .../lib_2/mirrors/library_metadata2_lib1.dart | 2 + .../lib_2/mirrors/library_metadata2_lib2.dart | 2 + .../lib_2/mirrors/library_metadata2_test.dart | 2 + .../lib_2/mirrors/library_metadata_test.dart | 2 + .../mirrors/library_metatarget_test.dart | 2 + ...brary_metatarget_test_annotations_lib.dart | 2 + .../mirrors/library_metatarget_test_lib.dart | 2 + tests/lib_2/mirrors/library_uri_io_test.dart | 2 + .../mirrors/library_uri_package_test.dart | 2 + .../library_with_annotated_declaration.dart | 2 + .../mirrors/library_without_declaration.dart | 2 + .../lib_2/mirrors/list_constructor_test.dart | 2 + tests/lib_2/mirrors/load_library_test.dart | 2 + .../local_function_is_static_test.dart | 2 + tests/lib_2/mirrors/local_isolate_test.dart | 2 + .../metadata_allowed_values_import.dart | 2 + .../mirrors/metadata_allowed_values_test.dart | 2 + .../mirrors/metadata_class_mirror_test.dart | 2 + .../mirrors/metadata_const_map_test.dart | 2 + .../metadata_constructed_constant_test.dart | 2 + .../metadata_constructor_arguments_test.dart | 2 + ...metadata_nested_constructor_call_test.dart | 2 + tests/lib_2/mirrors/metadata_scope_test.dart | 2 + .../mirrors/metadata_symbol_literal_test.dart | 2 + tests/lib_2/mirrors/metadata_test.dart | 2 + .../mirrors/metadata_type_literal_test.dart | 2 + .../mirrors/method_mirror_extension_test.dart | 2 +- .../mirrors/method_mirror_location_other.dart | 2 + .../mirrors/method_mirror_location_test.dart | 2 + .../mirrors/method_mirror_name_test.dart | 2 + .../method_mirror_properties_test.dart | 2 + .../method_mirror_returntype_test.dart | 2 + .../method_mirror_source_line_ending_cr.dart | 18 +- ...method_mirror_source_line_ending_crlf.dart | 32 +- .../method_mirror_source_line_ending_lf.dart | 2 + ...method_mirror_source_line_ending_test.dart | 2 + .../mirrors/method_mirror_source_other.dart | 2 + .../mirrors/method_mirror_source_test.dart | 2 + .../mirrors/mirror_in_static_init_test.dart | 2 + .../mirrors/mirrors_nsm_mismatch_test.dart | 2 + tests/lib_2/mirrors/mirrors_nsm_test.dart | 2 + tests/lib_2/mirrors/mirrors_reader.dart | 2 + tests/lib_2/mirrors/mirrors_reader_test.dart | 2 + .../mirrors/mirrors_resolve_fields_test.dart | 2 + tests/lib_2/mirrors/mirrors_test.dart | 2 + tests/lib_2/mirrors/mirrors_visitor.dart | 2 + .../lib_2/mirrors/mixin_application_test.dart | 2 + tests/lib_2/mirrors/mixin_members_test.dart | 2 + tests/lib_2/mirrors/mixin_simple_test.dart | 2 + tests/lib_2/mirrors/mixin_test.dart | 2 + tests/lib_2/mirrors/model.dart | 2 + tests/lib_2/mirrors/model_test.dart | 2 + .../new_instance_optional_arguments_test.dart | 2 + ...new_instance_with_type_arguments_test.dart | 2 + tests/lib_2/mirrors/no_metadata_test.dart | 2 + tests/lib_2/mirrors/null2_test.dart | 2 + tests/lib_2/mirrors/null_test.dart | 2 + tests/lib_2/mirrors/operator_test.dart | 2 + .../mirrors/optional_parameters_test.dart | 2 + .../other_declarations_location_test.dart | 2 + tests/lib_2/mirrors/other_library.dart | 2 + .../mirrors/parameter_abstract_test.dart | 2 + .../parameter_annotation_mirror_test.dart | 2 + .../mirrors/parameter_is_const_test.dart | 2 + .../mirrors/parameter_metadata_test.dart | 2 + ...rameter_of_mixin_app_constructor_test.dart | 2 + .../parameter_optional_order_test.dart | 2 + tests/lib_2/mirrors/parameter_test.dart | 2 + .../mirrors/private_class_field_other.dart | 2 + .../mirrors/private_class_field_test.dart | 2 + tests/lib_2/mirrors/private_field_helper.dart | 2 + tests/lib_2/mirrors/private_field_test.dart | 2 + .../mirrors/private_symbol_mangling_lib.dart | 2 + .../mirrors/private_symbol_mangling_test.dart | 2 + tests/lib_2/mirrors/private_symbol_test.dart | 2 + tests/lib_2/mirrors/private_types_test.dart | 2 + tests/lib_2/mirrors/proxy_type_test.dart | 2 + tests/lib_2/mirrors/raw_type_test.dart | 2 + ...directing_factory_different_type_test.dart | 2 + .../redirecting_factory_reflection_test.dart | 2 + .../mirrors/redirecting_factory_test.dart | 2 + tests/lib_2/mirrors/reflect_class_test.dart | 2 + tests/lib_2/mirrors/reflect_model_test.dart | 2 + .../mirrors/reflect_runtime_type_test.dart | 2 + .../mirrors/reflect_two_classes_test.dart | 2 + .../reflect_uninstantiated_class_test.dart | 2 + .../mirrors/reflected_type_classes_test.dart | 2 + .../reflected_type_function_type_test.dart | 2 + .../mirrors/reflected_type_generics_test.dart | 2 + .../lib_2/mirrors/reflected_type_helper.dart | 2 + .../reflected_type_special_types_test.dart | 2 + tests/lib_2/mirrors/reflected_type_test.dart | 2 + .../mirrors/reflected_type_typedefs_test.dart | 2 + .../mirrors/reflected_type_typevars_test.dart | 2 + ...instantiate_uninstantiated_class_test.dart | 2 + tests/lib_2/mirrors/regress_13462_0_test.dart | 2 + tests/lib_2/mirrors/regress_13462_1_test.dart | 2 + tests/lib_2/mirrors/regress_14304_test.dart | 2 + tests/lib_2/mirrors/regress_16321_test.dart | 2 + tests/lib_2/mirrors/regress_18535_test.dart | 2 + tests/lib_2/mirrors/regress_19731_test.dart | 2 + tests/lib_2/mirrors/regress_26187_test.dart | 2 + tests/lib_2/mirrors/regress_28255_test.dart | 2 + tests/lib_2/mirrors/regress_33259_test.dart | 2 + tests/lib_2/mirrors/regress_34982_test.dart | 2 + tests/lib_2/mirrors/regress_38035_test.dart | 2 + .../mirrors/relation_assignable_test.dart | 2 + .../lib_2/mirrors/relation_subclass_test.dart | 2 + .../lib_2/mirrors/relation_subtype_test.dart | 2 + .../repeated_private_anon_mixin_app1.dart | 2 + .../repeated_private_anon_mixin_app2.dart | 2 + .../repeated_private_anon_mixin_app_test.dart | 2 + tests/lib_2/mirrors/return_type_test.dart | 2 + tests/lib_2/mirrors/runtime_type_test.dart | 2 + ...set_field_with_final_inheritance_test.dart | 2 + .../mirrors/set_field_with_final_test.dart | 2 + .../spawn_function_root_library_test.dart | 2 + .../mirrors/static_const_field_test.dart | 2 + .../mirrors/static_members_easier_test.dart | 2 + tests/lib_2/mirrors/static_members_test.dart | 2 + .../lib_2/mirrors/static_metatarget_test.dart | 2 + tests/lib_2/mirrors/static_test.dart | 2 + tests/lib_2/mirrors/stringify.dart | 2 + tests/lib_2/mirrors/superclass2_test.dart | 2 + tests/lib_2/mirrors/superclass_test.dart | 2 + .../lib_2/mirrors/symbol_validation_test.dart | 2 + tests/lib_2/mirrors/syntax_error_test.dart | 2 + .../synthetic_accessor_properties_test.dart | 2 + tests/lib_2/mirrors/to_string_test.dart | 2 + .../mirrors/top_level_accessors_test.dart | 2 + .../type_argument_is_type_variable_test.dart | 2 + .../mirrors/type_mirror_for_type_test.dart | 2 + .../mirrors/type_variable_is_static_test.dart | 2 + .../mirrors/type_variable_owner_test.dart | 2 + .../mirrors/typearguments_mirror_test.dart | 2 + .../typedef_deferred_library_test.dart | 2 + .../mirrors/typedef_in_signature_test.dart | 2 + tests/lib_2/mirrors/typedef_library.dart | 2 + tests/lib_2/mirrors/typedef_library_test.dart | 2 + .../lib_2/mirrors/typedef_metadata_test.dart | 2 + .../mirrors/typedef_reflected_type_test.dart | 2 + tests/lib_2/mirrors/typedef_test.dart | 2 + .../typevariable_mirror_metadata_test.dart | 2 + tests/lib_2/mirrors/unmangled_type_test.dart | 2 + tests/lib_2/mirrors/unnamed_library_test.dart | 2 + .../unnamed_mixin_application_test.dart | 2 + .../lib_2/mirrors/variable_is_const_test.dart | 2 + tests/lib_2/typed_data/byte_data_test.dart | 2 + .../lib_2/typed_data/bytes_builder_test.dart | 2 + .../typed_data/constructor_checks_test.dart | 2 + tests/lib_2/typed_data/endianness_test.dart | 2 + .../typed_data/float32x4_clamp_test.dart | 2 + .../typed_data/float32x4_cross_test.dart | 2 + .../lib_2/typed_data/float32x4_list_test.dart | 2 + .../typed_data/float32x4_shuffle_test.dart | 2 + .../typed_data/float32x4_sign_mask_test.dart | 2 + .../typed_data/float32x4_static_test.dart | 2 + tests/lib_2/typed_data/float32x4_test.dart | 2 + .../typed_data/float32x4_transpose_test.dart | 2 + .../float32x4_two_arg_shuffle_test.dart | 2 + .../typed_data/float32x4_unbox_phi_test.dart | 2 + .../float32x4_unbox_regress_test.dart | 2 + .../typed_data/float64x2_functional_test.dart | 2 + .../typed_data/float64x2_typed_list_test.dart | 2 + .../typed_data/int32x4_arithmetic_test.dart | 2 + tests/lib_2/typed_data/int32x4_list_test.dart | 2 + .../typed_data/int32x4_shuffle_test.dart | 2 + .../typed_data/int32x4_sign_mask_test.dart | 2 + .../lib_2/typed_data/int32x4_static_test.dart | 2 + tests/lib_2/typed_data/int32x4_test.dart | 2 + .../int64_list_load_store_test.dart | 2 + ...eptor_no_own_method_to_intercept_test.dart | 2 + tests/lib_2/typed_data/setRange_1_test.dart | 2 + tests/lib_2/typed_data/setRange_2_test.dart | 2 + tests/lib_2/typed_data/setRange_3_test.dart | 2 + tests/lib_2/typed_data/setRange_4_test.dart | 2 + tests/lib_2/typed_data/setRange_5_test.dart | 2 + tests/lib_2/typed_data/setRange_lib.dart | 2 + .../simd_store_to_load_forward_test.dart | 2 + .../typed_data/simd_type_check_removal.dart | 2 + .../simd_type_null_params_test.dart | 2 + .../typed_data/typed_data_from_list_test.dart | 2 + .../typed_data_hierarchy_int64_test.dart | 2 + .../typed_data/typed_data_hierarchy_test.dart | 2 + .../typed_data/typed_data_list_test.dart | 2 + .../typed_data/typed_data_load2_test.dart | 2 + .../typed_data/typed_data_load_test.dart | 2 + .../typed_data_sublist_type_test.dart | 2 + .../typed_data_view_length_test.dart | 2 + .../typed_data_view_sublist_test.dart | 2 + .../typed_data/typed_list_iterable_test.dart | 2 + .../unmodifiable_typed_data_test.dart | 2 + .../typed_data/zeroed_allocation_test.dart | 2 + tests/lib_2/wasm/basic_test.dart | 2 + tests/lib_2/wasm/corrupted_error_test.dart | 2 + tests/lib_2/wasm/fn_call_error_test.dart | 2 + tests/lib_2/wasm/fn_import_error_test.dart | 2 + .../lib_2/wasm/fn_import_exception_test.dart | 2 + tests/lib_2/wasm/fn_import_test.dart | 2 + tests/lib_2/wasm/hello_wasi_test.dart | 2 + tests/lib_2/wasm/hello_world_test.dart | 2 + tests/lib_2/wasm/import_error_test.dart | 2 + tests/lib_2/wasm/memory_error_test.dart | 2 + tests/lib_2/wasm/memory_test.dart | 2 + tests/lib_2/wasm/numerics_test.dart | 2 + tests/lib_2/wasm/void_test.dart | 2 + tests/lib_2/wasm/wasi_error_test.dart | 2 + tests/lib_2/web/mirrors_support_test.dart | 2 + ...rray_bounds_check_generalization_test.dart | 2 + .../assert_assignable_canon_test.dart | 2 + .../byte_array_view_optimized_test.dart | 2 + tests/standalone_2/bytedata_test.dart | 2 + .../standalone_2/causal_async_stack_test.dart | 2 + tests/standalone_2/check_class_cha_test.dart | 2 + .../check_for_aot_snapshot_jit_test.dart | 2 + tests/standalone_2/check_null_cha_test.dart | 2 + .../constant_left_shift_test.dart | 2 + tests/standalone_2/deferred/alpha.dart | 2 + tests/standalone_2/deferred/exists.dart | 2 + .../deferred/transitive_error.dart | 2 + ...deferred_transitive_import_error_test.dart | 2 + tests/standalone_2/deny_listed_test.dart | 2 + tests/standalone_2/deoptimization_test.dart | 2 + .../double_hash_distribution_test.dart | 2 + .../double_smi_comparison_test.dart | 2 + tests/standalone_2/double_temp_test.dart | 2 + tests/standalone_2/double_to_int_test.dart | 2 + .../dwarf_stack_trace_obfuscate_test.dart | 8 +- .../standalone_2/dwarf_stack_trace_test.dart | 8 +- .../entrypoints_verification_test.dart | 2 + tests/standalone_2/env_test.dart | 2 + .../fields_may_be_reset_test.dart | 2 + .../standalone_2/float_array_static_test.dart | 2 + tests/standalone_2/float_array_test.dart | 2 + .../fragmentation_deferred_load_lib1.dart | 2 + .../fragmentation_deferred_load_lib2.dart | 2 + .../fragmentation_deferred_load_lib3.dart | 2 + .../fragmentation_deferred_load_test.dart | 2 + tests/standalone_2/fragmentation_test.dart | 2 + .../fragmentation_typed_data_test.dart | 2 + .../http_launch_data/http_isolate_main.dart | 2 + .../http_launch_data/http_spawn_main.dart | 2 + .../the_packages/simple/simple.dart | 2 + tests/standalone_2/http_launch_test.dart | 2 + tests/standalone_2/int_array_deopt.dart | 2 + .../int_array_load_elimination_test.dart | 2 + tests/standalone_2/int_array_test.dart | 2 + tests/standalone_2/int_list_test.dart | 2 + tests/standalone_2/io/addlatexhash_test.dart | 2 + .../standalone_2/io/address_lookup_test.dart | 2 + .../standalone_2/io/ansi_supported_test.dart | 2 + tests/standalone_2/io/arguments_test.dart | 2 + .../io/async_catch_errors_test.dart | 2 + .../client_socket_add_close_error_test.dart | 2 + ...client_socket_add_close_no_error_test.dart | 2 + ...nt_socket_add_close_result_error_test.dart | 2 + ...ient_socket_add_destroy_no_error_test.dart | 2 + .../client_socket_destory_no_error_test.dart | 2 + .../io/client_socket_exception_test.dart | 2 + tests/standalone_2/io/compile_all_test.dart | 2 + .../standalone_2/io/console_unicode_test.dart | 2 + .../io/create_recursive_test.dart | 2 + .../io/dart_std_io_pipe_script.dart | 2 + .../io/dart_std_io_pipe_test.dart | 2 + .../standalone_2/io/delete_symlink_test.dart | 2 + .../standalone_2/io/directory_chdir_test.dart | 2 + .../io/directory_create_race_test.dart | 2 + .../standalone_2/io/directory_error_test.dart | 2 + .../standalone_2/io/directory_fuzz_test.dart | 2 + .../io/directory_list_nonexistent_test.dart | 2 + .../io/directory_list_pause_test.dart | 2 + .../io/directory_list_sync_test.dart | 2 + .../io/directory_non_ascii_sync_test.dart | 2 + .../io/directory_non_ascii_test.dart | 2 + tests/standalone_2/io/directory_test.dart | 2 + tests/standalone_2/io/directory_uri_test.dart | 2 + tests/standalone_2/io/disable_exit_test.dart | 2 + .../io/echo_server_stream_test.dart | 2 + .../io/file_absolute_path_test.dart | 2 + .../io/file_blocking_lock_script.dart | 2 + .../io/file_blocking_lock_test.dart | 2 + .../io/file_constructor_test.dart | 2 + tests/standalone_2/io/file_copy_test.dart | 2 + tests/standalone_2/io/file_create_test.dart | 2 + tests/standalone_2/io/file_error2_test.dart | 2 + tests/standalone_2/io/file_error_test.dart | 2 + tests/standalone_2/io/file_fuzz_test.dart | 2 + .../io/file_input_stream_test.dart | 2 + tests/standalone_2/io/file_lock_test.dart | 2 + .../standalone_2/io/file_long_path_test.dart | 2 + .../io/file_non_ascii_sync_test.dart | 2 + .../standalone_2/io/file_non_ascii_test.dart | 2 + .../io/file_output_stream_test.dart | 2 + .../io/file_read_encoded_test.dart | 2 + .../io/file_read_special_device_test.dart | 2 + .../io/file_read_stdio_script.dart | 2 + .../io/file_relative_long_path_test.dart | 2 + tests/standalone_2/io/file_stat_test.dart | 2 + tests/standalone_2/io/file_stream_test.dart | 2 + .../io/file_system_async_links_test.dart | 2 + .../io/file_system_delete_test.dart | 2 + .../io/file_system_exists_test.dart | 2 + .../io/file_system_links_test.dart | 2 + .../standalone_2/io/file_system_uri_test.dart | 2 + .../io/file_system_watcher_test.dart | 2 + tests/standalone_2/io/file_test.dart | 2 + .../standalone_2/io/file_typed_data_test.dart | 2 + tests/standalone_2/io/file_uri_test.dart | 2 + tests/standalone_2/io/file_windows_test.dart | 2 + tests/standalone_2/io/file_write_as_test.dart | 2 + .../standalone_2/io/file_write_only_test.dart | 2 + tests/standalone_2/io/fuzz_support.dart | 2 + .../io/gzip_format_exception_test.dart | 2 + .../io/http_100_continue_test.dart | 2 + tests/standalone_2/io/http_10_test.dart | 2 + tests/standalone_2/io/http_advanced_test.dart | 2 + .../io/http_auth_digest_test.dart | 2 + tests/standalone_2/io/http_auth_test.dart | 2 + .../io/http_ban_http_embedder_test.dart | 2 + .../io/http_ban_http_normal_test.dart | 2 + tests/standalone_2/io/http_basic_test.dart | 2 + .../standalone_2/io/http_big_header_test.dart | 2 + tests/standalone_2/io/http_bind_test.dart | 2 + .../io/http_client_connect_test.dart | 2 + .../io/http_client_exception_test.dart | 2 + ...ttp_client_parser_crlfs_tolerant_test.dart | 2 + .../io/http_client_request_test.dart | 2 + .../io/http_client_stays_alive_test.dart | 2 + .../io/http_close_stack_overflow_test.dart | 2 + tests/standalone_2/io/http_close_test.dart | 2 + .../io/http_compression_test.dart | 2 + .../io/http_connection_close_test.dart | 2 + .../io/http_connection_header_test.dart | 2 + .../io/http_connection_info_test.dart | 2 + .../io/http_content_length_test.dart | 2 + tests/standalone_2/io/http_cookie_test.dart | 2 + .../io/http_cross_process_test.dart | 2 + tests/standalone_2/io/http_date_test.dart | 2 + .../io/http_detach_socket_test.dart | 2 + ...http_force_staggered_ipv6_lookup_test.dart | 2 + tests/standalone_2/io/http_head_test.dart | 2 + .../io/http_headers_content_length_test.dart | 2 + .../io/http_headers_state_test.dart | 2 + tests/standalone_2/io/http_ipv6_test.dart | 2 + .../standalone_2/io/http_keep_alive_test.dart | 2 + .../io/http_linklocal_ipv6_test.dart | 2 + tests/standalone_2/io/http_loopback_test.dart | 2 + .../io/http_no_reason_phrase_test.dart | 2 + .../io/http_outgoing_size_test.dart | 2 + tests/standalone_2/io/http_override_test.dart | 2 + .../io/http_parser_connect_method_test.dart | 2 + .../io/http_parser_header_add_test.dart | 2 + .../io/http_proxy_advanced_test.dart | 2 + .../io/http_proxy_close_test.dart | 2 + .../io/http_proxy_configuration_test.dart | 2 + tests/standalone_2/io/http_proxy_test.dart | 2 + tests/standalone_2/io/http_read_test.dart | 2 + tests/standalone_2/io/http_redirect_test.dart | 2 + .../io/http_request_pipeling_test.dart | 2 + .../io/http_requested_uri_test.dart | 2 + .../io/http_response_deadline_test.dart | 2 + .../io/http_reuse_server_port_test.dart | 2 + ...ver_close_response_after_error_client.dart | 2 + ...erver_close_response_after_error_test.dart | 2 + .../http_server_early_client_close2_test.dart | 2 + .../http_server_early_client_close_test.dart | 2 + .../io/http_server_idle_timeout_test.dart | 2 + .../io/http_server_response_test.dart | 2 + tests/standalone_2/io/http_server_test.dart | 2 + tests/standalone_2/io/http_session_test.dart | 2 + tests/standalone_2/io/http_shutdown_test.dart | 2 + .../io/http_stream_close_test.dart | 2 + .../io/https_bad_certificate_test.dart | 2 + .../io/https_client_certificate_test.dart | 2 + .../io/https_client_exception_test.dart | 2 + ...nnection_closed_during_handshake_test.dart | 2 + ...tps_nonblocking_trust_evaluation_test.dart | 2 + tests/standalone_2/io/https_server_test.dart | 2 + .../io/https_unauthorized_client.dart | 2 + .../io/https_unauthorized_test.dart | 2 + .../io/internet_address_test.dart | 2 + tests/standalone_2/io/io_override_test.dart | 2 + tests/standalone_2/io/io_sink_test.dart | 2 + tests/standalone_2/io/issue_22636_test.dart | 2 + tests/standalone_2/io/issue_22637_test.dart | 2 + tests/standalone_2/io/issue_26954_test.dart | 2 + tests/standalone_2/io/issue_30687_test.dart | 2 + tests/standalone_2/io/issue_31492_test.dart | 2 + tests/standalone_2/io/issue_32052_test.dart | 2 + .../io/large_file_read_small_file_test.dart | 2 + tests/standalone_2/io/link_async_test.dart | 2 + tests/standalone_2/io/link_test.dart | 2 + tests/standalone_2/io/link_uri_test.dart | 2 + tests/standalone_2/io/locale_name_test.dart | 2 + .../io/many_directory_operations_test.dart | 2 + .../io/many_file_operations_test.dart | 2 + tests/standalone_2/io/namespace_test.dart | 2 + .../io/network_interface_test.dart | 2 + .../standalone_2/io/network_policy_test.dart | 2 + .../io/non_utf8_directory_test.dart | 2 + tests/standalone_2/io/non_utf8_file_test.dart | 2 + tests/standalone_2/io/non_utf8_link_test.dart | 2 + .../standalone_2/io/non_utf8_output_test.dart | 2 + tests/standalone_2/io/parent_test.dart | 2 + tests/standalone_2/io/pipe_server_test.dart | 2 + .../io/platform_os_version_test.dart | 2 + .../io/platform_resolved_executable_test.dart | 2 + tests/standalone_2/io/platform_test.dart | 2 + tests/standalone_2/io/print_env.dart | 2 + tests/standalone_2/io/print_sync_script.dart | 2 + tests/standalone_2/io/print_sync_test.dart | 2 + .../io/process_broken_pipe_test.dart | 2 + .../io/process_check_arguments_script.dart | 2 + .../io/process_check_arguments_test.dart | 2 + .../io/process_detached_test.dart | 2 + tests/standalone_2/io/process_echo_util.dart | 2 + .../io/process_environment_test.dart | 2 + tests/standalone_2/io/process_exit_test.dart | 2 + tests/standalone_2/io/process_info_test.dart | 2 + .../io/process_inherit_stdio_script.dart | 2 + .../io/process_inherit_stdio_test.dart | 2 + tests/standalone_2/io/process_kill_test.dart | 2 + .../io/process_non_ascii_test.dart | 2 + .../io/process_path_environment_test.dart | 2 + tests/standalone_2/io/process_path_test.dart | 2 + tests/standalone_2/io/process_pid_test.dart | 2 + .../io/process_run_output_test.dart | 2 + tests/standalone_2/io/process_run_test.dart | 2 + .../io/process_segfault_test.dart | 2 + .../io/process_set_exit_code_script.dart | 2 + .../io/process_set_exit_code_test.dart | 2 + tests/standalone_2/io/process_shell_test.dart | 2 + .../io/process_start_exception_test.dart | 2 + .../io/process_std_io_script.dart | 2 + .../io/process_std_io_script2.dart | 2 + .../standalone_2/io/process_stderr_test.dart | 2 + ...ss_stdin_transform_unsubscribe_script.dart | 2 + ...cess_stdin_transform_unsubscribe_test.dart | 2 + .../standalone_2/io/process_stdout_test.dart | 2 + .../standalone_2/io/process_sync_script.dart | 2 + tests/standalone_2/io/process_sync_test.dart | 2 + tests/standalone_2/io/process_test_util.dart | 2 + .../io/process_working_directory_test.dart | 2 + .../io/raw_datagram_read_all_test.dart | 2 + .../io/raw_datagram_socket_test.dart | 2 + .../io/raw_datagram_zero_length_test.dart | 2 + .../io/raw_secure_server_closing_test.dart | 2 + .../io/raw_secure_server_socket_test.dart | 2 + .../io/raw_secure_socket_pause_test.dart | 2 + .../io/raw_secure_socket_test.dart | 2 + .../io/raw_server_socket_cancel_test.dart | 2 + .../io/raw_socket_cross_process_test.dart | 2 + tests/standalone_2/io/raw_socket_test.dart | 2 + .../io/raw_socket_typed_data_test.dart | 2 + .../io/raw_socket_write_destroy_test.dart | 2 + .../io/raw_synchronous_socket_test.dart | 2 + .../io/read_into_const_list_test.dart | 2 + tests/standalone_2/io/regress_10026_test.dart | 2 + tests/standalone_2/io/regress_21160_test.dart | 2 + tests/standalone_2/io/regress_21987_test.dart | 2 + .../standalone_2/io/regress_7191_script.dart | 2 + tests/standalone_2/io/regress_7191_test.dart | 2 + tests/standalone_2/io/regress_7679_test.dart | 2 + tests/standalone_2/io/regress_8828_test.dart | 2 + tests/standalone_2/io/regress_9194_test.dart | 2 + .../io/regress_flutter_57125_test.dart | 2 + .../io/resolve_symbolic_links_test.dart | 2 + .../io/secure_bad_certificate_test.dart | 2 + .../io/secure_builtin_roots_test.dart | 2 + .../io/secure_client_raw_server_test.dart | 2 + .../io/secure_client_server_test.dart | 2 + .../secure_multiple_client_server_test.dart | 2 + ...secure_server_client_certificate_test.dart | 2 + .../io/secure_server_closing_test.dart | 2 + .../io/secure_server_socket_test.dart | 2 + .../io/secure_session_resume_test.dart | 2 + .../io/secure_socket_alpn_test.dart | 2 + .../io/secure_socket_argument_test.dart | 2 + .../io/secure_socket_renegotiate_client.dart | 2 + .../io/secure_socket_renegotiate_test.dart | 2 + tests/standalone_2/io/secure_socket_test.dart | 2 + .../io/secure_unauthorized_client.dart | 2 + .../io/secure_unauthorized_test.dart | 2 + .../io/server_socket_close_listen_test.dart | 2 + .../io/server_socket_exception_test.dart | 2 + .../io/server_socket_listen_close_test.dart | 2 + tests/standalone_2/io/shared_socket_test.dart | 2 + tests/standalone_2/io/signal_test_script.dart | 2 + .../io/signals_exception_test.dart | 2 + tests/standalone_2/io/signals_test.dart | 2 + .../standalone_2/io/signals_test_script.dart | 2 + tests/standalone_2/io/sleep_test.dart | 2 + .../standalone_2/io/snapshot_fail_script.dart | 2 + tests/standalone_2/io/snapshot_fail_test.dart | 2 + .../io/socket_arguments_test.dart | 2 + tests/standalone_2/io/socket_bind_test.dart | 2 + .../io/socket_cancel_connect_test.dart | 2 + tests/standalone_2/io/socket_close_test.dart | 2 + .../io/socket_connect_consume_close_test.dart | 2 + ...cket_connect_consume_write_close_test.dart | 2 + ...socket_connect_immediate_destory_test.dart | 2 + .../io/socket_connect_stream_close_test.dart | 2 + ...connect_stream_data_close_cancel_test.dart | 2 + ...socket_connect_stream_data_close_test.dart | 2 + .../io/socket_connect_timeout_test.dart | 2 + .../io/socket_cross_process_test.dart | 2 + .../io/socket_finalizer_test.dart | 2 + .../io/socket_from_raw_path_test.dart | 2 + tests/standalone_2/io/socket_hang_test.dart | 2 + .../io/socket_info_ipv4_test.dart | 2 + .../io/socket_info_ipv6_test.dart | 2 + .../io/socket_invalid_arguments_test.dart | 2 + .../io/socket_invalid_bind_test.dart | 2 + tests/standalone_2/io/socket_ipv6_test.dart | 2 + .../io/socket_many_connections_test.dart | 2 + tests/standalone_2/io/socket_port_test.dart | 2 + .../io/socket_simple_bind_test.dart | 2 + .../io/socket_source_address_test.dart | 2 + .../io/socket_upgrade_to_secure_test.dart | 2 + .../io/stdin_has_terminal_test.dart | 2 + tests/standalone_2/io/stdin_sync_test.dart | 2 + .../io/stdio_implicit_close_script.dart | 2 + .../io/stdio_implicit_close_test.dart | 2 + .../io/stdio_nonblocking_script.dart | 2 + .../io/stdio_nonblocking_test.dart | 2 + .../io/stdio_socket_finalizer_test.dart | 2 + tests/standalone_2/io/stdout_close_test.dart | 2 + .../io/stdout_stderr_non_blocking_test.dart | 2 + .../io/stdout_stderr_terminal_test.dart | 2 + tests/standalone_2/io/stdout_stderr_test.dart | 2 + tests/standalone_2/io/stream_pipe_test.dart | 2 + .../standalone_2/io/system_encoding_test.dart | 2 + tests/standalone_2/io/test_extension.dart | 2 + .../io/test_extension_fail_test.dart | 2 + .../standalone_2/io/test_extension_test.dart | 2 + .../io/test_relative_extension.dart | 2 + .../test_relative_extension_fail_tester.dart | 2 + tests/standalone_2/io/test_utils.dart | 2 + tests/standalone_2/io/testing_server.dart | 2 + tests/standalone_2/io/unix_socket_test.dart | 2 + tests/standalone_2/io/unknown_host_test.dart | 2 + tests/standalone_2/io/uri_platform_test.dart | 2 + .../standalone_2/io/wait_for_error_test.dart | 2 + .../io/wait_for_event_helper.dart | 2 + .../io/wait_for_event_isolate_test.dart | 2 + .../io/wait_for_event_microtask_test.dart | 2 + .../wait_for_event_nested_microtask_test.dart | 2 + ...for_event_nested_timer_microtask_test.dart | 2 + .../io/wait_for_event_nested_timer_test.dart | 2 + .../io/wait_for_event_nested_waits_test.dart | 2 + .../io/wait_for_event_timer_test.dart | 2 + ...wait_for_event_zone_caught_error_test.dart | 2 + .../io/wait_for_event_zone_test.dart | 2 + .../io/wait_for_exception_test.dart | 2 + tests/standalone_2/io/wait_for_test.dart | 2 + .../io/wait_for_timeout_test.dart | 2 + .../io/web_socket_compression_test.dart | 2 + .../standalone_2/io/web_socket_pipe_test.dart | 2 + .../io/web_socket_protocol_test.dart | 2 + tests/standalone_2/io/web_socket_test.dart | 2 + .../io/web_socket_typed_data_test.dart | 2 + .../io/windows_environment_script.dart | 2 + .../io/windows_environment_test.dart | 2 + .../windows_file_system_async_links_test.dart | 2 + .../io/windows_file_system_links_test.dart | 2 + tests/standalone_2/io/zlib_test.dart | 2 + .../left_shift_bit_and_op_test.dart | 2 + .../link_natives_lazily_test.dart | 2 + .../map_insert_remove_oom_test.dart | 2 + tests/standalone_2/medium_integer_test.dart | 2 + .../no_allow_absolute_addresses_test.dart | 2 + .../no_lazy_dispatchers_test.dart | 2 + tests/standalone_2/no_profiler_test.dart | 2 + ...uch_method_error_with_invocation_test.dart | 2 + .../no_support_ast_printer_test.dart | 2 + .../no_support_debugger_test.dart | 2 + .../no_support_disassembler_test.dart | 2 + .../no_support_il_printer_test.dart | 2 + .../standalone_2/no_support_service_test.dart | 2 + .../no_support_timeline_test.dart | 2 + tests/standalone_2/number_identity_test.dart | 2 + .../oom_error_stacktrace_test.dart | 2 + ...t_of_memory_recovery_synchronous_test.dart | 2 + .../out_of_memory_recovery_test.dart | 2 + .../out_of_memory_slow_growth_test.dart | 2 + tests/standalone_2/out_of_memory_test.dart | 2 + ...ut_of_memory_unhandled_exception_test.dart | 2 + .../package/invalid_uri_test.dart | 2 + tests/standalone_2/package/package1_test.dart | 2 + .../package/package_isolate_test.dart | 2 + tests/standalone_2/package/package_test.dart | 2 + tests/standalone_2/package/packages/lib1.dart | 2 + .../package/packages/lib2/lib2.dart | 2 + .../package/packages/lib3/sub/lib3.dart | 2 + .../package/packages/package1.dart | 2 + .../package/packages/package2.dart | 2 + .../standalone_2/package/packages/shared.dart | 2 + .../both_dir_and_file_noimports_test.dart | 2 + .../scenarios/both_dir_and_file/foo/foo.dart | 2 + .../both_dir_and_file/packages/foo/foo.dart | 2 + .../prefers_packages_file_test.dart | 2 + .../empty_packages_file_discovery_test.dart | 2 + .../empty_packages_file_noimports_test.dart | 2 + .../empty_packages_file_option_test.dart | 2 + .../package/scenarios/invalid/foo/foo.dart | 2 + .../invalid/invalid_package_name_test.dart | 2 + .../scenarios/invalid/invalid_utf8_test.dart | 2 + .../non_existent_packages_file_test.dart | 2 + .../invalid/same_package_twice_test.dart | 2 + .../packages_file_in_parent/foo/foo.dart | 2 + ...ackages_file_in_parent_noimports_test.dart | 2 + .../sub/packages_file_in_parent_test.dart | 2 + .../scenarios/packages_file_only/foo/foo.dart | 2 + .../packages_file_only_noimports_test.dart | 2 + .../packages_file_only_test.dart | 2 + .../bar/bar.dart | 2 + .../baz/baz.dart | 2 + .../empty_lines_test.dart | 2 + .../empty_package_dir_test.dart | 2 + .../foo/foo.dart | 2 + .../mixed_line_ends_test.dart | 2 + .../packages_option_only_noimports_test.dart | 2 + .../packages_option_only_test.dart | 2 + .../packages_option_only/sub/foo/foo.dart | 2 + .../standalone_2/package/sibling_isolate.dart | 2 + .../package/test_folder/folder_isolate.dart | 2 + .../test_folder/packages/folder_lib.dart | 2 + tests/standalone_2/packages_file_test.dart | 2 + .../pair_location_remapping_test.dart | 2 + tests/standalone_2/pow_test.dart | 2 + .../priority_queue_stress_test.dart | 2 + tests/standalone_2/regress31114_test.dart | 2 + tests/standalone_2/regress_25335_test.dart | 2 + tests/standalone_2/regress_26031_test.dart | 2 + tests/standalone_2/regress_28854_1_test.dart | 2 + tests/standalone_2/regress_28854_2_test.dart | 2 + tests/standalone_2/regress_29350_test.dart | 2 + tests/standalone_2/regress_29695_test.dart | 2 + .../regress_41329_absolute_test.dart | 2 + .../regress_41329_relative_test.dart | 2 + tests/standalone_2/regress_42092_script.dart | 2 + tests/standalone_2/regress_42092_test.dart | 2 + .../slowpath_safepoints_test.dart | 2 + .../typed_array_int64_uint64_test.dart | 2 + tests/standalone_2/typed_array_test.dart | 2 + .../standalone_2/typed_data_isolate_test.dart | 2 + tests/standalone_2/typed_data_test.dart | 2 + tests/standalone_2/typed_data_view_test.dart | 2 + .../unboxed_int_converter_test.dart | 2 + .../verbose_gc_to_bmu_script.dart | 2 + .../standalone_2/verbose_gc_to_bmu_test.dart | 2 + tests/web_2/42088_test.dart | 2 + tests/web_2/42501_test.dart | 2 + tests/web_2/42531_test.dart | 2 + tests/web_2/constant_folding2_test.dart | 4 +- tests/web_2/constant_truncate_test.dart | 2 + tests/web_2/deferred_inheritance_lib1.dart | 2 + tests/web_2/deferred_inheritance_lib2.dart | 2 + .../platform_environment_variable1_test.dart | 2 + .../platform_environment_variable2_test.dart | 2 + .../rti/required_named_parameters_test.dart | 2 + tests/web_2/regress/41781_test.dart | 2 + tests/web_2/regress/44818_test.dart | 2 + tests/web_2/regress/if_method_call_test.dart | 2 + tests/web_2/regress_42281_test.dart | 2 + .../sync_star_element_rti_need_test.dart | 2 + 5540 files changed, 11212 insertions(+), 4792 deletions(-) delete mode 100644 tests/corelib_2/unsigned_shift_test.dart delete mode 100644 tests/language_2/import/internal_library_test.dart delete mode 100644 tests/language_2/operator/unsigned_right_shift_test.dart delete mode 100644 tests/language_2/part/refers_to_core_library_test.dart delete mode 100644 tests/language_2/variance/syntax/variance_disabled_keyword_identifier_syntax_test.dart delete mode 100644 tests/language_2/variance/syntax/variance_disabled_syntax_test.dart delete mode 100644 tests/language_2/variance/syntax/variance_keyword_identifier_syntax_test.dart delete mode 100644 tests/language_2/variance/syntax/variance_syntax_test.dart delete mode 100644 tests/language_2/variance/syntax/variance_type_parameter_error_syntax_test.dart delete mode 100644 tests/language_2/variance/variance_downwards_inference_test.dart delete mode 100644 tests/language_2/variance/variance_in_field_error_test.dart delete mode 100644 tests/language_2/variance/variance_in_field_test.dart delete mode 100644 tests/language_2/variance/variance_in_inference_error_test.dart delete mode 100644 tests/language_2/variance/variance_in_inference_test.dart delete mode 100644 tests/language_2/variance/variance_in_method_error_test.dart delete mode 100644 tests/language_2/variance/variance_in_method_test.dart delete mode 100644 tests/language_2/variance/variance_in_subclass_error_test.dart delete mode 100644 tests/language_2/variance/variance_in_subclass_test.dart delete mode 100644 tests/language_2/variance/variance_in_subtyping_error_test.dart delete mode 100644 tests/language_2/variance/variance_in_subtyping_test.dart delete mode 100644 tests/language_2/variance/variance_inout_field_test.dart delete mode 100644 tests/language_2/variance/variance_inout_inference_error_test.dart delete mode 100644 tests/language_2/variance/variance_inout_inference_test.dart delete mode 100644 tests/language_2/variance/variance_inout_method_test.dart delete mode 100644 tests/language_2/variance/variance_inout_subclass_test.dart delete mode 100644 tests/language_2/variance/variance_inout_subtyping_error_test.dart delete mode 100644 tests/language_2/variance/variance_inout_subtyping_test.dart delete mode 100644 tests/language_2/variance/variance_method_tearoff_test.dart delete mode 100644 tests/language_2/variance/variance_multi_subclass_error_test.dart delete mode 100644 tests/language_2/variance/variance_multi_subclass_test.dart delete mode 100644 tests/language_2/variance/variance_out_field_error_test.dart delete mode 100644 tests/language_2/variance/variance_out_field_test.dart delete mode 100644 tests/language_2/variance/variance_out_inference_error_test.dart delete mode 100644 tests/language_2/variance/variance_out_inference_test.dart delete mode 100644 tests/language_2/variance/variance_out_method_error_test.dart delete mode 100644 tests/language_2/variance/variance_out_method_test.dart delete mode 100644 tests/language_2/variance/variance_out_subclass_error_test.dart delete mode 100644 tests/language_2/variance/variance_out_subclass_test.dart delete mode 100644 tests/language_2/variance/variance_out_subtyping_error_test.dart delete mode 100644 tests/language_2/variance/variance_out_subtyping_test.dart delete mode 100644 tests/language_2/variance/variance_unconstrained_inference_test.dart delete mode 100644 tests/language_2/variance/variance_upper_lower_bounds_error_test.dart delete mode 100644 tests/language_2/variance/variance_upper_lower_bounds_test.dart diff --git a/tests/corelib_2/apply2_test.dart b/tests/corelib_2/apply2_test.dart index 507b2a267f2..95401d40b4a 100644 --- a/tests/corelib_2/apply2_test.dart +++ b/tests/corelib_2/apply2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions= // VMOptions=--dwarf_stack_traces --no-retain_function_objects --no-retain_code_objects diff --git a/tests/corelib_2/apply3_test.dart b/tests/corelib_2/apply3_test.dart index 5bf1bcea6dd..541b345246c 100644 --- a/tests/corelib_2/apply3_test.dart +++ b/tests/corelib_2/apply3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test [Function.apply] on user-defined classes that implement [noSuchMethod]. import "package:expect/expect.dart"; diff --git a/tests/corelib_2/apply4_test.dart b/tests/corelib_2/apply4_test.dart index fba4b9d48b8..2a8ddf59be5 100644 --- a/tests/corelib_2/apply4_test.dart +++ b/tests/corelib_2/apply4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Testing Function.apply calls work correctly for arities that are not diff --git a/tests/corelib_2/apply5_test.dart b/tests/corelib_2/apply5_test.dart index 5435f107189..01005a02b2f 100644 --- a/tests/corelib_2/apply5_test.dart +++ b/tests/corelib_2/apply5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Testing that, when compiled to JS, Function.apply works correctly for diff --git a/tests/corelib_2/apply_generic_function_test.dart b/tests/corelib_2/apply_generic_function_test.dart index 47349fdac0a..e4246d9842c 100644 --- a/tests/corelib_2/apply_generic_function_test.dart +++ b/tests/corelib_2/apply_generic_function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "symbol_map_helper.dart"; diff --git a/tests/corelib_2/apply_test.dart b/tests/corelib_2/apply_test.dart index 25b9eaddc02..a5563fbc81a 100644 --- a/tests/corelib_2/apply_test.dart +++ b/tests/corelib_2/apply_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "symbol_map_helper.dart"; diff --git a/tests/corelib_2/bigint_from_test.dart b/tests/corelib_2/bigint_from_test.dart index 52bd855c3a5..015934cfbb3 100644 --- a/tests/corelib_2/bigint_from_test.dart +++ b/tests/corelib_2/bigint_from_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing Bigints with and without intrinsics. // VMOptions=--intrinsify --no-enable-asserts // VMOptions=--intrinsify --enable-asserts diff --git a/tests/corelib_2/bigint_js_test.dart b/tests/corelib_2/bigint_js_test.dart index ebebc25d680..45c2f0265a5 100644 --- a/tests/corelib_2/bigint_js_test.dart +++ b/tests/corelib_2/bigint_js_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing Bigints with and without intrinsics. // VMOptions=--intrinsify --no-enable-asserts // VMOptions=--intrinsify --enable-asserts diff --git a/tests/corelib_2/bigint_parse_radix_test.dart b/tests/corelib_2/bigint_parse_radix_test.dart index ad7468caa46..9a073d08f6d 100644 --- a/tests/corelib_2/bigint_parse_radix_test.dart +++ b/tests/corelib_2/bigint_parse_radix_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing Bigints with and without intrinsics. // VMOptions=--intrinsify --no-enable-asserts // VMOptions=--intrinsify --enable-asserts diff --git a/tests/corelib_2/bigint_test.dart b/tests/corelib_2/bigint_test.dart index 37e28368ea4..053ddeabe57 100644 --- a/tests/corelib_2/bigint_test.dart +++ b/tests/corelib_2/bigint_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing Bigints with and without intrinsics. // VMOptions=--intrinsify --no-enable-asserts // VMOptions=--intrinsify --enable-asserts diff --git a/tests/corelib_2/bit_twiddling_test.dart b/tests/corelib_2/bit_twiddling_test.dart index fab41d923ff..51aea1b70c5 100644 --- a/tests/corelib_2/bit_twiddling_test.dart +++ b/tests/corelib_2/bit_twiddling_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Testing int.bitLength, int.toUnsigned and int.toSigned. +// @dart = 2.9 + library bit_twiddling_test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/bool_from_environment2_test.dart b/tests/corelib_2/bool_from_environment2_test.dart index 0329c544611..c0e7415777e 100644 --- a/tests/corelib_2/bool_from_environment2_test.dart +++ b/tests/corelib_2/bool_from_environment2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { const bool.fromEnvironment('NOT_FOUND', defaultValue: ''); // //# 01: compile-time error const bool.fromEnvironment('NOT_FOUND', defaultValue: 1); // //# 02: compile-time error diff --git a/tests/corelib_2/bool_from_environment_test.dart b/tests/corelib_2/bool_from_environment_test.dart index 5d01bde0994..24788fff248 100644 --- a/tests/corelib_2/bool_from_environment_test.dart +++ b/tests/corelib_2/bool_from_environment_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // SharedOptions=-Da=true -Db=false -Dc=NOTBOOL -Dd=True +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/bool_hashcode_test.dart b/tests/corelib_2/bool_hashcode_test.dart index d33b14a05d5..3bc82f2b2c9 100644 --- a/tests/corelib_2/bool_hashcode_test.dart +++ b/tests/corelib_2/bool_hashcode_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class BoolHashCodeTest { diff --git a/tests/corelib_2/bool_operator_test.dart b/tests/corelib_2/bool_operator_test.dart index 3d5e3de39bd..ffbcb1b64b6 100644 --- a/tests/corelib_2/bool_operator_test.dart +++ b/tests/corelib_2/bool_operator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/cast_helper.dart b/tests/corelib_2/cast_helper.dart index 6e2d76ac72e..bb139872e85 100644 --- a/tests/corelib_2/cast_helper.dart +++ b/tests/corelib_2/cast_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + final elements = [c, d, e, f, null]; class C {} diff --git a/tests/corelib_2/cast_iterable_test.dart b/tests/corelib_2/cast_iterable_test.dart index 19836f0b532..4b01e02e801 100644 --- a/tests/corelib_2/cast_iterable_test.dart +++ b/tests/corelib_2/cast_iterable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection"; import "package:expect/expect.dart"; import 'cast_helper.dart'; diff --git a/tests/corelib_2/cast_list_test.dart b/tests/corelib_2/cast_list_test.dart index 75f3072616e..47a1d1d4158 100644 --- a/tests/corelib_2/cast_list_test.dart +++ b/tests/corelib_2/cast_list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection"; import "package:expect/expect.dart"; import 'cast_helper.dart'; diff --git a/tests/corelib_2/cast_map_test.dart b/tests/corelib_2/cast_map_test.dart index 123bd1e34df..a662a7dc333 100644 --- a/tests/corelib_2/cast_map_test.dart +++ b/tests/corelib_2/cast_map_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection"; import "package:expect/expect.dart"; import 'cast_helper.dart'; diff --git a/tests/corelib_2/cast_set_test.dart b/tests/corelib_2/cast_set_test.dart index 8b8dc71a122..89d38affe0b 100644 --- a/tests/corelib_2/cast_set_test.dart +++ b/tests/corelib_2/cast_set_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection"; import "package:expect/expect.dart"; import 'cast_helper.dart'; diff --git a/tests/corelib_2/collection_from_test.dart b/tests/corelib_2/collection_from_test.dart index bc7dc7aba70..4c25fbc2c50 100644 --- a/tests/corelib_2/collection_from_test.dart +++ b/tests/corelib_2/collection_from_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library collection.from.test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/collection_length_test.dart b/tests/corelib_2/collection_length_test.dart index 8d618fdb915..317cef7c5ba 100644 --- a/tests/corelib_2/collection_length_test.dart +++ b/tests/corelib_2/collection_length_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library map_test; import 'dart:collection'; diff --git a/tests/corelib_2/collection_of_test.dart b/tests/corelib_2/collection_of_test.dart index d93c7e43f96..61ccd1516e6 100644 --- a/tests/corelib_2/collection_of_test.dart +++ b/tests/corelib_2/collection_of_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library collection.from.test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/collection_removes_test.dart b/tests/corelib_2/collection_removes_test.dart index 793696df25a..085a96cf892 100644 --- a/tests/corelib_2/collection_removes_test.dart +++ b/tests/corelib_2/collection_removes_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/collection_test.dart b/tests/corelib_2/collection_test.dart index 54fbc8bed4e..d3be692ab83 100644 --- a/tests/corelib_2/collection_test.dart +++ b/tests/corelib_2/collection_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library collection_test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/collection_to_string_test.dart b/tests/corelib_2/collection_to_string_test.dart index 1dc25339d58..62c7ed7997b 100644 --- a/tests/corelib_2/collection_to_string_test.dart +++ b/tests/corelib_2/collection_to_string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /** * Tests for the toString methods on collections and maps. */ diff --git a/tests/corelib_2/compare_to2_test.dart b/tests/corelib_2/compare_to2_test.dart index f9d66fbf97d..6fd1c3b151f 100644 --- a/tests/corelib_2/compare_to2_test.dart +++ b/tests/corelib_2/compare_to2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing Math.min and Math.max. +// @dart = 2.9 + import "package:expect/expect.dart"; negate(x) => -x; diff --git a/tests/corelib_2/compare_to_test.dart b/tests/corelib_2/compare_to_test.dart index 318a39fb6ef..a7e5b96475e 100644 --- a/tests/corelib_2/compare_to_test.dart +++ b/tests/corelib_2/compare_to_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing Math.min and Math.max. +// @dart = 2.9 + import "package:expect/expect.dart"; negate(x) => -x; diff --git a/tests/corelib_2/const_list_literal_test.dart b/tests/corelib_2/const_list_literal_test.dart index cf61c4f5701..2b02188be85 100644 --- a/tests/corelib_2/const_list_literal_test.dart +++ b/tests/corelib_2/const_list_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that a final list literal is not expandable nor modifiable. diff --git a/tests/corelib_2/const_list_remove_range_test.dart b/tests/corelib_2/const_list_remove_range_test.dart index e3c257c99db..320cbde739d 100644 --- a/tests/corelib_2/const_list_remove_range_test.dart +++ b/tests/corelib_2/const_list_remove_range_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/const_list_set_range_test.dart b/tests/corelib_2/const_list_set_range_test.dart index 9bba324f4a6..853ff788180 100644 --- a/tests/corelib_2/const_list_set_range_test.dart +++ b/tests/corelib_2/const_list_set_range_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/core_runtime_types_static_test.dart b/tests/corelib_2/core_runtime_types_static_test.dart index 8bb96c2a529..3e84c720653 100644 --- a/tests/corelib_2/core_runtime_types_static_test.dart +++ b/tests/corelib_2/core_runtime_types_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; /** diff --git a/tests/corelib_2/core_runtime_types_test.dart b/tests/corelib_2/core_runtime_types_test.dart index 628bb227428..28d73adaebc 100644 --- a/tests/corelib_2/core_runtime_types_test.dart +++ b/tests/corelib_2/core_runtime_types_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; /** diff --git a/tests/corelib_2/data_uri_test.dart b/tests/corelib_2/data_uri_test.dart index 12837f5669f..4e194c1c977 100644 --- a/tests/corelib_2/data_uri_test.dart +++ b/tests/corelib_2/data_uri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:convert"; import "dart:typed_data"; diff --git a/tests/corelib_2/date_time10_test.dart b/tests/corelib_2/date_time10_test.dart index 3d7d34e0091..cd3eb599ef0 100644 --- a/tests/corelib_2/date_time10_test.dart +++ b/tests/corelib_2/date_time10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Make sure the years in the range of single digits are handled correctly with diff --git a/tests/corelib_2/date_time11_test.dart b/tests/corelib_2/date_time11_test.dart index 958bdb9daaa..7039b1ea793 100644 --- a/tests/corelib_2/date_time11_test.dart +++ b/tests/corelib_2/date_time11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Make sure that date-times close to daylight savings work correctly. diff --git a/tests/corelib_2/date_time2_test.dart b/tests/corelib_2/date_time2_test.dart index 6a0bb87dae5..e443b495ef0 100644 --- a/tests/corelib_2/date_time2_test.dart +++ b/tests/corelib_2/date_time2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for DateTime's hashCode. diff --git a/tests/corelib_2/date_time3_test.dart b/tests/corelib_2/date_time3_test.dart index 557eedee15f..63349cd0acf 100644 --- a/tests/corelib_2/date_time3_test.dart +++ b/tests/corelib_2/date_time3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // At some point dart was emitting a bad padding 0 for Dates where the ms were diff --git a/tests/corelib_2/date_time4_test.dart b/tests/corelib_2/date_time4_test.dart index 4342019f8c6..549f4362a08 100644 --- a/tests/corelib_2/date_time4_test.dart +++ b/tests/corelib_2/date_time4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test fromString with 6 digits after the decimal point. diff --git a/tests/corelib_2/date_time5_test.dart b/tests/corelib_2/date_time5_test.dart index abf893d51e1..af54f5e116e 100644 --- a/tests/corelib_2/date_time5_test.dart +++ b/tests/corelib_2/date_time5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test DateTime constructor with optional arguments. diff --git a/tests/corelib_2/date_time6_test.dart b/tests/corelib_2/date_time6_test.dart index c065705bafc..896225d2c47 100644 --- a/tests/corelib_2/date_time6_test.dart +++ b/tests/corelib_2/date_time6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test DateTime comparison operators. diff --git a/tests/corelib_2/date_time7_test.dart b/tests/corelib_2/date_time7_test.dart index b14eb7da18e..3f062f742ec 100644 --- a/tests/corelib_2/date_time7_test.dart +++ b/tests/corelib_2/date_time7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test DateTime timeZoneName and timeZoneOffset getters. diff --git a/tests/corelib_2/date_time8_test.dart b/tests/corelib_2/date_time8_test.dart index 85d573f56b8..0603bc0494e 100644 --- a/tests/corelib_2/date_time8_test.dart +++ b/tests/corelib_2/date_time8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Make sure the year 0 is correctly printed. diff --git a/tests/corelib_2/date_time9_test.dart b/tests/corelib_2/date_time9_test.dart index 9475775e7f5..ed8bf1ee2fe 100644 --- a/tests/corelib_2/date_time9_test.dart +++ b/tests/corelib_2/date_time9_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/date_time_extremes_test.dart b/tests/corelib_2/date_time_extremes_test.dart index 05563d107c5..a81c4da9931 100644 --- a/tests/corelib_2/date_time_extremes_test.dart +++ b/tests/corelib_2/date_time_extremes_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for DateTime, extreme values. diff --git a/tests/corelib_2/date_time_far_away_dates_test.dart b/tests/corelib_2/date_time_far_away_dates_test.dart index ba7104f8bde..a22fe0f5181 100644 --- a/tests/corelib_2/date_time_far_away_dates_test.dart +++ b/tests/corelib_2/date_time_far_away_dates_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for DateTime, far away dates. diff --git a/tests/corelib_2/date_time_js_modified_test.dart b/tests/corelib_2/date_time_js_modified_test.dart index 92f4b77dc34..5053c358561 100644 --- a/tests/corelib_2/date_time_js_modified_test.dart +++ b/tests/corelib_2/date_time_js_modified_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // The JavaScript Date constructor 'corrects' 2-digit years NN to 19NN. diff --git a/tests/corelib_2/date_time_parse_test.dart b/tests/corelib_2/date_time_parse_test.dart index 23b8b02ddd1..eb3d48c3986 100644 --- a/tests/corelib_2/date_time_parse_test.dart +++ b/tests/corelib_2/date_time_parse_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; check(DateTime expected, String str) { diff --git a/tests/corelib_2/date_time_test.dart b/tests/corelib_2/date_time_test.dart index e782ca54954..798fc3a490d 100644 --- a/tests/corelib_2/date_time_test.dart +++ b/tests/corelib_2/date_time_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for DateTime. diff --git a/tests/corelib_2/double_ceil2_test.dart b/tests/corelib_2/double_ceil2_test.dart index 630554ab009..478edd0f1ac 100644 --- a/tests/corelib_2/double_ceil2_test.dart +++ b/tests/corelib_2/double_ceil2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_ceil_test.dart b/tests/corelib_2/double_ceil_test.dart index f461bae5270..4199ea9f17b 100644 --- a/tests/corelib_2/double_ceil_test.dart +++ b/tests/corelib_2/double_ceil_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_ceil_to_double_test.dart b/tests/corelib_2/double_ceil_to_double_test.dart index 856ead3932c..f1e4240b7e0 100644 --- a/tests/corelib_2/double_ceil_to_double_test.dart +++ b/tests/corelib_2/double_ceil_to_double_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_compare_test.dart b/tests/corelib_2/double_compare_test.dart index 0071cf06606..475bea7e10a 100644 --- a/tests/corelib_2/double_compare_test.dart +++ b/tests/corelib_2/double_compare_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for testing 'compare' on doubles. diff --git a/tests/corelib_2/double_floor2_test.dart b/tests/corelib_2/double_floor2_test.dart index 95413e505f5..79e01ce4549 100644 --- a/tests/corelib_2/double_floor2_test.dart +++ b/tests/corelib_2/double_floor2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_floor_test.dart b/tests/corelib_2/double_floor_test.dart index ba34daf5def..2bd1c9a8fe5 100644 --- a/tests/corelib_2/double_floor_test.dart +++ b/tests/corelib_2/double_floor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_floor_to_double_test.dart b/tests/corelib_2/double_floor_to_double_test.dart index 8a4286298e1..abd1c7031fc 100644 --- a/tests/corelib_2/double_floor_to_double_test.dart +++ b/tests/corelib_2/double_floor_to_double_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_hash_code_test.dart b/tests/corelib_2/double_hash_code_test.dart index 8665e6bab0d..ec5471e400f 100644 --- a/tests/corelib_2/double_hash_code_test.dart +++ b/tests/corelib_2/double_hash_code_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--intrinsify // VMOptions=--no_intrinsify diff --git a/tests/corelib_2/double_parse_test.dart b/tests/corelib_2/double_parse_test.dart index 7dc70e74d63..5827596a1ae 100644 --- a/tests/corelib_2/double_parse_test.dart +++ b/tests/corelib_2/double_parse_test.dart @@ -4,6 +4,8 @@ // VMOptions=--no-use-field-guards // VMOptions= +// @dart = 2.9 + import "dart:math" show pow; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/double_round2_test.dart b/tests/corelib_2/double_round2_test.dart index 3fd59b1f720..1ab9a37326b 100644 --- a/tests/corelib_2/double_round2_test.dart +++ b/tests/corelib_2/double_round2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_round3_test.dart b/tests/corelib_2/double_round3_test.dart index a1edeeb77f3..eff16dd6908 100644 --- a/tests/corelib_2/double_round3_test.dart +++ b/tests/corelib_2/double_round3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_round4_test.dart b/tests/corelib_2/double_round4_test.dart index 2b89dcc0fe2..beab41659a4 100644 --- a/tests/corelib_2/double_round4_test.dart +++ b/tests/corelib_2/double_round4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_round_test.dart b/tests/corelib_2/double_round_test.dart index f40dcd83b52..b975be71c6f 100644 --- a/tests/corelib_2/double_round_test.dart +++ b/tests/corelib_2/double_round_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_round_to_double2_test.dart b/tests/corelib_2/double_round_to_double2_test.dart index ef8024db033..630fe2c624b 100644 --- a/tests/corelib_2/double_round_to_double2_test.dart +++ b/tests/corelib_2/double_round_to_double2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_round_to_double3_test.dart b/tests/corelib_2/double_round_to_double3_test.dart index c53ac8168b4..b29840b5d80 100644 --- a/tests/corelib_2/double_round_to_double3_test.dart +++ b/tests/corelib_2/double_round_to_double3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_round_to_double_test.dart b/tests/corelib_2/double_round_to_double_test.dart index 16c162d12ea..4111369a198 100644 --- a/tests/corelib_2/double_round_to_double_test.dart +++ b/tests/corelib_2/double_round_to_double_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_truncate2_test.dart b/tests/corelib_2/double_truncate2_test.dart index b4b33e8a465..11879caef33 100644 --- a/tests/corelib_2/double_truncate2_test.dart +++ b/tests/corelib_2/double_truncate2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_truncate_test.dart b/tests/corelib_2/double_truncate_test.dart index 4de6a79d846..221b8e5eaed 100644 --- a/tests/corelib_2/double_truncate_test.dart +++ b/tests/corelib_2/double_truncate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_truncate_to_double_test.dart b/tests/corelib_2/double_truncate_to_double_test.dart index 1efec34e860..dc725be9026 100644 --- a/tests/corelib_2/double_truncate_to_double_test.dart +++ b/tests/corelib_2/double_truncate_to_double_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/double_try_parse_test.dart b/tests/corelib_2/double_try_parse_test.dart index 11dba69b754..19cdd92d696 100644 --- a/tests/corelib_2/double_try_parse_test.dart +++ b/tests/corelib_2/double_try_parse_test.dart @@ -4,6 +4,8 @@ // VMOptions=--no-use-field-guards // VMOptions= +// @dart = 2.9 + import "dart:math" show pow; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/duration_big_num_test.dart b/tests/corelib_2/duration_big_num_test.dart index 154afb90734..e4bb7a614e7 100644 --- a/tests/corelib_2/duration_big_num_test.dart +++ b/tests/corelib_2/duration_big_num_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:math'; diff --git a/tests/corelib_2/duration_double_multiplication_test.dart b/tests/corelib_2/duration_double_multiplication_test.dart index 415067cbfb2..fc631ff0362 100644 --- a/tests/corelib_2/duration_double_multiplication_test.dart +++ b/tests/corelib_2/duration_double_multiplication_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/duration_test.dart b/tests/corelib_2/duration_test.dart index 842f4b05d70..09a51410708 100644 --- a/tests/corelib_2/duration_test.dart +++ b/tests/corelib_2/duration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/dynamic_nosuchmethod_test.dart b/tests/corelib_2/dynamic_nosuchmethod_test.dart index 14fce849aae..78ba5bc5e53 100644 --- a/tests/corelib_2/dynamic_nosuchmethod_test.dart +++ b/tests/corelib_2/dynamic_nosuchmethod_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--lazy-dispatchers // VMOptions=--no-lazy-dispatchers diff --git a/tests/corelib_2/error_stack_trace1_test.dart b/tests/corelib_2/error_stack_trace1_test.dart index 17adde72b85..792a386ff26 100644 --- a/tests/corelib_2/error_stack_trace1_test.dart +++ b/tests/corelib_2/error_stack_trace1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/corelib_2/error_stack_trace2_test.dart b/tests/corelib_2/error_stack_trace2_test.dart index 74376513429..26aacbfd12a 100644 --- a/tests/corelib_2/error_stack_trace2_test.dart +++ b/tests/corelib_2/error_stack_trace2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/corelib_2/error_stack_trace_test.dart b/tests/corelib_2/error_stack_trace_test.dart index 41f003ec790..3cd163b9043 100644 --- a/tests/corelib_2/error_stack_trace_test.dart +++ b/tests/corelib_2/error_stack_trace_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void argument() { diff --git a/tests/corelib_2/errors_test.dart b/tests/corelib_2/errors_test.dart index b96ffea2ef2..ed1a2b7b8a2 100644 --- a/tests/corelib_2/errors_test.dart +++ b/tests/corelib_2/errors_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that error constructors do what they are documented as doing. diff --git a/tests/corelib_2/exception_implementation_test.dart b/tests/corelib_2/exception_implementation_test.dart index 0744f50ef68..18190ca894f 100644 --- a/tests/corelib_2/exception_implementation_test.dart +++ b/tests/corelib_2/exception_implementation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library exception_implementation_test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/expando_test.dart b/tests/corelib_2/expando_test.dart index 95ae7db61dd..07159d62910 100644 --- a/tests/corelib_2/expando_test.dart +++ b/tests/corelib_2/expando_test.dart @@ -5,6 +5,8 @@ // VMOptions=--enable-ffi=true // VMOptions=--enable-ffi=false +// @dart = 2.9 + import "package:expect/expect.dart"; class ExpandoTest { diff --git a/tests/corelib_2/expression_test.dart b/tests/corelib_2/expression_test.dart index d0ba4c917bd..6d0dbb162ed 100644 --- a/tests/corelib_2/expression_test.dart +++ b/tests/corelib_2/expression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests basic expressions. Does not attempt to validate the details of arithmetic, coercion, and diff --git a/tests/corelib_2/for_in_test.dart b/tests/corelib_2/for_in_test.dart index 35d1a86439c..e2cf56fdc09 100644 --- a/tests/corelib_2/for_in_test.dart +++ b/tests/corelib_2/for_in_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class ForInTest { diff --git a/tests/corelib_2/format_exception_test.dart b/tests/corelib_2/format_exception_test.dart index a2e89e6194c..028cddbd770 100644 --- a/tests/corelib_2/format_exception_test.dart +++ b/tests/corelib_2/format_exception_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library format_exception_test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/from_environment_const_type_test.dart b/tests/corelib_2/from_environment_const_type_test.dart index 3ed691cd868..8ba03a731e3 100644 --- a/tests/corelib_2/from_environment_const_type_test.dart +++ b/tests/corelib_2/from_environment_const_type_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // SharedOptions=-Da=true -Db=false -Dc=3 -Dd=STRING +// @dart = 2.9 + import "package:expect/expect.dart"; class Foo {} diff --git a/tests/corelib_2/from_environment_const_type_undefined_test.dart b/tests/corelib_2/from_environment_const_type_undefined_test.dart index d63d75f96cb..c71e8468555 100644 --- a/tests/corelib_2/from_environment_const_type_undefined_test.dart +++ b/tests/corelib_2/from_environment_const_type_undefined_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Foo {} diff --git a/tests/corelib_2/from_environment_default_value_test.dart b/tests/corelib_2/from_environment_default_value_test.dart index c95d00088e1..972b24a2a6f 100644 --- a/tests/corelib_2/from_environment_default_value_test.dart +++ b/tests/corelib_2/from_environment_default_value_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/growable_list_test.dart b/tests/corelib_2/growable_list_test.dart index cea1446e523..c2f107e9c59 100644 --- a/tests/corelib_2/growable_list_test.dart +++ b/tests/corelib_2/growable_list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Sanity check on the growing behavior of a growable list. import "package:expect/expect.dart"; diff --git a/tests/corelib_2/has_next_iterator_test.dart b/tests/corelib_2/has_next_iterator_test.dart index 7930cd662ff..553cbbd7750 100644 --- a/tests/corelib_2/has_next_iterator_test.dart +++ b/tests/corelib_2/has_next_iterator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library hasNextIterator.test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/hash_map2_test.dart b/tests/corelib_2/hash_map2_test.dart index 762876ef3f7..4c00f7df307 100644 --- a/tests/corelib_2/hash_map2_test.dart +++ b/tests/corelib_2/hash_map2_test.dart @@ -5,6 +5,8 @@ // VMOptions= // VMOptions=--use_internal_hash_map +// @dart = 2.9 + // Tests of hash map behavior, with focus in iteration and concurrent // modification errors. diff --git a/tests/corelib_2/hash_map_test.dart b/tests/corelib_2/hash_map_test.dart index 4bd6d62db8f..649907d8d03 100644 --- a/tests/corelib_2/hash_map_test.dart +++ b/tests/corelib_2/hash_map_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test program for the HashMap class. diff --git a/tests/corelib_2/hash_set_test.dart b/tests/corelib_2/hash_set_test.dart index 2dfe6bbcd36..511dd50dcea 100644 --- a/tests/corelib_2/hash_set_test.dart +++ b/tests/corelib_2/hash_set_test.dart @@ -4,6 +4,8 @@ // // VMOptions= +// @dart = 2.9 + // Tests of hash set behavior, with focus in iteration and concurrent // modification errors. diff --git a/tests/corelib_2/hash_set_type_check_test.dart b/tests/corelib_2/hash_set_type_check_test.dart index e51c88d7bd6..1b394090e67 100644 --- a/tests/corelib_2/hash_set_type_check_test.dart +++ b/tests/corelib_2/hash_set_type_check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests of hash set type checking. library hash_set_type_check_test; diff --git a/tests/corelib_2/hashcode_boxed_test.dart b/tests/corelib_2/hashcode_boxed_test.dart index e23c75aea1d..b4b52c8865f 100644 --- a/tests/corelib_2/hashcode_boxed_test.dart +++ b/tests/corelib_2/hashcode_boxed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; double fib(double n) { diff --git a/tests/corelib_2/hashcode_test.dart b/tests/corelib_2/hashcode_test.dart index 840df023113..b818ae13dcc 100644 --- a/tests/corelib_2/hashcode_test.dart +++ b/tests/corelib_2/hashcode_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Override { diff --git a/tests/corelib_2/hidden_library2_test.dart b/tests/corelib_2/hidden_library2_test.dart index 637cd940779..68770c7d291 100644 --- a/tests/corelib_2/hidden_library2_test.dart +++ b/tests/corelib_2/hidden_library2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that the internal hidden library doesn't make problems with taking // stack-traces. diff --git a/tests/corelib_2/int_ceil_test.dart b/tests/corelib_2/int_ceil_test.dart index 731e15aead2..b42d2809d6a 100644 --- a/tests/corelib_2/int_ceil_test.dart +++ b/tests/corelib_2/int_ceil_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/int_ceil_to_double_test.dart b/tests/corelib_2/int_ceil_to_double_test.dart index 0a35acb8050..1c189b6ac53 100644 --- a/tests/corelib_2/int_ceil_to_double_test.dart +++ b/tests/corelib_2/int_ceil_to_double_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/int_floor_test.dart b/tests/corelib_2/int_floor_test.dart index e85d5dfb5c3..ca00b9cb037 100644 --- a/tests/corelib_2/int_floor_test.dart +++ b/tests/corelib_2/int_floor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/int_floor_to_double_test.dart b/tests/corelib_2/int_floor_to_double_test.dart index 659b295b8fb..27f797a3008 100644 --- a/tests/corelib_2/int_floor_to_double_test.dart +++ b/tests/corelib_2/int_floor_to_double_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/int_from_environment2_test.dart b/tests/corelib_2/int_from_environment2_test.dart index 102805647d8..5284b222a31 100644 --- a/tests/corelib_2/int_from_environment2_test.dart +++ b/tests/corelib_2/int_from_environment2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // SharedOptions=-Da=x -Db=- -Dc=0xg -Dd=+ -Dd= +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/int_from_environment_int64_test.dart b/tests/corelib_2/int_from_environment_int64_test.dart index b7345565f90..a00fd8c34be 100644 --- a/tests/corelib_2/int_from_environment_int64_test.dart +++ b/tests/corelib_2/int_from_environment_int64_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // SharedOptions=-Df=-9223372036854775808 -Dg=9223372036854775807 +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/int_from_environment_test.dart b/tests/corelib_2/int_from_environment_test.dart index 2e6d28eee1c..77f6d6a8893 100644 --- a/tests/corelib_2/int_from_environment_test.dart +++ b/tests/corelib_2/int_from_environment_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // SharedOptions=-Da=1 -Db=-12 -Dc=0x123 -Dd=-0x1234 -De=+0x112296 -Df=-9007199254740991 -Dg=9007199254740991 -Dh=-0x8000000000000000 -Di=0x8000000000000000 -Dj=0xDEADBEEFCAFE0000 +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/int_modpow_hard_test.dart b/tests/corelib_2/int_modpow_hard_test.dart index 0024c9a89c2..98ad0c64ef3 100644 --- a/tests/corelib_2/int_modpow_hard_test.dart +++ b/tests/corelib_2/int_modpow_hard_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Extreme values from int_modulo_arith_test. Test cases that that have // intermediate values that overflow the precision of 'int'. diff --git a/tests/corelib_2/int_modulo_arith_test.dart b/tests/corelib_2/int_modulo_arith_test.dart index 4b347cc1e34..ffaa981a6a2 100644 --- a/tests/corelib_2/int_modulo_arith_test.dart +++ b/tests/corelib_2/int_modulo_arith_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:math" show pow; diff --git a/tests/corelib_2/int_parse_radix_bad_handler_test.dart b/tests/corelib_2/int_parse_radix_bad_handler_test.dart index 2c3b2be0d01..c5de1eac712 100644 --- a/tests/corelib_2/int_parse_radix_bad_handler_test.dart +++ b/tests/corelib_2/int_parse_radix_bad_handler_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/corelib_2/int_parse_radix_int64_test.dart b/tests/corelib_2/int_parse_radix_int64_test.dart index 7a6fe18b74b..2ad942e07c0 100644 --- a/tests/corelib_2/int_parse_radix_int64_test.dart +++ b/tests/corelib_2/int_parse_radix_int64_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:math" show pow, log; diff --git a/tests/corelib_2/int_parse_radix_test.dart b/tests/corelib_2/int_parse_radix_test.dart index d7ca92a144f..f53f834e932 100644 --- a/tests/corelib_2/int_parse_radix_test.dart +++ b/tests/corelib_2/int_parse_radix_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:math" show pow, log; diff --git a/tests/corelib_2/int_parse_with_limited_ints_test.dart b/tests/corelib_2/int_parse_with_limited_ints_test.dart index 19198b27826..48246d347dd 100644 --- a/tests/corelib_2/int_parse_with_limited_ints_test.dart +++ b/tests/corelib_2/int_parse_with_limited_ints_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for int.parse with limited 64-bit integers. import "package:expect/expect.dart"; diff --git a/tests/corelib_2/int_round_test.dart b/tests/corelib_2/int_round_test.dart index 3e9a8ae490c..8b3b25885ef 100644 --- a/tests/corelib_2/int_round_test.dart +++ b/tests/corelib_2/int_round_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/int_round_to_double_test.dart b/tests/corelib_2/int_round_to_double_test.dart index b49cd946579..a6b0fd997d6 100644 --- a/tests/corelib_2/int_round_to_double_test.dart +++ b/tests/corelib_2/int_round_to_double_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/int_to_int_test.dart b/tests/corelib_2/int_to_int_test.dart index 065d357f173..ff0cbf2cb0f 100644 --- a/tests/corelib_2/int_to_int_test.dart +++ b/tests/corelib_2/int_to_int_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/int_truncate_test.dart b/tests/corelib_2/int_truncate_test.dart index f26a8562618..02eb2e7d892 100644 --- a/tests/corelib_2/int_truncate_test.dart +++ b/tests/corelib_2/int_truncate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/int_truncate_to_double_test.dart b/tests/corelib_2/int_truncate_to_double_test.dart index 20b27d343c2..ef3f104a173 100644 --- a/tests/corelib_2/int_truncate_to_double_test.dart +++ b/tests/corelib_2/int_truncate_to_double_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/int_try_parse_int64_test.dart b/tests/corelib_2/int_try_parse_int64_test.dart index 419da75bb11..f90794ba25b 100644 --- a/tests/corelib_2/int_try_parse_int64_test.dart +++ b/tests/corelib_2/int_try_parse_int64_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:math" show pow, log; diff --git a/tests/corelib_2/int_try_parse_test.dart b/tests/corelib_2/int_try_parse_test.dart index 282cee52ec1..0705314b3f0 100644 --- a/tests/corelib_2/int_try_parse_test.dart +++ b/tests/corelib_2/int_try_parse_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:math" show pow, log; diff --git a/tests/corelib_2/integer_arith_vm_test.dart b/tests/corelib_2/integer_arith_vm_test.dart index fcd3e9e7a9b..d0748c128c8 100644 --- a/tests/corelib_2/integer_arith_vm_test.dart +++ b/tests/corelib_2/integer_arith_vm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing integers with and without intrinsics. // VMOptions= // VMOptions=--no_intrinsify diff --git a/tests/corelib_2/integer_parsed_arith_vm_test.dart b/tests/corelib_2/integer_parsed_arith_vm_test.dart index 0ccc6bd5faf..9e19f0c9735 100644 --- a/tests/corelib_2/integer_parsed_arith_vm_test.dart +++ b/tests/corelib_2/integer_parsed_arith_vm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing integers with and without intrinsics. // VMOptions= // VMOptions=--no_intrinsify diff --git a/tests/corelib_2/integer_parsed_div_rem_vm_test.dart b/tests/corelib_2/integer_parsed_div_rem_vm_test.dart index 4ed1b669bba..d6c1e11a74d 100644 --- a/tests/corelib_2/integer_parsed_div_rem_vm_test.dart +++ b/tests/corelib_2/integer_parsed_div_rem_vm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing integers with and without intrinsics. // VMOptions= // VMOptions=--no_intrinsify diff --git a/tests/corelib_2/integer_parsed_mul_div_vm_test.dart b/tests/corelib_2/integer_parsed_mul_div_vm_test.dart index d2316e73d28..2eaa655a214 100644 --- a/tests/corelib_2/integer_parsed_mul_div_vm_test.dart +++ b/tests/corelib_2/integer_parsed_mul_div_vm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing integers with and without intrinsics. // VMOptions= // VMOptions=--no_intrinsify diff --git a/tests/corelib_2/integer_to_radix_string_test.dart b/tests/corelib_2/integer_to_radix_string_test.dart index bfe726c0a19..908b1613982 100644 --- a/tests/corelib_2/integer_to_radix_string_test.dart +++ b/tests/corelib_2/integer_to_radix_string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/integer_to_string_test.dart b/tests/corelib_2/integer_to_string_test.dart index c23e8bb6a63..b33eb9d2642 100644 --- a/tests/corelib_2/integer_to_string_test.dart +++ b/tests/corelib_2/integer_to_string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/invocation_test.dart b/tests/corelib_2/invocation_test.dart index 286f12fecff..349339897b5 100644 --- a/tests/corelib_2/invocation_test.dart +++ b/tests/corelib_2/invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests the constructors of the Invocation class. diff --git a/tests/corelib_2/is_operator_basic_types_test.dart b/tests/corelib_2/is_operator_basic_types_test.dart index 772afb2fb50..df7ce05ca80 100644 --- a/tests/corelib_2/is_operator_basic_types_test.dart +++ b/tests/corelib_2/is_operator_basic_types_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for the "is" type test operator. +// @dart = 2.9 + import "package:expect/expect.dart"; check(args) { diff --git a/tests/corelib_2/iterable_contains2_test.dart b/tests/corelib_2/iterable_contains2_test.dart index d4714c72bef..febbb31e391 100644 --- a/tests/corelib_2/iterable_contains2_test.dart +++ b/tests/corelib_2/iterable_contains2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests for the contains methods on lists. diff --git a/tests/corelib_2/iterable_contains_test.dart b/tests/corelib_2/iterable_contains_test.dart index 0dce4680c11..353940f5ced 100644 --- a/tests/corelib_2/iterable_contains_test.dart +++ b/tests/corelib_2/iterable_contains_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests for the contains methods on lists. diff --git a/tests/corelib_2/iterable_element_at_test.dart b/tests/corelib_2/iterable_element_at_test.dart index d8956863115..8ea5ed403de 100644 --- a/tests/corelib_2/iterable_element_at_test.dart +++ b/tests/corelib_2/iterable_element_at_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/iterable_empty_test.dart b/tests/corelib_2/iterable_empty_test.dart index 7d260883fdb..c942bfe8a3c 100644 --- a/tests/corelib_2/iterable_empty_test.dart +++ b/tests/corelib_2/iterable_empty_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/iterable_expand_test.dart b/tests/corelib_2/iterable_expand_test.dart index a02787a6108..ed918a773e2 100644 --- a/tests/corelib_2/iterable_expand_test.dart +++ b/tests/corelib_2/iterable_expand_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:collection'; diff --git a/tests/corelib_2/iterable_first_test.dart b/tests/corelib_2/iterable_first_test.dart index 40e53c2b57c..2e32935195c 100644 --- a/tests/corelib_2/iterable_first_test.dart +++ b/tests/corelib_2/iterable_first_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/iterable_first_where_test.dart b/tests/corelib_2/iterable_first_where_test.dart index ce3f53fbe7e..3b17df48250 100644 --- a/tests/corelib_2/iterable_first_where_test.dart +++ b/tests/corelib_2/iterable_first_where_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/iterable_fold_test.dart b/tests/corelib_2/iterable_fold_test.dart index b531cccb406..05843b1de72 100644 --- a/tests/corelib_2/iterable_fold_test.dart +++ b/tests/corelib_2/iterable_fold_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:collection'; import 'dart:typed_data'; diff --git a/tests/corelib_2/iterable_followed_by_test.dart b/tests/corelib_2/iterable_followed_by_test.dart index 5edf0e3e223..4a56e2d5925 100644 --- a/tests/corelib_2/iterable_followed_by_test.dart +++ b/tests/corelib_2/iterable_followed_by_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection" show Queue; import "dart:typed_data" show Int32List; diff --git a/tests/corelib_2/iterable_generate_test.dart b/tests/corelib_2/iterable_generate_test.dart index 201c2e42209..d541d04fd5c 100644 --- a/tests/corelib_2/iterable_generate_test.dart +++ b/tests/corelib_2/iterable_generate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/iterable_join_test.dart b/tests/corelib_2/iterable_join_test.dart index d9f325abf70..67e41cb7f65 100644 --- a/tests/corelib_2/iterable_join_test.dart +++ b/tests/corelib_2/iterable_join_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class IC { diff --git a/tests/corelib_2/iterable_last_test.dart b/tests/corelib_2/iterable_last_test.dart index 356d8b69f4e..ae37bebb99f 100644 --- a/tests/corelib_2/iterable_last_test.dart +++ b/tests/corelib_2/iterable_last_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/iterable_last_where_test.dart b/tests/corelib_2/iterable_last_where_test.dart index 9b60d6b39ee..fd96e81faf8 100644 --- a/tests/corelib_2/iterable_last_where_test.dart +++ b/tests/corelib_2/iterable_last_where_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/iterable_length_test.dart b/tests/corelib_2/iterable_length_test.dart index 20c9663c62a..692a4f5d0bd 100644 --- a/tests/corelib_2/iterable_length_test.dart +++ b/tests/corelib_2/iterable_length_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection"; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/iterable_mapping_test.dart b/tests/corelib_2/iterable_mapping_test.dart index 4f06c2c402a..5c6f30006d8 100644 --- a/tests/corelib_2/iterable_mapping_test.dart +++ b/tests/corelib_2/iterable_mapping_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/iterable_reduce_test.dart b/tests/corelib_2/iterable_reduce_test.dart index 6ee66d01798..87ee2d72e14 100644 --- a/tests/corelib_2/iterable_reduce_test.dart +++ b/tests/corelib_2/iterable_reduce_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:collection'; import 'dart:typed_data'; diff --git a/tests/corelib_2/iterable_return_type_helper.dart b/tests/corelib_2/iterable_return_type_helper.dart index a5ff565886e..29c133afb68 100644 --- a/tests/corelib_2/iterable_return_type_helper.dart +++ b/tests/corelib_2/iterable_return_type_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; testIntIterable(iterable) { diff --git a/tests/corelib_2/iterable_return_type_int64_test.dart b/tests/corelib_2/iterable_return_type_int64_test.dart index 1279a25c584..0087c4786bc 100644 --- a/tests/corelib_2/iterable_return_type_int64_test.dart +++ b/tests/corelib_2/iterable_return_type_int64_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Separate test for int64 support to be skipped on the web. import 'iterable_return_type_helper.dart'; diff --git a/tests/corelib_2/iterable_return_type_test.dart b/tests/corelib_2/iterable_return_type_test.dart index 148f8fda395..08f40e6e69c 100644 --- a/tests/corelib_2/iterable_return_type_test.dart +++ b/tests/corelib_2/iterable_return_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js where [List.addAll] was not typed // correctly. diff --git a/tests/corelib_2/iterable_single_test.dart b/tests/corelib_2/iterable_single_test.dart index d0f5d3a15de..bee92bbb511 100644 --- a/tests/corelib_2/iterable_single_test.dart +++ b/tests/corelib_2/iterable_single_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/iterable_single_where_test.dart b/tests/corelib_2/iterable_single_where_test.dart index 9ecbe056787..0acd2c46185 100644 --- a/tests/corelib_2/iterable_single_where_test.dart +++ b/tests/corelib_2/iterable_single_where_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/corelib_2/iterable_skip_test.dart b/tests/corelib_2/iterable_skip_test.dart index 06fb80146ae..c7a486d5ca5 100644 --- a/tests/corelib_2/iterable_skip_test.dart +++ b/tests/corelib_2/iterable_skip_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/iterable_skip_while_test.dart b/tests/corelib_2/iterable_skip_while_test.dart index d372122c72e..b8d26a8490e 100644 --- a/tests/corelib_2/iterable_skip_while_test.dart +++ b/tests/corelib_2/iterable_skip_while_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/iterable_take_test.dart b/tests/corelib_2/iterable_take_test.dart index 826f6f5870c..34a2f287658 100644 --- a/tests/corelib_2/iterable_take_test.dart +++ b/tests/corelib_2/iterable_take_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/iterable_take_while_test.dart b/tests/corelib_2/iterable_take_while_test.dart index 1e9b5f99c4c..38d133d7700 100644 --- a/tests/corelib_2/iterable_take_while_test.dart +++ b/tests/corelib_2/iterable_take_while_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/iterable_test.dart b/tests/corelib_2/iterable_test.dart index e7f6299c0ae..827354da2eb 100644 --- a/tests/corelib_2/iterable_test.dart +++ b/tests/corelib_2/iterable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js where [List.addAll] was not typed // correctly. diff --git a/tests/corelib_2/iterable_to_list_test.dart b/tests/corelib_2/iterable_to_list_test.dart index 4ceb6c8cdda..e8316a59195 100644 --- a/tests/corelib_2/iterable_to_list_test.dart +++ b/tests/corelib_2/iterable_to_list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection" show Queue; import "dart:typed_data" show Uint8List, Float32List; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/iterable_to_set_test.dart b/tests/corelib_2/iterable_to_set_test.dart index e04d49bb246..f44eb21bc93 100644 --- a/tests/corelib_2/iterable_to_set_test.dart +++ b/tests/corelib_2/iterable_to_set_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/iterable_tostring_test.dart b/tests/corelib_2/iterable_tostring_test.dart index bb220978412..bb85a1efcfb 100644 --- a/tests/corelib_2/iterable_tostring_test.dart +++ b/tests/corelib_2/iterable_tostring_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the IterableBase/IterableMixin toString method. import "package:expect/expect.dart"; diff --git a/tests/corelib_2/iterable_where_type_test.dart b/tests/corelib_2/iterable_where_type_test.dart index 8715149f049..e9d7e23141c 100644 --- a/tests/corelib_2/iterable_where_type_test.dart +++ b/tests/corelib_2/iterable_where_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection" show Queue; import "dart:typed_data" show Int32List; diff --git a/tests/corelib_2/json_map_test.dart b/tests/corelib_2/json_map_test.dart index d5d417fe3ce..d2e2723a4f2 100644 --- a/tests/corelib_2/json_map_test.dart +++ b/tests/corelib_2/json_map_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library json_map_test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/linked_hash_map_from_iterable_test.dart b/tests/corelib_2/linked_hash_map_from_iterable_test.dart index ed348e76e47..ae46abcf1f6 100644 --- a/tests/corelib_2/linked_hash_map_from_iterable_test.dart +++ b/tests/corelib_2/linked_hash_map_from_iterable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:collection'; diff --git a/tests/corelib_2/linked_hash_map_from_iterables_test.dart b/tests/corelib_2/linked_hash_map_from_iterables_test.dart index a63b20608c2..4c7cb848011 100644 --- a/tests/corelib_2/linked_hash_map_from_iterables_test.dart +++ b/tests/corelib_2/linked_hash_map_from_iterables_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:collection'; diff --git a/tests/corelib_2/linked_hash_map_test.dart b/tests/corelib_2/linked_hash_map_test.dart index 166bc28472c..5fb561f282a 100644 --- a/tests/corelib_2/linked_hash_map_test.dart +++ b/tests/corelib_2/linked_hash_map_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for linked hash-maps. library linkedHashMap.test; diff --git a/tests/corelib_2/list_as_map_test.dart b/tests/corelib_2/list_as_map_test.dart index fcbd12ef495..0d2463803c9 100644 --- a/tests/corelib_2/list_as_map_test.dart +++ b/tests/corelib_2/list_as_map_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void testListMapCorrespondence(List list, Map map) { diff --git a/tests/corelib_2/list_concurrent_modify_self_test.dart b/tests/corelib_2/list_concurrent_modify_self_test.dart index cb481b7ad69..25e20e9cade 100644 --- a/tests/corelib_2/list_concurrent_modify_self_test.dart +++ b/tests/corelib_2/list_concurrent_modify_self_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection"; import "dart:typed_data"; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/list_concurrent_modify_test.dart b/tests/corelib_2/list_concurrent_modify_test.dart index b3fcb17f4df..1642f735f03 100644 --- a/tests/corelib_2/list_concurrent_modify_test.dart +++ b/tests/corelib_2/list_concurrent_modify_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection"; import "dart:typed_data"; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/list_contains_argument_order_test.dart b/tests/corelib_2/list_contains_argument_order_test.dart index 6f3d09e66e8..5ee3d761dca 100644 --- a/tests/corelib_2/list_contains_argument_order_test.dart +++ b/tests/corelib_2/list_contains_argument_order_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/corelib_2/list_copy_range_test.dart b/tests/corelib_2/list_copy_range_test.dart index 009f445bfe4..9c1f8d1655e 100644 --- a/tests/corelib_2/list_copy_range_test.dart +++ b/tests/corelib_2/list_copy_range_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:typed_data"; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/list_fill_range_test.dart b/tests/corelib_2/list_fill_range_test.dart index 2f8fa03bc5f..36dc8e3a789 100644 --- a/tests/corelib_2/list_fill_range_test.dart +++ b/tests/corelib_2/list_fill_range_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:collection"; diff --git a/tests/corelib_2/list_filled_type_argument_test.dart b/tests/corelib_2/list_filled_type_argument_test.dart index 1c3aff49e8d..2a60fa3f73d 100644 --- a/tests/corelib_2/list_filled_type_argument_test.dart +++ b/tests/corelib_2/list_filled_type_argument_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/list_first_test.dart b/tests/corelib_2/list_first_test.dart index 70bdc039009..193a0cf57e0 100644 --- a/tests/corelib_2/list_first_test.dart +++ b/tests/corelib_2/list_first_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void test(List list) { diff --git a/tests/corelib_2/list_fixed_test.dart b/tests/corelib_2/list_fixed_test.dart index 06193c596cf..7774f36e02a 100644 --- a/tests/corelib_2/list_fixed_test.dart +++ b/tests/corelib_2/list_fixed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/list_for_each_test.dart b/tests/corelib_2/list_for_each_test.dart index b59a2d73070..23dcd712f7f 100644 --- a/tests/corelib_2/list_for_each_test.dart +++ b/tests/corelib_2/list_for_each_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:collection"; diff --git a/tests/corelib_2/list_get_range_test.dart b/tests/corelib_2/list_get_range_test.dart index 5d996e3f577..291fd9f3a8b 100644 --- a/tests/corelib_2/list_get_range_test.dart +++ b/tests/corelib_2/list_get_range_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; testGetRange(list, start, end, bool isModifiable) { diff --git a/tests/corelib_2/list_growable_test.dart b/tests/corelib_2/list_growable_test.dart index 476dd47d975..17385610383 100644 --- a/tests/corelib_2/list_growable_test.dart +++ b/tests/corelib_2/list_growable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/list_index_of_test.dart b/tests/corelib_2/list_index_of_test.dart index ebb2731c0df..d0f1a66d014 100644 --- a/tests/corelib_2/list_index_of_test.dart +++ b/tests/corelib_2/list_index_of_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/list_insert_all_test.dart b/tests/corelib_2/list_insert_all_test.dart index d089dc8ecb8..854ab207944 100644 --- a/tests/corelib_2/list_insert_all_test.dart +++ b/tests/corelib_2/list_insert_all_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:collection"; diff --git a/tests/corelib_2/list_insert_test.dart b/tests/corelib_2/list_insert_test.dart index cd29c4e6510..3b6690d8d9c 100644 --- a/tests/corelib_2/list_insert_test.dart +++ b/tests/corelib_2/list_insert_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'dart:collection'; diff --git a/tests/corelib_2/list_iterators_test.dart b/tests/corelib_2/list_iterators_test.dart index 092082e4e16..c31f3ac097c 100644 --- a/tests/corelib_2/list_iterators_test.dart +++ b/tests/corelib_2/list_iterators_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class ListIteratorsTest { diff --git a/tests/corelib_2/list_last_test.dart b/tests/corelib_2/list_last_test.dart index 3f93ac6cc3a..3c86628cd90 100644 --- a/tests/corelib_2/list_last_test.dart +++ b/tests/corelib_2/list_last_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void test(List list) { diff --git a/tests/corelib_2/list_literal_is_growable_test.dart b/tests/corelib_2/list_literal_is_growable_test.dart index 061a72d1c0c..40307566d4a 100644 --- a/tests/corelib_2/list_literal_is_growable_test.dart +++ b/tests/corelib_2/list_literal_is_growable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/list_literal_test.dart b/tests/corelib_2/list_literal_test.dart index abc38c1bff9..fe7439b5d06 100644 --- a/tests/corelib_2/list_literal_test.dart +++ b/tests/corelib_2/list_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that a list literal is expandable and modifiable. diff --git a/tests/corelib_2/list_map_test.dart b/tests/corelib_2/list_map_test.dart index c62ec5d7a1d..a59fa53cf23 100644 --- a/tests/corelib_2/list_map_test.dart +++ b/tests/corelib_2/list_map_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/list_remove_range_test.dart b/tests/corelib_2/list_remove_range_test.dart index 6cfd9e5ada6..fa5c2713afc 100644 --- a/tests/corelib_2/list_remove_range_test.dart +++ b/tests/corelib_2/list_remove_range_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/list_removeat_test.dart b/tests/corelib_2/list_removeat_test.dart index 6fedda8c0dc..c39113fea20 100644 --- a/tests/corelib_2/list_removeat_test.dart +++ b/tests/corelib_2/list_removeat_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:collection'; diff --git a/tests/corelib_2/list_replace_range_test.dart b/tests/corelib_2/list_replace_range_test.dart index 964ed444b91..2c4e3985eb7 100644 --- a/tests/corelib_2/list_replace_range_test.dart +++ b/tests/corelib_2/list_replace_range_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:collection"; diff --git a/tests/corelib_2/list_reversed_test.dart b/tests/corelib_2/list_reversed_test.dart index 1be8d99d362..cbd21c33c2a 100644 --- a/tests/corelib_2/list_reversed_test.dart +++ b/tests/corelib_2/list_reversed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/list_set_all_test.dart b/tests/corelib_2/list_set_all_test.dart index 85f208100bc..0b4b475253c 100644 --- a/tests/corelib_2/list_set_all_test.dart +++ b/tests/corelib_2/list_set_all_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:collection"; diff --git a/tests/corelib_2/list_set_range_test.dart b/tests/corelib_2/list_set_range_test.dart index 3c783ec2b1f..a8bf7e8604f 100644 --- a/tests/corelib_2/list_set_range_test.dart +++ b/tests/corelib_2/list_set_range_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/list_sort_test.dart b/tests/corelib_2/list_sort_test.dart index d251e2376ea..629c24cba0c 100644 --- a/tests/corelib_2/list_sort_test.dart +++ b/tests/corelib_2/list_sort_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library list_sort_test; import 'sort_helper.dart'; diff --git a/tests/corelib_2/list_sublist_test.dart b/tests/corelib_2/list_sublist_test.dart index 610501fcbfd..8fbd5d187fc 100644 --- a/tests/corelib_2/list_sublist_test.dart +++ b/tests/corelib_2/list_sublist_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/list_test.dart b/tests/corelib_2/list_test.dart index 81927734c08..2bc76578679 100644 --- a/tests/corelib_2/list_test.dart +++ b/tests/corelib_2/list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection"; import "dart:typed_data"; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/list_to_string2_test.dart b/tests/corelib_2/list_to_string2_test.dart index d46e9d542dd..65292acb061 100644 --- a/tests/corelib_2/list_to_string2_test.dart +++ b/tests/corelib_2/list_to_string2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/list_to_string_test.dart b/tests/corelib_2/list_to_string_test.dart index fed5277fe18..9abbbb85465 100644 --- a/tests/corelib_2/list_to_string_test.dart +++ b/tests/corelib_2/list_to_string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:collection'; diff --git a/tests/corelib_2/list_unmodifiable_cast_test.dart b/tests/corelib_2/list_unmodifiable_cast_test.dart index 7b5a3bcc918..8defd250aeb 100644 --- a/tests/corelib_2/list_unmodifiable_cast_test.dart +++ b/tests/corelib_2/list_unmodifiable_cast_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library list_unmodifiable_cast_test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/list_unmodifiable_test.dart b/tests/corelib_2/list_unmodifiable_test.dart index a57dd34962d..98609b90138 100644 --- a/tests/corelib_2/list_unmodifiable_test.dart +++ b/tests/corelib_2/list_unmodifiable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:collection"; import "dart:typed_data"; diff --git a/tests/corelib_2/list_write_elements_test.dart b/tests/corelib_2/list_write_elements_test.dart index 3f382cec4eb..f850375c57f 100644 --- a/tests/corelib_2/list_write_elements_test.dart +++ b/tests/corelib_2/list_write_elements_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:typed_data"; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/local_date_time_test.dart b/tests/corelib_2/local_date_time_test.dart index bfa717b6e33..95b8ec1f737 100644 --- a/tests/corelib_2/local_date_time_test.dart +++ b/tests/corelib_2/local_date_time_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests that local DateTime constructor works correctly around diff --git a/tests/corelib_2/main_test.dart b/tests/corelib_2/main_test.dart index 024e91fab46..ee75e4e8f23 100644 --- a/tests/corelib_2/main_test.dart +++ b/tests/corelib_2/main_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library main_test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/map_contains_key_test.dart b/tests/corelib_2/map_contains_key_test.dart index d597a991672..182840ea92d 100644 --- a/tests/corelib_2/map_contains_key_test.dart +++ b/tests/corelib_2/map_contains_key_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/corelib_2/map_contains_value_test.dart b/tests/corelib_2/map_contains_value_test.dart index 7837417e3fd..dc9ad1dc870 100644 --- a/tests/corelib_2/map_contains_value_test.dart +++ b/tests/corelib_2/map_contains_value_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/corelib_2/map_entry_test.dart b/tests/corelib_2/map_entry_test.dart index 98628d20618..fccd622b93f 100644 --- a/tests/corelib_2/map_entry_test.dart +++ b/tests/corelib_2/map_entry_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:collection'; import 'dart:convert' show json; diff --git a/tests/corelib_2/map_from_entries_test.dart b/tests/corelib_2/map_from_entries_test.dart index ef114a73363..9ec32e32949 100644 --- a/tests/corelib_2/map_from_entries_test.dart +++ b/tests/corelib_2/map_from_entries_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/map_from_iterable_test.dart b/tests/corelib_2/map_from_iterable_test.dart index b4e7571ec5d..06825aa6e94 100644 --- a/tests/corelib_2/map_from_iterable_test.dart +++ b/tests/corelib_2/map_from_iterable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:collection'; diff --git a/tests/corelib_2/map_from_iterables_test.dart b/tests/corelib_2/map_from_iterables_test.dart index 73958c5f4b1..99ab8cc807e 100644 --- a/tests/corelib_2/map_from_iterables_test.dart +++ b/tests/corelib_2/map_from_iterables_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:collection'; diff --git a/tests/corelib_2/map_from_test.dart b/tests/corelib_2/map_from_test.dart index 0cff956d0f5..ca4225718dc 100644 --- a/tests/corelib_2/map_from_test.dart +++ b/tests/corelib_2/map_from_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library map.from.test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/map_index_test.dart b/tests/corelib_2/map_index_test.dart index 05387a4a923..1bfe7da5315 100644 --- a/tests/corelib_2/map_index_test.dart +++ b/tests/corelib_2/map_index_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/corelib_2/map_keys2_test.dart b/tests/corelib_2/map_keys2_test.dart index ddc74318085..b813d7df337 100644 --- a/tests/corelib_2/map_keys2_test.dart +++ b/tests/corelib_2/map_keys2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/map_keys_test.dart b/tests/corelib_2/map_keys_test.dart index d3eaeda66eb..8b029b6571b 100644 --- a/tests/corelib_2/map_keys_test.dart +++ b/tests/corelib_2/map_keys_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/map_of_test.dart b/tests/corelib_2/map_of_test.dart index 7d92ecc033e..a3ee874a073 100644 --- a/tests/corelib_2/map_of_test.dart +++ b/tests/corelib_2/map_of_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library map.from.test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/map_remove_test.dart b/tests/corelib_2/map_remove_test.dart index cb252348aff..bfec31b09ca 100644 --- a/tests/corelib_2/map_remove_test.dart +++ b/tests/corelib_2/map_remove_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/corelib_2/map_set_undefined_test.dart b/tests/corelib_2/map_set_undefined_test.dart index 08f42bcca23..e56b62186a3 100644 --- a/tests/corelib_2/map_set_undefined_test.dart +++ b/tests/corelib_2/map_set_undefined_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/map_test.dart b/tests/corelib_2/map_test.dart index 88d6e927832..65ae18f0845 100644 --- a/tests/corelib_2/map_test.dart +++ b/tests/corelib_2/map_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library map_test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/map_to_string_test.dart b/tests/corelib_2/map_to_string_test.dart index 8a50bf61358..d692759ebce 100644 --- a/tests/corelib_2/map_to_string_test.dart +++ b/tests/corelib_2/map_to_string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/corelib_2/map_unmodifiable_cast_test.dart b/tests/corelib_2/map_unmodifiable_cast_test.dart index 8e4270f0f6a..b45a3fd2d41 100644 --- a/tests/corelib_2/map_unmodifiable_cast_test.dart +++ b/tests/corelib_2/map_unmodifiable_cast_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library map_unmodifiable_cast_test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/map_update_test.dart b/tests/corelib_2/map_update_test.dart index c00caca2836..fa2eebc4229 100644 --- a/tests/corelib_2/map_update_test.dart +++ b/tests/corelib_2/map_update_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:collection'; import 'dart:convert' show json; diff --git a/tests/corelib_2/map_values2_test.dart b/tests/corelib_2/map_values2_test.dart index 5fc754e62ca..c48dd8594b3 100644 --- a/tests/corelib_2/map_values2_test.dart +++ b/tests/corelib_2/map_values2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/map_values3_test.dart b/tests/corelib_2/map_values3_test.dart index 44c356ce67e..ef42c219d67 100644 --- a/tests/corelib_2/map_values3_test.dart +++ b/tests/corelib_2/map_values3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/map_values4_test.dart b/tests/corelib_2/map_values4_test.dart index 4f99056128d..ffa51f019f3 100644 --- a/tests/corelib_2/map_values4_test.dart +++ b/tests/corelib_2/map_values4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart2js had a bug where the type information was not set correctly if the diff --git a/tests/corelib_2/map_values_test.dart b/tests/corelib_2/map_values_test.dart index e5c367080e0..2813971ae38 100644 --- a/tests/corelib_2/map_values_test.dart +++ b/tests/corelib_2/map_values_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/nan_infinity_test.dart b/tests/corelib_2/nan_infinity_test.dart index b90e1146397..a3e836b7004 100644 --- a/tests/corelib_2/nan_infinity_test.dart +++ b/tests/corelib_2/nan_infinity_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for testing NaN and Infinity. diff --git a/tests/corelib_2/nsm_invocation_generic_test.dart b/tests/corelib_2/nsm_invocation_generic_test.dart index 5d899d01f9f..6123274b741 100644 --- a/tests/corelib_2/nsm_invocation_generic_test.dart +++ b/tests/corelib_2/nsm_invocation_generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test the invocations passed to noSuchMethod for generic invocations. diff --git a/tests/corelib_2/nsm_invocation_test.dart b/tests/corelib_2/nsm_invocation_test.dart index 8dc183c6dd9..0d8c98bfe5c 100644 --- a/tests/corelib_2/nsm_invocation_test.dart +++ b/tests/corelib_2/nsm_invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests the constructors of the Invocation class. diff --git a/tests/corelib_2/null_nosuchmethod_test.dart b/tests/corelib_2/null_nosuchmethod_test.dart index 4edf9cf62ea..70a1f8ce807 100644 --- a/tests/corelib_2/null_nosuchmethod_test.dart +++ b/tests/corelib_2/null_nosuchmethod_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--lazy-dispatchers // VMOptions=--no-lazy-dispatchers diff --git a/tests/corelib_2/null_test.dart b/tests/corelib_2/null_test.dart index 994ca40d39e..0f066463df6 100644 --- a/tests/corelib_2/null_test.dart +++ b/tests/corelib_2/null_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that Null inherits properties from Object. diff --git a/tests/corelib_2/num_clamp_test.dart b/tests/corelib_2/num_clamp_test.dart index a9b650f5de4..319fa9d7706 100644 --- a/tests/corelib_2/num_clamp_test.dart +++ b/tests/corelib_2/num_clamp_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test num.clamp. +// @dart = 2.9 + import "package:expect/expect.dart"; testIntClamp() { diff --git a/tests/corelib_2/num_parse_test.dart b/tests/corelib_2/num_parse_test.dart index b1049e520c9..aae04285309 100644 --- a/tests/corelib_2/num_parse_test.dart +++ b/tests/corelib_2/num_parse_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; const whiteSpace = const [ diff --git a/tests/corelib_2/num_sign_test.dart b/tests/corelib_2/num_sign_test.dart index db5f4976e76..e2979e40853 100644 --- a/tests/corelib_2/num_sign_test.dart +++ b/tests/corelib_2/num_sign_test.dart @@ -5,6 +5,8 @@ // VMOptions=--no-use-field-guards // VMOptions= +// @dart = 2.9 + import "package:expect/expect.dart"; // Pedestrian implementation of sign, following its specification directly. diff --git a/tests/corelib_2/num_try_parse_test.dart b/tests/corelib_2/num_try_parse_test.dart index edf2a5bd450..1abb7573f7c 100644 --- a/tests/corelib_2/num_try_parse_test.dart +++ b/tests/corelib_2/num_try_parse_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; const whiteSpace = const [ diff --git a/tests/corelib_2/queue_first_test.dart b/tests/corelib_2/queue_first_test.dart index d0baf997b62..63ec6ca16f0 100644 --- a/tests/corelib_2/queue_first_test.dart +++ b/tests/corelib_2/queue_first_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library queue.first.test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/queue_iterator_test.dart b/tests/corelib_2/queue_iterator_test.dart index af0458b73dc..994de0a76df 100644 --- a/tests/corelib_2/queue_iterator_test.dart +++ b/tests/corelib_2/queue_iterator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library queue.iterator.test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/queue_last_test.dart b/tests/corelib_2/queue_last_test.dart index 3ea2eff0af7..3d070dac761 100644 --- a/tests/corelib_2/queue_last_test.dart +++ b/tests/corelib_2/queue_last_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library queue.last.test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/queue_single_test.dart b/tests/corelib_2/queue_single_test.dart index 1ef6b59bd13..c1ebef11ff9 100644 --- a/tests/corelib_2/queue_single_test.dart +++ b/tests/corelib_2/queue_single_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library queue.single.test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/queue_test.dart b/tests/corelib_2/queue_test.dart index b074519efe7..08ea375f995 100644 --- a/tests/corelib_2/queue_test.dart +++ b/tests/corelib_2/queue_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library queue.test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/range_error_test.dart b/tests/corelib_2/range_error_test.dart index 05107e8a208..c985baeb8cd 100644 --- a/tests/corelib_2/range_error_test.dart +++ b/tests/corelib_2/range_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test for testing out of range exceptions on arrays, and the content diff --git a/tests/corelib_2/reg_exp1_test.dart b/tests/corelib_2/reg_exp1_test.dart index 88e3b0a2a01..b4105bfc318 100644 --- a/tests/corelib_2/reg_exp1_test.dart +++ b/tests/corelib_2/reg_exp1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing regular expressions in Dart. +// @dart = 2.9 + import "package:expect/expect.dart"; class RegExp1Test { diff --git a/tests/corelib_2/reg_exp4_test.dart b/tests/corelib_2/reg_exp4_test.dart index 781359b2fd5..eee1e9c98b0 100644 --- a/tests/corelib_2/reg_exp4_test.dart +++ b/tests/corelib_2/reg_exp4_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing regular expressions in Dart. +// @dart = 2.9 + // [NNBD non-migrated] Note: This test is specific to legacy mode and // deliberately does not have a counter-part in corelib/. diff --git a/tests/corelib_2/reg_exp5_test.dart b/tests/corelib_2/reg_exp5_test.dart index f67cd6d5941..b6739d7aea1 100644 --- a/tests/corelib_2/reg_exp5_test.dart +++ b/tests/corelib_2/reg_exp5_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing regular expressions in Dart. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/reg_exp_all_matches_test.dart b/tests/corelib_2/reg_exp_all_matches_test.dart index 3cb966de2e4..bbef4f27426 100644 --- a/tests/corelib_2/reg_exp_all_matches_test.dart +++ b/tests/corelib_2/reg_exp_all_matches_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for RegExp.allMatches. diff --git a/tests/corelib_2/reg_exp_cache_test.dart b/tests/corelib_2/reg_exp_cache_test.dart index a02118c27b2..66765654980 100644 --- a/tests/corelib_2/reg_exp_cache_test.dart +++ b/tests/corelib_2/reg_exp_cache_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Runs several similar regexps in a loop to see if an internal cache works (at // least in easy conditions). diff --git a/tests/corelib_2/reg_exp_first_match_test.dart b/tests/corelib_2/reg_exp_first_match_test.dart index 40e38fa109c..48d6a31ef68 100644 --- a/tests/corelib_2/reg_exp_first_match_test.dart +++ b/tests/corelib_2/reg_exp_first_match_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for RegExp.firstMatch. diff --git a/tests/corelib_2/reg_exp_group_test.dart b/tests/corelib_2/reg_exp_group_test.dart index 1bf4af3753b..fe03c9f0b68 100644 --- a/tests/corelib_2/reg_exp_group_test.dart +++ b/tests/corelib_2/reg_exp_group_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for RegExp.group. diff --git a/tests/corelib_2/reg_exp_groups_test.dart b/tests/corelib_2/reg_exp_groups_test.dart index 70386d0e9ec..a6d4fbf8e08 100644 --- a/tests/corelib_2/reg_exp_groups_test.dart +++ b/tests/corelib_2/reg_exp_groups_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for RegExp.groups. diff --git a/tests/corelib_2/reg_exp_has_match_test.dart b/tests/corelib_2/reg_exp_has_match_test.dart index 6ff27443fa9..e11abfabceb 100644 --- a/tests/corelib_2/reg_exp_has_match_test.dart +++ b/tests/corelib_2/reg_exp_has_match_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for RegExp.hasMatch. diff --git a/tests/corelib_2/reg_exp_pattern_test.dart b/tests/corelib_2/reg_exp_pattern_test.dart index 7b4d6662067..5fa672a7fe5 100644 --- a/tests/corelib_2/reg_exp_pattern_test.dart +++ b/tests/corelib_2/reg_exp_pattern_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing regular expressions in Dart. +// @dart = 2.9 + import "package:expect/expect.dart"; // Regression test for http://dartbug.com/17998 diff --git a/tests/corelib_2/reg_exp_start_end_test.dart b/tests/corelib_2/reg_exp_start_end_test.dart index 3ec343ea562..f9c1b377887 100644 --- a/tests/corelib_2/reg_exp_start_end_test.dart +++ b/tests/corelib_2/reg_exp_start_end_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/reg_exp_string_match_test.dart b/tests/corelib_2/reg_exp_string_match_test.dart index 05978dd215c..b56173eaabc 100644 --- a/tests/corelib_2/reg_exp_string_match_test.dart +++ b/tests/corelib_2/reg_exp_string_match_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for RegExp.stringMatch. diff --git a/tests/corelib_2/regexp/UC16_test.dart b/tests/corelib_2/regexp/UC16_test.dart index c89464fe5dd..413da283299 100644 --- a/tests/corelib_2/regexp/UC16_test.dart +++ b/tests/corelib_2/regexp/UC16_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/alternative-length-miscalculation_test.dart b/tests/corelib_2/regexp/alternative-length-miscalculation_test.dart index a4461aced24..9b6b9c8ad59 100644 --- a/tests/corelib_2/regexp/alternative-length-miscalculation_test.dart +++ b/tests/corelib_2/regexp/alternative-length-miscalculation_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/alternatives_test.dart b/tests/corelib_2/regexp/alternatives_test.dart index 2211dfb03b4..c98bfbda6f3 100644 --- a/tests/corelib_2/regexp/alternatives_test.dart +++ b/tests/corelib_2/regexp/alternatives_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/ascii-regexp-subject_test.dart b/tests/corelib_2/regexp/ascii-regexp-subject_test.dart index 67ff6072737..80cb099d0ee 100644 --- a/tests/corelib_2/regexp/ascii-regexp-subject_test.dart +++ b/tests/corelib_2/regexp/ascii-regexp-subject_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + /** * @fileoverview Check that an initial ^ will result in a faster match fail. */ diff --git a/tests/corelib_2/regexp/assertion_test.dart b/tests/corelib_2/regexp/assertion_test.dart index 43ee1ca6f2c..10212dd482b 100644 --- a/tests/corelib_2/regexp/assertion_test.dart +++ b/tests/corelib_2/regexp/assertion_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/backreferences_test.dart b/tests/corelib_2/regexp/backreferences_test.dart index 64710207a60..9aa7f23df70 100644 --- a/tests/corelib_2/regexp/backreferences_test.dart +++ b/tests/corelib_2/regexp/backreferences_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/bol-with-multiline_test.dart b/tests/corelib_2/regexp/bol-with-multiline_test.dart index e43a618102e..20d287e1a8d 100644 --- a/tests/corelib_2/regexp/bol-with-multiline_test.dart +++ b/tests/corelib_2/regexp/bol-with-multiline_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/bol_test.dart b/tests/corelib_2/regexp/bol_test.dart index f3c363e653b..8cfc530f811 100644 --- a/tests/corelib_2/regexp/bol_test.dart +++ b/tests/corelib_2/regexp/bol_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/capture-3_test.dart b/tests/corelib_2/regexp/capture-3_test.dart index 06cfbdcfa8f..ee26d42d604 100644 --- a/tests/corelib_2/regexp/capture-3_test.dart +++ b/tests/corelib_2/regexp/capture-3_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/capture_test.dart b/tests/corelib_2/regexp/capture_test.dart index aa1ff8d026a..f0020ae1a20 100644 --- a/tests/corelib_2/regexp/capture_test.dart +++ b/tests/corelib_2/regexp/capture_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/captures_test.dart b/tests/corelib_2/regexp/captures_test.dart index c7aa44b561c..9e4c896f443 100644 --- a/tests/corelib_2/regexp/captures_test.dart +++ b/tests/corelib_2/regexp/captures_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/char-insensitive_test.dart b/tests/corelib_2/regexp/char-insensitive_test.dart index 7a81ff86c71..38fe63ec1a0 100644 --- a/tests/corelib_2/regexp/char-insensitive_test.dart +++ b/tests/corelib_2/regexp/char-insensitive_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/character-match-out-of-order_test.dart b/tests/corelib_2/regexp/character-match-out-of-order_test.dart index 863c36b80bc..65269f8fbb4 100644 --- a/tests/corelib_2/regexp/character-match-out-of-order_test.dart +++ b/tests/corelib_2/regexp/character-match-out-of-order_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/compile-crash_test.dart b/tests/corelib_2/regexp/compile-crash_test.dart index 3bb3f3fc6b8..b677a24f4c8 100644 --- a/tests/corelib_2/regexp/compile-crash_test.dart +++ b/tests/corelib_2/regexp/compile-crash_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/compile_test.dart b/tests/corelib_2/regexp/compile_test.dart index e9932bb58a8..bd55c97afe4 100644 --- a/tests/corelib_2/regexp/compile_test.dart +++ b/tests/corelib_2/regexp/compile_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/constructor_test.dart b/tests/corelib_2/regexp/constructor_test.dart index 046cf897e33..f562ae37e1c 100644 --- a/tests/corelib_2/regexp/constructor_test.dart +++ b/tests/corelib_2/regexp/constructor_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/default_arguments_test.dart b/tests/corelib_2/regexp/default_arguments_test.dart index 0baf31614ed..71d959eb6bc 100644 --- a/tests/corelib_2/regexp/default_arguments_test.dart +++ b/tests/corelib_2/regexp/default_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that `null` is interpreted as `false` when passed as argument to // `caseSensitive` and `multiLine`. diff --git a/tests/corelib_2/regexp/dot-all_test.dart b/tests/corelib_2/regexp/dot-all_test.dart index 5610e7fd797..09d015108c2 100644 --- a/tests/corelib_2/regexp/dot-all_test.dart +++ b/tests/corelib_2/regexp/dot-all_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/dotstar_test.dart b/tests/corelib_2/regexp/dotstar_test.dart index 33e8107997a..51624723b0b 100644 --- a/tests/corelib_2/regexp/dotstar_test.dart +++ b/tests/corelib_2/regexp/dotstar_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/early-acid3-86_test.dart b/tests/corelib_2/regexp/early-acid3-86_test.dart index 5b81f060af3..34ea0f04d75 100644 --- a/tests/corelib_2/regexp/early-acid3-86_test.dart +++ b/tests/corelib_2/regexp/early-acid3-86_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/ecma-regex-examples_test.dart b/tests/corelib_2/regexp/ecma-regex-examples_test.dart index 6ad84b64b56..35a45a00605 100644 --- a/tests/corelib_2/regexp/ecma-regex-examples_test.dart +++ b/tests/corelib_2/regexp/ecma-regex-examples_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/extended-characters-match_test.dart b/tests/corelib_2/regexp/extended-characters-match_test.dart index c11f95e520f..c39f53310a9 100644 --- a/tests/corelib_2/regexp/extended-characters-match_test.dart +++ b/tests/corelib_2/regexp/extended-characters-match_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/extended-characters-more_test.dart b/tests/corelib_2/regexp/extended-characters-more_test.dart index f51a016e330..16bcaadce80 100644 --- a/tests/corelib_2/regexp/extended-characters-more_test.dart +++ b/tests/corelib_2/regexp/extended-characters-more_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/find-first-asserted_test.dart b/tests/corelib_2/regexp/find-first-asserted_test.dart index e985bf0a2dc..ee332c9addf 100644 --- a/tests/corelib_2/regexp/find-first-asserted_test.dart +++ b/tests/corelib_2/regexp/find-first-asserted_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/global_test.dart b/tests/corelib_2/regexp/global_test.dart index a19b7f7cf72..f6ea1947ea1 100644 --- a/tests/corelib_2/regexp/global_test.dart +++ b/tests/corelib_2/regexp/global_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/indexof_test.dart b/tests/corelib_2/regexp/indexof_test.dart index 7b0489f5d7e..4928c278948 100644 --- a/tests/corelib_2/regexp/indexof_test.dart +++ b/tests/corelib_2/regexp/indexof_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/invalid-range-in-class_test.dart b/tests/corelib_2/regexp/invalid-range-in-class_test.dart index 4669858902a..af193f2b74a 100644 --- a/tests/corelib_2/regexp/invalid-range-in-class_test.dart +++ b/tests/corelib_2/regexp/invalid-range-in-class_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/issue_19193_test.dart b/tests/corelib_2/regexp/issue_19193_test.dart index 52746cf5b67..6b95acae5e5 100644 --- a/tests/corelib_2/regexp/issue_19193_test.dart +++ b/tests/corelib_2/regexp/issue_19193_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; // Regression test for http://dartbug.com/19193 diff --git a/tests/corelib_2/regexp/jemalloc_leak_backtracking_stack_test.dart b/tests/corelib_2/regexp/jemalloc_leak_backtracking_stack_test.dart index 18c46211547..79788c6222f 100644 --- a/tests/corelib_2/regexp/jemalloc_leak_backtracking_stack_test.dart +++ b/tests/corelib_2/regexp/jemalloc_leak_backtracking_stack_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for https://github.com/flutter/flutter/issues/29007 String escape(String string) { diff --git a/tests/corelib_2/regexp/lastindex_test.dart b/tests/corelib_2/regexp/lastindex_test.dart index fd574299c17..ddf41cb0ba4 100644 --- a/tests/corelib_2/regexp/lastindex_test.dart +++ b/tests/corelib_2/regexp/lastindex_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/look-ahead_test.dart b/tests/corelib_2/regexp/look-ahead_test.dart index 56bead702f9..f52e3cd4946 100644 --- a/tests/corelib_2/regexp/look-ahead_test.dart +++ b/tests/corelib_2/regexp/look-ahead_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/lookahead_test.dart b/tests/corelib_2/regexp/lookahead_test.dart index 2248d85e0cb..afb4f99ab90 100644 --- a/tests/corelib_2/regexp/lookahead_test.dart +++ b/tests/corelib_2/regexp/lookahead_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/lookbehind_test.dart b/tests/corelib_2/regexp/lookbehind_test.dart index 3fd11af5a67..cdeee895c35 100644 --- a/tests/corelib_2/regexp/lookbehind_test.dart +++ b/tests/corelib_2/regexp/lookbehind_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/loop-capture_test.dart b/tests/corelib_2/regexp/loop-capture_test.dart index ee39410c880..c540ae0f280 100644 --- a/tests/corelib_2/regexp/loop-capture_test.dart +++ b/tests/corelib_2/regexp/loop-capture_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/malformed-escapes_test.dart b/tests/corelib_2/regexp/malformed-escapes_test.dart index dbf91267e5c..f048fdf8ccf 100644 --- a/tests/corelib_2/regexp/malformed-escapes_test.dart +++ b/tests/corelib_2/regexp/malformed-escapes_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/many-brackets_test.dart b/tests/corelib_2/regexp/many-brackets_test.dart index 5c8777ff717..fd9662bca3f 100644 --- a/tests/corelib_2/regexp/many-brackets_test.dart +++ b/tests/corelib_2/regexp/many-brackets_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/multiline_test.dart b/tests/corelib_2/regexp/multiline_test.dart index fd4b3403718..3d4482f2534 100644 --- a/tests/corelib_2/regexp/multiline_test.dart +++ b/tests/corelib_2/regexp/multiline_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + /** * @fileoverview Check that various regexp constructs work as intended. * Particularly those regexps that use ^ and $. diff --git a/tests/corelib_2/regexp/named-captures_test.dart b/tests/corelib_2/regexp/named-captures_test.dart index ee2d843b385..aeb8a595280 100644 --- a/tests/corelib_2/regexp/named-captures_test.dart +++ b/tests/corelib_2/regexp/named-captures_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/negative-special-characters_test.dart b/tests/corelib_2/regexp/negative-special-characters_test.dart index 2c673b156e5..2ce02a1f34f 100644 --- a/tests/corelib_2/regexp/negative-special-characters_test.dart +++ b/tests/corelib_2/regexp/negative-special-characters_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/no-extensions_test.dart b/tests/corelib_2/regexp/no-extensions_test.dart index 131d250627e..8e717c9ca3b 100644 --- a/tests/corelib_2/regexp/no-extensions_test.dart +++ b/tests/corelib_2/regexp/no-extensions_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/non-bmp_test.dart b/tests/corelib_2/regexp/non-bmp_test.dart index 9849bba321f..1bdf7434826 100644 --- a/tests/corelib_2/regexp/non-bmp_test.dart +++ b/tests/corelib_2/regexp/non-bmp_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/non-capturing-backtracking_test.dart b/tests/corelib_2/regexp/non-capturing-backtracking_test.dart index 68c2dc23884..c6448a33f7b 100644 --- a/tests/corelib_2/regexp/non-capturing-backtracking_test.dart +++ b/tests/corelib_2/regexp/non-capturing-backtracking_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/non-capturing-groups_test.dart b/tests/corelib_2/regexp/non-capturing-groups_test.dart index 33a83835c27..d131843413c 100644 --- a/tests/corelib_2/regexp/non-capturing-groups_test.dart +++ b/tests/corelib_2/regexp/non-capturing-groups_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/non-character_test.dart b/tests/corelib_2/regexp/non-character_test.dart index 5afcd94a020..1a0c69c1a04 100644 --- a/tests/corelib_2/regexp/non-character_test.dart +++ b/tests/corelib_2/regexp/non-character_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/non-greedy-parentheses_test.dart b/tests/corelib_2/regexp/non-greedy-parentheses_test.dart index 4c85a3ac734..69a3ef352d5 100644 --- a/tests/corelib_2/regexp/non-greedy-parentheses_test.dart +++ b/tests/corelib_2/regexp/non-greedy-parentheses_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/norepeat_test.dart b/tests/corelib_2/regexp/norepeat_test.dart index f0f8cc34636..c2a1d3d8309 100644 --- a/tests/corelib_2/regexp/norepeat_test.dart +++ b/tests/corelib_2/regexp/norepeat_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/overflow_test.dart b/tests/corelib_2/regexp/overflow_test.dart index 42523d007fe..af3e2dcc8ee 100644 --- a/tests/corelib_2/regexp/overflow_test.dart +++ b/tests/corelib_2/regexp/overflow_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/parentheses_test.dart b/tests/corelib_2/regexp/parentheses_test.dart index 340416ece6f..87bbe1362e5 100644 --- a/tests/corelib_2/regexp/parentheses_test.dart +++ b/tests/corelib_2/regexp/parentheses_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/pcre-test-4_test.dart b/tests/corelib_2/regexp/pcre-test-4_test.dart index 80745d173a2..a73e42a75c3 100644 --- a/tests/corelib_2/regexp/pcre-test-4_test.dart +++ b/tests/corelib_2/regexp/pcre-test-4_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/pcre_test.dart b/tests/corelib_2/regexp/pcre_test.dart index dbcce204840..d987f87f9d7 100644 --- a/tests/corelib_2/regexp/pcre_test.dart +++ b/tests/corelib_2/regexp/pcre_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2014, the Dart project authors. All rights reserved. // Autogenerated from the PCRE test suite Mon Feb 2 15:14:04 CET 2009 +// @dart = 2.9 + // Note that some regexps in the PCRE test suite use features not present // in JavaScript. These don't work in JS, but they fail to work in a // predictable way, and the expected results reflect this. diff --git a/tests/corelib_2/regexp/quantified-assertions_test.dart b/tests/corelib_2/regexp/quantified-assertions_test.dart index 43269fdd528..6e03116c7a6 100644 --- a/tests/corelib_2/regexp/quantified-assertions_test.dart +++ b/tests/corelib_2/regexp/quantified-assertions_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/range-bound-ffff_test.dart b/tests/corelib_2/regexp/range-bound-ffff_test.dart index c9d8c62d49b..c5136612641 100644 --- a/tests/corelib_2/regexp/range-bound-ffff_test.dart +++ b/tests/corelib_2/regexp/range-bound-ffff_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/range-out-of-order_test.dart b/tests/corelib_2/regexp/range-out-of-order_test.dart index 3535bdbbe67..06505c906a9 100644 --- a/tests/corelib_2/regexp/range-out-of-order_test.dart +++ b/tests/corelib_2/regexp/range-out-of-order_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/ranges-and-escaped-hyphens_test.dart b/tests/corelib_2/regexp/ranges-and-escaped-hyphens_test.dart index 7c03503a077..b0643c22894 100644 --- a/tests/corelib_2/regexp/ranges-and-escaped-hyphens_test.dart +++ b/tests/corelib_2/regexp/ranges-and-escaped-hyphens_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/regexp_escape_test.dart b/tests/corelib_2/regexp/regexp_escape_test.dart index e0822067921..433c6a0b649 100644 --- a/tests/corelib_2/regexp/regexp_escape_test.dart +++ b/tests/corelib_2/regexp/regexp_escape_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var escapeChars = r"([)}{]?*+.$^|\"; diff --git a/tests/corelib_2/regexp/regexp_kde_test.dart b/tests/corelib_2/regexp/regexp_kde_test.dart index 71d5b9c8eaa..8ed8f61a36d 100644 --- a/tests/corelib_2/regexp/regexp_kde_test.dart +++ b/tests/corelib_2/regexp/regexp_kde_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/regexp_regression_39406_test.dart b/tests/corelib_2/regexp/regexp_regression_39406_test.dart index 64b463431f2..6c4bd0dbbb3 100644 --- a/tests/corelib_2/regexp/regexp_regression_39406_test.dart +++ b/tests/corelib_2/regexp/regexp_regression_39406_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // See http://dartbug.com/39406 @@ -15,4 +17,4 @@ void main() { var groupNames = match.groupNames.toList(); Expect.listEquals([], groupNames); Expect.throwsArgumentError(() => match.namedGroup("x")); -} \ No newline at end of file +} diff --git a/tests/corelib_2/regexp/regexp_test.dart b/tests/corelib_2/regexp/regexp_test.dart index 5a9a29c586b..b564235852e 100644 --- a/tests/corelib_2/regexp/regexp_test.dart +++ b/tests/corelib_2/regexp/regexp_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import "package:expect/expect.dart"; void testEscape(str, regexp) { diff --git a/tests/corelib_2/regexp/regress-6-9-regexp_test.dart b/tests/corelib_2/regexp/regress-6-9-regexp_test.dart index 3fbef870137..f35c8787717 100644 --- a/tests/corelib_2/regexp/regress-6-9-regexp_test.dart +++ b/tests/corelib_2/regexp/regress-6-9-regexp_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/regress-regexp-codeflush_test.dart b/tests/corelib_2/regexp/regress-regexp-codeflush_test.dart index 5acf38fc912..6e1ac5fb93d 100644 --- a/tests/corelib_2/regexp/regress-regexp-codeflush_test.dart +++ b/tests/corelib_2/regexp/regress-regexp-codeflush_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/regress-regexp-construct-result_test.dart b/tests/corelib_2/regexp/regress-regexp-construct-result_test.dart index ac9c032073b..764b1bfde77 100644 --- a/tests/corelib_2/regexp/regress-regexp-construct-result_test.dart +++ b/tests/corelib_2/regexp/regress-regexp-construct-result_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/repeat-match-waldemar_test.dart b/tests/corelib_2/regexp/repeat-match-waldemar_test.dart index 3adc775f4b7..10ff028cdc8 100644 --- a/tests/corelib_2/regexp/repeat-match-waldemar_test.dart +++ b/tests/corelib_2/regexp/repeat-match-waldemar_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/results-cache_test.dart b/tests/corelib_2/regexp/results-cache_test.dart index 0ef0f40a19b..4e75e4a92b9 100644 --- a/tests/corelib_2/regexp/results-cache_test.dart +++ b/tests/corelib_2/regexp/results-cache_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/stack-overflow2_test.dart b/tests/corelib_2/regexp/stack-overflow2_test.dart index 9b617095c79..e5c071ffffa 100644 --- a/tests/corelib_2/regexp/stack-overflow2_test.dart +++ b/tests/corelib_2/regexp/stack-overflow2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/stack-overflow_test.dart b/tests/corelib_2/regexp/stack-overflow_test.dart index e00466f0680..b6992379678 100644 --- a/tests/corelib_2/regexp/stack-overflow_test.dart +++ b/tests/corelib_2/regexp/stack-overflow_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/standalones_test.dart b/tests/corelib_2/regexp/standalones_test.dart index ffd5c140013..580328d14b8 100644 --- a/tests/corelib_2/regexp/standalones_test.dart +++ b/tests/corelib_2/regexp/standalones_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/toString_test.dart b/tests/corelib_2/regexp/toString_test.dart index 7664881ca78..d08bbfa5799 100644 --- a/tests/corelib_2/regexp/toString_test.dart +++ b/tests/corelib_2/regexp/toString_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/unicode-character-ranges_test.dart b/tests/corelib_2/regexp/unicode-character-ranges_test.dart index 7154d0fa0bd..e3867e59b44 100644 --- a/tests/corelib_2/regexp/unicode-character-ranges_test.dart +++ b/tests/corelib_2/regexp/unicode-character-ranges_test.dart @@ -21,6 +21,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-escapes-in-regexps_test.dart b/tests/corelib_2/regexp/unicode-escapes-in-regexps_test.dart index 7cb08941720..5fe7d193348 100644 --- a/tests/corelib_2/regexp/unicode-escapes-in-regexps_test.dart +++ b/tests/corelib_2/regexp/unicode-escapes-in-regexps_test.dart @@ -28,6 +28,8 @@ // // ES6 extends the \uxxxx escape and also allows \u{xxxxx}. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-handling_test.dart b/tests/corelib_2/regexp/unicode-handling_test.dart index 01685ec72c6..d1a1f15dd33 100644 --- a/tests/corelib_2/regexp/unicode-handling_test.dart +++ b/tests/corelib_2/regexp/unicode-handling_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/unicode-property-binary_test.dart b/tests/corelib_2/regexp/unicode-property-binary_test.dart index b8981a7fb0b..8580fd387da 100644 --- a/tests/corelib_2/regexp/unicode-property-binary_test.dart +++ b/tests/corelib_2/regexp/unicode-property-binary_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-property-char-class_test.dart b/tests/corelib_2/regexp/unicode-property-char-class_test.dart index db87fada0ad..fe6316ecec6 100644 --- a/tests/corelib_2/regexp/unicode-property-char-class_test.dart +++ b/tests/corelib_2/regexp/unicode-property-char-class_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-property-enumerated_test.dart b/tests/corelib_2/regexp/unicode-property-enumerated_test.dart index cfb3e029e15..82b32339677 100644 --- a/tests/corelib_2/regexp/unicode-property-enumerated_test.dart +++ b/tests/corelib_2/regexp/unicode-property-enumerated_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-property-exact-match_test.dart b/tests/corelib_2/regexp/unicode-property-exact-match_test.dart index bbf99d0ab76..e4b1639edb8 100644 --- a/tests/corelib_2/regexp/unicode-property-exact-match_test.dart +++ b/tests/corelib_2/regexp/unicode-property-exact-match_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-property-general-category_test.dart b/tests/corelib_2/regexp/unicode-property-general-category_test.dart index cb94cacd43e..34d3ff082ae 100644 --- a/tests/corelib_2/regexp/unicode-property-general-category_test.dart +++ b/tests/corelib_2/regexp/unicode-property-general-category_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-property-invalid_test.dart b/tests/corelib_2/regexp/unicode-property-invalid_test.dart index 8dddbc1d5a3..48e1783cd0b 100644 --- a/tests/corelib_2/regexp/unicode-property-invalid_test.dart +++ b/tests/corelib_2/regexp/unicode-property-invalid_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-property-scripts_test.dart b/tests/corelib_2/regexp/unicode-property-scripts_test.dart index 5adec29ae97..aa027aa430a 100644 --- a/tests/corelib_2/regexp/unicode-property-scripts_test.dart +++ b/tests/corelib_2/regexp/unicode-property-scripts_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-property-special_test.dart b/tests/corelib_2/regexp/unicode-property-special_test.dart index 1e0d2c18a33..49b66e6291a 100644 --- a/tests/corelib_2/regexp/unicode-property-special_test.dart +++ b/tests/corelib_2/regexp/unicode-property-special_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-regexp-backrefs_test.dart b/tests/corelib_2/regexp/unicode-regexp-backrefs_test.dart index 2fcb7c1d580..b05c8bc8719 100644 --- a/tests/corelib_2/regexp/unicode-regexp-backrefs_test.dart +++ b/tests/corelib_2/regexp/unicode-regexp-backrefs_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-regexp-ignore-case_test.dart b/tests/corelib_2/regexp/unicode-regexp-ignore-case_test.dart index c87047c5c06..5c73352c3d9 100644 --- a/tests/corelib_2/regexp/unicode-regexp-ignore-case_test.dart +++ b/tests/corelib_2/regexp/unicode-regexp-ignore-case_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-regexp-match-index_test.dart b/tests/corelib_2/regexp/unicode-regexp-match-index_test.dart index 3e696584ac1..21e5b8396e7 100644 --- a/tests/corelib_2/regexp/unicode-regexp-match-index_test.dart +++ b/tests/corelib_2/regexp/unicode-regexp-match-index_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-regexp-restricted-syntax_test.dart b/tests/corelib_2/regexp/unicode-regexp-restricted-syntax_test.dart index d894c7bb859..5530da2d08b 100644 --- a/tests/corelib_2/regexp/unicode-regexp-restricted-syntax_test.dart +++ b/tests/corelib_2/regexp/unicode-regexp-restricted-syntax_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-regexp-unanchored-advance_test.dart b/tests/corelib_2/regexp/unicode-regexp-unanchored-advance_test.dart index e57d810d16f..91683729b66 100644 --- a/tests/corelib_2/regexp/unicode-regexp-unanchored-advance_test.dart +++ b/tests/corelib_2/regexp/unicode-regexp-unanchored-advance_test.dart @@ -28,6 +28,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicode-regexp-zero-length_test.dart b/tests/corelib_2/regexp/unicode-regexp-zero-length_test.dart index e1dd330f1ed..080c6d3c185 100644 --- a/tests/corelib_2/regexp/unicode-regexp-zero-length_test.dart +++ b/tests/corelib_2/regexp/unicode-regexp-zero-length_test.dart @@ -26,6 +26,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'v8_regexp_utils.dart'; diff --git a/tests/corelib_2/regexp/unicodeCaseInsensitive_test.dart b/tests/corelib_2/regexp/unicodeCaseInsensitive_test.dart index a4c985bde70..4e19c113482 100644 --- a/tests/corelib_2/regexp/unicodeCaseInsensitive_test.dart +++ b/tests/corelib_2/regexp/unicodeCaseInsensitive_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regexp/v8_regexp_utils.dart b/tests/corelib_2/regexp/v8_regexp_utils.dart index 111ab90f365..0a5e1869715 100644 --- a/tests/corelib_2/regexp/v8_regexp_utils.dart +++ b/tests/corelib_2/regexp/v8_regexp_utils.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Utility functions to easily port V8 tests. import "package:expect/expect.dart"; diff --git a/tests/corelib_2/regexp/zero-length-alternatives_test.dart b/tests/corelib_2/regexp/zero-length-alternatives_test.dart index 108b513af94..fb80f2c64fb 100644 --- a/tests/corelib_2/regexp/zero-length-alternatives_test.dart +++ b/tests/corelib_2/regexp/zero-length-alternatives_test.dart @@ -22,6 +22,8 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// @dart = 2.9 + import 'v8_regexp_utils.dart'; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/regress_11099_test.dart b/tests/corelib_2/regress_11099_test.dart index 2e6b8c15952..8a0bb39b9cd 100644 --- a/tests/corelib_2/regress_11099_test.dart +++ b/tests/corelib_2/regress_11099_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { var l = [new MyTest(1), new MyTest(5), new MyTest(3)]; l.sort(); diff --git a/tests/corelib_2/regress_33166_test.dart b/tests/corelib_2/regress_33166_test.dart index b97bfd67787..65e7cba739b 100644 --- a/tests/corelib_2/regress_33166_test.dart +++ b/tests/corelib_2/regress_33166_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/regress_42011_test.dart b/tests/corelib_2/regress_42011_test.dart index 45a9e81b822..96c9f2f68c3 100644 --- a/tests/corelib_2/regress_42011_test.dart +++ b/tests/corelib_2/regress_42011_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for https://github.com/dart-lang/sdk/issues/42011 main() { var a = []; diff --git a/tests/corelib_2/regress_r21715_test.dart b/tests/corelib_2/regress_r21715_test.dart index 829d9bfaad3..f3b0eb114ff 100644 --- a/tests/corelib_2/regress_r21715_test.dart +++ b/tests/corelib_2/regress_r21715_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization_counter_threshold=5 --no-background_compilation import "package:expect/expect.dart"; diff --git a/tests/corelib_2/safe_to_string_test.dart b/tests/corelib_2/safe_to_string_test.dart index 0356e81f0cb..9878fee7ae5 100644 --- a/tests/corelib_2/safe_to_string_test.dart +++ b/tests/corelib_2/safe_to_string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/set_containsAll_test.dart b/tests/corelib_2/set_containsAll_test.dart index ccab046818e..6bd9f723359 100644 --- a/tests/corelib_2/set_containsAll_test.dart +++ b/tests/corelib_2/set_containsAll_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/corelib_2/set_contains_test.dart b/tests/corelib_2/set_contains_test.dart index c955374e999..c292d91d987 100644 --- a/tests/corelib_2/set_contains_test.dart +++ b/tests/corelib_2/set_contains_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/corelib_2/set_intersection_test.dart b/tests/corelib_2/set_intersection_test.dart index 2cd8a65acf1..abf1f14510f 100644 --- a/tests/corelib_2/set_intersection_test.dart +++ b/tests/corelib_2/set_intersection_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/corelib_2/set_iterator_test.dart b/tests/corelib_2/set_iterator_test.dart index 26d0deec908..d904f46ad42 100644 --- a/tests/corelib_2/set_iterator_test.dart +++ b/tests/corelib_2/set_iterator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class FixedHashCode { diff --git a/tests/corelib_2/set_removeAll_test.dart b/tests/corelib_2/set_removeAll_test.dart index c48cb067da9..f397c217877 100644 --- a/tests/corelib_2/set_removeAll_test.dart +++ b/tests/corelib_2/set_removeAll_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/corelib_2/set_remove_test.dart b/tests/corelib_2/set_remove_test.dart index 20f48e59226..4e917d7f78d 100644 --- a/tests/corelib_2/set_remove_test.dart +++ b/tests/corelib_2/set_remove_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/corelib_2/set_retainAll_test.dart b/tests/corelib_2/set_retainAll_test.dart index 73810952327..c4e1f5bfbb3 100644 --- a/tests/corelib_2/set_retainAll_test.dart +++ b/tests/corelib_2/set_retainAll_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/corelib_2/set_test.dart b/tests/corelib_2/set_test.dart index 68cf684122b..20313e3ddfe 100644 --- a/tests/corelib_2/set_test.dart +++ b/tests/corelib_2/set_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library set_test; import 'package:expect/expect.dart'; diff --git a/tests/corelib_2/set_to_string_test.dart b/tests/corelib_2/set_to_string_test.dart index f9833bde5d2..32872dd21a3 100644 --- a/tests/corelib_2/set_to_string_test.dart +++ b/tests/corelib_2/set_to_string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:collection"; diff --git a/tests/corelib_2/set_unmodifiable_view_test.dart b/tests/corelib_2/set_unmodifiable_view_test.dart index 4ee582d6042..4a1dbed932e 100644 --- a/tests/corelib_2/set_unmodifiable_view_test.dart +++ b/tests/corelib_2/set_unmodifiable_view_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:collection"; diff --git a/tests/corelib_2/shuffle_test.dart b/tests/corelib_2/shuffle_test.dart index 2836c427487..c36ad5cf998 100644 --- a/tests/corelib_2/shuffle_test.dart +++ b/tests/corelib_2/shuffle_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for List.shuffle. library shuffle_test; diff --git a/tests/corelib_2/sort_helper.dart b/tests/corelib_2/sort_helper.dart index 6b8307bb705..3827b76be14 100644 --- a/tests/corelib_2/sort_helper.dart +++ b/tests/corelib_2/sort_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library sort_helper; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/sort_test.dart b/tests/corelib_2/sort_test.dart index 541b258d83b..ddbb8104dcc 100644 --- a/tests/corelib_2/sort_test.dart +++ b/tests/corelib_2/sort_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for sort routines. library sort_test; diff --git a/tests/corelib_2/splay_tree_from_iterable_test.dart b/tests/corelib_2/splay_tree_from_iterable_test.dart index 7118f4ad389..1207a5419a6 100644 --- a/tests/corelib_2/splay_tree_from_iterable_test.dart +++ b/tests/corelib_2/splay_tree_from_iterable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:collection'; diff --git a/tests/corelib_2/splay_tree_from_iterables_test.dart b/tests/corelib_2/splay_tree_from_iterables_test.dart index 6e22ddf3792..4e8b63e4db1 100644 --- a/tests/corelib_2/splay_tree_from_iterables_test.dart +++ b/tests/corelib_2/splay_tree_from_iterables_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:collection'; diff --git a/tests/corelib_2/splay_tree_test.dart b/tests/corelib_2/splay_tree_test.dart index 807d7000d6c..2f7107417d1 100644 --- a/tests/corelib_2/splay_tree_test.dart +++ b/tests/corelib_2/splay_tree_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for Splaytrees. library splay_tree_test; diff --git a/tests/corelib_2/stacktrace_current_test.dart b/tests/corelib_2/stacktrace_current_test.dart index 6712e64ed86..bbf697bc59d 100644 --- a/tests/corelib_2/stacktrace_current_test.dart +++ b/tests/corelib_2/stacktrace_current_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:convert" show LineSplitter; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/stacktrace_fromstring_test.dart b/tests/corelib_2/stacktrace_fromstring_test.dart index b42aba3ed94..c5f4653f27e 100644 --- a/tests/corelib_2/stacktrace_fromstring_test.dart +++ b/tests/corelib_2/stacktrace_fromstring_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; import "dart:async"; diff --git a/tests/corelib_2/stopwatch2_test.dart b/tests/corelib_2/stopwatch2_test.dart index a95db460261..e66604b0cda 100644 --- a/tests/corelib_2/stopwatch2_test.dart +++ b/tests/corelib_2/stopwatch2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program for elapsed getters in stopwatch support. import "package:expect/expect.dart"; diff --git a/tests/corelib_2/stopwatch_test.dart b/tests/corelib_2/stopwatch_test.dart index e6b8a979821..dfdeb0ca601 100644 --- a/tests/corelib_2/stopwatch_test.dart +++ b/tests/corelib_2/stopwatch_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program for testing stopwatch support. library stopwatch_test; diff --git a/tests/corelib_2/string_base_vm_static_test.dart b/tests/corelib_2/string_base_vm_static_test.dart index 5fbb1c9e529..41979f8dce1 100644 --- a/tests/corelib_2/string_base_vm_static_test.dart +++ b/tests/corelib_2/string_base_vm_static_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing class 'StringBase' (currently VM specific). +// @dart = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/corelib_2/string_base_vm_test.dart b/tests/corelib_2/string_base_vm_test.dart index 10ed9ac4449..6d781f7862d 100644 --- a/tests/corelib_2/string_base_vm_test.dart +++ b/tests/corelib_2/string_base_vm_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing class 'StringBase' (currently VM specific). +// @dart = 2.9 + library string_base_test; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/string_buffer_test.dart b/tests/corelib_2/string_buffer_test.dart index 669bde680b7..d5b6781c800 100644 --- a/tests/corelib_2/string_buffer_test.dart +++ b/tests/corelib_2/string_buffer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // TODO(srdjan): Move StringBuffer to visible names. diff --git a/tests/corelib_2/string_case_test.dart b/tests/corelib_2/string_case_test.dart index b199de732bf..eab64801c25 100644 --- a/tests/corelib_2/string_case_test.dart +++ b/tests/corelib_2/string_case_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/string_codeunits_test.dart b/tests/corelib_2/string_codeunits_test.dart index 566c32126e8..074ca909c66 100644 --- a/tests/corelib_2/string_codeunits_test.dart +++ b/tests/corelib_2/string_codeunits_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/string_from_environment2_test.dart b/tests/corelib_2/string_from_environment2_test.dart index b6d81b816d7..6a7b5914c57 100644 --- a/tests/corelib_2/string_from_environment2_test.dart +++ b/tests/corelib_2/string_from_environment2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // SharedOptions=-Da=a -Da=bb -Db=bb -Dc=ccc -Da=ccc -Db=ccc +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/string_from_environment3_test.dart b/tests/corelib_2/string_from_environment3_test.dart index 962f5f1de05..2d10f32e07c 100644 --- a/tests/corelib_2/string_from_environment3_test.dart +++ b/tests/corelib_2/string_from_environment3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { const String.fromEnvironment('NOT_FOUND', defaultValue: 1); // //# 01: compile-time error const String.fromEnvironment('NOT_FOUND', defaultValue: true); // //# 02: compile-time error diff --git a/tests/corelib_2/string_from_environment_test.dart b/tests/corelib_2/string_from_environment_test.dart index 974e89ea766..b55f9b00856 100644 --- a/tests/corelib_2/string_from_environment_test.dart +++ b/tests/corelib_2/string_from_environment_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // SharedOptions=-Da=a -Db=bb -Dc=ccc -Dd= --define=e=eeee +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/string_from_list_test.dart b/tests/corelib_2/string_from_list_test.dart index 0263d027f7c..4f5451d6a0a 100644 --- a/tests/corelib_2/string_from_list_test.dart +++ b/tests/corelib_2/string_from_list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/corelib_2/string_fromcharcode_test.dart b/tests/corelib_2/string_fromcharcode_test.dart index f74dfb128b0..92176242730 100644 --- a/tests/corelib_2/string_fromcharcode_test.dart +++ b/tests/corelib_2/string_fromcharcode_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/string_fromcharcodes_test.dart b/tests/corelib_2/string_fromcharcodes_test.dart index 724db833892..2f7e884a102 100644 --- a/tests/corelib_2/string_fromcharcodes_test.dart +++ b/tests/corelib_2/string_fromcharcodes_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:typed_data"; diff --git a/tests/corelib_2/string_operations_with_null_test.dart b/tests/corelib_2/string_operations_with_null_test.dart index 8c070254c40..66ab5754057 100644 --- a/tests/corelib_2/string_operations_with_null_test.dart +++ b/tests/corelib_2/string_operations_with_null_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; @pragma('dart2js:noInline') diff --git a/tests/corelib_2/string_pattern_test.dart b/tests/corelib_2/string_pattern_test.dart index 9a4555e8e14..35d34ee7e8a 100644 --- a/tests/corelib_2/string_pattern_test.dart +++ b/tests/corelib_2/string_pattern_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing String.allMatches. +// @dart = 2.9 + import "package:expect/expect.dart"; String str = "this is a string with hello here and hello there"; diff --git a/tests/corelib_2/string_replace_all_2_test.dart b/tests/corelib_2/string_replace_all_2_test.dart index 39d196a8147..77dc24306c2 100644 --- a/tests/corelib_2/string_replace_all_2_test.dart +++ b/tests/corelib_2/string_replace_all_2_test.dart @@ -4,6 +4,8 @@ // // dart2jsOptions=-Ddart2js.testing.String.replaceAll.force.regexp=true +// @dart = 2.9 + import "string_replace_all_test.dart" as base; main() { diff --git a/tests/corelib_2/string_replace_all_test.dart b/tests/corelib_2/string_replace_all_test.dart index 548ad624d72..e4e340b9949 100644 --- a/tests/corelib_2/string_replace_all_test.dart +++ b/tests/corelib_2/string_replace_all_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; testReplaceAll() { diff --git a/tests/corelib_2/string_replace_dollar_test.dart b/tests/corelib_2/string_replace_dollar_test.dart index c0077a05965..7ab46916a97 100644 --- a/tests/corelib_2/string_replace_dollar_test.dart +++ b/tests/corelib_2/string_replace_dollar_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/string_replace_static_test.dart b/tests/corelib_2/string_replace_static_test.dart index 5becfddafe2..6acceae29a0 100644 --- a/tests/corelib_2/string_replace_static_test.dart +++ b/tests/corelib_2/string_replace_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/corelib_2/string_replace_test.dart b/tests/corelib_2/string_replace_test.dart index ce0c278f6ab..49161de17e4 100644 --- a/tests/corelib_2/string_replace_test.dart +++ b/tests/corelib_2/string_replace_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/string_runes_test.dart b/tests/corelib_2/string_runes_test.dart index 9e988b8ec91..d8972843904 100644 --- a/tests/corelib_2/string_runes_test.dart +++ b/tests/corelib_2/string_runes_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/string_source_test.dart b/tests/corelib_2/string_source_test.dart index 89748264a94..2f752de1070 100644 --- a/tests/corelib_2/string_source_test.dart +++ b/tests/corelib_2/string_source_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that different representations of the same string are all equal. import "dart:convert"; diff --git a/tests/corelib_2/string_split_test.dart b/tests/corelib_2/string_split_test.dart index a05bcedbfb0..e1884fec0cb 100644 --- a/tests/corelib_2/string_split_test.dart +++ b/tests/corelib_2/string_split_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/string_static_test.dart b/tests/corelib_2/string_static_test.dart index 7c2cd7b15ea..5eb6b646812 100644 --- a/tests/corelib_2/string_static_test.dart +++ b/tests/corelib_2/string_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/corelib_2/string_substring_test.dart b/tests/corelib_2/string_substring_test.dart index e3547ea6d3d..c9a452a21a9 100644 --- a/tests/corelib_2/string_substring_test.dart +++ b/tests/corelib_2/string_substring_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/string_test.dart b/tests/corelib_2/string_test.dart index f66f16b672d..7054a81893c 100644 --- a/tests/corelib_2/string_test.dart +++ b/tests/corelib_2/string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/corelib_2/string_to_lower_case_test.dart b/tests/corelib_2/string_to_lower_case_test.dart index e761c1c908b..7abe023ee16 100644 --- a/tests/corelib_2/string_to_lower_case_test.dart +++ b/tests/corelib_2/string_to_lower_case_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void testOneByteSting() { diff --git a/tests/corelib_2/string_trim2_test.dart b/tests/corelib_2/string_trim2_test.dart index eb7956afa4b..a04737641c3 100644 --- a/tests/corelib_2/string_trim2_test.dart +++ b/tests/corelib_2/string_trim2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; const WHITESPACE = const [ diff --git a/tests/corelib_2/string_trim_test.dart b/tests/corelib_2/string_trim_test.dart index 6049af9e1c7..905abcdafb4 100644 --- a/tests/corelib_2/string_trim_test.dart +++ b/tests/corelib_2/string_trim_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class StringTrimTest { diff --git a/tests/corelib_2/string_trimlr_test.dart b/tests/corelib_2/string_trimlr_test.dart index 95f6af6b364..40fb76bd278 100644 --- a/tests/corelib_2/string_trimlr_test.dart +++ b/tests/corelib_2/string_trimlr_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Characters with Whitespace property (Unicode 6.3). diff --git a/tests/corelib_2/strings_test.dart b/tests/corelib_2/strings_test.dart index 9603b17da5c..ca215d3feee 100644 --- a/tests/corelib_2/strings_test.dart +++ b/tests/corelib_2/strings_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for testing class 'Strings'. diff --git a/tests/corelib_2/symbol_map_helper.dart b/tests/corelib_2/symbol_map_helper.dart index da9e7e5a385..7e9ba355c27 100644 --- a/tests/corelib_2/symbol_map_helper.dart +++ b/tests/corelib_2/symbol_map_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library dart.test.symbol_map_helper; // TODO(ahe): Update map literals to avoid this method. diff --git a/tests/corelib_2/symbol_operator_test.dart b/tests/corelib_2/symbol_operator_test.dart index ac7949942e2..18dce3b9d1c 100644 --- a/tests/corelib_2/symbol_operator_test.dart +++ b/tests/corelib_2/symbol_operator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test of Symbol class for operators.. dynamic $ = new Symbolize(); diff --git a/tests/corelib_2/symbol_reserved_word_test.dart b/tests/corelib_2/symbol_reserved_word_test.dart index d6eec3b0b52..1305da7887e 100644 --- a/tests/corelib_2/symbol_reserved_word_test.dart +++ b/tests/corelib_2/symbol_reserved_word_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void checkBadSymbol(String s) { diff --git a/tests/corelib_2/symbol_test.dart b/tests/corelib_2/symbol_test.dart index ec47d450515..1cda51e68de 100644 --- a/tests/corelib_2/symbol_test.dart +++ b/tests/corelib_2/symbol_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Basic test of Symbol class. main() { diff --git a/tests/corelib_2/throw_half_surrogate_pair_test.dart b/tests/corelib_2/throw_half_surrogate_pair_test.dart index f500cb1a143..69d40e7394e 100644 --- a/tests/corelib_2/throw_half_surrogate_pair_test.dart +++ b/tests/corelib_2/throw_half_surrogate_pair_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { var trebleClef = "\u{1D11E}"; if (trebleClef.length != 2) throw "String should be a surrogate pair"; diff --git a/tests/corelib_2/toInt_test.dart b/tests/corelib_2/toInt_test.dart index 0261d7da0a6..b10154d75a0 100644 --- a/tests/corelib_2/toInt_test.dart +++ b/tests/corelib_2/toInt_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/type_hashcode_test.dart b/tests/corelib_2/type_hashcode_test.dart index 49c9ab8f97c..859c26ffcbb 100644 --- a/tests/corelib_2/type_hashcode_test.dart +++ b/tests/corelib_2/type_hashcode_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import "package:expect/expect.dart"; void main() { diff --git a/tests/corelib_2/type_tostring_test.dart b/tests/corelib_2/type_tostring_test.dart index 8f2fa68c533..ca420bc14e1 100644 --- a/tests/corelib_2/type_tostring_test.dart +++ b/tests/corelib_2/type_tostring_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing the behavior of `Type.toString`. // // The behavior is *unspecified*, but users may depend on it. diff --git a/tests/corelib_2/typed_data_with_limited_ints_test.dart b/tests/corelib_2/typed_data_with_limited_ints_test.dart index 58c56d54d5e..aaa1df1ca38 100644 --- a/tests/corelib_2/typed_data_with_limited_ints_test.dart +++ b/tests/corelib_2/typed_data_with_limited_ints_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background-compilation +// @dart = 2.9 + // Test for dart:typed_data (in particular, ByteData.get/setUint64 and // UInt64List) with limited 64-bit integers. diff --git a/tests/corelib_2/unicode2_test.dart b/tests/corelib_2/unicode2_test.dart index c939a1d1b9a..f641a554ae8 100755 --- a/tests/corelib_2/unicode2_test.dart +++ b/tests/corelib_2/unicode2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; const String testPhrase = "The quick brown fox jumps over the lazy dog."; diff --git a/tests/corelib_2/unicode_test.dart b/tests/corelib_2/unicode_test.dart index 8b029131589..aaa9cf60c43 100644 --- a/tests/corelib_2/unicode_test.dart +++ b/tests/corelib_2/unicode_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class UnicodeTest { diff --git a/tests/corelib_2/unsigned_shift_test.dart b/tests/corelib_2/unsigned_shift_test.dart deleted file mode 100644 index ab3220fcfee..00000000000 --- a/tests/corelib_2/unsigned_shift_test.dart +++ /dev/null @@ -1,116 +0,0 @@ -// Copyright (c) 2019, 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. - -// SharedOptions=--enable-experiment=triple-shift - -import "package:expect/expect.dart"; - -// The >>> operator is (again) supported by Dart, and used on `int`. - -// This test assumes that the JS implementation of `>>>` uses the JS `>>>` -// operator directly (that is, convert the value to Uint32, shift right,) - -main() { - testIntegerShifts(); - testNonIntegerShifts(); - testConstantShifts(); -} - -void testIntegerShifts() { - for (int i = -1; i <= 65; i++) { - testShift(0, i); - testShift(1, i); - testShift(2, i); - testShift(3, i); - testShift(-1, i); - testShift(-5, i); - // . . . - testShift(0x7fffffff, i); - testShift(0x55555555, i); - testShift(0xaaaaaaaa, i); - testShift(0x80000000, i); - // . . . . - testShift(0x7fffffffffff, i); - testShift(0xffffffffffff, i); - // . . . . . - testShift(0x7ffffffffffff000, i); - testShift(0xfffffffffffff000, i); - // Construct the values below to get 'all ones' values on the VM without a - // compile-time error for roundned literals on the web. The arithmetic - // produces rounded values on the web, so they are effectively testing zero. - testShift(0x7ffffffffffff000 + 0xfff, i); - testShift(0xfffffffffffff000 + 0xfff, i); - } - - // JavaScript numbers may consider Infinity as an integer. - // If so, it is zero when converted to a fixed precision. - if (double.infinity is int) { - int number = (double.infinity as int); - Expect.equals(0, number >>> 1); - Expect.equals(0, 1 >>> number); // infinity > 64. - } -} - -void testNonIntegerShifts() { - double n = 0.0; - n >>> 1; //# 01: compile-time error - for (dynamic number in [0.0, 1.0, 2.4, -2.4, double.infinity, double.nan]) { - if (number is! int) { - Expect.throws(() => number >>> 1); //# 07: ok - Expect.throws(() => 1 >>> number); //# 08: ok - } - } -} - -void testConstantShifts() { - const c = C(); - // >>> is a constant operation on integers. - const c1 = 2 >>> 1; - const c2 = (1 >>> 0) >>> 0; - const c3 = 1 >>> 65; - - // >>> is a non-constant operation on other types. - const c4 = false ? 1 : c >>> c; //# 02: compile-time error - const c5 = true || c >>> c; //# 03: compile-time error - const c6 = true || "string" >>> 1; //# 04: compile-time error - const c7 = c >>> c; //# 05: compile-time error - - // Or if shifting throws - const c8 = 1 >>> -1; //# 06: compile-time error - - Expect.isNotNull(c1 + c2 + c3); // Avoid "unused variable" warnings. -} - -const bool isJSBitOps = (-1 | 0) > 0; -const String jsFlag = isJSBitOps ? " (JS)" : ""; - -void testShift(int value, int shift) { - var title = "0x${value.toRadixString(16)} >>> $shift$jsFlag"; - if (shift < 0) { - // No platform allows shifting a negative. - Expect.throwsArgumentError(() => value >>> shift, "$title: shift < 0"); - return; - } - var expected; - if (isJSBitOps) { - // TODO: Check that this is the desired behavior for JS >>>. - expected = value.toUnsigned(32) >> shift; - } else if (value < 0) { - if (shift >= 64) { - expected = 0; - } else if (shift > 0) { - expected = (value >> shift).toUnsigned(64 - shift); - } else { - expected = value; - } - } else { - expected = value >> shift; - } - Expect.equals(expected, value >>> shift, title); -} - -class C { - const C(); - C operator >>>(C other) => other; -} diff --git a/tests/corelib_2/uri_base_test.dart b/tests/corelib_2/uri_base_test.dart index a54a28774a5..37175713de4 100644 --- a/tests/corelib_2/uri_base_test.dart +++ b/tests/corelib_2/uri_base_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/corelib_2/uri_file_test.dart b/tests/corelib_2/uri_file_test.dart index b858e8eaeba..198220cbaa5 100644 --- a/tests/corelib_2/uri_file_test.dart +++ b/tests/corelib_2/uri_file_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; testFileUri() { diff --git a/tests/corelib_2/uri_http_test.dart b/tests/corelib_2/uri_http_test.dart index 4fd639dbdb3..9d02ebf732b 100644 --- a/tests/corelib_2/uri_http_test.dart +++ b/tests/corelib_2/uri_http_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void testHttpUri() { diff --git a/tests/corelib_2/uri_ipv4_test.dart b/tests/corelib_2/uri_ipv4_test.dart index 0ae17009a67..d2780b533e2 100644 --- a/tests/corelib_2/uri_ipv4_test.dart +++ b/tests/corelib_2/uri_ipv4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void testParseIPv4Address() { diff --git a/tests/corelib_2/uri_ipv6_test.dart b/tests/corelib_2/uri_ipv6_test.dart index e5dbb9dff21..a40cf1dcc97 100644 --- a/tests/corelib_2/uri_ipv6_test.dart +++ b/tests/corelib_2/uri_ipv6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void testValidIpv6Uri() { diff --git a/tests/corelib_2/uri_normalize_path_test.dart b/tests/corelib_2/uri_normalize_path_test.dart index 07b7c2654a4..9c4ce4e2edc 100644 --- a/tests/corelib_2/uri_normalize_path_test.dart +++ b/tests/corelib_2/uri_normalize_path_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library uriNormalizePathTest; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/uri_normalize_test.dart b/tests/corelib_2/uri_normalize_test.dart index af97653fc74..5a978404682 100644 --- a/tests/corelib_2/uri_normalize_test.dart +++ b/tests/corelib_2/uri_normalize_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; testNormalizePath() { diff --git a/tests/corelib_2/uri_parameters_all_test.dart b/tests/corelib_2/uri_parameters_all_test.dart index f3f6dfc4ffd..b540a701da1 100644 --- a/tests/corelib_2/uri_parameters_all_test.dart +++ b/tests/corelib_2/uri_parameters_all_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:convert'; diff --git a/tests/corelib_2/uri_parse_test.dart b/tests/corelib_2/uri_parse_test.dart index 4c93b2be0e2..6fdced31648 100644 --- a/tests/corelib_2/uri_parse_test.dart +++ b/tests/corelib_2/uri_parse_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void testUriCombi() { diff --git a/tests/corelib_2/uri_path_test.dart b/tests/corelib_2/uri_path_test.dart index 4b6a348a8e0..984c44e1778 100644 --- a/tests/corelib_2/uri_path_test.dart +++ b/tests/corelib_2/uri_path_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection"; import "package:expect/expect.dart"; diff --git a/tests/corelib_2/uri_query_test.dart b/tests/corelib_2/uri_query_test.dart index 9e80fc7a21d..6684cc457fc 100644 --- a/tests/corelib_2/uri_query_test.dart +++ b/tests/corelib_2/uri_query_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void testInvalidArguments() {} diff --git a/tests/corelib_2/uri_scheme_test.dart b/tests/corelib_2/uri_scheme_test.dart index b83a15cf63c..1e5b03c6154 100644 --- a/tests/corelib_2/uri_scheme_test.dart +++ b/tests/corelib_2/uri_scheme_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void testInvalidArguments() { diff --git a/tests/corelib_2/uri_test.dart b/tests/corelib_2/uri_test.dart index 24011a6a200..3ac87eae6b3 100644 --- a/tests/corelib_2/uri_test.dart +++ b/tests/corelib_2/uri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library uriTest; import "package:expect/expect.dart"; diff --git a/tests/dartdevc_2/cast_error/lib_a.dart b/tests/dartdevc_2/cast_error/lib_a.dart index 5c6dedf1795..0939c6a44ea 100644 --- a/tests/dartdevc_2/cast_error/lib_a.dart +++ b/tests/dartdevc_2/cast_error/lib_a.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + class Animal {} diff --git a/tests/dartdevc_2/cast_error/lib_b.dart b/tests/dartdevc_2/cast_error/lib_b.dart index 5c6dedf1795..0939c6a44ea 100644 --- a/tests/dartdevc_2/cast_error/lib_b.dart +++ b/tests/dartdevc_2/cast_error/lib_b.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + class Animal {} diff --git a/tests/dartdevc_2/hot_restart_lazy_test.dart b/tests/dartdevc_2/hot_restart_lazy_test.dart index 8e95fa7a0ba..6d1d0ccf6d8 100644 --- a/tests/dartdevc_2/hot_restart_lazy_test.dart +++ b/tests/dartdevc_2/hot_restart_lazy_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that lazily-loaded fields are properly reset after hot restarts. import 'package:expect/expect.dart'; diff --git a/tests/dartdevc_2/runtime_utils.dart b/tests/dartdevc_2/runtime_utils.dart index 5b14053b69d..08490951272 100644 --- a/tests/dartdevc_2/runtime_utils.dart +++ b/tests/dartdevc_2/runtime_utils.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:_runtime' show gFnType, typeRep, isSubtypeOf; import 'package:expect/expect.dart'; diff --git a/tests/ffi_2/aliasing_test.dart b/tests/ffi_2/aliasing_test.dart index 5cace63f9fd..c3825d80432 100644 --- a/tests/ffi_2/aliasing_test.dart +++ b/tests/ffi_2/aliasing_test.dart @@ -8,6 +8,8 @@ // SharedObjects=ffi_test_functions // VMOptions=--deterministic --optimization-counter-threshold=50 +// @dart = 2.9 + import 'dart:ffi'; import "package:ffi/ffi.dart"; diff --git a/tests/ffi_2/all_positive.dart b/tests/ffi_2/all_positive.dart index 699add9b8cb..a6810b66635 100644 --- a/tests/ffi_2/all_positive.dart +++ b/tests/ffi_2/all_positive.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Generated by prepare_flutter_bundle.dart and not ignoring vmspecific. // Used in fuchsia_test_component. // diff --git a/tests/ffi_2/allocator_test.dart b/tests/ffi_2/allocator_test.dart index 396f5c9775c..8bbc1b0a31d 100644 --- a/tests/ffi_2/allocator_test.dart +++ b/tests/ffi_2/allocator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that we can implement the Allocator interface. import 'dart:ffi'; diff --git a/tests/ffi_2/callback_tests_utils.dart b/tests/ffi_2/callback_tests_utils.dart index e34a52b7060..40a2995a368 100644 --- a/tests/ffi_2/callback_tests_utils.dart +++ b/tests/ffi_2/callback_tests_utils.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:ffi'; import 'dylib_utils.dart'; diff --git a/tests/ffi_2/calloc_test.dart b/tests/ffi_2/calloc_test.dart index 56f1b973a7c..20af4fbffe5 100644 --- a/tests/ffi_2/calloc_test.dart +++ b/tests/ffi_2/calloc_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:ffi'; import 'package:expect/expect.dart'; diff --git a/tests/ffi_2/coordinate.dart b/tests/ffi_2/coordinate.dart index 5e00a763f26..6cec851a7e3 100644 --- a/tests/ffi_2/coordinate.dart +++ b/tests/ffi_2/coordinate.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library FfiTest; import 'dart:ffi'; diff --git a/tests/ffi_2/data_not_asan_test.dart b/tests/ffi_2/data_not_asan_test.dart index b791d716762..8ac3ebabff3 100644 --- a/tests/ffi_2/data_not_asan_test.dart +++ b/tests/ffi_2/data_not_asan_test.dart @@ -7,6 +7,8 @@ // These callocs trigger an asan alarm, so these tests are in a separate file // which is excluded in asan mode. +// @dart = 2.9 + import 'dart:ffi'; import "package:ffi/ffi.dart"; diff --git a/tests/ffi_2/data_test.dart b/tests/ffi_2/data_test.dart index 448b465a7b5..14be2c0d753 100644 --- a/tests/ffi_2/data_test.dart +++ b/tests/ffi_2/data_test.dart @@ -6,6 +6,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/dylib_isolates_test.dart b/tests/ffi_2/dylib_isolates_test.dart index f790e12de7d..1d5fd74afcc 100644 --- a/tests/ffi_2/dylib_isolates_test.dart +++ b/tests/ffi_2/dylib_isolates_test.dart @@ -6,6 +6,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import 'dart:io'; import 'dart:isolate'; diff --git a/tests/ffi_2/dylib_utils.dart b/tests/ffi_2/dylib_utils.dart index c6f91273a35..d4f86fc1ce2 100644 --- a/tests/ffi_2/dylib_utils.dart +++ b/tests/ffi_2/dylib_utils.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:ffi' as ffi; import 'dart:io' show Platform; diff --git a/tests/ffi_2/expando_test.dart b/tests/ffi_2/expando_test.dart index ac143245fbf..b9acf02a0ce 100644 --- a/tests/ffi_2/expando_test.dart +++ b/tests/ffi_2/expando_test.dart @@ -6,6 +6,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/extension_methods_test.dart b/tests/ffi_2/extension_methods_test.dart index 64a6237a420..9d96f411e4f 100644 --- a/tests/ffi_2/extension_methods_test.dart +++ b/tests/ffi_2/extension_methods_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/external_typed_data_test.dart b/tests/ffi_2/external_typed_data_test.dart index 3c4c71a0aaf..40d3e74233b 100644 --- a/tests/ffi_2/external_typed_data_test.dart +++ b/tests/ffi_2/external_typed_data_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:ffi'; import 'dart:math'; import 'dart:typed_data'; diff --git a/tests/ffi_2/ffi_test_helpers.dart b/tests/ffi_2/ffi_test_helpers.dart index 0c598ecae80..aa2ed864a19 100644 --- a/tests/ffi_2/ffi_test_helpers.dart +++ b/tests/ffi_2/ffi_test_helpers.dart @@ -4,6 +4,8 @@ // // Helpers for tests which trigger GC in delicate places. +// @dart = 2.9 + import 'dart:ffi'; import 'dylib_utils.dart'; diff --git a/tests/ffi_2/function_callbacks_many_test.dart b/tests/ffi_2/function_callbacks_many_test.dart index c8fb5195e34..5f1a2732069 100644 --- a/tests/ffi_2/function_callbacks_many_test.dart +++ b/tests/ffi_2/function_callbacks_many_test.dart @@ -14,6 +14,8 @@ // VMOptions=--use-slow-path --enable-testing-pragmas --write-protect-code --no-dual-map-code --stacktrace-every=100 // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import 'callback_tests_utils.dart'; diff --git a/tests/ffi_2/function_callbacks_structs_by_value_generated_test.dart b/tests/ffi_2/function_callbacks_structs_by_value_generated_test.dart index c65a2d27477..8ee78451661 100644 --- a/tests/ffi_2/function_callbacks_structs_by_value_generated_test.dart +++ b/tests/ffi_2/function_callbacks_structs_by_value_generated_test.dart @@ -10,6 +10,8 @@ // VMOptions=--use-slow-path // VMOptions=--use-slow-path --stacktrace-every=100 +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/function_callbacks_structs_by_value_test.dart b/tests/ffi_2/function_callbacks_structs_by_value_test.dart index d7021b39421..930da1e6953 100644 --- a/tests/ffi_2/function_callbacks_structs_by_value_test.dart +++ b/tests/ffi_2/function_callbacks_structs_by_value_test.dart @@ -6,6 +6,8 @@ // // VMOptions=--deterministic --optimization-counter-threshold=5 --use-slow-path --stacktrace-every=100 +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/function_callbacks_test.dart b/tests/ffi_2/function_callbacks_test.dart index e9a853c0343..9e0ac352269 100644 --- a/tests/ffi_2/function_callbacks_test.dart +++ b/tests/ffi_2/function_callbacks_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program for testing dart:ffi function pointers with callbacks. // // VMOptions=--enable-testing-pragmas diff --git a/tests/ffi_2/function_callbacks_very_many_test copy.dart b/tests/ffi_2/function_callbacks_very_many_test copy.dart index 383b482199d..d177728d7e5 100644 --- a/tests/ffi_2/function_callbacks_very_many_test copy.dart +++ b/tests/ffi_2/function_callbacks_very_many_test copy.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program for testing dart:ffi function pointers with callbacks. // // VMOptions=--deterministic --optimization-counter-threshold=10 diff --git a/tests/ffi_2/function_callbacks_very_many_test.dart b/tests/ffi_2/function_callbacks_very_many_test.dart index 383b482199d..d177728d7e5 100644 --- a/tests/ffi_2/function_callbacks_very_many_test.dart +++ b/tests/ffi_2/function_callbacks_very_many_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program for testing dart:ffi function pointers with callbacks. // // VMOptions=--deterministic --optimization-counter-threshold=10 diff --git a/tests/ffi_2/function_structs_by_value_generated_test.dart b/tests/ffi_2/function_structs_by_value_generated_test.dart index 156fc07e988..9bf037613cc 100644 --- a/tests/ffi_2/function_structs_by_value_generated_test.dart +++ b/tests/ffi_2/function_structs_by_value_generated_test.dart @@ -10,6 +10,8 @@ // VMOptions=--use-slow-path // VMOptions=--use-slow-path --stacktrace-every=100 +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/function_structs_test.dart b/tests/ffi_2/function_structs_test.dart index d81324741a5..c2594356dab 100644 --- a/tests/ffi_2/function_structs_test.dart +++ b/tests/ffi_2/function_structs_test.dart @@ -7,6 +7,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/function_test.dart b/tests/ffi_2/function_test.dart index d5fd3c0f1c5..f955bbdfa0e 100644 --- a/tests/ffi_2/function_test.dart +++ b/tests/ffi_2/function_test.dart @@ -13,6 +13,8 @@ // VMOptions=--write-protect-code --no-dual-map-code --stacktrace-every=100 // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:ffi/ffi.dart"; diff --git a/tests/ffi_2/function_very_many_test.dart b/tests/ffi_2/function_very_many_test.dart index 80566175897..5ac314204c5 100644 --- a/tests/ffi_2/function_very_many_test.dart +++ b/tests/ffi_2/function_very_many_test.dart @@ -13,6 +13,8 @@ // VMOptions=--write-protect-code --no-dual-map-code --stacktrace-every=100 // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import 'dylib_utils.dart'; diff --git a/tests/ffi_2/generator/c_types.dart b/tests/ffi_2/generator/c_types.dart index 7236aede6df..edd670c8548 100644 --- a/tests/ffi_2/generator/c_types.dart +++ b/tests/ffi_2/generator/c_types.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:math' as math; import 'utils.dart'; diff --git a/tests/ffi_2/generator/structs_by_value_tests_configuration.dart b/tests/ffi_2/generator/structs_by_value_tests_configuration.dart index 07b5fd12b44..f8fbb1b1287 100644 --- a/tests/ffi_2/generator/structs_by_value_tests_configuration.dart +++ b/tests/ffi_2/generator/structs_by_value_tests_configuration.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'c_types.dart'; final functions = [ diff --git a/tests/ffi_2/generator/structs_by_value_tests_generator.dart b/tests/ffi_2/generator/structs_by_value_tests_generator.dart index 0ab7739ce4a..bbd315819ff 100644 --- a/tests/ffi_2/generator/structs_by_value_tests_generator.dart +++ b/tests/ffi_2/generator/structs_by_value_tests_generator.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'c_types.dart'; diff --git a/tests/ffi_2/generator/utils.dart b/tests/ffi_2/generator/utils.dart index 735e7694b83..a1130cc1289 100644 --- a/tests/ffi_2/generator/utils.dart +++ b/tests/ffi_2/generator/utils.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + extension TestGeneratorStringExtension on String { String upperCaseFirst() => "${this[0].toUpperCase()}${this.substring(1)}"; diff --git a/tests/ffi_2/hardfp_test.dart b/tests/ffi_2/hardfp_test.dart index 600e26bb0ad..0fd7a8e7eee 100644 --- a/tests/ffi_2/hardfp_test.dart +++ b/tests/ffi_2/hardfp_test.dart @@ -13,6 +13,8 @@ // VMOptions=--write-protect-code --no-dual-map-code --stacktrace-every=100 // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/inline_array_multi_dimensional_test.dart b/tests/ffi_2/inline_array_multi_dimensional_test.dart index 15d2059341a..08a5e4412f4 100644 --- a/tests/ffi_2/inline_array_multi_dimensional_test.dart +++ b/tests/ffi_2/inline_array_multi_dimensional_test.dart @@ -4,6 +4,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/inline_array_test.dart b/tests/ffi_2/inline_array_test.dart index 868d117c29c..70872c3382e 100644 --- a/tests/ffi_2/inline_array_test.dart +++ b/tests/ffi_2/inline_array_test.dart @@ -4,6 +4,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/native_effect_test.dart b/tests/ffi_2/native_effect_test.dart index 1b88d14a577..9a7f222a7a6 100644 --- a/tests/ffi_2/native_effect_test.dart +++ b/tests/ffi_2/native_effect_test.dart @@ -4,6 +4,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + // Tests that the dart:internal _nativeEffect flow graph builder works. import 'dart:ffi'; diff --git a/tests/ffi_2/negative_function_test.dart b/tests/ffi_2/negative_function_test.dart index 7eac37cc47f..338706d571f 100644 --- a/tests/ffi_2/negative_function_test.dart +++ b/tests/ffi_2/negative_function_test.dart @@ -6,6 +6,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi' as ffi; import 'dylib_utils.dart'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/null_regress_39068_test.dart b/tests/ffi_2/null_regress_39068_test.dart index 6709a53ed3a..de8e7cd71ef 100644 --- a/tests/ffi_2/null_regress_39068_test.dart +++ b/tests/ffi_2/null_regress_39068_test.dart @@ -4,6 +4,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import "dart:ffi"; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/null_test.dart b/tests/ffi_2/null_test.dart index ec7b83712ef..d852cd8bede 100644 --- a/tests/ffi_2/null_test.dart +++ b/tests/ffi_2/null_test.dart @@ -15,6 +15,8 @@ // VMOptions=--write-protect-code --no-dual-map-code --stacktrace-every=100 // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/prepare_flutter_bundle.dart b/tests/ffi_2/prepare_flutter_bundle.dart index 8ff944784fc..a72b81932de 100644 --- a/tests/ffi_2/prepare_flutter_bundle.dart +++ b/tests/ffi_2/prepare_flutter_bundle.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/tests/ffi_2/regress_37254_test.dart b/tests/ffi_2/regress_37254_test.dart index cf2378b72be..79afd96bb4b 100644 --- a/tests/ffi_2/regress_37254_test.dart +++ b/tests/ffi_2/regress_37254_test.dart @@ -60,6 +60,8 @@ // // These are the normal Dart assignment rules. +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/regress_39044_test.dart b/tests/ffi_2/regress_39044_test.dart index 785500dab74..38345935dab 100644 --- a/tests/ffi_2/regress_39044_test.dart +++ b/tests/ffi_2/regress_39044_test.dart @@ -7,6 +7,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import "dart:ffi"; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/regress_39063_test.dart b/tests/ffi_2/regress_39063_test.dart index 52dca18d538..ceadda3df9a 100644 --- a/tests/ffi_2/regress_39063_test.dart +++ b/tests/ffi_2/regress_39063_test.dart @@ -7,6 +7,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import "dart:ffi"; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/regress_39885_test.dart b/tests/ffi_2/regress_39885_test.dart index 77de64f3ec9..14911677815 100644 --- a/tests/ffi_2/regress_39885_test.dart +++ b/tests/ffi_2/regress_39885_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:ffi'; import "package:ffi/ffi.dart"; diff --git a/tests/ffi_2/regress_40537_test.dart b/tests/ffi_2/regress_40537_test.dart index d003b21d354..a9983db275d 100644 --- a/tests/ffi_2/regress_40537_test.dart +++ b/tests/ffi_2/regress_40537_test.dart @@ -7,6 +7,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/regress_43016_test.dart b/tests/ffi_2/regress_43016_test.dart index 997e451473c..dda4f3a019d 100644 --- a/tests/ffi_2/regress_43016_test.dart +++ b/tests/ffi_2/regress_43016_test.dart @@ -6,6 +6,8 @@ // // VMOptions=--optimization-counter-threshold=5 +// @dart = 2.9 + import 'dart:ffi'; import 'dylib_utils.dart'; diff --git a/tests/ffi_2/regress_43693_test.dart b/tests/ffi_2/regress_43693_test.dart index 01b7cfd4b54..47e71f5976a 100644 --- a/tests/ffi_2/regress_43693_test.dart +++ b/tests/ffi_2/regress_43693_test.dart @@ -4,6 +4,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import 'package:ffi/ffi.dart'; diff --git a/tests/ffi_2/regress_44985_test.dart b/tests/ffi_2/regress_44985_test.dart index b63931ffbb2..50fbbef5813 100644 --- a/tests/ffi_2/regress_44985_test.dart +++ b/tests/ffi_2/regress_44985_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:ffi"; class S2 extends Struct { diff --git a/tests/ffi_2/regress_44986_test.dart b/tests/ffi_2/regress_44986_test.dart index 739588054e9..ab3bac83d3c 100644 --- a/tests/ffi_2/regress_44986_test.dart +++ b/tests/ffi_2/regress_44986_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:ffi"; class S2 extends Struct { diff --git a/tests/ffi_2/regress_45189_test.dart b/tests/ffi_2/regress_45189_test.dart index 1aff90bc8e7..72ac798cd22 100644 --- a/tests/ffi_2/regress_45189_test.dart +++ b/tests/ffi_2/regress_45189_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:ffi"; import "package:ffi/ffi.dart"; diff --git a/tests/ffi_2/regress_45198_test.dart b/tests/ffi_2/regress_45198_test.dart index 48c12044c8c..49fdc26d651 100644 --- a/tests/ffi_2/regress_45198_test.dart +++ b/tests/ffi_2/regress_45198_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:ffi"; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/regress_45507_test.dart b/tests/ffi_2/regress_45507_test.dart index 926c7199a65..d126d4e97ac 100644 --- a/tests/ffi_2/regress_45507_test.dart +++ b/tests/ffi_2/regress_45507_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:ffi"; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/regress_flutter79441_test.dart b/tests/ffi_2/regress_flutter79441_test.dart index a9b17de0b57..2bce29c8fc1 100644 --- a/tests/ffi_2/regress_flutter79441_test.dart +++ b/tests/ffi_2/regress_flutter79441_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for https://github.com/flutter/flutter/issues/79441. import 'dart:ffi'; diff --git a/tests/ffi_2/regress_jump_to_frame_test.dart b/tests/ffi_2/regress_jump_to_frame_test.dart index 65e8682bcad..7fae296a935 100644 --- a/tests/ffi_2/regress_jump_to_frame_test.dart +++ b/tests/ffi_2/regress_jump_to_frame_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that JumpToFrame does not use LR clobbered by slow path of // TransitionNativeToGenerated. // VMOptions=--use-slow-path --enable-testing-pragmas diff --git a/tests/ffi_2/sizeof_test.dart b/tests/ffi_2/sizeof_test.dart index 35cb36c7c4b..ec65d593c82 100644 --- a/tests/ffi_2/sizeof_test.dart +++ b/tests/ffi_2/sizeof_test.dart @@ -4,6 +4,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/snapshot_test.dart b/tests/ffi_2/snapshot_test.dart index 5bb0b10f9ad..129a8d0b195 100644 --- a/tests/ffi_2/snapshot_test.dart +++ b/tests/ffi_2/snapshot_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // diff --git a/tests/ffi_2/stacktrace_regress_37910_test.dart b/tests/ffi_2/stacktrace_regress_37910_test.dart index 0a76648ffda..3ef8376bd34 100644 --- a/tests/ffi_2/stacktrace_regress_37910_test.dart +++ b/tests/ffi_2/stacktrace_regress_37910_test.dart @@ -4,6 +4,8 @@ // // VMOptions=--stacktrace_every=100 +// @dart = 2.9 + import 'dart:ffi' as ffi; typedef fooFfi1Type = ffi.Int32 Function(); diff --git a/tests/ffi_2/structs_nested_test.dart b/tests/ffi_2/structs_nested_test.dart index 5bcb1b492fd..40e8090591e 100644 --- a/tests/ffi_2/structs_nested_test.dart +++ b/tests/ffi_2/structs_nested_test.dart @@ -6,6 +6,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/structs_packed_test.dart b/tests/ffi_2/structs_packed_test.dart index cec7703974d..b50e10caec5 100644 --- a/tests/ffi_2/structs_packed_test.dart +++ b/tests/ffi_2/structs_packed_test.dart @@ -4,6 +4,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/structs_test.dart b/tests/ffi_2/structs_test.dart index cf37d16c191..813acaa34f6 100644 --- a/tests/ffi_2/structs_test.dart +++ b/tests/ffi_2/structs_test.dart @@ -6,6 +6,8 @@ // // VMOptions=--deterministic --optimization-counter-threshold=50 +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/unaligned_test.dart b/tests/ffi_2/unaligned_test.dart index 3220003f2da..27405ebd0a2 100644 --- a/tests/ffi_2/unaligned_test.dart +++ b/tests/ffi_2/unaligned_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This tests exercises misaligned reads/writes on memory. // // The only architecture on which this is known to fail is arm32 on Android. diff --git a/tests/ffi_2/variance_function_test.dart b/tests/ffi_2/variance_function_test.dart index 210543a0a8c..f9981e70670 100644 --- a/tests/ffi_2/variance_function_test.dart +++ b/tests/ffi_2/variance_function_test.dart @@ -10,6 +10,8 @@ // This file tests subtyping relationships (at compile time and at runtime) of // parameters and return types of ffi trampolines and ffi callback trampolines. +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/very_large_struct.dart b/tests/ffi_2/very_large_struct.dart index ca29143b6c5..16ce9adeb12 100644 --- a/tests/ffi_2/very_large_struct.dart +++ b/tests/ffi_2/very_large_struct.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:ffi'; /// Large sample struct for dart:ffi library. diff --git a/tests/ffi_2/vmspecific_dynamic_library_test.dart b/tests/ffi_2/vmspecific_dynamic_library_test.dart index c15f850c71a..e7d04d3ceed 100644 --- a/tests/ffi_2/vmspecific_dynamic_library_test.dart +++ b/tests/ffi_2/vmspecific_dynamic_library_test.dart @@ -6,6 +6,8 @@ // // SharedObjects=ffi_test_dynamic_library ffi_test_functions +// @dart = 2.9 + import 'dart:io'; import 'dart:ffi'; diff --git a/tests/ffi_2/vmspecific_enable_ffi_test.dart b/tests/ffi_2/vmspecific_enable_ffi_test.dart index 69ae0aaa364..0381db353ef 100644 --- a/tests/ffi_2/vmspecific_enable_ffi_test.dart +++ b/tests/ffi_2/vmspecific_enable_ffi_test.dart @@ -6,6 +6,8 @@ // // VMOptions=--enable-ffi=false +// @dart = 2.9 + import 'dart:ffi'; //# 01: compile-time error import 'package:ffi/ffi.dart'; //# 01: compile-time error diff --git a/tests/ffi_2/vmspecific_function_callbacks_exit_test.dart b/tests/ffi_2/vmspecific_function_callbacks_exit_test.dart index e7f33a214ee..ec8c8b57474 100644 --- a/tests/ffi_2/vmspecific_function_callbacks_exit_test.dart +++ b/tests/ffi_2/vmspecific_function_callbacks_exit_test.dart @@ -7,6 +7,8 @@ // VMOptions= // VMOptions=--use-slow-path // SharedObjects=ffi_test_functions + +// @dart = 2.9 import 'dart:io'; import 'dart:ffi'; import 'dart:isolate'; diff --git a/tests/ffi_2/vmspecific_function_callbacks_negative_test.dart b/tests/ffi_2/vmspecific_function_callbacks_negative_test.dart index 067cec47dcd..f832e0fbf34 100644 --- a/tests/ffi_2/vmspecific_function_callbacks_negative_test.dart +++ b/tests/ffi_2/vmspecific_function_callbacks_negative_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing dart:ffi function pointers with callbacks. +// @dart = 2.9 + import 'dart:ffi'; import 'dylib_utils.dart'; diff --git a/tests/ffi_2/vmspecific_function_callbacks_test.dart b/tests/ffi_2/vmspecific_function_callbacks_test.dart index 510193c10ce..6f8807924f7 100644 --- a/tests/ffi_2/vmspecific_function_callbacks_test.dart +++ b/tests/ffi_2/vmspecific_function_callbacks_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-testing-pragmas --enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--enable-testing-pragmas --no-enable-isolate-groups // diff --git a/tests/ffi_2/vmspecific_function_gc_test.dart b/tests/ffi_2/vmspecific_function_gc_test.dart index e104bcc7f74..c15e9d5acdb 100644 --- a/tests/ffi_2/vmspecific_function_gc_test.dart +++ b/tests/ffi_2/vmspecific_function_gc_test.dart @@ -17,6 +17,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi' as ffi; import "package:expect/expect.dart"; import 'ffi_test_helpers.dart'; diff --git a/tests/ffi_2/vmspecific_function_test.dart b/tests/ffi_2/vmspecific_function_test.dart index 00ea92287f7..ca553177def 100644 --- a/tests/ffi_2/vmspecific_function_test.dart +++ b/tests/ffi_2/vmspecific_function_test.dart @@ -13,6 +13,8 @@ // VMOptions=--write-protect-code --no-dual-map-code --stacktrace-every=100 // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import 'dylib_utils.dart'; diff --git a/tests/ffi_2/vmspecific_handle_dynamically_linked_test.dart b/tests/ffi_2/vmspecific_handle_dynamically_linked_test.dart index 2b6e834ffdb..318be21f654 100644 --- a/tests/ffi_2/vmspecific_handle_dynamically_linked_test.dart +++ b/tests/ffi_2/vmspecific_handle_dynamically_linked_test.dart @@ -4,6 +4,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import 'package:expect/expect.dart'; diff --git a/tests/ffi_2/vmspecific_handle_test.dart b/tests/ffi_2/vmspecific_handle_test.dart index b7416e7bcc0..814d547944e 100644 --- a/tests/ffi_2/vmspecific_handle_test.dart +++ b/tests/ffi_2/vmspecific_handle_test.dart @@ -5,6 +5,8 @@ // SharedObjects=ffi_test_functions // VMOptions=--enable-testing-pragmas +// @dart = 2.9 + import 'dart:ffi'; import 'package:expect/expect.dart'; diff --git a/tests/ffi_2/vmspecific_highmem_32bit_test.dart b/tests/ffi_2/vmspecific_highmem_32bit_test.dart index eeee5fadebf..c97f7d077aa 100644 --- a/tests/ffi_2/vmspecific_highmem_32bit_test.dart +++ b/tests/ffi_2/vmspecific_highmem_32bit_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:ffi'; import 'dart:io'; import 'dart:typed_data'; diff --git a/tests/ffi_2/vmspecific_null_test.dart b/tests/ffi_2/vmspecific_null_test.dart index 2c95fa4165a..f974f956dc4 100644 --- a/tests/ffi_2/vmspecific_null_test.dart +++ b/tests/ffi_2/vmspecific_null_test.dart @@ -8,6 +8,8 @@ // // SharedObjects=ffi_test_dynamic_library ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import 'package:expect/expect.dart'; diff --git a/tests/ffi_2/vmspecific_object_gc_test.dart b/tests/ffi_2/vmspecific_object_gc_test.dart index c1d9f9ce248..6f5bfe7c2b0 100644 --- a/tests/ffi_2/vmspecific_object_gc_test.dart +++ b/tests/ffi_2/vmspecific_object_gc_test.dart @@ -6,6 +6,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/vmspecific_regress_37100_test.dart b/tests/ffi_2/vmspecific_regress_37100_test.dart index ef4c6149d72..7f4808c9771 100644 --- a/tests/ffi_2/vmspecific_regress_37100_test.dart +++ b/tests/ffi_2/vmspecific_regress_37100_test.dart @@ -4,6 +4,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:expect/expect.dart"; diff --git a/tests/ffi_2/vmspecific_regress_37511_callbacks_test.dart b/tests/ffi_2/vmspecific_regress_37511_callbacks_test.dart index 0153560ddd5..1615b5624f9 100644 --- a/tests/ffi_2/vmspecific_regress_37511_callbacks_test.dart +++ b/tests/ffi_2/vmspecific_regress_37511_callbacks_test.dart @@ -11,6 +11,8 @@ // TODO(37295): Merge this file with regress_37511_test.dart when callback // support lands. +// @dart = 2.9 + import 'dart:ffi'; import 'ffi_test_helpers.dart'; diff --git a/tests/ffi_2/vmspecific_regress_37511_test.dart b/tests/ffi_2/vmspecific_regress_37511_test.dart index 6d857e52bed..9b60cb56fc3 100644 --- a/tests/ffi_2/vmspecific_regress_37511_test.dart +++ b/tests/ffi_2/vmspecific_regress_37511_test.dart @@ -8,6 +8,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import 'dylib_utils.dart'; diff --git a/tests/ffi_2/vmspecific_regress_37780_test.dart b/tests/ffi_2/vmspecific_regress_37780_test.dart index a6b9f7e8e30..6284cc51c20 100644 --- a/tests/ffi_2/vmspecific_regress_37780_test.dart +++ b/tests/ffi_2/vmspecific_regress_37780_test.dart @@ -4,6 +4,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import 'dylib_utils.dart'; diff --git a/tests/ffi_2/vmspecific_regress_38993_test.dart b/tests/ffi_2/vmspecific_regress_38993_test.dart index e7c43151a75..e9266cce80d 100644 --- a/tests/ffi_2/vmspecific_regress_38993_test.dart +++ b/tests/ffi_2/vmspecific_regress_38993_test.dart @@ -4,6 +4,8 @@ // // Tests a compile time error that should not crash the analyzer or CFE. +// @dart = 2.9 + import "dart:ffi"; class C extends Struct { diff --git a/tests/ffi_2/vmspecific_send_port_id_test.dart b/tests/ffi_2/vmspecific_send_port_id_test.dart index abe7ccc044e..9051878ff8a 100644 --- a/tests/ffi_2/vmspecific_send_port_id_test.dart +++ b/tests/ffi_2/vmspecific_send_port_id_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:ffi'; import 'dart:isolate'; diff --git a/tests/ffi_2/vmspecific_static_checks_test.dart b/tests/ffi_2/vmspecific_static_checks_test.dart index 3ae9b0487fd..48e85b8cd26 100644 --- a/tests/ffi_2/vmspecific_static_checks_test.dart +++ b/tests/ffi_2/vmspecific_static_checks_test.dart @@ -6,6 +6,8 @@ // // SharedObjects=ffi_test_dynamic_library ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import "package:ffi/ffi.dart"; diff --git a/tests/ffi_2/vmspecific_variance_function_checks_test.dart b/tests/ffi_2/vmspecific_variance_function_checks_test.dart index c17488c7019..1462acb3ad3 100644 --- a/tests/ffi_2/vmspecific_variance_function_checks_test.dart +++ b/tests/ffi_2/vmspecific_variance_function_checks_test.dart @@ -4,6 +4,8 @@ // // SharedObjects=ffi_test_functions +// @dart = 2.9 + import 'dart:ffi'; import 'dylib_utils.dart'; diff --git a/tests/language_2/abstract/beats_arguments_test.dart b/tests/language_2/abstract/beats_arguments_test.dart index d6687b44572..1d1a80d7a05 100644 --- a/tests/language_2/abstract/beats_arguments_test.dart +++ b/tests/language_2/abstract/beats_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // TODO(rnystrom): This test should be renamed since now it's just about diff --git a/tests/language_2/abstract/equal_test.dart b/tests/language_2/abstract/equal_test.dart index bcfb3e89793..37c49826ec1 100644 --- a/tests/language_2/abstract/equal_test.dart +++ b/tests/language_2/abstract/equal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { bool operator ==(other); const A(); diff --git a/tests/language_2/abstract/exact_selector_runtime_test.dart b/tests/language_2/abstract/exact_selector_runtime_test.dart index ce380371176..2d18f98b425 100644 --- a/tests/language_2/abstract/exact_selector_runtime_test.dart +++ b/tests/language_2/abstract/exact_selector_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/abstract/exact_selector_test.dart b/tests/language_2/abstract/exact_selector_test.dart index 222da8acd1c..23a69e04b24 100644 --- a/tests/language_2/abstract/exact_selector_test.dart +++ b/tests/language_2/abstract/exact_selector_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to duplicate some `Object` // methods to handle `noSuchMethod`. diff --git a/tests/language_2/abstract/factory_constructor_runtime_test.dart b/tests/language_2/abstract/factory_constructor_runtime_test.dart index 8743c6da89a..fc7b3517c50 100644 --- a/tests/language_2/abstract/factory_constructor_runtime_test.dart +++ b/tests/language_2/abstract/factory_constructor_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/abstract/factory_constructor_test.dart b/tests/language_2/abstract/factory_constructor_test.dart index 810a3fae545..fbfe12e0f12 100644 --- a/tests/language_2/abstract/factory_constructor_test.dart +++ b/tests/language_2/abstract/factory_constructor_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Exercises issue 2282, factory constructors in abstract classes should // not emit a static type warning diff --git a/tests/language_2/abstract/getter2_test.dart b/tests/language_2/abstract/getter2_test.dart index 19c97db4ee0..e1154d9fd7c 100644 --- a/tests/language_2/abstract/getter2_test.dart +++ b/tests/language_2/abstract/getter2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/abstract/getter_test.dart b/tests/language_2/abstract/getter_test.dart index 74d51da2287..6c3b06a3280 100644 --- a/tests/language_2/abstract/getter_test.dart +++ b/tests/language_2/abstract/getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test to ensure that an abstract getter is not mistaken for a field. diff --git a/tests/language_2/abstract/method_test.dart b/tests/language_2/abstract/method_test.dart index 05370d28d31..fb856c8f6ad 100644 --- a/tests/language_2/abstract/method_test.dart +++ b/tests/language_2/abstract/method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Checks that abstract instance methods are correctly resolved. diff --git a/tests/language_2/abstract/object_method_test.dart b/tests/language_2/abstract/object_method_test.dart index 2d4af77c7ea..87a9e85f155 100644 --- a/tests/language_2/abstract/object_method_test.dart +++ b/tests/language_2/abstract/object_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/abstract/override_adds_optional_args_concrete_subclass_test.dart b/tests/language_2/abstract/override_adds_optional_args_concrete_subclass_test.dart index 12a023f5ecd..7d6596ebbf9 100644 --- a/tests/language_2/abstract/override_adds_optional_args_concrete_subclass_test.dart +++ b/tests/language_2/abstract/override_adds_optional_args_concrete_subclass_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { void foo() {} } diff --git a/tests/language_2/abstract/override_adds_optional_args_concrete_test.dart b/tests/language_2/abstract/override_adds_optional_args_concrete_test.dart index b8232e8c0e9..ad6feaf9cc2 100644 --- a/tests/language_2/abstract/override_adds_optional_args_concrete_test.dart +++ b/tests/language_2/abstract/override_adds_optional_args_concrete_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { void foo() {} } diff --git a/tests/language_2/abstract/override_adds_optional_args_supercall_test.dart b/tests/language_2/abstract/override_adds_optional_args_supercall_test.dart index 2a2bf3e64ab..c29c347be22 100644 --- a/tests/language_2/abstract/override_adds_optional_args_supercall_test.dart +++ b/tests/language_2/abstract/override_adds_optional_args_supercall_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { void foo() {} } diff --git a/tests/language_2/abstract/override_adds_optional_args_test.dart b/tests/language_2/abstract/override_adds_optional_args_test.dart index d139307aae0..b740d588949 100644 --- a/tests/language_2/abstract/override_adds_optional_args_test.dart +++ b/tests/language_2/abstract/override_adds_optional_args_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test exercises a corner case of override checking that is safe from a // soundness perspective, but which we haven't decided whether or not to allow // from a usability perspective. diff --git a/tests/language_2/abstract/syntax_runtime_test.dart b/tests/language_2/abstract/syntax_runtime_test.dart index 86469217a3c..58d46126130 100644 --- a/tests/language_2/abstract/syntax_runtime_test.dart +++ b/tests/language_2/abstract/syntax_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/abstract/syntax_test.dart b/tests/language_2/abstract/syntax_test.dart index a51480bb3d5..028ba03bc1f 100644 --- a/tests/language_2/abstract/syntax_test.dart +++ b/tests/language_2/abstract/syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/accessor_conflict/export2_helper.dart b/tests/language_2/accessor_conflict/export2_helper.dart index 78278214a6c..aeaabb713ee 100644 --- a/tests/language_2/accessor_conflict/export2_helper.dart +++ b/tests/language_2/accessor_conflict/export2_helper.dart @@ -2,5 +2,7 @@ // 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 = 2.9 + export "setter.dart"; export "getter.dart"; diff --git a/tests/language_2/accessor_conflict/export2_test.dart b/tests/language_2/accessor_conflict/export2_test.dart index 58a1a771b34..fa0974c8085 100644 --- a/tests/language_2/accessor_conflict/export2_test.dart +++ b/tests/language_2/accessor_conflict/export2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that a getter and its corresponding setter can be imported from two // different files via a common export. In this test the setter is imported // first. diff --git a/tests/language_2/accessor_conflict/export_helper.dart b/tests/language_2/accessor_conflict/export_helper.dart index ef024375936..0cdfeb702ff 100644 --- a/tests/language_2/accessor_conflict/export_helper.dart +++ b/tests/language_2/accessor_conflict/export_helper.dart @@ -2,5 +2,7 @@ // 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 = 2.9 + export "getter.dart"; export "setter.dart"; diff --git a/tests/language_2/accessor_conflict/export_test.dart b/tests/language_2/accessor_conflict/export_test.dart index babde007887..07e3273c480 100644 --- a/tests/language_2/accessor_conflict/export_test.dart +++ b/tests/language_2/accessor_conflict/export_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that a getter and its corresponding setter can be imported from two // different files via a common export. In this test the getter is imported // first. diff --git a/tests/language_2/accessor_conflict/getter.dart b/tests/language_2/accessor_conflict/getter.dart index 5b8d72fad77..ee5e14e6cb7 100644 --- a/tests/language_2/accessor_conflict/getter.dart +++ b/tests/language_2/accessor_conflict/getter.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + var getValue; get x => getValue; diff --git a/tests/language_2/accessor_conflict/import2_test.dart b/tests/language_2/accessor_conflict/import2_test.dart index 874b3210aaf..52f2fb0942d 100644 --- a/tests/language_2/accessor_conflict/import2_test.dart +++ b/tests/language_2/accessor_conflict/import2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that a getter and its corresponding setter can be imported from two // different files. In this test the setter is imported first. diff --git a/tests/language_2/accessor_conflict/import_prefixed2_test.dart b/tests/language_2/accessor_conflict/import_prefixed2_test.dart index 283decf07c1..267ebf4b792 100644 --- a/tests/language_2/accessor_conflict/import_prefixed2_test.dart +++ b/tests/language_2/accessor_conflict/import_prefixed2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that a getter and its corresponding setter can be imported from two // different files. In this test the setter is imported first. diff --git a/tests/language_2/accessor_conflict/import_prefixed_test.dart b/tests/language_2/accessor_conflict/import_prefixed_test.dart index fdb3ca85f86..8fa2bcc07eb 100644 --- a/tests/language_2/accessor_conflict/import_prefixed_test.dart +++ b/tests/language_2/accessor_conflict/import_prefixed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that a getter and its corresponding setter can be imported from two // different files. In this test the getter is imported first. diff --git a/tests/language_2/accessor_conflict/import_test.dart b/tests/language_2/accessor_conflict/import_test.dart index 49be4e5ae01..aad3437db8f 100644 --- a/tests/language_2/accessor_conflict/import_test.dart +++ b/tests/language_2/accessor_conflict/import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that a getter and its corresponding setter can be imported from two // different files. In this test the getter is imported first. diff --git a/tests/language_2/accessor_conflict/setter.dart b/tests/language_2/accessor_conflict/setter.dart index c3d383b29db..559f7d15823 100644 --- a/tests/language_2/accessor_conflict/setter.dart +++ b/tests/language_2/accessor_conflict/setter.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + var setValue; set x(value) { diff --git a/tests/language_2/argument/assignability_function_typed_runtime_1_test.dart b/tests/language_2/argument/assignability_function_typed_runtime_1_test.dart index 506b3586020..909f90c901a 100644 --- a/tests/language_2/argument/assignability_function_typed_runtime_1_test.dart +++ b/tests/language_2/argument/assignability_function_typed_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/argument/assignability_function_typed_runtime_2_test.dart b/tests/language_2/argument/assignability_function_typed_runtime_2_test.dart index 4a355f27a87..d77618c0101 100644 --- a/tests/language_2/argument/assignability_function_typed_runtime_2_test.dart +++ b/tests/language_2/argument/assignability_function_typed_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/argument/assignability_function_typed_runtime_3_test.dart b/tests/language_2/argument/assignability_function_typed_runtime_3_test.dart index a99329a546b..31b75a06305 100644 --- a/tests/language_2/argument/assignability_function_typed_runtime_3_test.dart +++ b/tests/language_2/argument/assignability_function_typed_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/argument/assignability_function_typed_runtime_4_test.dart b/tests/language_2/argument/assignability_function_typed_runtime_4_test.dart index b33fb9714bb..8a6b65088e5 100644 --- a/tests/language_2/argument/assignability_function_typed_runtime_4_test.dart +++ b/tests/language_2/argument/assignability_function_typed_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/argument/assignability_function_typed_runtime_5_test.dart b/tests/language_2/argument/assignability_function_typed_runtime_5_test.dart index df2ebb30694..257e0d50681 100644 --- a/tests/language_2/argument/assignability_function_typed_runtime_5_test.dart +++ b/tests/language_2/argument/assignability_function_typed_runtime_5_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/argument/assignability_function_typed_runtime_6_test.dart b/tests/language_2/argument/assignability_function_typed_runtime_6_test.dart index f3cbfb8927a..3c25c0b5aa6 100644 --- a/tests/language_2/argument/assignability_function_typed_runtime_6_test.dart +++ b/tests/language_2/argument/assignability_function_typed_runtime_6_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/argument/assignability_function_typed_runtime_7_test.dart b/tests/language_2/argument/assignability_function_typed_runtime_7_test.dart index 2b7ba596847..31aa28c66a2 100644 --- a/tests/language_2/argument/assignability_function_typed_runtime_7_test.dart +++ b/tests/language_2/argument/assignability_function_typed_runtime_7_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/argument/assignability_function_typed_runtime_test.dart b/tests/language_2/argument/assignability_function_typed_runtime_test.dart index 1b8c09ec79f..45375c71d07 100644 --- a/tests/language_2/argument/assignability_function_typed_runtime_test.dart +++ b/tests/language_2/argument/assignability_function_typed_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/argument/assignability_function_typed_test.dart b/tests/language_2/argument/assignability_function_typed_test.dart index de2ebfff31e..561149483b6 100644 --- a/tests/language_2/argument/assignability_function_typed_test.dart +++ b/tests/language_2/argument/assignability_function_typed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void f(num callback(num x)) {} diff --git a/tests/language_2/argument/named_argument_test.dart b/tests/language_2/argument/named_argument_test.dart index d0f0d0e070b..a9b09ecc5f5 100644 --- a/tests/language_2/argument/named_argument_test.dart +++ b/tests/language_2/argument/named_argument_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/argument/named_in_const_creation_test.dart b/tests/language_2/argument/named_in_const_creation_test.dart index 93fe6e5ec25..9db0b4eac55 100644 --- a/tests/language_2/argument/named_in_const_creation_test.dart +++ b/tests/language_2/argument/named_in_const_creation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/argument/not_enough_positional_arguments_test.dart b/tests/language_2/argument/not_enough_positional_arguments_test.dart index 9ebd09f84fc..2a0403aafd1 100644 --- a/tests/language_2/argument/not_enough_positional_arguments_test.dart +++ b/tests/language_2/argument/not_enough_positional_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + foo(a, [b]) {} bar(a, {b}) {} diff --git a/tests/language_2/argument/not_enough_positional_runtime_test.dart b/tests/language_2/argument/not_enough_positional_runtime_test.dart index 4ad842450b2..64450ae65ce 100644 --- a/tests/language_2/argument/not_enough_positional_runtime_test.dart +++ b/tests/language_2/argument/not_enough_positional_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/assert/assert_test.dart b/tests/language_2/assert/assert_test.dart index 0e121161bf5..7937336bdc7 100644 --- a/tests/language_2/assert/assert_test.dart +++ b/tests/language_2/assert/assert_test.dart @@ -4,6 +4,8 @@ // VMOptions=--enable-asserts // dart2jsOptions=--enable-asserts +// @dart = 2.9 + // Dart test program testing assert statements. import "package:expect/expect.dart"; diff --git a/tests/language_2/assert/assignable_type_test.dart b/tests/language_2/assert/assignable_type_test.dart index 06b1c8decde..a69b8ee5439 100644 --- a/tests/language_2/assert/assignable_type_test.dart +++ b/tests/language_2/assert/assignable_type_test.dart @@ -4,6 +4,8 @@ // Dart test program to test arithmetic operations. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // This test crashes if we recompute type of AssertAssignableInstr based on its // output types. By doing that we would eliminate not only the unnecessary // AssertAssignableInstr but also the trailing class check. diff --git a/tests/language_2/assert/initializer_const_error2_runtime_test.dart b/tests/language_2/assert/initializer_const_error2_runtime_test.dart index 2ce838bcf12..30d70193d5d 100644 --- a/tests/language_2/assert/initializer_const_error2_runtime_test.dart +++ b/tests/language_2/assert/initializer_const_error2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/assert/initializer_const_error2_test.dart b/tests/language_2/assert/initializer_const_error2_test.dart index f5fa38603f9..26cfb85e3ad 100644 --- a/tests/language_2/assert/initializer_const_error2_test.dart +++ b/tests/language_2/assert/initializer_const_error2_test.dart @@ -6,6 +6,8 @@ // // Test of asserts in initializer lists. +// @dart = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/assert/initializer_const_error_runtime_test.dart b/tests/language_2/assert/initializer_const_error_runtime_test.dart index 682d5637826..2296e0de71d 100644 --- a/tests/language_2/assert/initializer_const_error_runtime_test.dart +++ b/tests/language_2/assert/initializer_const_error_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/assert/initializer_const_error_test.dart b/tests/language_2/assert/initializer_const_error_test.dart index d7ec1fb1272..d3a3db5b7c9 100644 --- a/tests/language_2/assert/initializer_const_error_test.dart +++ b/tests/language_2/assert/initializer_const_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { static bool check(x, y) => x < y; final int x; diff --git a/tests/language_2/assert/initializer_const_function_runtime_test.dart b/tests/language_2/assert/initializer_const_function_runtime_test.dart index ff43fc1d171..78a2d005f3b 100644 --- a/tests/language_2/assert/initializer_const_function_runtime_test.dart +++ b/tests/language_2/assert/initializer_const_function_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/assert/initializer_const_function_test.dart b/tests/language_2/assert/initializer_const_function_test.dart index b581c1dd3df..3c071d8cb4c 100644 --- a/tests/language_2/assert/initializer_const_function_test.dart +++ b/tests/language_2/assert/initializer_const_function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { static bool staticTrue() => true; final int x; diff --git a/tests/language_2/assert/initializer_test.dart b/tests/language_2/assert/initializer_test.dart index b2fe7558218..141b36d864b 100644 --- a/tests/language_2/assert/initializer_test.dart +++ b/tests/language_2/assert/initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program testing assert statements. import "package:expect/expect.dart"; diff --git a/tests/language_2/assert/message_test.dart b/tests/language_2/assert/message_test.dart index e35f7931b0a..df011194bdb 100644 --- a/tests/language_2/assert/message_test.dart +++ b/tests/language_2/assert/message_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/assert/trailing_comma_runtime_test.dart b/tests/language_2/assert/trailing_comma_runtime_test.dart index 066c5f70681..00556ca4b9f 100644 --- a/tests/language_2/assert/trailing_comma_runtime_test.dart +++ b/tests/language_2/assert/trailing_comma_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/assert/trailing_comma_test.dart b/tests/language_2/assert/trailing_comma_test.dart index 7b90068984d..5a27888f71b 100644 --- a/tests/language_2/assert/trailing_comma_test.dart +++ b/tests/language_2/assert/trailing_comma_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { assert(true); assert(true,); diff --git a/tests/language_2/assert/with_message_test.dart b/tests/language_2/assert/with_message_test.dart index 147ee2fb6e6..78c486358a0 100644 --- a/tests/language_2/assert/with_message_test.dart +++ b/tests/language_2/assert/with_message_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/assert/with_type_test_or_cast_test.dart b/tests/language_2/assert/with_type_test_or_cast_test.dart index 85a18ec9d6b..f4138341fc6 100644 --- a/tests/language_2/assert/with_type_test_or_cast_test.dart +++ b/tests/language_2/assert/with_type_test_or_cast_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Issue 3741: generic type tests and casts fail in assertion statements // when run in production mode. // diff --git a/tests/language_2/assign/instance_method_test.dart b/tests/language_2/assign/instance_method_test.dart index 0b4fa358361..f7aea3fddbd 100644 --- a/tests/language_2/assign/instance_method_test.dart +++ b/tests/language_2/assign/instance_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class A { diff --git a/tests/language_2/assign/op_test.dart b/tests/language_2/assign/op_test.dart index 9ee3eae2f83..0f265ffa6a5 100644 --- a/tests/language_2/assign/op_test.dart +++ b/tests/language_2/assign/op_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing assign operators. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; class AssignOpTest { diff --git a/tests/language_2/assign/static_type_runtime_test.dart b/tests/language_2/assign/static_type_runtime_test.dart index 2b0c4a4119c..d916029abe6 100644 --- a/tests/language_2/assign/static_type_runtime_test.dart +++ b/tests/language_2/assign/static_type_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/assign/static_type_test.dart b/tests/language_2/assign/static_type_test.dart index 2362a6f0cf2..e5d475c0247 100644 --- a/tests/language_2/assign/static_type_test.dart +++ b/tests/language_2/assign/static_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test insures that statically initialized variables, fields, and // parameters report compile-time errors. diff --git a/tests/language_2/assign/to_type_runtime_test.dart b/tests/language_2/assign/to_type_runtime_test.dart index ecb363e55e4..ffafd1ba334 100644 --- a/tests/language_2/assign/to_type_runtime_test.dart +++ b/tests/language_2/assign/to_type_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/assign/to_type_test.dart b/tests/language_2/assign/to_type_test.dart index 277012a04be..2548b16933d 100644 --- a/tests/language_2/assign/to_type_test.dart +++ b/tests/language_2/assign/to_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that an attempt to assign to a class, enum, typedef, or type // parameter produces a compile error. diff --git a/tests/language_2/assign/top_method_test.dart b/tests/language_2/assign/top_method_test.dart index 1b889b915f4..b2403446902 100644 --- a/tests/language_2/assign/top_method_test.dart +++ b/tests/language_2/assign/top_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; method() { diff --git a/tests/language_2/async/and_or_test.dart b/tests/language_2/async/and_or_test.dart index b412c175386..086e8e62d6b 100644 --- a/tests/language_2/async/and_or_test.dart +++ b/tests/language_2/async/and_or_test.dart @@ -1,6 +1,8 @@ // 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. + +// @dart = 2.9 import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async/async_test.dart b/tests/language_2/async/async_test.dart index 4093ffdb0e4..db5c44ac24c 100644 --- a/tests/language_2/async/async_test.dart +++ b/tests/language_2/async/async_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/async/await_catch_regression_test.dart b/tests/language_2/async/await_catch_regression_test.dart index b83b0b1b0f2..4fea20578b5 100644 --- a/tests/language_2/async/await_catch_regression_test.dart +++ b/tests/language_2/async/await_catch_regression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async/await_foreign_test.dart b/tests/language_2/async/await_foreign_test.dart index 2674f9551d8..92abe155618 100644 --- a/tests/language_2/async/await_foreign_test.dart +++ b/tests/language_2/async/await_foreign_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/language_2/async/await_syntax_test.dart b/tests/language_2/async/await_syntax_test.dart index dcc193cd603..687935b429a 100644 --- a/tests/language_2/async/await_syntax_test.dart +++ b/tests/language_2/async/await_syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test async/await syntax. import 'dart:async' show Stream; diff --git a/tests/language_2/async/await_test.dart b/tests/language_2/async/await_test.dart index 8c7bf2f409a..6b6443d6a83 100644 --- a/tests/language_2/async/await_test.dart +++ b/tests/language_2/async/await_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library async_await_test; import "package:expect/expect.dart"; diff --git a/tests/language_2/async/backwards_compatibility_1_test.dart b/tests/language_2/async/backwards_compatibility_1_test.dart index b11fad52d88..b29fa7ec509 100644 --- a/tests/language_2/async/backwards_compatibility_1_test.dart +++ b/tests/language_2/async/backwards_compatibility_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'helper_lib.dart' as async; diff --git a/tests/language_2/async/backwards_compatibility_2_test.dart b/tests/language_2/async/backwards_compatibility_2_test.dart index 7fe1a9e11df..c295d6d3d7a 100644 --- a/tests/language_2/async/backwards_compatibility_2_test.dart +++ b/tests/language_2/async/backwards_compatibility_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + int get async { return 1; } diff --git a/tests/language_2/async/break_in_finally_test.dart b/tests/language_2/async/break_in_finally_test.dart index c7af1171898..72232f5c2df 100644 --- a/tests/language_2/async/break_in_finally_test.dart +++ b/tests/language_2/async/break_in_finally_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async/call_test.dart b/tests/language_2/async/call_test.dart index bc107b659e0..9234b11b7a2 100644 --- a/tests/language_2/async/call_test.dart +++ b/tests/language_2/async/call_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async/cascade_test.dart b/tests/language_2/async/cascade_test.dart index 412c95ad00b..6f8d9df9961 100644 --- a/tests/language_2/async/cascade_test.dart +++ b/tests/language_2/async/cascade_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/async/congruence_local_runtime_test.dart b/tests/language_2/async/congruence_local_runtime_test.dart index 55ade0394d4..dfecf905d6b 100644 --- a/tests/language_2/async/congruence_local_runtime_test.dart +++ b/tests/language_2/async/congruence_local_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/async/congruence_local_test.dart b/tests/language_2/async/congruence_local_test.dart index de5fbaa22d8..7a9d30c3c90 100644 --- a/tests/language_2/async/congruence_local_test.dart +++ b/tests/language_2/async/congruence_local_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test verifies that for a local async function, the following three // types are all appropriately matched: // - The static return type diff --git a/tests/language_2/async/congruence_method_runtime_test.dart b/tests/language_2/async/congruence_method_runtime_test.dart index 485941aa562..48ff41a5ff7 100644 --- a/tests/language_2/async/congruence_method_runtime_test.dart +++ b/tests/language_2/async/congruence_method_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/async/congruence_method_test.dart b/tests/language_2/async/congruence_method_test.dart index e9511035817..689b1cee37e 100644 --- a/tests/language_2/async/congruence_method_test.dart +++ b/tests/language_2/async/congruence_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test verifies that for an async method, the following three // types are all appropriately matched: // - The static return type diff --git a/tests/language_2/async/congruence_top_level_test.dart b/tests/language_2/async/congruence_top_level_test.dart index 20b7b54b4d9..85a44a6e648 100644 --- a/tests/language_2/async/congruence_top_level_test.dart +++ b/tests/language_2/async/congruence_top_level_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test verifies that for a top level async function, the following three // types are all appropriately matched: // - The static return type diff --git a/tests/language_2/async/congruence_unnamed_runtime_test.dart b/tests/language_2/async/congruence_unnamed_runtime_test.dart index ae0d9d2e06e..5ba4c18a875 100644 --- a/tests/language_2/async/congruence_unnamed_runtime_test.dart +++ b/tests/language_2/async/congruence_unnamed_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/async/congruence_unnamed_test.dart b/tests/language_2/async/congruence_unnamed_test.dart index ecc2964febd..4c069d9c4a7 100644 --- a/tests/language_2/async/congruence_unnamed_test.dart +++ b/tests/language_2/async/congruence_unnamed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test verifies that for an unnamed async closure, the following three // types are all appropriately matched: // - The static return type diff --git a/tests/language_2/async/continue_label_test.dart b/tests/language_2/async/continue_label_test.dart index c33fa532eb8..9df59e15d66 100644 --- a/tests/language_2/async/continue_label_test.dart +++ b/tests/language_2/async/continue_label_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async/control_structures_test.dart b/tests/language_2/async/control_structures_test.dart index 592ff5afa36..787197c3446 100644 --- a/tests/language_2/async/control_structures_test.dart +++ b/tests/language_2/async/control_structures_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization-counter-threshold=10 --no-background-compilation import 'package:expect/expect.dart'; diff --git a/tests/language_2/async/covariant_type_test.dart b/tests/language_2/async/covariant_type_test.dart index c61967365af..cb050f79b72 100644 --- a/tests/language_2/async/covariant_type_test.dart +++ b/tests/language_2/async/covariant_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that TypeErrors happen for async methods without using returned Future. import 'dart:async'; diff --git a/tests/language_2/async/dcall_type_test.dart b/tests/language_2/async/dcall_type_test.dart index b3ffbe694c7..96d7a2e9a0f 100644 --- a/tests/language_2/async/dcall_type_test.dart +++ b/tests/language_2/async/dcall_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that TypeErrors happen for async methods without using returned Future. import 'dart:async'; diff --git a/tests/language_2/async/error_timing_test.dart b/tests/language_2/async/error_timing_test.dart index 4b840c75384..dd4251c4e0b 100644 --- a/tests/language_2/async/error_timing_test.dart +++ b/tests/language_2/async/error_timing_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/language_2/async/finally_rethrow_test.dart b/tests/language_2/async/finally_rethrow_test.dart index 50b1cb348bf..5cdb7df896f 100644 --- a/tests/language_2/async/finally_rethrow_test.dart +++ b/tests/language_2/async/finally_rethrow_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/language_2/async/helper_lib.dart b/tests/language_2/async/helper_lib.dart index e91efac5538..51e6a216fa2 100644 --- a/tests/language_2/async/helper_lib.dart +++ b/tests/language_2/async/helper_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library async; class async {} diff --git a/tests/language_2/async/identifier_test.dart b/tests/language_2/async/identifier_test.dart index ad935d2d8f0..c53ca4f3f31 100644 --- a/tests/language_2/async/identifier_test.dart +++ b/tests/language_2/async/identifier_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions= // VMOptions=--dwarf_stack_traces --no-retain_function_objects --no-retain_code_objects diff --git a/tests/language_2/async/lib.dart b/tests/language_2/async/lib.dart index a6be0370eb7..ce829a95752 100644 --- a/tests/language_2/async/lib.dart +++ b/tests/language_2/async/lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Helper library for async_identifier_test.dart int async; diff --git a/tests/language_2/async/or_generator_return_type_stacktrace_runtime_test.dart b/tests/language_2/async/or_generator_return_type_stacktrace_runtime_test.dart index e41973ae7b1..8adb77ea535 100644 --- a/tests/language_2/async/or_generator_return_type_stacktrace_runtime_test.dart +++ b/tests/language_2/async/or_generator_return_type_stacktrace_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/async/or_generator_return_type_stacktrace_test.dart b/tests/language_2/async/or_generator_return_type_stacktrace_test.dart index a6de93676a1..414686c4bab 100644 --- a/tests/language_2/async/or_generator_return_type_stacktrace_test.dart +++ b/tests/language_2/async/or_generator_return_type_stacktrace_test.dart @@ -2,20 +2,22 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int badReturnTypeAsync() async {} -// [error line 7, column 1, length 3] +// [error line 9, column 1, length 3] // [analyzer] COMPILE_TIME_ERROR.ILLEGAL_ASYNC_RETURN_TYPE // ^ // [cfe] Functions marked 'async' must have a return type assignable to 'Future'. int badReturnTypeAsyncStar() async* {} -// [error line 12, column 1, length 3] +// [error line 14, column 1, length 3] // [analyzer] COMPILE_TIME_ERROR.ILLEGAL_ASYNC_GENERATOR_RETURN_TYPE // ^ // [cfe] Functions marked 'async*' must have a return type assignable to 'Stream'. int badReturnTypeSyncStar() sync* {} -// [error line 17, column 1, length 3] +// [error line 19, column 1, length 3] // [analyzer] COMPILE_TIME_ERROR.ILLEGAL_SYNC_GENERATOR_RETURN_TYPE // ^ // [cfe] Functions marked 'sync*' must have a return type assignable to 'Iterable'. diff --git a/tests/language_2/async/regression_23058_test.dart b/tests/language_2/async/regression_23058_test.dart index 088dac6442e..7947806fb95 100644 --- a/tests/language_2/async/regression_23058_test.dart +++ b/tests/language_2/async/regression_23058_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 23058. import "package:expect/expect.dart"; diff --git a/tests/language_2/async/rethrow_test.dart b/tests/language_2/async/rethrow_test.dart index 9ed117c6ead..be87dfd1148 100644 --- a/tests/language_2/async/rethrow_test.dart +++ b/tests/language_2/async/rethrow_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/language_2/async/return_throw_test.dart b/tests/language_2/async/return_throw_test.dart index 43c9271c5d5..d24c4c5fe8e 100644 --- a/tests/language_2/async/return_throw_test.dart +++ b/tests/language_2/async/return_throw_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; Future f() async { diff --git a/tests/language_2/async/return_types_runtime_test.dart b/tests/language_2/async/return_types_runtime_test.dart index b8c1de6a5f4..34f4142f560 100644 --- a/tests/language_2/async/return_types_runtime_test.dart +++ b/tests/language_2/async/return_types_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/async/return_types_test.dart b/tests/language_2/async/return_types_test.dart index 66853a73789..d976b5bc0a4 100644 --- a/tests/language_2/async/return_types_test.dart +++ b/tests/language_2/async/return_types_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; @@ -23,7 +25,7 @@ foo3() async { } Future -// [error line 25, column 1, length 19] +// [error line 27, column 1, length 19] // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_TYPE_ARGUMENTS // [cfe] Expected 1 type arguments. foo4() async { @@ -31,10 +33,10 @@ foo4() async { } int -// [error line 33, column 1, length 3] +// [error line 35, column 1, length 3] // [analyzer] COMPILE_TIME_ERROR.ILLEGAL_ASYNC_RETURN_TYPE foo5() async { -// [error line 36, column 1] +// [error line 38, column 1] // [cfe] Functions marked 'async' must have a return type assignable to 'Future'. return 3; } @@ -57,9 +59,9 @@ Iterable foo8() sync* { return 8; //^^^^^^ // [analyzer] COMPILE_TIME_ERROR.RETURN_IN_GENERATOR -// [cfe] 'sync*' and 'async*' can't return a value. //^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.RETURN_IN_GENERATOR +// [cfe] 'sync*' and 'async*' can't return a value. } Stream foo9() async* { @@ -68,9 +70,9 @@ Stream foo9() async* { return 8; //^^^^^^ // [analyzer] COMPILE_TIME_ERROR.RETURN_IN_GENERATOR -// [cfe] 'sync*' and 'async*' can't return a value. //^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.RETURN_IN_GENERATOR +// [cfe] 'sync*' and 'async*' can't return a value. } test() async { diff --git a/tests/language_2/async/switch_test.dart b/tests/language_2/async/switch_test.dart index dc9bf755237..7d8754aaacc 100644 --- a/tests/language_2/async/switch_test.dart +++ b/tests/language_2/async/switch_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async/this_bound_test.dart b/tests/language_2/async/this_bound_test.dart index 50d31a44c5a..f5d724e6b3d 100644 --- a/tests/language_2/async/this_bound_test.dart +++ b/tests/language_2/async/this_bound_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async/throw_in_catch_test.dart b/tests/language_2/async/throw_in_catch_test.dart index f32b8932709..f2489821ce1 100644 --- a/tests/language_2/async/throw_in_catch_test.dart +++ b/tests/language_2/async/throw_in_catch_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async_nested/async_nested01_test.dart b/tests/language_2/async_nested/async_nested01_test.dart index a4d089182ac..0eea7942d83 100644 --- a/tests/language_2/async_nested/async_nested01_test.dart +++ b/tests/language_2/async_nested/async_nested01_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested02_test.dart b/tests/language_2/async_nested/async_nested02_test.dart index 5d42d9ed26d..e5efb09c3ef 100644 --- a/tests/language_2/async_nested/async_nested02_test.dart +++ b/tests/language_2/async_nested/async_nested02_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested03_test.dart b/tests/language_2/async_nested/async_nested03_test.dart index 5b485accd87..863fb09518a 100644 --- a/tests/language_2/async_nested/async_nested03_test.dart +++ b/tests/language_2/async_nested/async_nested03_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested04_test.dart b/tests/language_2/async_nested/async_nested04_test.dart index 1731ccd8849..3f2890a6653 100644 --- a/tests/language_2/async_nested/async_nested04_test.dart +++ b/tests/language_2/async_nested/async_nested04_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested05_test.dart b/tests/language_2/async_nested/async_nested05_test.dart index 88a0aff39e6..95387e398de 100644 --- a/tests/language_2/async_nested/async_nested05_test.dart +++ b/tests/language_2/async_nested/async_nested05_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested06_test.dart b/tests/language_2/async_nested/async_nested06_test.dart index 787a29271a8..551eb384f32 100644 --- a/tests/language_2/async_nested/async_nested06_test.dart +++ b/tests/language_2/async_nested/async_nested06_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested07_test.dart b/tests/language_2/async_nested/async_nested07_test.dart index 7a56f3deb34..3571995a246 100644 --- a/tests/language_2/async_nested/async_nested07_test.dart +++ b/tests/language_2/async_nested/async_nested07_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested08_test.dart b/tests/language_2/async_nested/async_nested08_test.dart index 43f5f251226..be11233340e 100644 --- a/tests/language_2/async_nested/async_nested08_test.dart +++ b/tests/language_2/async_nested/async_nested08_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested09_test.dart b/tests/language_2/async_nested/async_nested09_test.dart index 48b383da4df..bd7057a9b9a 100644 --- a/tests/language_2/async_nested/async_nested09_test.dart +++ b/tests/language_2/async_nested/async_nested09_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested10_test.dart b/tests/language_2/async_nested/async_nested10_test.dart index 8af92fc3805..06e15c2d70f 100644 --- a/tests/language_2/async_nested/async_nested10_test.dart +++ b/tests/language_2/async_nested/async_nested10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested11_test.dart b/tests/language_2/async_nested/async_nested11_test.dart index 15e1bd620a7..c9641a7c6db 100644 --- a/tests/language_2/async_nested/async_nested11_test.dart +++ b/tests/language_2/async_nested/async_nested11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested12_test.dart b/tests/language_2/async_nested/async_nested12_test.dart index 514632dee68..db02de61e86 100644 --- a/tests/language_2/async_nested/async_nested12_test.dart +++ b/tests/language_2/async_nested/async_nested12_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested13_test.dart b/tests/language_2/async_nested/async_nested13_test.dart index cfb9a95b638..a607205b916 100644 --- a/tests/language_2/async_nested/async_nested13_test.dart +++ b/tests/language_2/async_nested/async_nested13_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested14_test.dart b/tests/language_2/async_nested/async_nested14_test.dart index 4f43ef9b61b..a39870b30a7 100644 --- a/tests/language_2/async_nested/async_nested14_test.dart +++ b/tests/language_2/async_nested/async_nested14_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested15_test.dart b/tests/language_2/async_nested/async_nested15_test.dart index 140d1ff70bf..83e5292f47e 100644 --- a/tests/language_2/async_nested/async_nested15_test.dart +++ b/tests/language_2/async_nested/async_nested15_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested16_test.dart b/tests/language_2/async_nested/async_nested16_test.dart index 1e4a945619f..aa742d452fa 100644 --- a/tests/language_2/async_nested/async_nested16_test.dart +++ b/tests/language_2/async_nested/async_nested16_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested17_test.dart b/tests/language_2/async_nested/async_nested17_test.dart index 8f7584d7260..62aa700a50f 100644 --- a/tests/language_2/async_nested/async_nested17_test.dart +++ b/tests/language_2/async_nested/async_nested17_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested18_test.dart b/tests/language_2/async_nested/async_nested18_test.dart index 6c68db7fa7d..73cb3aef23f 100644 --- a/tests/language_2/async_nested/async_nested18_test.dart +++ b/tests/language_2/async_nested/async_nested18_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested19_test.dart b/tests/language_2/async_nested/async_nested19_test.dart index 21aadf7784e..46c48bf8135 100644 --- a/tests/language_2/async_nested/async_nested19_test.dart +++ b/tests/language_2/async_nested/async_nested19_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested20_test.dart b/tests/language_2/async_nested/async_nested20_test.dart index 217d46b2ce3..2d13af9fda2 100644 --- a/tests/language_2/async_nested/async_nested20_test.dart +++ b/tests/language_2/async_nested/async_nested20_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested21_test.dart b/tests/language_2/async_nested/async_nested21_test.dart index b2eb8e25711..a7fe3aed423 100644 --- a/tests/language_2/async_nested/async_nested21_test.dart +++ b/tests/language_2/async_nested/async_nested21_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested22_test.dart b/tests/language_2/async_nested/async_nested22_test.dart index 5184ee9dbd0..f407cd60bb4 100644 --- a/tests/language_2/async_nested/async_nested22_test.dart +++ b/tests/language_2/async_nested/async_nested22_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested23_test.dart b/tests/language_2/async_nested/async_nested23_test.dart index 53f011e92bd..b7082d5800b 100644 --- a/tests/language_2/async_nested/async_nested23_test.dart +++ b/tests/language_2/async_nested/async_nested23_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested24_test.dart b/tests/language_2/async_nested/async_nested24_test.dart index 52a68786805..66a18f0df9f 100644 --- a/tests/language_2/async_nested/async_nested24_test.dart +++ b/tests/language_2/async_nested/async_nested24_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested25_test.dart b/tests/language_2/async_nested/async_nested25_test.dart index 6020ccf5937..9606cad1526 100644 --- a/tests/language_2/async_nested/async_nested25_test.dart +++ b/tests/language_2/async_nested/async_nested25_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested26_test.dart b/tests/language_2/async_nested/async_nested26_test.dart index 23a7165fa3b..a9e0e9c5ade 100644 --- a/tests/language_2/async_nested/async_nested26_test.dart +++ b/tests/language_2/async_nested/async_nested26_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested27_test.dart b/tests/language_2/async_nested/async_nested27_test.dart index 629bfdcd78b..2c832cd596f 100644 --- a/tests/language_2/async_nested/async_nested27_test.dart +++ b/tests/language_2/async_nested/async_nested27_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested28_test.dart b/tests/language_2/async_nested/async_nested28_test.dart index 8106fee5abc..c9b4bf4597b 100644 --- a/tests/language_2/async_nested/async_nested28_test.dart +++ b/tests/language_2/async_nested/async_nested28_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested29_test.dart b/tests/language_2/async_nested/async_nested29_test.dart index 25671db8a9b..b312e4fb0ef 100644 --- a/tests/language_2/async_nested/async_nested29_test.dart +++ b/tests/language_2/async_nested/async_nested29_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested30_test.dart b/tests/language_2/async_nested/async_nested30_test.dart index 97a958a43d1..c98b92a2172 100644 --- a/tests/language_2/async_nested/async_nested30_test.dart +++ b/tests/language_2/async_nested/async_nested30_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested31_test.dart b/tests/language_2/async_nested/async_nested31_test.dart index f07f42fe0a3..ccf6a0d34f1 100644 --- a/tests/language_2/async_nested/async_nested31_test.dart +++ b/tests/language_2/async_nested/async_nested31_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested32_test.dart b/tests/language_2/async_nested/async_nested32_test.dart index 0adec4f659b..ca169a229f7 100644 --- a/tests/language_2/async_nested/async_nested32_test.dart +++ b/tests/language_2/async_nested/async_nested32_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested33_test.dart b/tests/language_2/async_nested/async_nested33_test.dart index c8d92cc96ff..ce7f5b8f798 100644 --- a/tests/language_2/async_nested/async_nested33_test.dart +++ b/tests/language_2/async_nested/async_nested33_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested34_test.dart b/tests/language_2/async_nested/async_nested34_test.dart index 9a225235432..b510e5bd986 100644 --- a/tests/language_2/async_nested/async_nested34_test.dart +++ b/tests/language_2/async_nested/async_nested34_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested35_test.dart b/tests/language_2/async_nested/async_nested35_test.dart index 8d8f91cd573..a94b750972b 100644 --- a/tests/language_2/async_nested/async_nested35_test.dart +++ b/tests/language_2/async_nested/async_nested35_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested36_test.dart b/tests/language_2/async_nested/async_nested36_test.dart index 7eb30eef1fa..db491d63dce 100644 --- a/tests/language_2/async_nested/async_nested36_test.dart +++ b/tests/language_2/async_nested/async_nested36_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested37_test.dart b/tests/language_2/async_nested/async_nested37_test.dart index a98b5d8b970..d43ae706dcc 100644 --- a/tests/language_2/async_nested/async_nested37_test.dart +++ b/tests/language_2/async_nested/async_nested37_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested38_test.dart b/tests/language_2/async_nested/async_nested38_test.dart index c7e4b2a03b2..8272c1e21b0 100644 --- a/tests/language_2/async_nested/async_nested38_test.dart +++ b/tests/language_2/async_nested/async_nested38_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested39_test.dart b/tests/language_2/async_nested/async_nested39_test.dart index 8ee3931eee2..e029484660e 100644 --- a/tests/language_2/async_nested/async_nested39_test.dart +++ b/tests/language_2/async_nested/async_nested39_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested40_test.dart b/tests/language_2/async_nested/async_nested40_test.dart index a53913a72cf..c631f92b1a8 100644 --- a/tests/language_2/async_nested/async_nested40_test.dart +++ b/tests/language_2/async_nested/async_nested40_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_nested/async_nested41_test.dart b/tests/language_2/async_nested/async_nested41_test.dart index dddc115efe2..105e525e39d 100644 --- a/tests/language_2/async_nested/async_nested41_test.dart +++ b/tests/language_2/async_nested/async_nested41_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has been automatically generated by script // "async_nested_test_generator.dart". diff --git a/tests/language_2/async_star/async_star2_regression_test.dart b/tests/language_2/async_star/async_star2_regression_test.dart index 7c8acfc9ea2..07e8e44985f 100644 --- a/tests/language_2/async_star/async_star2_regression_test.dart +++ b/tests/language_2/async_star/async_star2_regression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library async_start_test; import "dart:async"; diff --git a/tests/language_2/async_star/async_star_await_for_test.dart b/tests/language_2/async_star/async_star_await_for_test.dart index 0493a1f1880..980f8c7c4d8 100644 --- a/tests/language_2/async_star/async_star_await_for_test.dart +++ b/tests/language_2/async_star/async_star_await_for_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that `await for` and `async*` interact correctly. // An `await for` must pause its subscription immediately diff --git a/tests/language_2/async_star/async_star_cancel_test.dart b/tests/language_2/async_star/async_star_cancel_test.dart index c23c6baabf4..80f716c4aef 100644 --- a/tests/language_2/async_star/async_star_cancel_test.dart +++ b/tests/language_2/async_star/async_star_cancel_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that stream cancellation is checked immediately after delivering the // event, and before continuing after the yield. diff --git a/tests/language_2/async_star/async_star_invalid_test.dart b/tests/language_2/async_star/async_star_invalid_test.dart index 0c5199f557e..c4d3123eafb 100644 --- a/tests/language_2/async_star/async_star_invalid_test.dart +++ b/tests/language_2/async_star/async_star_invalid_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that various invalid uses of `yield` are disallowed. import "dart:async"; diff --git a/tests/language_2/async_star/async_star_test.dart b/tests/language_2/async_star/async_star_test.dart index 819039ee038..28d9b7fc0f0 100644 --- a/tests/language_2/async_star/async_star_test.dart +++ b/tests/language_2/async_star/async_star_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async_star/await_for_test.dart b/tests/language_2/async_star/await_for_test.dart index fb99084ef68..cef97c1d984 100644 --- a/tests/language_2/async_star/await_for_test.dart +++ b/tests/language_2/async_star/await_for_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/language_2/async_star/await_pauses_test.dart b/tests/language_2/async_star/await_pauses_test.dart index d1887ab52f1..cde8a0a21fe 100644 --- a/tests/language_2/async_star/await_pauses_test.dart +++ b/tests/language_2/async_star/await_pauses_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async_star/basic_test.dart b/tests/language_2/async_star/basic_test.dart index 73a956d4c4e..92f437dd102 100644 --- a/tests/language_2/async_star/basic_test.dart +++ b/tests/language_2/async_star/basic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/language_2/async_star/cancel_and_throw_in_finally_test.dart b/tests/language_2/async_star/cancel_and_throw_in_finally_test.dart index cd7a68a2210..7773af7a684 100644 --- a/tests/language_2/async_star/cancel_and_throw_in_finally_test.dart +++ b/tests/language_2/async_star/cancel_and_throw_in_finally_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async_star/cancel_test.dart b/tests/language_2/async_star/cancel_test.dart index 18c27871627..1c01a34c33c 100644 --- a/tests/language_2/async_star/cancel_test.dart +++ b/tests/language_2/async_star/cancel_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/language_2/async_star/cancel_while_paused_at_yield_test.dart b/tests/language_2/async_star/cancel_while_paused_at_yield_test.dart index af7e846dd59..d2c8abb0d65 100644 --- a/tests/language_2/async_star/cancel_while_paused_at_yield_test.dart +++ b/tests/language_2/async_star/cancel_while_paused_at_yield_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/language_2/async_star/cancel_while_paused_test.dart b/tests/language_2/async_star/cancel_while_paused_test.dart index 28fee199ca5..ec9040a33c9 100644 --- a/tests/language_2/async_star/cancel_while_paused_test.dart +++ b/tests/language_2/async_star/cancel_while_paused_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This is a regression test for issue 22853. import "dart:async"; diff --git a/tests/language_2/async_star/concat_test.dart b/tests/language_2/async_star/concat_test.dart index 222e3cf6d6b..793f8b3f2ce 100644 --- a/tests/language_2/async_star/concat_test.dart +++ b/tests/language_2/async_star/concat_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async_star/covariant_type_test.dart b/tests/language_2/async_star/covariant_type_test.dart index 836daf00047..47e9789498f 100644 --- a/tests/language_2/async_star/covariant_type_test.dart +++ b/tests/language_2/async_star/covariant_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that TypeErrors for async* methods happen without using returned Stream. import 'dart:async'; diff --git a/tests/language_2/async_star/dcall_type_test.dart b/tests/language_2/async_star/dcall_type_test.dart index 1330a6df59c..972c917f558 100644 --- a/tests/language_2/async_star/dcall_type_test.dart +++ b/tests/language_2/async_star/dcall_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that TypeErrors for async* methods happen without using returned Stream. import 'dart:async'; diff --git a/tests/language_2/async_star/error_test.dart b/tests/language_2/async_star/error_test.dart index dc06e5ae4c1..5d279f4dea9 100644 --- a/tests/language_2/async_star/error_test.dart +++ b/tests/language_2/async_star/error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:async_helper/async_minitest.dart"; diff --git a/tests/language_2/async_star/loops_test.dart b/tests/language_2/async_star/loops_test.dart index 8d6df7c9660..1c65c70616a 100644 --- a/tests/language_2/async_star/loops_test.dart +++ b/tests/language_2/async_star/loops_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_minitest.dart'; import 'utils.dart'; diff --git a/tests/language_2/async_star/no_cancel2_test.dart b/tests/language_2/async_star/no_cancel2_test.dart index d98b1585c0f..067fccf8489 100644 --- a/tests/language_2/async_star/no_cancel2_test.dart +++ b/tests/language_2/async_star/no_cancel2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async_star/no_cancel_test.dart b/tests/language_2/async_star/no_cancel_test.dart index 453005fa3c2..179bdf0539e 100644 --- a/tests/language_2/async_star/no_cancel_test.dart +++ b/tests/language_2/async_star/no_cancel_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async_star/pause_test.dart b/tests/language_2/async_star/pause_test.dart index 4950e89e861..fbfe05073c2 100644 --- a/tests/language_2/async_star/pause_test.dart +++ b/tests/language_2/async_star/pause_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library async_star_pause_test; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async_star/pause_test2.dart b/tests/language_2/async_star/pause_test2.dart index a240d3db538..11e042985eb 100644 --- a/tests/language_2/async_star/pause_test2.dart +++ b/tests/language_2/async_star/pause_test2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/language_2/async_star/regression_2238_test.dart b/tests/language_2/async_star/regression_2238_test.dart index 9cfffa614a1..515ede1e9d8 100644 --- a/tests/language_2/async_star/regression_2238_test.dart +++ b/tests/language_2/async_star/regression_2238_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This is a regression test for issue 2238 import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/language_2/async_star/regression_23116_test.dart b/tests/language_2/async_star/regression_23116_test.dart index d1c63909e9a..e69059c1cfd 100644 --- a/tests/language_2/async_star/regression_23116_test.dart +++ b/tests/language_2/async_star/regression_23116_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for https://code.google.com/p/dart/issues/detail?id=23116 import "package:expect/expect.dart"; diff --git a/tests/language_2/async_star/regression_fisk_test.dart b/tests/language_2/async_star/regression_fisk_test.dart index 6651c926480..fe01969e902 100644 --- a/tests/language_2/async_star/regression_fisk_test.dart +++ b/tests/language_2/async_star/regression_fisk_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test may crash dart2js. import "dart:async"; diff --git a/tests/language_2/async_star/stream_take_test.dart b/tests/language_2/async_star/stream_take_test.dart index 8fd3a770a9d..e8a01c70445 100644 --- a/tests/language_2/async_star/stream_take_test.dart +++ b/tests/language_2/async_star/stream_take_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async_star/take_reyield_test.dart b/tests/language_2/async_star/take_reyield_test.dart index 62e97c49076..c389bec008f 100644 --- a/tests/language_2/async_star/take_reyield_test.dart +++ b/tests/language_2/async_star/take_reyield_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async_star/throw_in_catch_test.dart b/tests/language_2/async_star/throw_in_catch_test.dart index 884b492c57e..57b6b0e7970 100644 --- a/tests/language_2/async_star/throw_in_catch_test.dart +++ b/tests/language_2/async_star/throw_in_catch_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async_star/utils.dart b/tests/language_2/async_star/utils.dart index dfd97dea106..be8e165c7a9 100644 --- a/tests/language_2/async_star/utils.dart +++ b/tests/language_2/async_star/utils.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/language_2/async_star/void_async_star_test.dart b/tests/language_2/async_star/void_async_star_test.dart index 8e3c77d775b..79bc14f4df9 100644 --- a/tests/language_2/async_star/void_async_star_test.dart +++ b/tests/language_2/async_star/void_async_star_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // It is an error for an `async*` function to have return type `void`. import 'dart:async'; diff --git a/tests/language_2/async_star/yield_expressions_test.dart b/tests/language_2/async_star/yield_expressions_test.dart index fe3578e62ab..9d6527dc09b 100644 --- a/tests/language_2/async_star/yield_expressions_test.dart +++ b/tests/language_2/async_star/yield_expressions_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_minitest.dart'; import 'utils.dart'; diff --git a/tests/language_2/async_star/yield_from_catch_test.dart b/tests/language_2/async_star/yield_from_catch_test.dart index 0f08c1fb254..3af2d083b67 100644 --- a/tests/language_2/async_star/yield_from_catch_test.dart +++ b/tests/language_2/async_star/yield_from_catch_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for issue: https://github.com/dart-lang/sdk/issues/39994 import "dart:async"; diff --git a/tests/language_2/async_star/yield_statement_context_test.dart b/tests/language_2/async_star/yield_statement_context_test.dart index 7320f028a1a..e512b3f01cc 100644 --- a/tests/language_2/async_star/yield_statement_context_test.dart +++ b/tests/language_2/async_star/yield_statement_context_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_minitest.dart'; import 'utils.dart'; diff --git a/tests/language_2/async_star/yield_test.dart b/tests/language_2/async_star/yield_test.dart index 1ead7152b31..081174fe2c8 100644 --- a/tests/language_2/async_star/yield_test.dart +++ b/tests/language_2/async_star/yield_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/async_star/yieldstar_test.dart b/tests/language_2/async_star/yieldstar_test.dart index 55130d745ef..23647a49452 100644 --- a/tests/language_2/async_star/yieldstar_test.dart +++ b/tests/language_2/async_star/yieldstar_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/await/and_ifnull_test.dart b/tests/language_2/await/and_ifnull_test.dart index d9a38f3e40c..b1ec0cf24db 100644 --- a/tests/language_2/await/and_ifnull_test.dart +++ b/tests/language_2/await/and_ifnull_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/await/await_test.dart b/tests/language_2/await/await_test.dart index ff1fe91318d..22aa1833ce4 100644 --- a/tests/language_2/await/await_test.dart +++ b/tests/language_2/await/await_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=---optimization-counter-threshold=10 import 'package:expect/expect.dart'; diff --git a/tests/language_2/await/backwards_compatibility_runtime_test.dart b/tests/language_2/await/backwards_compatibility_runtime_test.dart index e2575580aec..c755f58b403 100644 --- a/tests/language_2/await/backwards_compatibility_runtime_test.dart +++ b/tests/language_2/await/backwards_compatibility_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/await/backwards_compatibility_test.dart b/tests/language_2/await/backwards_compatibility_test.dart index ea6084c69cf..f8960bcc6f4 100644 --- a/tests/language_2/await/backwards_compatibility_test.dart +++ b/tests/language_2/await/backwards_compatibility_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/await/exceptions_test.dart b/tests/language_2/await/exceptions_test.dart index c141edc5abc..6a9f2f5e17b 100644 --- a/tests/language_2/await/exceptions_test.dart +++ b/tests/language_2/await/exceptions_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization-counter-threshold=5 import 'package:expect/expect.dart'; diff --git a/tests/language_2/await/for_cancel_test.dart b/tests/language_2/await/for_cancel_test.dart index c308b4f5e23..981c7b64752 100644 --- a/tests/language_2/await/for_cancel_test.dart +++ b/tests/language_2/await/for_cancel_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/await/for_test.dart b/tests/language_2/await/for_test.dart index a655d5f9548..214a61f39de 100644 --- a/tests/language_2/await/for_test.dart +++ b/tests/language_2/await/for_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/await/for_use_local_test.dart b/tests/language_2/await/for_use_local_test.dart index a8df068e681..2b72662b0c9 100644 --- a/tests/language_2/await/for_use_local_test.dart +++ b/tests/language_2/await/for_use_local_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/await/future_test.dart b/tests/language_2/await/future_test.dart index 55acba5d82e..c927f6f178c 100644 --- a/tests/language_2/await/future_test.dart +++ b/tests/language_2/await/future_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization-counter-threshold=5 import 'package:expect/expect.dart'; diff --git a/tests/language_2/await/in_cascade_test.dart b/tests/language_2/await/in_cascade_test.dart index 7049e737daa..86bda2a834c 100644 --- a/tests/language_2/await/in_cascade_test.dart +++ b/tests/language_2/await/in_cascade_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/await/nonfuture_test.dart b/tests/language_2/await/nonfuture_test.dart index 1aa6855ff6d..6d5eb4a8362 100644 --- a/tests/language_2/await/nonfuture_test.dart +++ b/tests/language_2/await/nonfuture_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization-counter-threshold=5 import 'package:expect/expect.dart'; diff --git a/tests/language_2/await/null_aware_test.dart b/tests/language_2/await/null_aware_test.dart index 483d9dd396a..9c6b273da77 100644 --- a/tests/language_2/await/null_aware_test.dart +++ b/tests/language_2/await/null_aware_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue dartbug.com/24392 import 'package:expect/expect.dart'; diff --git a/tests/language_2/await/postfix_expr_test.dart b/tests/language_2/await/postfix_expr_test.dart index e0037f4cfca..787ebab7343 100644 --- a/tests/language_2/await/postfix_expr_test.dart +++ b/tests/language_2/await/postfix_expr_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/await/regression_test.dart b/tests/language_2/await/regression_test.dart index 44031d8bb9f..1bd365db575 100644 --- a/tests/language_2/await/regression_test.dart +++ b/tests/language_2/await/regression_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/await/started_immediately_test.dart b/tests/language_2/await/started_immediately_test.dart index c21591f5c0b..28361d24e58 100644 --- a/tests/language_2/await/started_immediately_test.dart +++ b/tests/language_2/await/started_immediately_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that an async function does start immediately. import "package:expect/expect.dart"; diff --git a/tests/language_2/await_type_error_test.dart b/tests/language_2/await_type_error_test.dart index b838fcc6730..d680d5d0cf3 100644 --- a/tests/language_2/await_type_error_test.dart +++ b/tests/language_2/await_type_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/await_type_test.dart b/tests/language_2/await_type_test.dart index 349beac1c57..396b70e1dea 100644 --- a/tests/language_2/await_type_test.dart +++ b/tests/language_2/await_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/bool/bool_test.dart b/tests/language_2/bool/bool_test.dart index 51d4d9f82bc..642e2eff85b 100644 --- a/tests/language_2/bool/bool_test.dart +++ b/tests/language_2/bool/bool_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class BoolTest { diff --git a/tests/language_2/bool/check_test.dart b/tests/language_2/bool/check_test.dart index d15f6b2a6f8..26faa725522 100644 --- a/tests/language_2/bool/check_test.dart +++ b/tests/language_2/bool/check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // [NNBD non-migrated]: This file is migrated to check_strong_test.dart and // check_weak_test.dart. import "package:expect/expect.dart"; diff --git a/tests/language_2/bool/condition_check_test.dart b/tests/language_2/bool/condition_check_test.dart index e93770de7d5..4ed7925708c 100644 --- a/tests/language_2/bool/condition_check_test.dart +++ b/tests/language_2/bool/condition_check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that passing `null` for a boolean typed parameter will still cause // a boolean conversion error when used in a condition. diff --git a/tests/language_2/bool/has_environment_not_new_test.dart b/tests/language_2/bool/has_environment_not_new_test.dart index 947c6bed579..fdae175596a 100644 --- a/tests/language_2/bool/has_environment_not_new_test.dart +++ b/tests/language_2/bool/has_environment_not_new_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/bool/has_environment_test.dart b/tests/language_2/bool/has_environment_test.dart index df593f1fa8b..df21062f00f 100644 --- a/tests/language_2/bool/has_environment_test.dart +++ b/tests/language_2/bool/has_environment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // SharedOptions=-Da= -Db=b -Dc=Something import 'package:expect/expect.dart'; diff --git a/tests/language_2/call/argument_inference_test.dart b/tests/language_2/call/argument_inference_test.dart index 0af5537d58d..bf5d6ecb2d7 100644 --- a/tests/language_2/call/argument_inference_test.dart +++ b/tests/language_2/call/argument_inference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/call/call_test.dart b/tests/language_2/call/call_test.dart index 882eeb4d249..c912710dba4 100644 --- a/tests/language_2/call/call_test.dart +++ b/tests/language_2/call/call_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/call/closurization_test.dart b/tests/language_2/call/closurization_test.dart index 102413b6b38..32236430730 100644 --- a/tests/language_2/call/closurization_test.dart +++ b/tests/language_2/call/closurization_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + // VMOptions=--lazy-dispatchers // VMOptions=--no-lazy-dispatchers diff --git a/tests/language_2/call/constructor_on_unresolvable_class_runtime_test.dart b/tests/language_2/call/constructor_on_unresolvable_class_runtime_test.dart index 0c30e8b7a81..27064a689a5 100644 --- a/tests/language_2/call/constructor_on_unresolvable_class_runtime_test.dart +++ b/tests/language_2/call/constructor_on_unresolvable_class_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/constructor_on_unresolvable_class_test.dart b/tests/language_2/call/constructor_on_unresolvable_class_test.dart index 6db90ed810e..5686db7f1aa 100644 --- a/tests/language_2/call/constructor_on_unresolvable_class_test.dart +++ b/tests/language_2/call/constructor_on_unresolvable_class_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that calling a constructor of a class that cannot be resolved causes // compile error. diff --git a/tests/language_2/call/function2_test.dart b/tests/language_2/call/function2_test.dart index 6490ebd5993..cdb61c1b1dd 100644 --- a/tests/language_2/call/function2_test.dart +++ b/tests/language_2/call/function2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; typedef Object Func(Object x); diff --git a/tests/language_2/call/function_apply_test.dart b/tests/language_2/call/function_apply_test.dart index 935cfaf832a..1a1180f22ff 100644 --- a/tests/language_2/call/function_apply_test.dart +++ b/tests/language_2/call/function_apply_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/call/function_test.dart b/tests/language_2/call/function_test.dart index 49d8b7cec80..3daecf4712a 100644 --- a/tests/language_2/call/function_test.dart +++ b/tests/language_2/call/function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; Object bar(Object x) { diff --git a/tests/language_2/call/method_as_cast_test.dart b/tests/language_2/call/method_as_cast_test.dart index 48ae3b70278..f6e75e4dccd 100644 --- a/tests/language_2/call/method_as_cast_test.dart +++ b/tests/language_2/call/method_as_cast_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + import "package:expect/expect.dart"; class B {} diff --git a/tests/language_2/call/method_function_typed_value_test.dart b/tests/language_2/call/method_function_typed_value_test.dart index 7aa9ed83e8e..cbc975ea93d 100644 --- a/tests/language_2/call/method_function_typed_value_test.dart +++ b/tests/language_2/call/method_function_typed_value_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + import "package:expect/expect.dart"; int f(int i) => 2 * i; diff --git a/tests/language_2/call/method_implicit_invoke_instance_test.dart b/tests/language_2/call/method_implicit_invoke_instance_test.dart index fdcb12b66e7..975a5bb1fc9 100644 --- a/tests/language_2/call/method_implicit_invoke_instance_test.dart +++ b/tests/language_2/call/method_implicit_invoke_instance_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + import "package:expect/expect.dart"; class C1 { diff --git a/tests/language_2/call/method_implicit_invoke_local_runtime_1_test.dart b/tests/language_2/call/method_implicit_invoke_local_runtime_1_test.dart index 5df9be06d50..98709fff98f 100644 --- a/tests/language_2/call/method_implicit_invoke_local_runtime_1_test.dart +++ b/tests/language_2/call/method_implicit_invoke_local_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/method_implicit_invoke_local_runtime_2_test.dart b/tests/language_2/call/method_implicit_invoke_local_runtime_2_test.dart index b4b00f4a855..c52d23adb17 100644 --- a/tests/language_2/call/method_implicit_invoke_local_runtime_2_test.dart +++ b/tests/language_2/call/method_implicit_invoke_local_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/method_implicit_invoke_local_runtime_3_test.dart b/tests/language_2/call/method_implicit_invoke_local_runtime_3_test.dart index 215d9981b1c..59237f9f267 100644 --- a/tests/language_2/call/method_implicit_invoke_local_runtime_3_test.dart +++ b/tests/language_2/call/method_implicit_invoke_local_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/method_implicit_invoke_local_runtime_4_test.dart b/tests/language_2/call/method_implicit_invoke_local_runtime_4_test.dart index 01a364c9a68..9132ea9d939 100644 --- a/tests/language_2/call/method_implicit_invoke_local_runtime_4_test.dart +++ b/tests/language_2/call/method_implicit_invoke_local_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/method_implicit_invoke_local_runtime_test.dart b/tests/language_2/call/method_implicit_invoke_local_runtime_test.dart index f06206fa497..24b848c12b6 100644 --- a/tests/language_2/call/method_implicit_invoke_local_runtime_test.dart +++ b/tests/language_2/call/method_implicit_invoke_local_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/method_implicit_invoke_local_test.dart b/tests/language_2/call/method_implicit_invoke_local_test.dart index 0e15829e4e8..f304eb41666 100644 --- a/tests/language_2/call/method_implicit_invoke_local_test.dart +++ b/tests/language_2/call/method_implicit_invoke_local_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + import "package:expect/expect.dart"; class C1 { diff --git a/tests/language_2/call/method_implicit_invoke_static_test.dart b/tests/language_2/call/method_implicit_invoke_static_test.dart index 17f868d2aa9..f162a0e2238 100644 --- a/tests/language_2/call/method_implicit_invoke_static_test.dart +++ b/tests/language_2/call/method_implicit_invoke_static_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + import "package:expect/expect.dart"; class C1 { diff --git a/tests/language_2/call/method_implicit_invoke_top_level_test.dart b/tests/language_2/call/method_implicit_invoke_top_level_test.dart index eaed546ffab..c9fce668aaa 100644 --- a/tests/language_2/call/method_implicit_invoke_top_level_test.dart +++ b/tests/language_2/call/method_implicit_invoke_top_level_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + import "package:expect/expect.dart"; class C1 { diff --git a/tests/language_2/call/method_implicit_tear_off_assignable_test.dart b/tests/language_2/call/method_implicit_tear_off_assignable_test.dart index 23763d427f3..75ad6557672 100644 --- a/tests/language_2/call/method_implicit_tear_off_assignable_test.dart +++ b/tests/language_2/call/method_implicit_tear_off_assignable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; abstract class I { diff --git a/tests/language_2/call/method_implicit_tear_off_nullable_test.dart b/tests/language_2/call/method_implicit_tear_off_nullable_test.dart index 2b1050d6b4e..ab0bd111569 100644 --- a/tests/language_2/call/method_implicit_tear_off_nullable_test.dart +++ b/tests/language_2/call/method_implicit_tear_off_nullable_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + import "package:expect/expect.dart"; class B {} diff --git a/tests/language_2/call/method_implicit_tear_off_test.dart b/tests/language_2/call/method_implicit_tear_off_test.dart index d07eab1951d..218f0bb3c22 100644 --- a/tests/language_2/call/method_implicit_tear_off_test.dart +++ b/tests/language_2/call/method_implicit_tear_off_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/language_2/call/method_is_check_test.dart b/tests/language_2/call/method_is_check_test.dart index 9c705a3a032..aed411c42f2 100644 --- a/tests/language_2/call/method_is_check_test.dart +++ b/tests/language_2/call/method_is_check_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + import "package:expect/expect.dart"; class B {} diff --git a/tests/language_2/call/method_must_not_be_field_test.dart b/tests/language_2/call/method_must_not_be_field_test.dart index 05cbce94667..6d178cb9cb3 100644 --- a/tests/language_2/call/method_must_not_be_field_test.dart +++ b/tests/language_2/call/method_must_not_be_field_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/call/method_must_not_be_getter_test.dart b/tests/language_2/call/method_must_not_be_getter_test.dart index ac070dd89bf..f5bd0eb37de 100644 --- a/tests/language_2/call/method_must_not_be_getter_test.dart +++ b/tests/language_2/call/method_must_not_be_getter_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/call/method_override_runtime_test.dart b/tests/language_2/call/method_override_runtime_test.dart index 26e0dd4d2f1..fc6b765417e 100644 --- a/tests/language_2/call/method_override_runtime_test.dart +++ b/tests/language_2/call/method_override_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/method_override_test.dart b/tests/language_2/call/method_override_test.dart index 8e402a490d1..f7b8c549403 100644 --- a/tests/language_2/call/method_override_test.dart +++ b/tests/language_2/call/method_override_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + class B {} class C { diff --git a/tests/language_2/call/non_method_field_runtime_test.dart b/tests/language_2/call/non_method_field_runtime_test.dart index d9d98a8d79e..ff4606948f7 100644 --- a/tests/language_2/call/non_method_field_runtime_test.dart +++ b/tests/language_2/call/non_method_field_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/non_method_field_test.dart b/tests/language_2/call/non_method_field_test.dart index 8656cbf72de..3e129c001e1 100644 --- a/tests/language_2/call/non_method_field_test.dart +++ b/tests/language_2/call/non_method_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests calling an object's field which is not a method. class Fisk { diff --git a/tests/language_2/call/nonexistent_constructor_runtime_test.dart b/tests/language_2/call/nonexistent_constructor_runtime_test.dart index 92e4b194fb2..aaea0026ac9 100644 --- a/tests/language_2/call/nonexistent_constructor_runtime_test.dart +++ b/tests/language_2/call/nonexistent_constructor_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/nonexistent_constructor_test.dart b/tests/language_2/call/nonexistent_constructor_test.dart index 4c129d0a4df..b27d76a55e5 100644 --- a/tests/language_2/call/nonexistent_constructor_test.dart +++ b/tests/language_2/call/nonexistent_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // When attempting to call a nonexistent constructor, check that a diff --git a/tests/language_2/call/nonexistent_static_test.dart b/tests/language_2/call/nonexistent_static_test.dart index 603bdded63d..170d3e6e799 100644 --- a/tests/language_2/call/nonexistent_static_test.dart +++ b/tests/language_2/call/nonexistent_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // When attempting to call a nonexistent static method, getter or setter, check diff --git a/tests/language_2/call/object_has_no_call_method_test.dart b/tests/language_2/call/object_has_no_call_method_test.dart index d02b290cc4a..40057b93229 100644 --- a/tests/language_2/call/object_has_no_call_method_test.dart +++ b/tests/language_2/call/object_has_no_call_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void test(dynamic d, Object o, Function f) { d(); o(); diff --git a/tests/language_2/call/object_has_no_call_runtime_1_test.dart b/tests/language_2/call/object_has_no_call_runtime_1_test.dart index 3bb0108a6d4..e80d86b358b 100644 --- a/tests/language_2/call/object_has_no_call_runtime_1_test.dart +++ b/tests/language_2/call/object_has_no_call_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/object_has_no_call_runtime_2_test.dart b/tests/language_2/call/object_has_no_call_runtime_2_test.dart index 8c209c5491b..29248019758 100644 --- a/tests/language_2/call/object_has_no_call_runtime_2_test.dart +++ b/tests/language_2/call/object_has_no_call_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/object_has_no_call_runtime_3_test.dart b/tests/language_2/call/object_has_no_call_runtime_3_test.dart index 6507f06e25c..9056e42fcad 100644 --- a/tests/language_2/call/object_has_no_call_runtime_3_test.dart +++ b/tests/language_2/call/object_has_no_call_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/object_has_no_call_runtime_4_test.dart b/tests/language_2/call/object_has_no_call_runtime_4_test.dart index a64f242f6b3..c04fe5b60bd 100644 --- a/tests/language_2/call/object_has_no_call_runtime_4_test.dart +++ b/tests/language_2/call/object_has_no_call_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/object_has_no_call_runtime_5_test.dart b/tests/language_2/call/object_has_no_call_runtime_5_test.dart index ef58c84566c..961b4db36d1 100644 --- a/tests/language_2/call/object_has_no_call_runtime_5_test.dart +++ b/tests/language_2/call/object_has_no_call_runtime_5_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/object_has_no_call_runtime_6_test.dart b/tests/language_2/call/object_has_no_call_runtime_6_test.dart index 2dcd45375e9..5642d64d291 100644 --- a/tests/language_2/call/object_has_no_call_runtime_6_test.dart +++ b/tests/language_2/call/object_has_no_call_runtime_6_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/object_has_no_call_runtime_test.dart b/tests/language_2/call/object_has_no_call_runtime_test.dart index c0ec957d095..8ebd5dcd1dd 100644 --- a/tests/language_2/call/object_has_no_call_runtime_test.dart +++ b/tests/language_2/call/object_has_no_call_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/operator_test.dart b/tests/language_2/call/operator_test.dart index 8513bcbfe04..18ccb3bd525 100644 --- a/tests/language_2/call/operator_test.dart +++ b/tests/language_2/call/operator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // simple test with no types in signature diff --git a/tests/language_2/call/property_test.dart b/tests/language_2/call/property_test.dart index 87407c3f636..5f6ddbe7727 100644 --- a/tests/language_2/call/property_test.dart +++ b/tests/language_2/call/property_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a class with a [call] property does not implement [Function] or // a typedef of function type. diff --git a/tests/language_2/call/through_getter_runtime_test.dart b/tests/language_2/call/through_getter_runtime_test.dart index 4737aa6e1da..1faba5dfc3b 100644 --- a/tests/language_2/call/through_getter_runtime_test.dart +++ b/tests/language_2/call/through_getter_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/call/through_getter_test.dart b/tests/language_2/call/through_getter_test.dart index 06e5af32b32..7a13b34fa7e 100644 --- a/tests/language_2/call/through_getter_test.dart +++ b/tests/language_2/call/through_getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests that we can call functions through getters. diff --git a/tests/language_2/call/through_null_getter_test.dart b/tests/language_2/call/through_null_getter_test.dart index 3076029d341..82d0a1adbba 100644 --- a/tests/language_2/call/through_null_getter_test.dart +++ b/tests/language_2/call/through_null_getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests that we can call functions through getters which return null. diff --git a/tests/language_2/call/type_literal_test.dart b/tests/language_2/call/type_literal_test.dart index 9e09bbebc1c..f4a125cc6e1 100644 --- a/tests/language_2/call/type_literal_test.dart +++ b/tests/language_2/call/type_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { void a() {} } diff --git a/tests/language_2/call/with_no_such_method_test.dart b/tests/language_2/call/with_no_such_method_test.dart index 95c27d59565..3b6413de271 100644 --- a/tests/language_2/call/with_no_such_method_test.dart +++ b/tests/language_2/call/with_no_such_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class F { diff --git a/tests/language_2/canonicalize/const2_test.dart b/tests/language_2/canonicalize/const2_test.dart index fbad2cd6d89..4cc7f6ee250 100644 --- a/tests/language_2/canonicalize/const2_test.dart +++ b/tests/language_2/canonicalize/const2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Check that compile-time constants are correctly canonicalized. diff --git a/tests/language_2/canonicalize/const3_test.dart b/tests/language_2/canonicalize/const3_test.dart index 7b708245076..453a75f5796 100644 --- a/tests/language_2/canonicalize/const3_test.dart +++ b/tests/language_2/canonicalize/const3_test.dart @@ -4,6 +4,8 @@ // // Check proper canonicalization (fields must be canonicalized as well). +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/canonicalize/const_test.dart b/tests/language_2/canonicalize/const_test.dart index d759f9465d8..50f0d344349 100644 --- a/tests/language_2/canonicalize/const_test.dart +++ b/tests/language_2/canonicalize/const_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check that initializers of static const fields are compile time constants. +// @dart = 2.9 + import "package:expect/expect.dart"; class CanonicalConstTest { diff --git a/tests/language_2/canonicalize/hashing_memoize_array_test.dart b/tests/language_2/canonicalize/hashing_memoize_array_test.dart index 20f789f3c67..dde26b25b37 100644 --- a/tests/language_2/canonicalize/hashing_memoize_array_test.dart +++ b/tests/language_2/canonicalize/hashing_memoize_array_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // If canonicalization uses deep structural hashing without memoizing, this // will exhibit superlinear time. diff --git a/tests/language_2/canonicalize/hashing_memoize_instance_test.dart b/tests/language_2/canonicalize/hashing_memoize_instance_test.dart index 5a9185eb67b..613d391a82c 100644 --- a/tests/language_2/canonicalize/hashing_memoize_instance_test.dart +++ b/tests/language_2/canonicalize/hashing_memoize_instance_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // If canonicalization uses deep structural hashing without memoizing, this // will exhibit superlinear time. diff --git a/tests/language_2/canonicalize/hashing_shallow_collision_array_test.dart b/tests/language_2/canonicalize/hashing_shallow_collision_array_test.dart index e094e06581e..53fdba04777 100644 --- a/tests/language_2/canonicalize/hashing_shallow_collision_array_test.dart +++ b/tests/language_2/canonicalize/hashing_shallow_collision_array_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // If canonicialization hashes with only a field's cid, this will exhibit // quadratic time. diff --git a/tests/language_2/canonicalize/hashing_shallow_collision_instance_2_test.dart b/tests/language_2/canonicalize/hashing_shallow_collision_instance_2_test.dart index 621b68e15dc..bf3e1066bab 100644 --- a/tests/language_2/canonicalize/hashing_shallow_collision_instance_2_test.dart +++ b/tests/language_2/canonicalize/hashing_shallow_collision_instance_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // If canonicialization hashes with only a field's cid, this will exhibit // quadratic time. diff --git a/tests/language_2/canonicalize/hashing_shallow_collision_instance_3_test.dart b/tests/language_2/canonicalize/hashing_shallow_collision_instance_3_test.dart index b806b6a662e..df8169e1c07 100644 --- a/tests/language_2/canonicalize/hashing_shallow_collision_instance_3_test.dart +++ b/tests/language_2/canonicalize/hashing_shallow_collision_instance_3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // If canonicialization hashes with only a field's cid, this will exhibit // quadratic time. diff --git a/tests/language_2/canonicalize/hashing_shallow_collision_instance_test.dart b/tests/language_2/canonicalize/hashing_shallow_collision_instance_test.dart index 2de48b289b1..7015d358362 100644 --- a/tests/language_2/canonicalize/hashing_shallow_collision_instance_test.dart +++ b/tests/language_2/canonicalize/hashing_shallow_collision_instance_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // If canonicialization hashes with only a field's cid, this will exhibit // quadratic time. diff --git a/tests/language_2/cascade/cascade2_test.dart b/tests/language_2/cascade/cascade2_test.dart index 4121667975c..3bd961eff24 100644 --- a/tests/language_2/cascade/cascade2_test.dart +++ b/tests/language_2/cascade/cascade2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to hit an assertion in the // container tracer visitor in the presence of cascaded calls. diff --git a/tests/language_2/cascade/cascade3_test.dart b/tests/language_2/cascade/cascade3_test.dart index 11b29741dd3..33278315fa6 100644 --- a/tests/language_2/cascade/cascade3_test.dart +++ b/tests/language_2/cascade/cascade3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test cascades, issues 7494 (vm), 7689 (dart2js). diff --git a/tests/language_2/cascade/cascade_test.dart b/tests/language_2/cascade/cascade_test.dart index f9ddcd219ea..d8aea40ec24 100644 --- a/tests/language_2/cascade/cascade_test.dart +++ b/tests/language_2/cascade/cascade_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test cascades. diff --git a/tests/language_2/cascade/in_expression_function_test.dart b/tests/language_2/cascade/in_expression_function_test.dart index 88f95297858..3d67d5642d1 100644 --- a/tests/language_2/cascade/in_expression_function_test.dart +++ b/tests/language_2/cascade/in_expression_function_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing throw statement +// @dart = 2.9 + import "package:expect/expect.dart"; makeMap() => new Map() diff --git a/tests/language_2/cascade/in_initializer_list_test.dart b/tests/language_2/cascade/in_initializer_list_test.dart index 37da002baf6..d9b2f53b273 100644 --- a/tests/language_2/cascade/in_initializer_list_test.dart +++ b/tests/language_2/cascade/in_initializer_list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/cascade/nested_test.dart b/tests/language_2/cascade/nested_test.dart index 29a82e729e7..60ef44abb86 100644 --- a/tests/language_2/cascade/nested_test.dart +++ b/tests/language_2/cascade/nested_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Foo { diff --git a/tests/language_2/cascade/on_static_field_test.dart b/tests/language_2/cascade/on_static_field_test.dart index e92212f813b..05391e8dffd 100644 --- a/tests/language_2/cascade/on_static_field_test.dart +++ b/tests/language_2/cascade/on_static_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + final List list = []..add("foo")..add("bar")..add("baz"); main() { diff --git a/tests/language_2/cascade/precedence_test.dart b/tests/language_2/cascade/precedence_test.dart index 3ddf2528095..bf2d2f1a062 100644 --- a/tests/language_2/cascade/precedence_test.dart +++ b/tests/language_2/cascade/precedence_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/cascade/runtime_test.dart b/tests/language_2/cascade/runtime_test.dart index 9357093bfd5..753d6fd68e2 100644 --- a/tests/language_2/cascade/runtime_test.dart +++ b/tests/language_2/cascade/runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/class/additional_interface_adds_optional_args_concrete_subclass_test.dart b/tests/language_2/class/additional_interface_adds_optional_args_concrete_subclass_test.dart index 523a972c800..c02bd3a979e 100644 --- a/tests/language_2/class/additional_interface_adds_optional_args_concrete_subclass_test.dart +++ b/tests/language_2/class/additional_interface_adds_optional_args_concrete_subclass_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { void foo() {} } diff --git a/tests/language_2/class/class_test.dart b/tests/language_2/class/class_test.dart index 0436393f635..5898970d84f 100644 --- a/tests/language_2/class/class_test.dart +++ b/tests/language_2/class/class_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests basic classes and methods. diff --git a/tests/language_2/class/classes_static_method_clash_test.dart b/tests/language_2/class/classes_static_method_clash_test.dart index 985a0c81d2d..d1c91ac9c8a 100644 --- a/tests/language_2/class/classes_static_method_clash_test.dart +++ b/tests/language_2/class/classes_static_method_clash_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // This methods needs a stub method (because it is used in Function.apply, where diff --git a/tests/language_2/class/codegen_test.dart b/tests/language_2/class/codegen_test.dart index cbece1d0921..cdf21d9d1e7 100644 --- a/tests/language_2/class/codegen_test.dart +++ b/tests/language_2/class/codegen_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/class/cycle2_test.dart b/tests/language_2/class/cycle2_test.dart index 2b1bb6576ea..5be44669859 100644 --- a/tests/language_2/class/cycle2_test.dart +++ b/tests/language_2/class/cycle2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check fail because of cycles in super class relationship. +// @dart = 2.9 + class C extends B {} class A extends B {} diff --git a/tests/language_2/class/cycle_test.dart b/tests/language_2/class/cycle_test.dart index dbc11a0d6af..a29c9cbca65 100644 --- a/tests/language_2/class/cycle_test.dart +++ b/tests/language_2/class/cycle_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check fail because of cycles in super class relationship. +// @dart = 2.9 + import "package:expect/expect.dart"; class Foo implements Bar {} diff --git a/tests/language_2/class/cyclic_class_member_runtime_test.dart b/tests/language_2/class/cyclic_class_member_runtime_test.dart index 17cea8d670a..a9cca8c9400 100644 --- a/tests/language_2/class/cyclic_class_member_runtime_test.dart +++ b/tests/language_2/class/cyclic_class_member_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/class/cyclic_class_member_test.dart b/tests/language_2/class/cyclic_class_member_test.dart index 516943fe7d0..90e70d3d49b 100644 --- a/tests/language_2/class/cyclic_class_member_test.dart +++ b/tests/language_2/class/cyclic_class_member_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that class with a cyclic hierarchy doesn't cause a loop in dart2js. class A diff --git a/tests/language_2/class/inheritance_chain_lib.dart b/tests/language_2/class/inheritance_chain_lib.dart index c80834fd4fb..1f79b0f6d57 100644 --- a/tests/language_2/class/inheritance_chain_lib.dart +++ b/tests/language_2/class/inheritance_chain_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "inheritance_chain_test.dart"; class B extends C { diff --git a/tests/language_2/class/inheritance_chain_test.dart b/tests/language_2/class/inheritance_chain_test.dart index cc0d80ea938..dd552520a26 100644 --- a/tests/language_2/class/inheritance_chain_test.dart +++ b/tests/language_2/class/inheritance_chain_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "inheritance_chain_lib.dart"; diff --git a/tests/language_2/class/keyword_runtime_test.dart b/tests/language_2/class/keyword_runtime_test.dart index 3b6e2bde013..e5719a04c8e 100644 --- a/tests/language_2/class/keyword_runtime_test.dart +++ b/tests/language_2/class/keyword_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/class/keyword_test.dart b/tests/language_2/class/keyword_test.dart index 8b07fecad06..a3337a7bc98 100644 --- a/tests/language_2/class/keyword_test.dart +++ b/tests/language_2/class/keyword_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that "class" cannot be used as identifier. class foo {} diff --git a/tests/language_2/class/large_class_declaration_test.dart b/tests/language_2/class/large_class_declaration_test.dart index 15c6721ca3d..111df83be83 100644 --- a/tests/language_2/class/large_class_declaration_test.dart +++ b/tests/language_2/class/large_class_declaration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program for testing compilation of classes with a large number // of fields. diff --git a/tests/language_2/class/literal_static_test.dart b/tests/language_2/class/literal_static_test.dart index 27b6149329e..6366fefa217 100644 --- a/tests/language_2/class/literal_static_test.dart +++ b/tests/language_2/class/literal_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test class literal expressions. diff --git a/tests/language_2/class/literal_test.dart b/tests/language_2/class/literal_test.dart index 5b1c12a30b0..74b208dc6ec 100644 --- a/tests/language_2/class/literal_test.dart +++ b/tests/language_2/class/literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test class literal expressions. diff --git a/tests/language_2/class/multiple_interface_inheritance_test.dart b/tests/language_2/class/multiple_interface_inheritance_test.dart index 137814cfede..d39e7cafab4 100644 --- a/tests/language_2/class/multiple_interface_inheritance_test.dart +++ b/tests/language_2/class/multiple_interface_inheritance_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class I1 { void f(int i); } diff --git a/tests/language_2/class/override_test.dart b/tests/language_2/class/override_test.dart index 41ec7ad5e2d..6ab371568ee 100644 --- a/tests/language_2/class/override_test.dart +++ b/tests/language_2/class/override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // It is a static compile time error if a method m1 overrides a method m2 and has a // different number of required parameters. diff --git a/tests/language_2/class/recursive_inheritance_test.dart b/tests/language_2/class/recursive_inheritance_test.dart index 061a84d4691..7524d5981ff 100644 --- a/tests/language_2/class/recursive_inheritance_test.dart +++ b/tests/language_2/class/recursive_inheritance_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for recursive inheritance patterns diff --git a/tests/language_2/class/syntax2_test.dart b/tests/language_2/class/syntax2_test.dart index e884c23713b..5cbbdfd5f66 100644 --- a/tests/language_2/class/syntax2_test.dart +++ b/tests/language_2/class/syntax2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js bug http://dartbug.com/11570. import 'package:expect/expect.dart'; diff --git a/tests/language_2/class/syntax_test.dart b/tests/language_2/class/syntax_test.dart index e5a2e9b9856..eca5f1c654e 100644 --- a/tests/language_2/class/syntax_test.dart +++ b/tests/language_2/class/syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { new ClassSyntaxTest(); } diff --git a/tests/language_2/class/variable_shadow_class_runtime_test.dart b/tests/language_2/class/variable_shadow_class_runtime_test.dart index 0c7d951fbe3..b7d6651ba7b 100644 --- a/tests/language_2/class/variable_shadow_class_runtime_test.dart +++ b/tests/language_2/class/variable_shadow_class_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/class/variable_shadow_class_test.dart b/tests/language_2/class/variable_shadow_class_test.dart index 3fc29e4e087..634e71a090d 100644 --- a/tests/language_2/class/variable_shadow_class_test.dart +++ b/tests/language_2/class/variable_shadow_class_test.dart @@ -1,6 +1,8 @@ // 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 = 2.9 import "package:expect/expect.dart"; // Local variables can shadow class names. diff --git a/tests/language_2/closure/bound_closure_equality_test.dart b/tests/language_2/closure/bound_closure_equality_test.dart index 6ed96dbd212..c0e4564366e 100644 --- a/tests/language_2/closure/bound_closure_equality_test.dart +++ b/tests/language_2/closure/bound_closure_equality_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/closure/bound_closure_primitives_test.dart b/tests/language_2/closure/bound_closure_primitives_test.dart index cd5bdfe1700..7fa8e8e2774 100644 --- a/tests/language_2/closure/bound_closure_primitives_test.dart +++ b/tests/language_2/closure/bound_closure_primitives_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test to make sure dart2js does not try to use the same // BoundClosureClass between an intercepted method and a // non-intercepted method. diff --git a/tests/language_2/closure/break1_test.dart b/tests/language_2/closure/break1_test.dart index 8522fae91d4..e99eceff734 100644 --- a/tests/language_2/closure/break1_test.dart +++ b/tests/language_2/closure/break1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for closures. +// @dart = 2.9 + import "package:expect/expect.dart"; class ClosureBreak1 { diff --git a/tests/language_2/closure/break2_test.dart b/tests/language_2/closure/break2_test.dart index 5742620d59a..daa6349d4ee 100644 --- a/tests/language_2/closure/break2_test.dart +++ b/tests/language_2/closure/break2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for closures. +// @dart = 2.9 + import "package:expect/expect.dart"; class ClosureBreak2 { diff --git a/tests/language_2/closure/break_test.dart b/tests/language_2/closure/break_test.dart index ae99035cab9..91d31d86bdb 100644 --- a/tests/language_2/closure/break_test.dart +++ b/tests/language_2/closure/break_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for closures. +// @dart = 2.9 + import "package:expect/expect.dart"; class ClosureBreak { diff --git a/tests/language_2/closure/call_wrong_argument_count_test.dart b/tests/language_2/closure/call_wrong_argument_count_test.dart index ef9f964fb36..a04d2341bd6 100644 --- a/tests/language_2/closure/call_wrong_argument_count_test.dart +++ b/tests/language_2/closure/call_wrong_argument_count_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test mismatch in argument counts. import 'package:expect/expect.dart'; diff --git a/tests/language_2/closure/closure2_test.dart b/tests/language_2/closure/closure2_test.dart index bf3cf01e0e9..d036c6f7fea 100644 --- a/tests/language_2/closure/closure2_test.dart +++ b/tests/language_2/closure/closure2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for closures. +// @dart = 2.9 + import "package:expect/expect.dart"; bounce(fn) { diff --git a/tests/language_2/closure/closure3_test.dart b/tests/language_2/closure/closure3_test.dart index 8841d3752a7..681ea98d2b5 100644 --- a/tests/language_2/closure/closure3_test.dart +++ b/tests/language_2/closure/closure3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that a NoSuchMethodError is thrown even when an expression diff --git a/tests/language_2/closure/closure4_test.dart b/tests/language_2/closure/closure4_test.dart index 5445b7d7560..67160e8747e 100644 --- a/tests/language_2/closure/closure4_test.dart +++ b/tests/language_2/closure/closure4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart2js failed when a declared function was captured inside itself. diff --git a/tests/language_2/closure/closure5_test.dart b/tests/language_2/closure/closure5_test.dart index bf698b65678..9e7d3805277 100644 --- a/tests/language_2/closure/closure5_test.dart +++ b/tests/language_2/closure/closure5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart2js failed when a declared function was captured inside itself. diff --git a/tests/language_2/closure/closure6_test.dart b/tests/language_2/closure/closure6_test.dart index ea37454542a..fa47f785e6e 100644 --- a/tests/language_2/closure/closure6_test.dart +++ b/tests/language_2/closure/closure6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that captured final variables are correctly mangled. diff --git a/tests/language_2/closure/closure7_test.dart b/tests/language_2/closure/closure7_test.dart index 91b8f7baefc..37e43867b7f 100644 --- a/tests/language_2/closure/closure7_test.dart +++ b/tests/language_2/closure/closure7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that implicitly bound closures work correctly diff --git a/tests/language_2/closure/closure8_test.dart b/tests/language_2/closure/closure8_test.dart index 211c7223d7d..c77e3b83864 100644 --- a/tests/language_2/closure/closure8_test.dart +++ b/tests/language_2/closure/closure8_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Regression test for issue 6353. +// @dart = 2.9 + class A {} class C extends A { diff --git a/tests/language_2/closure/closure_test.dart b/tests/language_2/closure/closure_test.dart index 9dc3a90994c..d90c428a86c 100644 --- a/tests/language_2/closure/closure_test.dart +++ b/tests/language_2/closure/closure_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for closures. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/closure/closures_initializer2_test.dart b/tests/language_2/closure/closures_initializer2_test.dart index 337639b40da..01a3969fdf9 100644 --- a/tests/language_2/closure/closures_initializer2_test.dart +++ b/tests/language_2/closure/closures_initializer2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { var t; A() : t = (() => T); diff --git a/tests/language_2/closure/closures_initializer_test.dart b/tests/language_2/closure/closures_initializer_test.dart index 1a2f127398a..52b0605e837 100644 --- a/tests/language_2/closure/closures_initializer_test.dart +++ b/tests/language_2/closure/closures_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { var t; A() : t = (() => new List()); diff --git a/tests/language_2/closure/closures_with_complex_params_test.dart b/tests/language_2/closure/closures_with_complex_params_test.dart index c3c65ee92bb..6ba796b7fcb 100644 --- a/tests/language_2/closure/closures_with_complex_params_test.dart +++ b/tests/language_2/closure/closures_with_complex_params_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests for parsing closures with complex parameter types. diff --git a/tests/language_2/closure/cycles_test.dart b/tests/language_2/closure/cycles_test.dart index e66a391e1e3..ef75d79bedf 100644 --- a/tests/language_2/closure/cycles_test.dart +++ b/tests/language_2/closure/cycles_test.dart @@ -4,6 +4,8 @@ // Based on dartbug.com/7681 // Verify that context chains do not lead to unintended memory being held. +// @dart = 2.9 + library closure_cycles_test; import "dart:async"; diff --git a/tests/language_2/closure/dynamic_test.dart b/tests/language_2/closure/dynamic_test.dart index b130a9b76e1..1defa57f31b 100644 --- a/tests/language_2/closure/dynamic_test.dart +++ b/tests/language_2/closure/dynamic_test.dart @@ -8,6 +8,8 @@ // VMOptions=--lazy-dispatchers // VMOptions=--no-lazy-dispatchers +// @dart = 2.9 + import 'package:expect/expect.dart'; class A { diff --git a/tests/language_2/closure/forwarding_stub_tearoff_generic_test.dart b/tests/language_2/closure/forwarding_stub_tearoff_generic_test.dart index 1bccc6e2d34..64c8cab1df0 100644 --- a/tests/language_2/closure/forwarding_stub_tearoff_generic_test.dart +++ b/tests/language_2/closure/forwarding_stub_tearoff_generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/closure/forwarding_stub_tearoff_test.dart b/tests/language_2/closure/forwarding_stub_tearoff_test.dart index 12aa7bfdf8a..1261adb2732 100644 --- a/tests/language_2/closure/forwarding_stub_tearoff_test.dart +++ b/tests/language_2/closure/forwarding_stub_tearoff_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/closure/implicit1_test.dart b/tests/language_2/closure/implicit1_test.dart index 4a8a4f4c459..245cff7c7c7 100644 --- a/tests/language_2/closure/implicit1_test.dart +++ b/tests/language_2/closure/implicit1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--enable_type_checks --enable_asserts +// @dart = 2.9 + typedef Handler(bool e); class Hello { diff --git a/tests/language_2/closure/implicit2_test.dart b/tests/language_2/closure/implicit2_test.dart index a03f45802e2..f30432adae5 100644 --- a/tests/language_2/closure/implicit2_test.dart +++ b/tests/language_2/closure/implicit2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class B { diff --git a/tests/language_2/closure/implicit_closure_test.dart b/tests/language_2/closure/implicit_closure_test.dart index a9ea617a6db..a4defba4c75 100644 --- a/tests/language_2/closure/implicit_closure_test.dart +++ b/tests/language_2/closure/implicit_closure_test.dart @@ -5,6 +5,8 @@ // VMOptions= // VMOptions=--use_slow_path +// @dart = 2.9 + import "package:expect/expect.dart"; class First { diff --git a/tests/language_2/closure/in_constructor_test.dart b/tests/language_2/closure/in_constructor_test.dart index 66ee970196c..d273dcb16c6 100644 --- a/tests/language_2/closure/in_constructor_test.dart +++ b/tests/language_2/closure/in_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/closure/in_field_initializer_test.dart b/tests/language_2/closure/in_field_initializer_test.dart index 026c712f46b..82894c62a32 100644 --- a/tests/language_2/closure/in_field_initializer_test.dart +++ b/tests/language_2/closure/in_field_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Foo { diff --git a/tests/language_2/closure/in_initializer2_test.dart b/tests/language_2/closure/in_initializer2_test.dart index a782c642c20..cb0986438db 100644 --- a/tests/language_2/closure/in_initializer2_test.dart +++ b/tests/language_2/closure/in_initializer2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a parameter used in a closure is properly boxed. import "package:expect/expect.dart"; diff --git a/tests/language_2/closure/in_initializer_test.dart b/tests/language_2/closure/in_initializer_test.dart index 3556649c694..90a00d8e812 100644 --- a/tests/language_2/closure/in_initializer_test.dart +++ b/tests/language_2/closure/in_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a parameter used in two different closures defined in a // constructor initializer, is properly boxed. diff --git a/tests/language_2/closure/internals_runtime_test.dart b/tests/language_2/closure/internals_runtime_test.dart index 1b52d32f2f4..afc490db078 100644 --- a/tests/language_2/closure/internals_runtime_test.dart +++ b/tests/language_2/closure/internals_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/closure/internals_test.dart b/tests/language_2/closure/internals_test.dart index 9efdda3896a..288790e8d6e 100644 --- a/tests/language_2/closure/internals_test.dart +++ b/tests/language_2/closure/internals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/closure/invoked_through_interface_target_field_test.dart b/tests/language_2/closure/invoked_through_interface_target_field_test.dart index f4cd083b7d7..e008aeb2ac2 100644 --- a/tests/language_2/closure/invoked_through_interface_target_field_test.dart +++ b/tests/language_2/closure/invoked_through_interface_target_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Note: this test expects a compile error (getter overrides a method), but it // contains more code than necessary to provoke the compile error. The reason // for the extra code is to document the complications that would arise if we diff --git a/tests/language_2/closure/invoked_through_interface_target_getter_test.dart b/tests/language_2/closure/invoked_through_interface_target_getter_test.dart index 672ef20baeb..ed5434f40b0 100644 --- a/tests/language_2/closure/invoked_through_interface_target_getter_test.dart +++ b/tests/language_2/closure/invoked_through_interface_target_getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Note: this test expects a compile error (getter overrides a method), but it // contains more code than necessary to provoke the compile error. The reason // for the extra code is to document the complications that would arise if we diff --git a/tests/language_2/closure/minify_closure_variable_collision_test.dart b/tests/language_2/closure/minify_closure_variable_collision_test.dart index 282acef0644..bd1ee86f955 100644 --- a/tests/language_2/closure/minify_closure_variable_collision_test.dart +++ b/tests/language_2/closure/minify_closure_variable_collision_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js, that used to minify a captured // variable's name to the same name as inherited Object methods. diff --git a/tests/language_2/closure/nested_generic_closure_test.dart b/tests/language_2/closure/nested_generic_closure_test.dart index c5ef032f80e..e9fc5025c3a 100644 --- a/tests/language_2/closure/nested_generic_closure_test.dart +++ b/tests/language_2/closure/nested_generic_closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void foo(F f(F f)) {} diff --git a/tests/language_2/closure/param_null_to_object_test.dart b/tests/language_2/closure/param_null_to_object_test.dart index 5a2bbfe4529..0e81feb08db 100644 --- a/tests/language_2/closure/param_null_to_object_test.dart +++ b/tests/language_2/closure/param_null_to_object_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/closure/parameter_types_test.dart b/tests/language_2/closure/parameter_types_test.dart index 3fa1521fcb1..a724948eb6e 100644 --- a/tests/language_2/closure/parameter_types_test.dart +++ b/tests/language_2/closure/parameter_types_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for dart2js, where the optimizer was too aggressive diff --git a/tests/language_2/closure/parse_closures_in_initializers_test.dart b/tests/language_2/closure/parse_closures_in_initializers_test.dart index 9fc7eda4cbf..94f89e757dc 100644 --- a/tests/language_2/closure/parse_closures_in_initializers_test.dart +++ b/tests/language_2/closure/parse_closures_in_initializers_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; // Test that function literals are parsed correctly in initializers. diff --git a/tests/language_2/closure/partial_instantiation_eager_bounds_check_test.dart b/tests/language_2/closure/partial_instantiation_eager_bounds_check_test.dart index d20a83e2b13..e9784df3c0a 100644 --- a/tests/language_2/closure/partial_instantiation_eager_bounds_check_test.dart +++ b/tests/language_2/closure/partial_instantiation_eager_bounds_check_test.dart @@ -6,6 +6,8 @@ // eagerly during partial instantiation, rather than being delayed until the // partially instantiated closure is invoked. +// @dart = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/closure/partial_instantiation_static_bounds_check_runtime_test.dart b/tests/language_2/closure/partial_instantiation_static_bounds_check_runtime_test.dart index 45967508e34..52d48d14c9a 100644 --- a/tests/language_2/closure/partial_instantiation_static_bounds_check_runtime_test.dart +++ b/tests/language_2/closure/partial_instantiation_static_bounds_check_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/closure/partial_instantiation_static_bounds_check_test.dart b/tests/language_2/closure/partial_instantiation_static_bounds_check_test.dart index 38192ba101f..2810e7a89f9 100644 --- a/tests/language_2/closure/partial_instantiation_static_bounds_check_test.dart +++ b/tests/language_2/closure/partial_instantiation_static_bounds_check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + topFn(T x) { print(T); } diff --git a/tests/language_2/closure/partial_tearoff_instantiation_test.dart b/tests/language_2/closure/partial_tearoff_instantiation_test.dart index b534a9617e7..67083338f4c 100644 --- a/tests/language_2/closure/partial_tearoff_instantiation_test.dart +++ b/tests/language_2/closure/partial_tearoff_instantiation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; typedef F1 = void Function(T); diff --git a/tests/language_2/closure/self_reference_test.dart b/tests/language_2/closure/self_reference_test.dart index a47b1bf1e71..1b348133fb6 100644 --- a/tests/language_2/closure/self_reference_test.dart +++ b/tests/language_2/closure/self_reference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; // Tests a self-reference of a closure inside a try/catch. diff --git a/tests/language_2/closure/shared_state_test.dart b/tests/language_2/closure/shared_state_test.dart index 85c99085ad7..0920aabab9d 100644 --- a/tests/language_2/closure/shared_state_test.dart +++ b/tests/language_2/closure/shared_state_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests for closures sharing mutable bindings. diff --git a/tests/language_2/closure/side_effect_test.dart b/tests/language_2/closure/side_effect_test.dart index a7b0f509ef8..fd7cddba4b3 100644 --- a/tests/language_2/closure/side_effect_test.dart +++ b/tests/language_2/closure/side_effect_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; typedef void VoidToVoid(); diff --git a/tests/language_2/closure/tearoff_bounds_instantiation_test.dart b/tests/language_2/closure/tearoff_bounds_instantiation_test.dart index b823c648a66..935705521ba 100644 --- a/tests/language_2/closure/tearoff_bounds_instantiation_test.dart +++ b/tests/language_2/closure/tearoff_bounds_instantiation_test.dart @@ -5,6 +5,8 @@ // This test checks that the type parameter bounds on tearoffs from generic // classes are properly instantiated in the signature of the tearoff. +// @dart = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/closure/tearoff_dynamic_test.dart b/tests/language_2/closure/tearoff_dynamic_test.dart index c47edf7beca..1dde4844ded 100644 --- a/tests/language_2/closure/tearoff_dynamic_test.dart +++ b/tests/language_2/closure/tearoff_dynamic_test.dart @@ -1,6 +1,8 @@ // 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. + +// @dart = 2.9 import 'package:expect/expect.dart'; class C { diff --git a/tests/language_2/closure/type_arguments_test.dart b/tests/language_2/closure/type_arguments_test.dart index 4478ed70887..f1120088a82 100644 --- a/tests/language_2/closure/type_arguments_test.dart +++ b/tests/language_2/closure/type_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; typedef MapFunc = void Function(Map arg); diff --git a/tests/language_2/closure/type_test.dart b/tests/language_2/closure/type_test.dart index a449cbbd8d2..edb9e956643 100644 --- a/tests/language_2/closure/type_test.dart +++ b/tests/language_2/closure/type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for a closure result type test that cannot be eliminated at compile // time. diff --git a/tests/language_2/closure/type_variable_test.dart b/tests/language_2/closure/type_variable_test.dart index 2ed61c27ccf..ba0112cca0d 100644 --- a/tests/language_2/closure/type_variable_test.dart +++ b/tests/language_2/closure/type_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that the type argument is available inside a closure. import "package:expect/expect.dart"; diff --git a/tests/language_2/closure/type_variables_test.dart b/tests/language_2/closure/type_variables_test.dart index 2fe276c41a7..6be0ff2fccf 100644 --- a/tests/language_2/closure/type_variables_test.dart +++ b/tests/language_2/closure/type_variables_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import "package:expect/expect.dart"; diff --git a/tests/language_2/closure/unnamed_closure_test.dart b/tests/language_2/closure/unnamed_closure_test.dart index 49fa570dc52..f5e487029f4 100644 --- a/tests/language_2/closure/unnamed_closure_test.dart +++ b/tests/language_2/closure/unnamed_closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; getNonArray() => new A(); diff --git a/tests/language_2/closure/variable_shadow_test.dart b/tests/language_2/closure/variable_shadow_test.dart index 4b1edb477b4..07a11fc51d3 100644 --- a/tests/language_2/closure/variable_shadow_test.dart +++ b/tests/language_2/closure/variable_shadow_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // The intermediate variable 'y' must either be preserved diff --git a/tests/language_2/closure/with_super_field_test.dart b/tests/language_2/closure/with_super_field_test.dart index 603c0f6f4b6..6563f90836c 100644 --- a/tests/language_2/closure/with_super_field_test.dart +++ b/tests/language_2/closure/with_super_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/closure/with_super_send_test.dart b/tests/language_2/closure/with_super_send_test.dart index bcaae4957aa..8399b8763d0 100644 --- a/tests/language_2/closure/with_super_send_test.dart +++ b/tests/language_2/closure/with_super_send_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test a closurized super send. diff --git a/tests/language_2/compile_time_constant/a_test.dart b/tests/language_2/compile_time_constant/a_test.dart index 930a96ca3b1..160abf57a94 100644 --- a/tests/language_2/compile_time_constant/a_test.dart +++ b/tests/language_2/compile_time_constant/a_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; const m1 = const {'a': 400 + 99}; diff --git a/tests/language_2/compile_time_constant/arguments_runtime_test.dart b/tests/language_2/compile_time_constant/arguments_runtime_test.dart index 9718f01b206..c3cb1d20aad 100644 --- a/tests/language_2/compile_time_constant/arguments_runtime_test.dart +++ b/tests/language_2/compile_time_constant/arguments_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/compile_time_constant/arguments_test.dart b/tests/language_2/compile_time_constant/arguments_test.dart index ca56413f265..53083eba5dd 100644 --- a/tests/language_2/compile_time_constant/arguments_test.dart +++ b/tests/language_2/compile_time_constant/arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { const A(a); const A.named({a: 42}); diff --git a/tests/language_2/compile_time_constant/b_test.dart b/tests/language_2/compile_time_constant/b_test.dart index 23a09a833f8..9e070c653c8 100644 --- a/tests/language_2/compile_time_constant/b_test.dart +++ b/tests/language_2/compile_time_constant/b_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; const m1 = const {'__proto__': 400 + 99}; diff --git a/tests/language_2/compile_time_constant/c_runtime_1_test.dart b/tests/language_2/compile_time_constant/c_runtime_1_test.dart index 0dfa265e0f9..0440b875268 100644 --- a/tests/language_2/compile_time_constant/c_runtime_1_test.dart +++ b/tests/language_2/compile_time_constant/c_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/compile_time_constant/c_runtime_test.dart b/tests/language_2/compile_time_constant/c_runtime_test.dart index 8355feaf165..5b9c99424cc 100644 --- a/tests/language_2/compile_time_constant/c_runtime_test.dart +++ b/tests/language_2/compile_time_constant/c_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/compile_time_constant/c_test.dart b/tests/language_2/compile_time_constant/c_test.dart index 308f5624685..e3ebc8b9e0d 100644 --- a/tests/language_2/compile_time_constant/c_test.dart +++ b/tests/language_2/compile_time_constant/c_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + const m0 = const {499: 400 + 99}; const m1 = const { "foo" + "bar": 42 diff --git a/tests/language_2/compile_time_constant/compile_time_constant10_test.dart b/tests/language_2/compile_time_constant/compile_time_constant10_test.dart index 19c967a2a34..a0d6a2e7af4 100644 --- a/tests/language_2/compile_time_constant/compile_time_constant10_test.dart +++ b/tests/language_2/compile_time_constant/compile_time_constant10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that 'identical(a,b)' is a compile-time constant. diff --git a/tests/language_2/compile_time_constant/compile_time_constant11_test.dart b/tests/language_2/compile_time_constant/compile_time_constant11_test.dart index 67ff3fe5050..22f838739f3 100644 --- a/tests/language_2/compile_time_constant/compile_time_constant11_test.dart +++ b/tests/language_2/compile_time_constant/compile_time_constant11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that conditional expression can be a compile-time constant. import "package:expect/expect.dart"; diff --git a/tests/language_2/compile_time_constant/compile_time_constant12_test.dart b/tests/language_2/compile_time_constant/compile_time_constant12_test.dart index 0acf8b05e0b..3c05654b7cd 100644 --- a/tests/language_2/compile_time_constant/compile_time_constant12_test.dart +++ b/tests/language_2/compile_time_constant/compile_time_constant12_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + const String s = "foo"; const int i = s.length; const int l = "foo".length + 1; diff --git a/tests/language_2/compile_time_constant/compile_time_constant13_test.dart b/tests/language_2/compile_time_constant/compile_time_constant13_test.dart index 189abbdb77d..7bf371c160c 100644 --- a/tests/language_2/compile_time_constant/compile_time_constant13_test.dart +++ b/tests/language_2/compile_time_constant/compile_time_constant13_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { final x; //# 01: ok //# 02: compile-time error diff --git a/tests/language_2/compile_time_constant/compile_time_constant2_test.dart b/tests/language_2/compile_time_constant/compile_time_constant2_test.dart index 132a93b798d..3a0325eb392 100644 --- a/tests/language_2/compile_time_constant/compile_time_constant2_test.dart +++ b/tests/language_2/compile_time_constant/compile_time_constant2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; const x = 19; diff --git a/tests/language_2/compile_time_constant/compile_time_constant3_test.dart b/tests/language_2/compile_time_constant/compile_time_constant3_test.dart index 172308647bd..815b7db6559 100644 --- a/tests/language_2/compile_time_constant/compile_time_constant3_test.dart +++ b/tests/language_2/compile_time_constant/compile_time_constant3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; const x = 19.5; diff --git a/tests/language_2/compile_time_constant/compile_time_constant5_test.dart b/tests/language_2/compile_time_constant/compile_time_constant5_test.dart index 5136b29b4f0..6f8da388d48 100644 --- a/tests/language_2/compile_time_constant/compile_time_constant5_test.dart +++ b/tests/language_2/compile_time_constant/compile_time_constant5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; const x = true; diff --git a/tests/language_2/compile_time_constant/compile_time_constant6_test.dart b/tests/language_2/compile_time_constant/compile_time_constant6_test.dart index b30b2b6b9d3..c3538c6ff97 100644 --- a/tests/language_2/compile_time_constant/compile_time_constant6_test.dart +++ b/tests/language_2/compile_time_constant/compile_time_constant6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; const g1 = true; diff --git a/tests/language_2/compile_time_constant/compile_time_constant7_test.dart b/tests/language_2/compile_time_constant/compile_time_constant7_test.dart index 4780b47284b..de9b1efbd8f 100644 --- a/tests/language_2/compile_time_constant/compile_time_constant7_test.dart +++ b/tests/language_2/compile_time_constant/compile_time_constant7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/compile_time_constant/compile_time_constant8_test.dart b/tests/language_2/compile_time_constant/compile_time_constant8_test.dart index b4a9100e9c2..7fb1e3f440a 100644 --- a/tests/language_2/compile_time_constant/compile_time_constant8_test.dart +++ b/tests/language_2/compile_time_constant/compile_time_constant8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/compile_time_constant/compile_time_constant9_test.dart b/tests/language_2/compile_time_constant/compile_time_constant9_test.dart index 96cf41a5daf..97a37315146 100644 --- a/tests/language_2/compile_time_constant/compile_time_constant9_test.dart +++ b/tests/language_2/compile_time_constant/compile_time_constant9_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class B { diff --git a/tests/language_2/compile_time_constant/compile_time_constant_test.dart b/tests/language_2/compile_time_constant/compile_time_constant_test.dart index caf6d82875b..483bf2fb6a0 100644 --- a/tests/language_2/compile_time_constant/compile_time_constant_test.dart +++ b/tests/language_2/compile_time_constant/compile_time_constant_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Bad { int foo; final int bar = diff --git a/tests/language_2/compile_time_constant/d_test.dart b/tests/language_2/compile_time_constant/d_test.dart index e00c822a6a4..10307a6941e 100644 --- a/tests/language_2/compile_time_constant/d_test.dart +++ b/tests/language_2/compile_time_constant/d_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/compile_time_constant/e_test.dart b/tests/language_2/compile_time_constant/e_test.dart index f5b837fc155..00e65f8439e 100644 --- a/tests/language_2/compile_time_constant/e_test.dart +++ b/tests/language_2/compile_time_constant/e_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/compile_time_constant/f_test.dart b/tests/language_2/compile_time_constant/f_test.dart index 21c215e319c..80a10cc5d1f 100644 --- a/tests/language_2/compile_time_constant/f_test.dart +++ b/tests/language_2/compile_time_constant/f_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/compile_time_constant/g_test.dart b/tests/language_2/compile_time_constant/g_test.dart index 1be89366dd6..1a6db2f3c16 100644 --- a/tests/language_2/compile_time_constant/g_test.dart +++ b/tests/language_2/compile_time_constant/g_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/compile_time_constant/h_test.dart b/tests/language_2/compile_time_constant/h_test.dart index f4ba2120ed1..1def5adeb8e 100644 --- a/tests/language_2/compile_time_constant/h_test.dart +++ b/tests/language_2/compile_time_constant/h_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A implements B { diff --git a/tests/language_2/compile_time_constant/i_test.dart b/tests/language_2/compile_time_constant/i_test.dart index e8023562713..f0bd6a3c6ec 100644 --- a/tests/language_2/compile_time_constant/i_test.dart +++ b/tests/language_2/compile_time_constant/i_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/compile_time_constant/j_test.dart b/tests/language_2/compile_time_constant/j_test.dart index 8a5ed24e096..384faec5d5d 100644 --- a/tests/language_2/compile_time_constant/j_test.dart +++ b/tests/language_2/compile_time_constant/j_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/compile_time_constant/k_runtime_test.dart b/tests/language_2/compile_time_constant/k_runtime_test.dart index ba5a2a095a0..e20a8dd8c75 100644 --- a/tests/language_2/compile_time_constant/k_runtime_test.dart +++ b/tests/language_2/compile_time_constant/k_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/compile_time_constant/k_test.dart b/tests/language_2/compile_time_constant/k_test.dart index 0fc71285359..9e498127c14 100644 --- a/tests/language_2/compile_time_constant/k_test.dart +++ b/tests/language_2/compile_time_constant/k_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; const x = const { diff --git a/tests/language_2/compile_time_constant/l_test.dart b/tests/language_2/compile_time_constant/l_test.dart index 1f6bc50195c..a1b1be9abbd 100644 --- a/tests/language_2/compile_time_constant/l_test.dart +++ b/tests/language_2/compile_time_constant/l_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/compile_time_constant/m_test.dart b/tests/language_2/compile_time_constant/m_test.dart index 0ae096ea6db..76e5a33a94f 100644 --- a/tests/language_2/compile_time_constant/m_test.dart +++ b/tests/language_2/compile_time_constant/m_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/compile_time_constant/n_test.dart b/tests/language_2/compile_time_constant/n_test.dart index 3f621b2856e..65afe53a2aa 100644 --- a/tests/language_2/compile_time_constant/n_test.dart +++ b/tests/language_2/compile_time_constant/n_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/compile_time_constant/o_runtime_test.dart b/tests/language_2/compile_time_constant/o_runtime_test.dart index d808e9e5513..244a9c5b567 100644 --- a/tests/language_2/compile_time_constant/o_runtime_test.dart +++ b/tests/language_2/compile_time_constant/o_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/compile_time_constant/o_test.dart b/tests/language_2/compile_time_constant/o_test.dart index f9419b7f8bd..5301ab7bc24 100644 --- a/tests/language_2/compile_time_constant/o_test.dart +++ b/tests/language_2/compile_time_constant/o_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test compile-time constants with string-interpolation. +// @dart = 2.9 + import "package:expect/expect.dart"; const str = "foo"; diff --git a/tests/language_2/compile_time_constant/p_runtime_test.dart b/tests/language_2/compile_time_constant/p_runtime_test.dart index 283ecece181..fd3f286b5cb 100644 --- a/tests/language_2/compile_time_constant/p_runtime_test.dart +++ b/tests/language_2/compile_time_constant/p_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/compile_time_constant/p_test.dart b/tests/language_2/compile_time_constant/p_test.dart index 133519fce61..da05ab59594 100644 --- a/tests/language_2/compile_time_constant/p_test.dart +++ b/tests/language_2/compile_time_constant/p_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/compile_time_constant/q_test.dart b/tests/language_2/compile_time_constant/q_test.dart index 3b38e3c2f95..25b9f7b2f5f 100644 --- a/tests/language_2/compile_time_constant/q_test.dart +++ b/tests/language_2/compile_time_constant/q_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + const double x = 14.0; main() { print(x); diff --git a/tests/language_2/compile_time_constant/r_runtime_test.dart b/tests/language_2/compile_time_constant/r_runtime_test.dart index 2e8c3590586..1a909e44ab8 100644 --- a/tests/language_2/compile_time_constant/r_runtime_test.dart +++ b/tests/language_2/compile_time_constant/r_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/compile_time_constant/r_test.dart b/tests/language_2/compile_time_constant/r_test.dart index 8713d18d664..16e8b8f806b 100644 --- a/tests/language_2/compile_time_constant/r_test.dart +++ b/tests/language_2/compile_time_constant/r_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + const x = throw "x"; // ^^^^^^^^^ diff --git a/tests/language_2/compile_time_constant/runtime_test.dart b/tests/language_2/compile_time_constant/runtime_test.dart index 9fc8d8f8477..31deb6857a9 100644 --- a/tests/language_2/compile_time_constant/runtime_test.dart +++ b/tests/language_2/compile_time_constant/runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/compile_time_constant/static2_runtime_test.dart b/tests/language_2/compile_time_constant/static2_runtime_test.dart index d5b893941be..c0429b13bee 100644 --- a/tests/language_2/compile_time_constant/static2_runtime_test.dart +++ b/tests/language_2/compile_time_constant/static2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/compile_time_constant/static2_test.dart b/tests/language_2/compile_time_constant/static2_test.dart index 70ae5c5e85a..8b4885adaf2 100644 --- a/tests/language_2/compile_time_constant/static2_test.dart +++ b/tests/language_2/compile_time_constant/static2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { final int x; const A.a1() : x = 'foo'; diff --git a/tests/language_2/compile_time_constant/static3_runtime_test.dart b/tests/language_2/compile_time_constant/static3_runtime_test.dart index d5b893941be..c0429b13bee 100644 --- a/tests/language_2/compile_time_constant/static3_runtime_test.dart +++ b/tests/language_2/compile_time_constant/static3_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/compile_time_constant/static3_test.dart b/tests/language_2/compile_time_constant/static3_test.dart index eb101ace0f7..1030a1e1922 100644 --- a/tests/language_2/compile_time_constant/static3_test.dart +++ b/tests/language_2/compile_time_constant/static3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { final int x; const A.a1() : x = 'foo'; diff --git a/tests/language_2/compile_time_constant/static4_test.dart b/tests/language_2/compile_time_constant/static4_test.dart index 8436b05ca88..feaa3eef844 100644 --- a/tests/language_2/compile_time_constant/static4_test.dart +++ b/tests/language_2/compile_time_constant/static4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { final _x; const A.a1( diff --git a/tests/language_2/compile_time_constant/static5_test.dart b/tests/language_2/compile_time_constant/static5_test.dart index c1666e80294..878515b1806 100644 --- a/tests/language_2/compile_time_constant/static5_test.dart +++ b/tests/language_2/compile_time_constant/static5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { const A(); } diff --git a/tests/language_2/compile_time_constant/static_runtime_test.dart b/tests/language_2/compile_time_constant/static_runtime_test.dart index 9e4712f3712..b23bf988f46 100644 --- a/tests/language_2/compile_time_constant/static_runtime_test.dart +++ b/tests/language_2/compile_time_constant/static_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/compile_time_constant/static_test.dart b/tests/language_2/compile_time_constant/static_test.dart index d5ebd130f48..5b404489140 100644 --- a/tests/language_2/compile_time_constant/static_test.dart +++ b/tests/language_2/compile_time_constant/static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + final int x = 'foo'; // ^^^^^ // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT diff --git a/tests/language_2/compiler_annotations.dart b/tests/language_2/compiler_annotations.dart index c920add403b..9264514ff65 100644 --- a/tests/language_2/compiler_annotations.dart +++ b/tests/language_2/compiler_annotations.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library compiler_annotations; // This library contains annotations useful for testing. diff --git a/tests/language_2/const/cast1_test.dart b/tests/language_2/const/cast1_test.dart index 2363f3f1513..219be00282e 100644 --- a/tests/language_2/const/cast1_test.dart +++ b/tests/language_2/const/cast1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Implicit casts in constants are supported and treated as compile-time errors /// if they are not valid. diff --git a/tests/language_2/const/cast2_test.dart b/tests/language_2/const/cast2_test.dart index 326a884c001..f4bcccf7568 100644 --- a/tests/language_2/const/cast2_test.dart +++ b/tests/language_2/const/cast2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Explicit casts in constants are supported and treated as compile-time errors /// if they are not valid. diff --git a/tests/language_2/const/cast3_test.dart b/tests/language_2/const/cast3_test.dart index f7d73542cb1..173abb842c4 100644 --- a/tests/language_2/const/cast3_test.dart +++ b/tests/language_2/const/cast3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Casts in constants correctly substitute type variables. class A { diff --git a/tests/language_2/const/cast4_test.dart b/tests/language_2/const/cast4_test.dart index cb7a25031fd..3b3de5eb676 100644 --- a/tests/language_2/const/cast4_test.dart +++ b/tests/language_2/const/cast4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Casts in constants correctly substitute type variables. class A { diff --git a/tests/language_2/const/conditional_runtime_test.dart b/tests/language_2/const/conditional_runtime_test.dart index 5b9d8c870df..2567385b968 100644 --- a/tests/language_2/const/conditional_runtime_test.dart +++ b/tests/language_2/const/conditional_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/conditional_test.dart b/tests/language_2/const/conditional_test.dart index 49437481aad..83c09ca2094 100644 --- a/tests/language_2/const/conditional_test.dart +++ b/tests/language_2/const/conditional_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for conditionals as compile-time constants. import 'package:expect/expect.dart'; diff --git a/tests/language_2/const/const2_test.dart b/tests/language_2/const/const2_test.dart index 6a9f94eb670..63c33743655 100644 --- a/tests/language_2/const/const2_test.dart +++ b/tests/language_2/const/const2_test.dart @@ -4,6 +4,8 @@ // VMOptions= // VMOptions=--compile_all +// @dart = 2.9 + // Exercises language constructs that require compile time constants // Initialize with different literal types diff --git a/tests/language_2/const/const3_test.dart b/tests/language_2/const/const3_test.dart index 07580578882..bc2818a5004 100644 --- a/tests/language_2/const/const3_test.dart +++ b/tests/language_2/const/const3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check that initializers of const fields can be declared out of order. +// @dart = 2.9 + import "package:expect/expect.dart"; const P = 2 * (O - N); diff --git a/tests/language_2/const/const4_lib.dart b/tests/language_2/const/const4_lib.dart index c9d2840fced..e0ca165e491 100644 --- a/tests/language_2/const/const4_lib.dart +++ b/tests/language_2/const/const4_lib.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // See CTConst4Test.dart +// @dart = 2.9 + library CTConst4Lib; const B = 1; diff --git a/tests/language_2/const/const4_test.dart b/tests/language_2/const/const4_test.dart index c47f33c84a8..d69275bf9eb 100644 --- a/tests/language_2/const/const4_test.dart +++ b/tests/language_2/const/const4_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check compile-time constant library references with prefixes +// @dart = 2.9 + library CTConst4Test; import "package:expect/expect.dart"; diff --git a/tests/language_2/const/const_locals_constant_locals_test.dart b/tests/language_2/const/const_locals_constant_locals_test.dart index 472687b8202..2d272164f06 100644 --- a/tests/language_2/const/const_locals_constant_locals_test.dart +++ b/tests/language_2/const/const_locals_constant_locals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that constant local variables have constant initializers. import "package:expect/expect.dart"; diff --git a/tests/language_2/const/const_locals_runtime_test.dart b/tests/language_2/const/const_locals_runtime_test.dart index efabff5cff1..ad0225d0b48 100644 --- a/tests/language_2/const/const_locals_runtime_test.dart +++ b/tests/language_2/const/const_locals_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/const_test.dart b/tests/language_2/const/const_test.dart index d97f547524a..ab9920d3797 100644 --- a/tests/language_2/const/const_test.dart +++ b/tests/language_2/const/const_test.dart @@ -4,6 +4,8 @@ // Check const classes. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; class AConst { diff --git a/tests/language_2/const/constant_dag_test.dart b/tests/language_2/const/constant_dag_test.dart index 3be68895d76..22481877227 100644 --- a/tests/language_2/const/constant_dag_test.dart +++ b/tests/language_2/const/constant_dag_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test the efficient processing of constants that are DAGs. diff --git a/tests/language_2/const/constants_test.dart b/tests/language_2/const/constants_test.dart index db84c5bdb28..dcf172d3931 100644 --- a/tests/language_2/const/constants_test.dart +++ b/tests/language_2/const/constants_test.dart @@ -2,18 +2,20 @@ // 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 = 2.9 + class C { factory C() => null; } const -// [error line 9, column 1, length 5] +// [error line 11, column 1, length 5] // [analyzer] SYNTACTIC_ERROR.EXTRANEOUS_MODIFIER // [cfe] Can't have modifier 'const' here. t() => null; const -// [error line 15, column 1, length 5] +// [error line 17, column 1, length 5] // [analyzer] SYNTACTIC_ERROR.EXTRANEOUS_MODIFIER // [cfe] Can't have modifier 'const' here. get v => null; @@ -27,7 +29,6 @@ main() { const y = const C(); // ^^^^^ // [analyzer] COMPILE_TIME_ERROR.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE - // ^^^^^ // [analyzer] COMPILE_TIME_ERROR.CONST_WITH_NON_CONST // ^ // [cfe] Cannot invoke a non-'const' factory where a const expression is expected. diff --git a/tests/language_2/const/constructor2_test.dart b/tests/language_2/const/constructor2_test.dart index 6d782ce0bb3..008905a3c57 100644 --- a/tests/language_2/const/constructor2_test.dart +++ b/tests/language_2/const/constructor2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 14348. class A { diff --git a/tests/language_2/const/constructor3_runtime_1_test.dart b/tests/language_2/const/constructor3_runtime_1_test.dart index 2a970dbf4b4..f918dafd15a 100644 --- a/tests/language_2/const/constructor3_runtime_1_test.dart +++ b/tests/language_2/const/constructor3_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/constructor3_runtime_2_test.dart b/tests/language_2/const/constructor3_runtime_2_test.dart index 799f5d78cc8..97b5054b14e 100644 --- a/tests/language_2/const/constructor3_runtime_2_test.dart +++ b/tests/language_2/const/constructor3_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/constructor3_runtime_test.dart b/tests/language_2/const/constructor3_runtime_test.dart index 5c2e7711d62..5269804ff4e 100644 --- a/tests/language_2/const/constructor3_runtime_test.dart +++ b/tests/language_2/const/constructor3_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/constructor3_test.dart b/tests/language_2/const/constructor3_test.dart index 8ec85e0af2e..592dcdb2b39 100644 --- a/tests/language_2/const/constructor3_test.dart +++ b/tests/language_2/const/constructor3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { final double d; const C(this.d); diff --git a/tests/language_2/const/constructor_mixin2_runtime_test.dart b/tests/language_2/const/constructor_mixin2_runtime_test.dart index 5ca87e95825..5838d973476 100644 --- a/tests/language_2/const/constructor_mixin2_runtime_test.dart +++ b/tests/language_2/const/constructor_mixin2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/constructor_mixin2_test.dart b/tests/language_2/const/constructor_mixin2_test.dart index a7bc8633694..5794d869c70 100644 --- a/tests/language_2/const/constructor_mixin2_test.dart +++ b/tests/language_2/const/constructor_mixin2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Mixin { var nonFinalField; } diff --git a/tests/language_2/const/constructor_mixin3_test.dart b/tests/language_2/const/constructor_mixin3_test.dart index 9eb4d760830..b4797885ef8 100644 --- a/tests/language_2/const/constructor_mixin3_test.dart +++ b/tests/language_2/const/constructor_mixin3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Mixin {} class A { diff --git a/tests/language_2/const/constructor_mixin_test.dart b/tests/language_2/const/constructor_mixin_test.dart index a177ce14ae5..316f9751282 100644 --- a/tests/language_2/const/constructor_mixin_test.dart +++ b/tests/language_2/const/constructor_mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Mixin {} class A { diff --git a/tests/language_2/const/constructor_nonconst_field_runtime_test.dart b/tests/language_2/const/constructor_nonconst_field_runtime_test.dart index a08abbeda39..a261ec05f8a 100644 --- a/tests/language_2/const/constructor_nonconst_field_runtime_test.dart +++ b/tests/language_2/const/constructor_nonconst_field_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/constructor_nonconst_field_test.dart b/tests/language_2/const/constructor_nonconst_field_test.dart index 3533842d248..077a6095d43 100644 --- a/tests/language_2/const/constructor_nonconst_field_test.dart +++ b/tests/language_2/const/constructor_nonconst_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/const/constructor_nonconst_param_runtime_test.dart b/tests/language_2/const/constructor_nonconst_param_runtime_test.dart index 5ba2bf72336..d6fc8c8cfb5 100644 --- a/tests/language_2/const/constructor_nonconst_param_runtime_test.dart +++ b/tests/language_2/const/constructor_nonconst_param_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/constructor_nonconst_param_test.dart b/tests/language_2/const/constructor_nonconst_param_test.dart index bca1b3e11a5..fbb2d098696 100644 --- a/tests/language_2/const/constructor_nonconst_param_test.dart +++ b/tests/language_2/const/constructor_nonconst_param_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { const A(int a); } diff --git a/tests/language_2/const/constructor_runtime_test.dart b/tests/language_2/const/constructor_runtime_test.dart index c643e1cb539..9d19d3c0751 100644 --- a/tests/language_2/const/constructor_runtime_test.dart +++ b/tests/language_2/const/constructor_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/constructor_super2_test.dart b/tests/language_2/const/constructor_super2_test.dart index f922769d5c9..ca6cc3396fb 100644 --- a/tests/language_2/const/constructor_super2_test.dart +++ b/tests/language_2/const/constructor_super2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class A { diff --git a/tests/language_2/const/constructor_super_runtime_test.dart b/tests/language_2/const/constructor_super_runtime_test.dart index aa555a62ded..840652006ae 100644 --- a/tests/language_2/const/constructor_super_runtime_test.dart +++ b/tests/language_2/const/constructor_super_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/constructor_super_test.dart b/tests/language_2/const/constructor_super_test.dart index f710d15f5ea..447e91815fd 100644 --- a/tests/language_2/const/constructor_super_test.dart +++ b/tests/language_2/const/constructor_super_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/const/constructor_syntax_runtime_test.dart b/tests/language_2/const/constructor_syntax_runtime_test.dart index bccb4a8ece7..ad36a5159d4 100644 --- a/tests/language_2/const/constructor_syntax_runtime_test.dart +++ b/tests/language_2/const/constructor_syntax_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/constructor_syntax_test.dart b/tests/language_2/const/constructor_syntax_test.dart index ea34671f13b..e29bf6c0168 100644 --- a/tests/language_2/const/constructor_syntax_test.dart +++ b/tests/language_2/const/constructor_syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { var c0 = const C0(); // ^^^^^ diff --git a/tests/language_2/const/constructor_test.dart b/tests/language_2/const/constructor_test.dart index d571d92d064..079b0eb187b 100644 --- a/tests/language_2/const/constructor_test.dart +++ b/tests/language_2/const/constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/const/counter_runtime_test.dart b/tests/language_2/const/counter_runtime_test.dart index dd8251fc7c2..e70c3ad0378 100644 --- a/tests/language_2/const/counter_runtime_test.dart +++ b/tests/language_2/const/counter_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/counter_test.dart b/tests/language_2/const/counter_test.dart index 0ca474f6a9f..678e6f65af6 100644 --- a/tests/language_2/const/counter_test.dart +++ b/tests/language_2/const/counter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Bug: 4254106 Constant constructors must have (implicit) const parameters. class ConstCounter { diff --git a/tests/language_2/const/ct_const_test.dart b/tests/language_2/const/ct_const_test.dart index defab06af37..49ac1ad6806 100644 --- a/tests/language_2/const/ct_const_test.dart +++ b/tests/language_2/const/ct_const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test of apparent compile-time nature of constant evaluation. Constant Lists, // Maps and other objects should be identical independent of formation. diff --git a/tests/language_2/const/double_in_int_op_test.dart b/tests/language_2/const/double_in_int_op_test.dart index ed123053514..48568633076 100644 --- a/tests/language_2/const/double_in_int_op_test.dart +++ b/tests/language_2/const/double_in_int_op_test.dart @@ -2,7 +2,7 @@ // 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. -// SharedOptions=--enable-experiment=triple-shift +// @dart = 2.9 main() { const dynamic i1 = 3; @@ -16,25 +16,21 @@ main() { (i1 ^ i2) + //# ii3: ok (i1 << i2) + //# ii4: ok (i1 >> i2) + //# ii5: ok - (i1 >>> i2) + //# ii6: ok (i1 | d2) + //# id1: compile-time error (i1 & d2) + //# id2: compile-time error (i1 ^ d2) + //# id3: compile-time error (i1 << d2) + //# id4: compile-time error (i1 >> d2) + //# id5: compile-time error - (i1 >>> d2) + //# id6: compile-time error (d1 | i2) + //# di1: compile-time error (d1 & i2) + //# di2: compile-time error (d1 ^ i2) + //# di3: compile-time error (d1 << i2) + //# di4: compile-time error (d1 >> i2) + //# di5: compile-time error - (d1 >>> i2) + //# di6: compile-time error (d1 | d2) + //# dd1: compile-time error (d1 & d2) + //# dd2: compile-time error (d1 ^ d2) + //# dd3: compile-time error (d1 << d2) + //# dd4: compile-time error (d1 >> d2) + //# dd5: compile-time error - (d1 >>> d2) + //# dd6: compile-time error 0; print(sum); } diff --git a/tests/language_2/const/dynamic_type_literal_runtime_1_test.dart b/tests/language_2/const/dynamic_type_literal_runtime_1_test.dart index 8f56bb69902..466e4f91112 100644 --- a/tests/language_2/const/dynamic_type_literal_runtime_1_test.dart +++ b/tests/language_2/const/dynamic_type_literal_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/dynamic_type_literal_runtime_2_test.dart b/tests/language_2/const/dynamic_type_literal_runtime_2_test.dart index 478a9edea23..125a59ea566 100644 --- a/tests/language_2/const/dynamic_type_literal_runtime_2_test.dart +++ b/tests/language_2/const/dynamic_type_literal_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/dynamic_type_literal_runtime_test.dart b/tests/language_2/const/dynamic_type_literal_runtime_test.dart index 05cb59a110b..2337462d454 100644 --- a/tests/language_2/const/dynamic_type_literal_runtime_test.dart +++ b/tests/language_2/const/dynamic_type_literal_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/dynamic_type_literal_test.dart b/tests/language_2/const/dynamic_type_literal_test.dart index e69bb8f19aa..8f159cbcc7a 100644 --- a/tests/language_2/const/dynamic_type_literal_test.dart +++ b/tests/language_2/const/dynamic_type_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that 'dynamic' can be used in const expressions and has the expected // behavior. diff --git a/tests/language_2/const/error_multiply_initialized_test.dart b/tests/language_2/const/error_multiply_initialized_test.dart index 490ea0fccd2..8b6643c5da6 100644 --- a/tests/language_2/const/error_multiply_initialized_test.dart +++ b/tests/language_2/const/error_multiply_initialized_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // If a constant constructor contains an initializer, or an initializing // formal, for a final field which itself has an initializer at its // declaration, then a compile-time error should be reported regardless of diff --git a/tests/language_2/const/escape_frog_test.dart b/tests/language_2/const/escape_frog_test.dart index 03800587529..0ae7e561896 100644 --- a/tests/language_2/const/escape_frog_test.dart +++ b/tests/language_2/const/escape_frog_test.dart @@ -4,6 +4,8 @@ // Test division by power of two. // Test that results before and after optimization are the same. +// @dart = 2.9 + import "package:expect/expect.dart"; class Foo { diff --git a/tests/language_2/const/evaluation_test.dart b/tests/language_2/const/evaluation_test.dart index cd0353e4768..e9fe9072dd6 100644 --- a/tests/language_2/const/evaluation_test.dart +++ b/tests/language_2/const/evaluation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that compile-time evaluation of constants is consistent with runtime // evaluation. diff --git a/tests/language_2/const/factory_redirection_test.dart b/tests/language_2/const/factory_redirection_test.dart index 3d2fdeac818..72651489afa 100644 --- a/tests/language_2/const/factory_redirection_test.dart +++ b/tests/language_2/const/factory_redirection_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that factory redirections work for compile-time constants, and diff --git a/tests/language_2/const/factory_with_body_runtime_test.dart b/tests/language_2/const/factory_with_body_runtime_test.dart index 559defc4fb0..9ad1e97e82a 100644 --- a/tests/language_2/const/factory_with_body_runtime_test.dart +++ b/tests/language_2/const/factory_with_body_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/factory_with_body_test.dart b/tests/language_2/const/factory_with_body_test.dart index acabe6c613c..46d08fb4444 100644 --- a/tests/language_2/const/factory_with_body_test.dart +++ b/tests/language_2/const/factory_with_body_test.dart @@ -4,6 +4,8 @@ // // Tests that a "const factory" with body produces a compile-time error. +// @dart = 2.9 + class ConstFactoryWithBody { const factory ConstFactoryWithBody.one() { } //^^^^^ diff --git a/tests/language_2/const/for_in_variable_test.dart b/tests/language_2/const/for_in_variable_test.dart index 2eb63b7709e..ebcf66e69ce 100644 --- a/tests/language_2/const/for_in_variable_test.dart +++ b/tests/language_2/const/for_in_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { for ( const //# 01: compile-time error diff --git a/tests/language_2/const/getter_runtime_test.dart b/tests/language_2/const/getter_runtime_test.dart index 4d3248556ff..b03ed55842c 100644 --- a/tests/language_2/const/getter_runtime_test.dart +++ b/tests/language_2/const/getter_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/getter_test.dart b/tests/language_2/const/getter_test.dart index c843529c525..9f1039905da 100644 --- a/tests/language_2/const/getter_test.dart +++ b/tests/language_2/const/getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that const getters are not allowed. import 'package:expect/expect.dart'; @@ -17,7 +19,7 @@ class C { } const -// [error line 19, column 1, length 5] +// [error line 21, column 1, length 5] // [analyzer] SYNTACTIC_ERROR.EXTRANEOUS_MODIFIER // [cfe] Can't have modifier 'const' here. get y => 2; diff --git a/tests/language_2/const/global_test.dart b/tests/language_2/const/global_test.dart index 99143d4cb07..d22fc00b6e8 100644 --- a/tests/language_2/const/global_test.dart +++ b/tests/language_2/const/global_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; const a = 1; diff --git a/tests/language_2/const/inference_test.dart b/tests/language_2/const/inference_test.dart index b925f20fc6c..89b612c5c22 100644 --- a/tests/language_2/const/inference_test.dart +++ b/tests/language_2/const/inference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; R constFunction(T _) => null; diff --git a/tests/language_2/const/init2_runtime_1_test.dart b/tests/language_2/const/init2_runtime_1_test.dart index 7338f456a78..ae6cd4a9aa8 100644 --- a/tests/language_2/const/init2_runtime_1_test.dart +++ b/tests/language_2/const/init2_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/init2_runtime_test.dart b/tests/language_2/const/init2_runtime_test.dart index 5970f2956b0..0ec12b9076e 100644 --- a/tests/language_2/const/init2_runtime_test.dart +++ b/tests/language_2/const/init2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/init2_test.dart b/tests/language_2/const/init2_test.dart index 65f0aa2481c..f367c29f711 100644 --- a/tests/language_2/const/init2_test.dart +++ b/tests/language_2/const/init2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + const intValue = 0; const double c = 0.0; const double d = intValue; diff --git a/tests/language_2/const/init_test.dart b/tests/language_2/const/init_test.dart index 714f9e10b95..211eb632960 100644 --- a/tests/language_2/const/init_test.dart +++ b/tests/language_2/const/init_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check that initializers of static const fields are compile time constants. +// @dart = 2.9 + import "package:expect/expect.dart"; class Point { diff --git a/tests/language_2/const/instance_field_runtime_test.dart b/tests/language_2/const/instance_field_runtime_test.dart index 697b231a495..7aeb4928242 100644 --- a/tests/language_2/const/instance_field_runtime_test.dart +++ b/tests/language_2/const/instance_field_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/instance_field_test.dart b/tests/language_2/const/instance_field_test.dart index f80551a9a42..50fe87ab130 100644 --- a/tests/language_2/const/instance_field_test.dart +++ b/tests/language_2/const/instance_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that const instance fields are compile-time errors. class C { diff --git a/tests/language_2/const/list_test.dart b/tests/language_2/const/list_test.dart index cdc0fb305f7..d48e022970f 100644 --- a/tests/language_2/const/list_test.dart +++ b/tests/language_2/const/list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class ConstListTest { diff --git a/tests/language_2/const/local_test.dart b/tests/language_2/const/local_test.dart index f5288ed4dff..51d9744a316 100644 --- a/tests/language_2/const/local_test.dart +++ b/tests/language_2/const/local_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/const/locals_test.dart b/tests/language_2/const/locals_test.dart index 00fc637df38..bd931379e25 100644 --- a/tests/language_2/const/locals_test.dart +++ b/tests/language_2/const/locals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test of compile time constant local variables. diff --git a/tests/language_2/const/map2_runtime_test.dart b/tests/language_2/const/map2_runtime_test.dart index 9e1fe97c5fa..5ce67f2e152 100644 --- a/tests/language_2/const/map2_runtime_test.dart +++ b/tests/language_2/const/map2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/map2_test.dart b/tests/language_2/const/map2_test.dart index a5f37980b5d..55f729e7020 100644 --- a/tests/language_2/const/map2_test.dart +++ b/tests/language_2/const/map2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/const/map3_runtime_test.dart b/tests/language_2/const/map3_runtime_test.dart index 4416774816e..7511732463d 100644 --- a/tests/language_2/const/map3_runtime_test.dart +++ b/tests/language_2/const/map3_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/map3_test.dart b/tests/language_2/const/map3_test.dart index b7ee989d200..368e633a924 100644 --- a/tests/language_2/const/map3_test.dart +++ b/tests/language_2/const/map3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/const/map4_test.dart b/tests/language_2/const/map4_test.dart index 397672c1f6d..88e13989101 100644 --- a/tests/language_2/const/map4_test.dart +++ b/tests/language_2/const/map4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/const/map_test.dart b/tests/language_2/const/map_test.dart index 19ced31f51f..b0df3bc2125 100644 --- a/tests/language_2/const/map_test.dart +++ b/tests/language_2/const/map_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; /// Returns its argument. diff --git a/tests/language_2/const/named_test.dart b/tests/language_2/const/named_test.dart index 94b559861f5..8b2f278accf 100644 --- a/tests/language_2/const/named_test.dart +++ b/tests/language_2/const/named_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check that const constructors work with named arguments. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/const/native_factory_test.dart b/tests/language_2/const/native_factory_test.dart index 13d398f4767..44dc8a65585 100644 --- a/tests/language_2/const/native_factory_test.dart +++ b/tests/language_2/const/native_factory_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Cake { final name; const Cake(this.name); diff --git a/tests/language_2/const/nested_test.dart b/tests/language_2/const/nested_test.dart index bf52d67b97c..a290f3d361e 100644 --- a/tests/language_2/const/nested_test.dart +++ b/tests/language_2/const/nested_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test of compile time constant local variables in outer function levels. diff --git a/tests/language_2/const/objects_are_immutable_test.dart b/tests/language_2/const/objects_are_immutable_test.dart index 7633716d318..a5e9addeaf6 100644 --- a/tests/language_2/const/objects_are_immutable_test.dart +++ b/tests/language_2/const/objects_are_immutable_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check that const objects (including literals) are immutable. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/const/optional_args_runtime_test.dart b/tests/language_2/const/optional_args_runtime_test.dart index 46d23f9adc4..5dbe4bd3fd7 100644 --- a/tests/language_2/const/optional_args_runtime_test.dart +++ b/tests/language_2/const/optional_args_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/optional_args_test.dart b/tests/language_2/const/optional_args_test.dart index 3d7c7791c67..5d752e0e647 100644 --- a/tests/language_2/const/optional_args_test.dart +++ b/tests/language_2/const/optional_args_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that const objects (including literals) are immutable. // Must be 'const {}' to be valid. diff --git a/tests/language_2/const/qq_test.dart b/tests/language_2/const/qq_test.dart index 7b91c968d3b..cdaefe7a4f3 100644 --- a/tests/language_2/const/qq_test.dart +++ b/tests/language_2/const/qq_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that ?? is compile-time constant. import "package:expect/expect.dart"; diff --git a/tests/language_2/const/redirect_skips_supertype_test.dart b/tests/language_2/const/redirect_skips_supertype_test.dart index f79ad5a6a2a..b1157962e54 100644 --- a/tests/language_2/const/redirect_skips_supertype_test.dart +++ b/tests/language_2/const/redirect_skips_supertype_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Since C redirects to C.named, it doesn't implicitly refer to B's // unnamed constructor. Therefore there is no cycle. diff --git a/tests/language_2/const/redirecting_factory_test.dart b/tests/language_2/const/redirecting_factory_test.dart index 966018d9279..33a1420f571 100644 --- a/tests/language_2/const/redirecting_factory_test.dart +++ b/tests/language_2/const/redirecting_factory_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class K implements L { diff --git a/tests/language_2/const/string_test.dart b/tests/language_2/const/string_test.dart index 13f1a9cb73a..0429ff5f9bd 100644 --- a/tests/language_2/const/string_test.dart +++ b/tests/language_2/const/string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Exercises compile-time string constants diff --git a/tests/language_2/const/switch2_runtime_test.dart b/tests/language_2/const/switch2_runtime_test.dart index 65d37deddf3..f8a2d964414 100644 --- a/tests/language_2/const/switch2_runtime_test.dart +++ b/tests/language_2/const/switch2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/switch2_test.dart b/tests/language_2/const/switch2_test.dart index f1daf0c46c9..772846eea03 100644 --- a/tests/language_2/const/switch2_test.dart +++ b/tests/language_2/const/switch2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; int main() { diff --git a/tests/language_2/const/switch_test.dart b/tests/language_2/const/switch_test.dart index 05ae822845e..48b7d3d617c 100644 --- a/tests/language_2/const/switch_test.dart +++ b/tests/language_2/const/switch_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class C { diff --git a/tests/language_2/const/syntax_runtime_test.dart b/tests/language_2/const/syntax_runtime_test.dart index 93d1f48e6e8..ebb4dd71d6f 100644 --- a/tests/language_2/const/syntax_runtime_test.dart +++ b/tests/language_2/const/syntax_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/const/syntax_test.dart b/tests/language_2/const/syntax_test.dart index 138d30c8e70..364a421b6ec 100644 --- a/tests/language_2/const/syntax_test.dart +++ b/tests/language_2/const/syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/const/tree_test.dart b/tests/language_2/const/tree_test.dart index 7c0cd282b48..8b42e7d4587 100644 --- a/tests/language_2/const/tree_test.dart +++ b/tests/language_2/const/tree_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { final List children; const A({this.children: const []}); diff --git a/tests/language_2/const/types_test.dart b/tests/language_2/const/types_test.dart index 3199c0c9752..84f07eec49f 100644 --- a/tests/language_2/const/types_test.dart +++ b/tests/language_2/const/types_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test handling of malformed types in constant expressions. use(x) {} diff --git a/tests/language_2/const/var_helper.dart b/tests/language_2/const/var_helper.dart index ad3806c2d92..3be3c413770 100644 --- a/tests/language_2/const/var_helper.dart +++ b/tests/language_2/const/var_helper.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // All things regarding constant variables. +// @dart = 2.9 + /** Helper library for 'var_test.dart' */ library const_var_helper; diff --git a/tests/language_2/const/var_test.dart b/tests/language_2/const/var_test.dart index 60557f65b9a..66c02f3d7ef 100644 --- a/tests/language_2/const/var_test.dart +++ b/tests/language_2/const/var_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // All things regarding constant variables. +// @dart = 2.9 + library const_var; import 'var_helper.dart' as foo; diff --git a/tests/language_2/constants_2018/const_type_test.dart b/tests/language_2/constants_2018/const_type_test.dart index c6c3f333e85..511450995b1 100644 --- a/tests/language_2/constants_2018/const_type_test.dart +++ b/tests/language_2/constants_2018/const_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that types do matter when an expression is evaluated as constant. main() { @@ -97,4 +99,4 @@ class C { C operator <=(C other) => this; C operator >=(C other) => this; C get length => this; -} \ No newline at end of file +} diff --git a/tests/language_2/constants_2018/constant_type_literal_test.dart b/tests/language_2/constants_2018/constant_type_literal_test.dart index 99a26dbcdb2..e7086f37d06 100644 --- a/tests/language_2/constants_2018/constant_type_literal_test.dart +++ b/tests/language_2/constants_2018/constant_type_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that non-deferred type literals are constant expressions. import "dart:core"; diff --git a/tests/language_2/constants_2018/constant_type_literal_types.dart b/tests/language_2/constants_2018/constant_type_literal_types.dart index d3f5f2cd8d6..38dff1caebc 100644 --- a/tests/language_2/constants_2018/constant_type_literal_types.dart +++ b/tests/language_2/constants_2018/constant_type_literal_types.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Helper file for constant_type_literal_test.dart. // Tests that non-deferred type literals are constant expressions. diff --git a/tests/language_2/constants_2018/constant_types_test.dart b/tests/language_2/constants_2018/constant_types_test.dart index 5defae9d8a6..333c6d4b444 100644 --- a/tests/language_2/constants_2018/constant_types_test.dart +++ b/tests/language_2/constants_2018/constant_types_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that only constant types are allowed in some positions, // not type parameters. diff --git a/tests/language_2/constants_2018/equals_test.dart b/tests/language_2/constants_2018/equals_test.dart index 5c74e69cb5e..6ddd3e1e294 100644 --- a/tests/language_2/constants_2018/equals_test.dart +++ b/tests/language_2/constants_2018/equals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that equality is allowed for receivers of specific types. import "package:expect/expect.dart"; diff --git a/tests/language_2/constants_2018/potential_const_dynamic_test.dart b/tests/language_2/constants_2018/potential_const_dynamic_test.dart index 63f031a5796..2f98cc3b600 100644 --- a/tests/language_2/constants_2018/potential_const_dynamic_test.dart +++ b/tests/language_2/constants_2018/potential_const_dynamic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that a dynamic type does not affect whether an expression is // potentially constant, the actual type of the value of an experssion // only matters if the expression is evaluated as a constant. @@ -17,7 +19,6 @@ main() { T.test07(c, c); T.test08(c, c); T.test09(c, c); - T.test10(c, c); //# sh3: ok T.test11(c, c); T.test12(c, c); T.test13(c, c); @@ -40,7 +41,6 @@ class T { const T.test07(dynamic x, dynamic y) : this(x % y); const T.test08(dynamic x, dynamic y) : this(x << y); const T.test09(dynamic x, dynamic y) : this(x >> y); - const T.test10(dynamic x, dynamic y) : this(x >>> y); //# sh3: continued const T.test11(dynamic x, dynamic y) : this(x & y); const T.test12(dynamic x, dynamic y) : this(x | y); const T.test13(dynamic x, dynamic y) : this(x ^ y); @@ -63,7 +63,6 @@ class C { dynamic operator %(dynamic other) => this; dynamic operator <<(dynamic other) => this; dynamic operator >>(dynamic other) => this; - dynamic operator >>>(dynamic other) => this; //# sh3: continued dynamic operator &(dynamic other) => this; dynamic operator |(dynamic other) => this; dynamic operator ^(dynamic other) => this; diff --git a/tests/language_2/constants_2018/potential_const_shortcircuit_test.dart b/tests/language_2/constants_2018/potential_const_shortcircuit_test.dart index fe99bbbcf1d..d91adce7236 100644 --- a/tests/language_2/constants_2018/potential_const_shortcircuit_test.dart +++ b/tests/language_2/constants_2018/potential_const_shortcircuit_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that short-circuit operators do not care about the unevaluated part. import "package:expect/expect.dart"; diff --git a/tests/language_2/constants_2018/potential_const_test.dart b/tests/language_2/constants_2018/potential_const_test.dart index ad516a9624f..e7fd65847d0 100644 --- a/tests/language_2/constants_2018/potential_const_test.dart +++ b/tests/language_2/constants_2018/potential_const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that the correct places allows, and requires, potentially constant // expressions. diff --git a/tests/language_2/constants_2018/potential_const_type_test.dart b/tests/language_2/constants_2018/potential_const_type_test.dart index e4a26ee6be6..fd47f3d7a39 100644 --- a/tests/language_2/constants_2018/potential_const_type_test.dart +++ b/tests/language_2/constants_2018/potential_const_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that types do not affect whether an expression is potentially // constant, they only matter if the expression is evaluated as a constant. @@ -16,7 +18,6 @@ main() { T.test07(c, c); T.test08(c, c); T.test09(c, c); - T.test10(c, c); //# sh3: ok T.test11(c, c); T.test12(c, c); T.test13(c, c); @@ -36,7 +37,6 @@ main() { const v07 = true ? c : c % c; const v08 = true ? c : c << c; const v09 = true ? c : c >> c; - const v10 = true ? c : c >>> c; //# sh3: continued const v11 = true ? c : c & c; const v12 = true ? c : c | c; const v13 = true ? c : c ^ c; @@ -59,7 +59,6 @@ class T { const T.test07(C x, C y) : this(x % y); const T.test08(C x, C y) : this(x << y); const T.test09(C x, C y) : this(x >> y); - const T.test10(C x, C y) : this(x >>> y); //# sh3: continued const T.test11(C x, C y) : this(x & y); const T.test12(C x, C y) : this(x | y); const T.test13(C x, C y) : this(x ^ y); @@ -82,7 +81,6 @@ class C { C operator %(C other) => this; C operator <<(C other) => this; C operator >>(C other) => this; - C operator >>>(C other) => this; //# sh3: continued C operator &(C other) => this; C operator |(C other) => this; C operator ^(C other) => this; diff --git a/tests/language_2/constants_2018/type_cast_test.dart b/tests/language_2/constants_2018/type_cast_test.dart index 72aa11e4699..001153051db 100644 --- a/tests/language_2/constants_2018/type_cast_test.dart +++ b/tests/language_2/constants_2018/type_cast_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that type casts (as) are allowed. main() { diff --git a/tests/language_2/constants_2018/type_check_test.dart b/tests/language_2/constants_2018/type_check_test.dart index 7c7a318fe1c..9ee4eb6f801 100644 --- a/tests/language_2/constants_2018/type_check_test.dart +++ b/tests/language_2/constants_2018/type_check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that type checks (is) are allowed. import "package:expect/expect.dart"; diff --git a/tests/language_2/constructor/bad_constructor_runtime_1_test.dart b/tests/language_2/constructor/bad_constructor_runtime_1_test.dart index 4269607f00e..61a4b65de1e 100644 --- a/tests/language_2/constructor/bad_constructor_runtime_1_test.dart +++ b/tests/language_2/constructor/bad_constructor_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/bad_constructor_runtime_test.dart b/tests/language_2/constructor/bad_constructor_runtime_test.dart index 40d83780c78..8ae086296f1 100644 --- a/tests/language_2/constructor/bad_constructor_runtime_test.dart +++ b/tests/language_2/constructor/bad_constructor_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/bad_constructor_test.dart b/tests/language_2/constructor/bad_constructor_test.dart index 5a12ca5002b..31c1015a430 100644 --- a/tests/language_2/constructor/bad_constructor_test.dart +++ b/tests/language_2/constructor/bad_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A constructor can't be static. class A { static diff --git a/tests/language_2/constructor/bad_named_constructor_runtime_test.dart b/tests/language_2/constructor/bad_named_constructor_runtime_test.dart index c84de90e51a..6cf1a9859db 100644 --- a/tests/language_2/constructor/bad_named_constructor_runtime_test.dart +++ b/tests/language_2/constructor/bad_named_constructor_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/bad_named_constructor_test.dart b/tests/language_2/constructor/bad_named_constructor_test.dart index d8a40d9df73..e969eb7b945 100644 --- a/tests/language_2/constructor/bad_named_constructor_test.dart +++ b/tests/language_2/constructor/bad_named_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { A() {} WrongName.foo() {} diff --git a/tests/language_2/constructor/body_test.dart b/tests/language_2/constructor/body_test.dart index d64d61f956d..8963e164c48 100644 --- a/tests/language_2/constructor/body_test.dart +++ b/tests/language_2/constructor/body_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors without function bodies. +// @dart = 2.9 + import "package:expect/expect.dart"; // Test a non-const constructor works without a body. diff --git a/tests/language_2/constructor/bodyless_wrong_arg_runtime_test.dart b/tests/language_2/constructor/bodyless_wrong_arg_runtime_test.dart index 6a6c07e9ee8..e0611cf1986 100644 --- a/tests/language_2/constructor/bodyless_wrong_arg_runtime_test.dart +++ b/tests/language_2/constructor/bodyless_wrong_arg_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/bodyless_wrong_arg_test.dart b/tests/language_2/constructor/bodyless_wrong_arg_test.dart index 4e669d03edd..acbdde1db5b 100644 --- a/tests/language_2/constructor/bodyless_wrong_arg_test.dart +++ b/tests/language_2/constructor/bodyless_wrong_arg_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Base { final String name; const Base(this.name); diff --git a/tests/language_2/constructor/call_as_function_test.dart b/tests/language_2/constructor/call_as_function_test.dart index cb1dbda3c3f..60fe2e1f933 100644 --- a/tests/language_2/constructor/call_as_function_test.dart +++ b/tests/language_2/constructor/call_as_function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Point { const Point(this.x, this.y); final int x; diff --git a/tests/language_2/constructor/call_wrong_argument_count_runtime_test.dart b/tests/language_2/constructor/call_wrong_argument_count_runtime_test.dart index adb20bd3614..0f7894b4f3b 100644 --- a/tests/language_2/constructor/call_wrong_argument_count_runtime_test.dart +++ b/tests/language_2/constructor/call_wrong_argument_count_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/call_wrong_argument_count_test.dart b/tests/language_2/constructor/call_wrong_argument_count_test.dart index 4830bcd5c3b..1dbb91a0054 100644 --- a/tests/language_2/constructor/call_wrong_argument_count_test.dart +++ b/tests/language_2/constructor/call_wrong_argument_count_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Stockhorn { Stockhorn(int a); } diff --git a/tests/language_2/constructor/constructor10_runtime_test.dart b/tests/language_2/constructor/constructor10_runtime_test.dart index 554c0e173df..9103d926deb 100644 --- a/tests/language_2/constructor/constructor10_runtime_test.dart +++ b/tests/language_2/constructor/constructor10_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/constructor10_test.dart b/tests/language_2/constructor/constructor10_test.dart index 06426fb8740..d7bd54e5f2a 100644 --- a/tests/language_2/constructor/constructor10_test.dart +++ b/tests/language_2/constructor/constructor10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that the implicit super call for synthetic constructors are checked. class A { diff --git a/tests/language_2/constructor/constructor11_test.dart b/tests/language_2/constructor/constructor11_test.dart index 73d08a386a6..722927cdfd0 100644 --- a/tests/language_2/constructor/constructor11_test.dart +++ b/tests/language_2/constructor/constructor11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that the implicit super call for synthetic constructors are checked. import "package:expect/expect.dart"; diff --git a/tests/language_2/constructor/constructor12_test.dart b/tests/language_2/constructor/constructor12_test.dart index 3aa1289da6d..d089038fdd9 100644 --- a/tests/language_2/constructor/constructor12_test.dart +++ b/tests/language_2/constructor/constructor12_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class B { diff --git a/tests/language_2/constructor/constructor13_runtime_test.dart b/tests/language_2/constructor/constructor13_runtime_test.dart index e2ff3b6405c..2cc22707e89 100644 --- a/tests/language_2/constructor/constructor13_runtime_test.dart +++ b/tests/language_2/constructor/constructor13_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/constructor13_test.dart b/tests/language_2/constructor/constructor13_test.dart index 24b8841bd20..b7051ea6e0f 100644 --- a/tests/language_2/constructor/constructor13_test.dart +++ b/tests/language_2/constructor/constructor13_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that there's no crash when constructor called with wrong // number of args. diff --git a/tests/language_2/constructor/constructor2_test.dart b/tests/language_2/constructor/constructor2_test.dart index 97dd7de1e38..509882aee6e 100644 --- a/tests/language_2/constructor/constructor2_test.dart +++ b/tests/language_2/constructor/constructor2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + import "package:expect/expect.dart"; // Expect the initializer expressions E(i) to be evaluated diff --git a/tests/language_2/constructor/constructor3_test.dart b/tests/language_2/constructor/constructor3_test.dart index 4bb717361c4..d2908fdc9dd 100644 --- a/tests/language_2/constructor/constructor3_test.dart +++ b/tests/language_2/constructor/constructor3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + import "package:expect/expect.dart"; // Expect the initializer expressions E(i) to be evaluated diff --git a/tests/language_2/constructor/constructor4_test.dart b/tests/language_2/constructor/constructor4_test.dart index b4df9b0e781..6d1665d5cf0 100644 --- a/tests/language_2/constructor/constructor4_test.dart +++ b/tests/language_2/constructor/constructor4_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + import "package:expect/expect.dart"; // Expect the initializer expressions E(i) to be evaluated diff --git a/tests/language_2/constructor/constructor5_test.dart b/tests/language_2/constructor/constructor5_test.dart index 52020cf6ed3..501c9eae4de 100644 --- a/tests/language_2/constructor/constructor5_test.dart +++ b/tests/language_2/constructor/constructor5_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + import "package:expect/expect.dart"; // Super initializer and super constructor body are executed in with the same diff --git a/tests/language_2/constructor/constructor6_test.dart b/tests/language_2/constructor/constructor6_test.dart index 71f6c38753a..9db561005dd 100644 --- a/tests/language_2/constructor/constructor6_test.dart +++ b/tests/language_2/constructor/constructor6_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + import "package:expect/expect.dart"; // Super initializer and super constructor body are executed in with the same diff --git a/tests/language_2/constructor/constructor7_test.dart b/tests/language_2/constructor/constructor7_test.dart index 5ed7be42533..93d84bc22f9 100644 --- a/tests/language_2/constructor/constructor7_test.dart +++ b/tests/language_2/constructor/constructor7_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + import "package:expect/expect.dart"; // Expect the initializer expressions E(i) to be evaluated diff --git a/tests/language_2/constructor/constructor8_test.dart b/tests/language_2/constructor/constructor8_test.dart index 9fb376259a3..3dc790e9ef7 100644 --- a/tests/language_2/constructor/constructor8_test.dart +++ b/tests/language_2/constructor/constructor8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for dart2js that used to crash on this program. diff --git a/tests/language_2/constructor/constructor9_runtime_test.dart b/tests/language_2/constructor/constructor9_runtime_test.dart index fcdbf5a3ace..ce11136bb1a 100644 --- a/tests/language_2/constructor/constructor9_runtime_test.dart +++ b/tests/language_2/constructor/constructor9_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/constructor9_test.dart b/tests/language_2/constructor/constructor9_test.dart index 607e1648df3..8f8737f1288 100644 --- a/tests/language_2/constructor/constructor9_test.dart +++ b/tests/language_2/constructor/constructor9_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that all final instance fields of a class are initialized by // constructors. diff --git a/tests/language_2/constructor/constructor_test.dart b/tests/language_2/constructor/constructor_test.dart index 17c384272ff..6546acec625 100644 --- a/tests/language_2/constructor/constructor_test.dart +++ b/tests/language_2/constructor/constructor_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + import "package:expect/expect.dart"; class A extends B { diff --git a/tests/language_2/constructor/cyclic_constructor_test.dart b/tests/language_2/constructor/cyclic_constructor_test.dart index 1b2533f00c2..d296ddb8a63 100644 --- a/tests/language_2/constructor/cyclic_constructor_test.dart +++ b/tests/language_2/constructor/cyclic_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { A.a() : this.b(); // ^^^^^^^^ diff --git a/tests/language_2/constructor/cyclic_runtime_test.dart b/tests/language_2/constructor/cyclic_runtime_test.dart index b0cf8affbb9..ff243e0acff 100644 --- a/tests/language_2/constructor/cyclic_runtime_test.dart +++ b/tests/language_2/constructor/cyclic_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/default_class_implicit_constructor_test.dart b/tests/language_2/constructor/default_class_implicit_constructor_test.dart index 30d48a5291c..b847164f149 100644 --- a/tests/language_2/constructor/default_class_implicit_constructor_test.dart +++ b/tests/language_2/constructor/default_class_implicit_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // An abstract class with a redirecting factory to a class with no declared diff --git a/tests/language_2/constructor/default_factory2_runtime_test.dart b/tests/language_2/constructor/default_factory2_runtime_test.dart index 63399e3f7f8..18af36845a4 100644 --- a/tests/language_2/constructor/default_factory2_runtime_test.dart +++ b/tests/language_2/constructor/default_factory2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/default_factory2_test.dart b/tests/language_2/constructor/default_factory2_test.dart index 49f11cea3b9..905b695a7c8 100644 --- a/tests/language_2/constructor/default_factory2_test.dart +++ b/tests/language_2/constructor/default_factory2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check type bounds when invoking a redirecting factory method abstract class Foo {} diff --git a/tests/language_2/constructor/default_factory3_test.dart b/tests/language_2/constructor/default_factory3_test.dart index 5178a152b3f..000ec16f0ce 100644 --- a/tests/language_2/constructor/default_factory3_test.dart +++ b/tests/language_2/constructor/default_factory3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check possibly still unresolved upper bounds of default factory class. abstract class A { diff --git a/tests/language_2/constructor/default_factory_library.dart b/tests/language_2/constructor/default_factory_library.dart index a7cd2930369..0b589d7f43a 100644 --- a/tests/language_2/constructor/default_factory_library.dart +++ b/tests/language_2/constructor/default_factory_library.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program for testing default factories defined across libraries library lib; diff --git a/tests/language_2/constructor/default_factory_library_test.dart b/tests/language_2/constructor/default_factory_library_test.dart index d14145633a2..5e84dcc4897 100644 --- a/tests/language_2/constructor/default_factory_library_test.dart +++ b/tests/language_2/constructor/default_factory_library_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program for testing factories defined across libraries library test; diff --git a/tests/language_2/constructor/default_factory_runtime_test.dart b/tests/language_2/constructor/default_factory_runtime_test.dart index a12c7e5499a..c90675371dc 100644 --- a/tests/language_2/constructor/default_factory_runtime_test.dart +++ b/tests/language_2/constructor/default_factory_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/default_factory_test.dart b/tests/language_2/constructor/default_factory_test.dart index 1b69325472c..04e563208be 100644 --- a/tests/language_2/constructor/default_factory_test.dart +++ b/tests/language_2/constructor/default_factory_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for testing default factories. diff --git a/tests/language_2/constructor/default_test.dart b/tests/language_2/constructor/default_test.dart index aae9c5267db..90e6b871327 100644 --- a/tests/language_2/constructor/default_test.dart +++ b/tests/language_2/constructor/default_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for default constructors. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/constructor/duplicate_final_test.dart b/tests/language_2/constructor/duplicate_final_test.dart index 96c1d22d09b..11336f8c7e6 100644 --- a/tests/language_2/constructor/duplicate_final_test.dart +++ b/tests/language_2/constructor/duplicate_final_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that duplicate initialization of a final field is a runtime error. class Class { diff --git a/tests/language_2/constructor/duplicate_initializers_runtime_test.dart b/tests/language_2/constructor/duplicate_initializers_runtime_test.dart index 94a34661633..c8776a587b4 100644 --- a/tests/language_2/constructor/duplicate_initializers_runtime_test.dart +++ b/tests/language_2/constructor/duplicate_initializers_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/duplicate_initializers_test.dart b/tests/language_2/constructor/duplicate_initializers_test.dart index 4f6699e63b4..c7876579b1d 100644 --- a/tests/language_2/constructor/duplicate_initializers_test.dart +++ b/tests/language_2/constructor/duplicate_initializers_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check that initializers are not duplicated +// @dart = 2.9 + class Class { Class(var v) : field_ = v // Test against duplicate final field initialization in initializing list. diff --git a/tests/language_2/constructor/duplicate_runtime_test.dart b/tests/language_2/constructor/duplicate_runtime_test.dart index c65bc41d68a..56a762b50ba 100644 --- a/tests/language_2/constructor/duplicate_runtime_test.dart +++ b/tests/language_2/constructor/duplicate_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/duplicate_test.dart b/tests/language_2/constructor/duplicate_test.dart index 80f717ea647..c234f7213f6 100644 --- a/tests/language_2/constructor/duplicate_test.dart +++ b/tests/language_2/constructor/duplicate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Foo { Foo(); Foo(); diff --git a/tests/language_2/constructor/evaluation_redirecting_constructor_test.dart b/tests/language_2/constructor/evaluation_redirecting_constructor_test.dart index 6236c0a6194..89b03a697f3 100644 --- a/tests/language_2/constructor/evaluation_redirecting_constructor_test.dart +++ b/tests/language_2/constructor/evaluation_redirecting_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int counter = 0; diff --git a/tests/language_2/constructor/example_constructor_test.dart b/tests/language_2/constructor/example_constructor_test.dart index f015b07c133..e069e80af8c 100644 --- a/tests/language_2/constructor/example_constructor_test.dart +++ b/tests/language_2/constructor/example_constructor_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing order of constructor invocation. +// @dart = 2.9 + import "package:expect/expect.dart"; var trace = ""; diff --git a/tests/language_2/constructor/forwarding_factory_constructor_default_values_test.dart b/tests/language_2/constructor/forwarding_factory_constructor_default_values_test.dart index 70738fe26c5..b0d57ca26e7 100644 --- a/tests/language_2/constructor/forwarding_factory_constructor_default_values_test.dart +++ b/tests/language_2/constructor/forwarding_factory_constructor_default_values_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js bug 18257: Properly infer types for forwarding // factory constructors with optional parameters with default values. diff --git a/tests/language_2/constructor/implicit_super_constructor_call_test.dart b/tests/language_2/constructor/implicit_super_constructor_call_test.dart index fca1a62e038..6247f0c3c9d 100644 --- a/tests/language_2/constructor/implicit_super_constructor_call_test.dart +++ b/tests/language_2/constructor/implicit_super_constructor_call_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This is a regression test for http://dartbug.com/22723. import "package:expect/expect.dart"; diff --git a/tests/language_2/constructor/implicit_super_constructor_test.dart b/tests/language_2/constructor/implicit_super_constructor_test.dart index 2c31206a233..fe90552d104 100644 --- a/tests/language_2/constructor/implicit_super_constructor_test.dart +++ b/tests/language_2/constructor/implicit_super_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class A { diff --git a/tests/language_2/constructor/inference_super_constructor_call_test.dart b/tests/language_2/constructor/inference_super_constructor_call_test.dart index a95c185590b..0d0f73d9e35 100644 --- a/tests/language_2/constructor/inference_super_constructor_call_test.dart +++ b/tests/language_2/constructor/inference_super_constructor_call_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js's inferrer that used to not propagate // types given to generative constructors in super constructor calls. diff --git a/tests/language_2/constructor/initializer_test.dart b/tests/language_2/constructor/initializer_test.dart index 420488512b1..a473d47cc7d 100644 --- a/tests/language_2/constructor/initializer_test.dart +++ b/tests/language_2/constructor/initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/constructor/missing_const_constructor_test.dart b/tests/language_2/constructor/missing_const_constructor_test.dart index 54664f4eb05..e5642690fa2 100644 --- a/tests/language_2/constructor/missing_const_constructor_test.dart +++ b/tests/language_2/constructor/missing_const_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test handling of unknown constructor in const expression. class GoodClass { diff --git a/tests/language_2/constructor/multiple_field_assignment_constructor_test.dart b/tests/language_2/constructor/multiple_field_assignment_constructor_test.dart index 7292e80657c..48ee8b9b52c 100644 --- a/tests/language_2/constructor/multiple_field_assignment_constructor_test.dart +++ b/tests/language_2/constructor/multiple_field_assignment_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "../compiler_annotations.dart"; diff --git a/tests/language_2/constructor/name_clash_lib.dart b/tests/language_2/constructor/name_clash_lib.dart index ff52f3b5aa4..f61cef4969d 100644 --- a/tests/language_2/constructor/name_clash_lib.dart +++ b/tests/language_2/constructor/name_clash_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib; var global = 0; diff --git a/tests/language_2/constructor/name_clash_test.dart b/tests/language_2/constructor/name_clash_test.dart index e7681efcb38..539d48fa899 100644 --- a/tests/language_2/constructor/name_clash_test.dart +++ b/tests/language_2/constructor/name_clash_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'name_clash_lib.dart' as lib; diff --git a/tests/language_2/constructor/name_test.dart b/tests/language_2/constructor/name_test.dart index 43e764fd886..445b38d058d 100644 --- a/tests/language_2/constructor/name_test.dart +++ b/tests/language_2/constructor/name_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Foo { Bar.Foo(); //# 01: compile-time error factory Bar(); //# 02: syntax error diff --git a/tests/language_2/constructor/named_arguments_test.dart b/tests/language_2/constructor/named_arguments_test.dart index fa64a85b3fc..16ba667c8a4 100644 --- a/tests/language_2/constructor/named_arguments_test.dart +++ b/tests/language_2/constructor/named_arguments_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for default constructors. +// @dart = 2.9 + import "package:expect/expect.dart"; String message; diff --git a/tests/language_2/constructor/named_constructor_test.dart b/tests/language_2/constructor/named_constructor_test.dart index 3b8af32ad48..c36fe2230b1 100644 --- a/tests/language_2/constructor/named_constructor_test.dart +++ b/tests/language_2/constructor/named_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library named_constructor_test; import 'package:expect/expect.dart'; diff --git a/tests/language_2/constructor/named_lib.dart b/tests/language_2/constructor/named_lib.dart index 210d54cf262..dc7ebf440d4 100644 --- a/tests/language_2/constructor/named_lib.dart +++ b/tests/language_2/constructor/named_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library named_constructor_lib; class Class { diff --git a/tests/language_2/constructor/named_runtime_test.dart b/tests/language_2/constructor/named_runtime_test.dart index 815b05be60e..3f47f6c184f 100644 --- a/tests/language_2/constructor/named_runtime_test.dart +++ b/tests/language_2/constructor/named_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/no_such_constructor_runtime_test.dart b/tests/language_2/constructor/no_such_constructor_runtime_test.dart index 17ee996fce9..7da3c44b540 100644 --- a/tests/language_2/constructor/no_such_constructor_runtime_test.dart +++ b/tests/language_2/constructor/no_such_constructor_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/no_such_constructor_test.dart b/tests/language_2/constructor/no_such_constructor_test.dart index 28c05a6d0fc..e8746bee028 100644 --- a/tests/language_2/constructor/no_such_constructor_test.dart +++ b/tests/language_2/constructor/no_such_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { A(); } diff --git a/tests/language_2/constructor/non_const_constructor_without_body_test.dart b/tests/language_2/constructor/non_const_constructor_without_body_test.dart index 13ef775938b..e9a07182828 100644 --- a/tests/language_2/constructor/non_const_constructor_without_body_test.dart +++ b/tests/language_2/constructor/non_const_constructor_without_body_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class NonConstConstructorWithoutBodyTest { diff --git a/tests/language_2/constructor/non_parameterized_factory2_test.dart b/tests/language_2/constructor/non_parameterized_factory2_test.dart index df8cff3eb05..071fde479a4 100644 --- a/tests/language_2/constructor/non_parameterized_factory2_test.dart +++ b/tests/language_2/constructor/non_parameterized_factory2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class Interface { factory Interface() = Factory; factory Interface.withArg(T value) = Factory.withArg; diff --git a/tests/language_2/constructor/non_parameterized_factory_test.dart b/tests/language_2/constructor/non_parameterized_factory_test.dart index 97b1ee56a9c..f5f1b316c0d 100644 --- a/tests/language_2/constructor/non_parameterized_factory_test.dart +++ b/tests/language_2/constructor/non_parameterized_factory_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class Interface { factory Interface() = Factory; factory Interface.withArg(T value) = Factory.withArg; diff --git a/tests/language_2/constructor/redirect2_runtime_test.dart b/tests/language_2/constructor/redirect2_runtime_test.dart index f5216f6b716..acfb41cca36 100644 --- a/tests/language_2/constructor/redirect2_runtime_test.dart +++ b/tests/language_2/constructor/redirect2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/redirect2_test.dart b/tests/language_2/constructor/redirect2_test.dart index 85fc2340537..71aa1c3c3d0 100644 --- a/tests/language_2/constructor/redirect2_test.dart +++ b/tests/language_2/constructor/redirect2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Redirection constructors must not have a function body. +// @dart = 2.9 + class A { var x; A(this.x) {} diff --git a/tests/language_2/constructor/redirect_cycle_runtime_test.dart b/tests/language_2/constructor/redirect_cycle_runtime_test.dart index 4a05857153f..50994cd33c3 100644 --- a/tests/language_2/constructor/redirect_cycle_runtime_test.dart +++ b/tests/language_2/constructor/redirect_cycle_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/redirect_cycle_test.dart b/tests/language_2/constructor/redirect_cycle_test.dart index 6730e06c304..38b62cf0132 100644 --- a/tests/language_2/constructor/redirect_cycle_test.dart +++ b/tests/language_2/constructor/redirect_cycle_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Redirection constructors must not be cyclic. +// @dart = 2.9 + class A { var x; A(x) diff --git a/tests/language_2/constructor/redirect_indirect_cycle_runtime_test.dart b/tests/language_2/constructor/redirect_indirect_cycle_runtime_test.dart index 94159a54e53..d84d2f0c13b 100644 --- a/tests/language_2/constructor/redirect_indirect_cycle_runtime_test.dart +++ b/tests/language_2/constructor/redirect_indirect_cycle_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/redirect_indirect_cycle_test.dart b/tests/language_2/constructor/redirect_indirect_cycle_test.dart index aa2bb69877f..88c64a87047 100644 --- a/tests/language_2/constructor/redirect_indirect_cycle_test.dart +++ b/tests/language_2/constructor/redirect_indirect_cycle_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { var x; A(x) : this.named(x, 0); diff --git a/tests/language_2/constructor/redirect_runtime_test.dart b/tests/language_2/constructor/redirect_runtime_test.dart index f6084b828c8..57571f530f5 100644 --- a/tests/language_2/constructor/redirect_runtime_test.dart +++ b/tests/language_2/constructor/redirect_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/redirect_test.dart b/tests/language_2/constructor/redirect_test.dart index 0f1ee3afd8b..cc4a63ad029 100644 --- a/tests/language_2/constructor/redirect_test.dart +++ b/tests/language_2/constructor/redirect_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for redirection constructors. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/constructor/reference_runtime_10_test.dart b/tests/language_2/constructor/reference_runtime_10_test.dart index b96d8f98320..4003032bee3 100644 --- a/tests/language_2/constructor/reference_runtime_10_test.dart +++ b/tests/language_2/constructor/reference_runtime_10_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/reference_runtime_11_test.dart b/tests/language_2/constructor/reference_runtime_11_test.dart index cea554d82bb..0f0acb0ec54 100644 --- a/tests/language_2/constructor/reference_runtime_11_test.dart +++ b/tests/language_2/constructor/reference_runtime_11_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/reference_runtime_12_test.dart b/tests/language_2/constructor/reference_runtime_12_test.dart index 5b58eaeb6c1..9e21d2f2033 100644 --- a/tests/language_2/constructor/reference_runtime_12_test.dart +++ b/tests/language_2/constructor/reference_runtime_12_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/reference_runtime_1_test.dart b/tests/language_2/constructor/reference_runtime_1_test.dart index 450bc7f965b..2223b1cd0f2 100644 --- a/tests/language_2/constructor/reference_runtime_1_test.dart +++ b/tests/language_2/constructor/reference_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/reference_runtime_2_test.dart b/tests/language_2/constructor/reference_runtime_2_test.dart index cab730f4e8d..4738ac29825 100644 --- a/tests/language_2/constructor/reference_runtime_2_test.dart +++ b/tests/language_2/constructor/reference_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/reference_runtime_3_test.dart b/tests/language_2/constructor/reference_runtime_3_test.dart index 20ac3d26810..09e2ef8c864 100644 --- a/tests/language_2/constructor/reference_runtime_3_test.dart +++ b/tests/language_2/constructor/reference_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/reference_runtime_4_test.dart b/tests/language_2/constructor/reference_runtime_4_test.dart index e69fe77c953..9ea2ba01afc 100644 --- a/tests/language_2/constructor/reference_runtime_4_test.dart +++ b/tests/language_2/constructor/reference_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/reference_runtime_5_test.dart b/tests/language_2/constructor/reference_runtime_5_test.dart index 4dda06178d1..0961239c149 100644 --- a/tests/language_2/constructor/reference_runtime_5_test.dart +++ b/tests/language_2/constructor/reference_runtime_5_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/reference_runtime_6_test.dart b/tests/language_2/constructor/reference_runtime_6_test.dart index 75859e03090..732dc9837cb 100644 --- a/tests/language_2/constructor/reference_runtime_6_test.dart +++ b/tests/language_2/constructor/reference_runtime_6_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/reference_runtime_7_test.dart b/tests/language_2/constructor/reference_runtime_7_test.dart index b18721e9c8f..9cff394b83e 100644 --- a/tests/language_2/constructor/reference_runtime_7_test.dart +++ b/tests/language_2/constructor/reference_runtime_7_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/reference_runtime_8_test.dart b/tests/language_2/constructor/reference_runtime_8_test.dart index 1493e34e9e5..ab6a55e997f 100644 --- a/tests/language_2/constructor/reference_runtime_8_test.dart +++ b/tests/language_2/constructor/reference_runtime_8_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/reference_runtime_9_test.dart b/tests/language_2/constructor/reference_runtime_9_test.dart index cad70b0a02f..e9dd1cd0315 100644 --- a/tests/language_2/constructor/reference_runtime_9_test.dart +++ b/tests/language_2/constructor/reference_runtime_9_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/reference_runtime_test.dart b/tests/language_2/constructor/reference_runtime_test.dart index 12b531491ff..cd35748cb9b 100644 --- a/tests/language_2/constructor/reference_runtime_test.dart +++ b/tests/language_2/constructor/reference_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/reference_test.dart b/tests/language_2/constructor/reference_test.dart index 9246d2b8f11..f4fa2feb0e8 100644 --- a/tests/language_2/constructor/reference_test.dart +++ b/tests/language_2/constructor/reference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Foo { const Foo(); const Foo.bar(); diff --git a/tests/language_2/constructor/return_runtime_test.dart b/tests/language_2/constructor/return_runtime_test.dart index 5b83303b27c..6e2f7d4d480 100644 --- a/tests/language_2/constructor/return_runtime_test.dart +++ b/tests/language_2/constructor/return_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/return_test.dart b/tests/language_2/constructor/return_test.dart index d82dd046876..9a57fb1cfa6 100644 --- a/tests/language_2/constructor/return_test.dart +++ b/tests/language_2/constructor/return_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart spec 0.03, section 11.10 - generative constructors can only have return diff --git a/tests/language_2/constructor/setter_test.dart b/tests/language_2/constructor/setter_test.dart index bad56d311c5..27297a704a1 100644 --- a/tests/language_2/constructor/setter_test.dart +++ b/tests/language_2/constructor/setter_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test that setters are not invokable in the initializer list. +// @dart = 2.9 + class A { A() : a = 499; /*@compile-error=unspecified*/ diff --git a/tests/language_2/constructor/type_parameter_runtime_test.dart b/tests/language_2/constructor/type_parameter_runtime_test.dart index 6cb2a751ab5..95328834bfe 100644 --- a/tests/language_2/constructor/type_parameter_runtime_test.dart +++ b/tests/language_2/constructor/type_parameter_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/type_parameter_test.dart b/tests/language_2/constructor/type_parameter_test.dart index 3712c263733..83bc17b4d8b 100644 --- a/tests/language_2/constructor/type_parameter_test.dart +++ b/tests/language_2/constructor/type_parameter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Foo { Foo() {} // ^^^ diff --git a/tests/language_2/constructor/unresolved_default_constructor_test.dart b/tests/language_2/constructor/unresolved_default_constructor_test.dart index b8b53381f96..5b474406fa3 100644 --- a/tests/language_2/constructor/unresolved_default_constructor_test.dart +++ b/tests/language_2/constructor/unresolved_default_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test unresolved default constructor calls cause compilation errors. import 'package:expect/expect.dart'; diff --git a/tests/language_2/constructor/unresolved_default_runtime_test.dart b/tests/language_2/constructor/unresolved_default_runtime_test.dart index dd83067bae5..bceb7eefb65 100644 --- a/tests/language_2/constructor/unresolved_default_runtime_test.dart +++ b/tests/language_2/constructor/unresolved_default_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/constructor/unresolved_in_factory_test.dart b/tests/language_2/constructor/unresolved_in_factory_test.dart index a9aa72abc72..06ed707f0e6 100644 --- a/tests/language_2/constructor/unresolved_in_factory_test.dart +++ b/tests/language_2/constructor/unresolved_in_factory_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that an unresolved method call in a factory is a compile error. class A { diff --git a/tests/language_2/constructor/with_mixin_test.dart b/tests/language_2/constructor/with_mixin_test.dart index 5e4badcb633..02af9e96700 100644 --- a/tests/language_2/constructor/with_mixin_test.dart +++ b/tests/language_2/constructor/with_mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test super constructor invocation with mixins. // Regression test for issue dartbug.com/22604 diff --git a/tests/language_2/constructor/with_type_parameters_test.dart b/tests/language_2/constructor/with_type_parameters_test.dart index 8df17332a44..25d495de209 100644 --- a/tests/language_2/constructor/with_type_parameters_test.dart +++ b/tests/language_2/constructor/with_type_parameters_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Bar { Bar() {} //# 01: ok Bar.boo() {} //# 02: ok diff --git a/tests/language_2/control_flow_collections/await_for_inference_test.dart b/tests/language_2/control_flow_collections/await_for_inference_test.dart index e0c1df8dec5..56959a1a2dd 100644 --- a/tests/language_2/control_flow_collections/await_for_inference_test.dart +++ b/tests/language_2/control_flow_collections/await_for_inference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test how await for interacts with inference. import "package:async_helper/async_helper.dart"; import 'package:expect/expect.dart'; diff --git a/tests/language_2/control_flow_collections/await_for_null_test.dart b/tests/language_2/control_flow_collections/await_for_null_test.dart index b176ea0ec3d..47529b273d7 100644 --- a/tests/language_2/control_flow_collections/await_for_null_test.dart +++ b/tests/language_2/control_flow_collections/await_for_null_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a null stream expression produces a runtime error. import 'package:async_helper/async_helper.dart'; diff --git a/tests/language_2/control_flow_collections/await_for_syntax_error_test.dart b/tests/language_2/control_flow_collections/await_for_syntax_error_test.dart index d64303ad4ec..6da051a9eb7 100644 --- a/tests/language_2/control_flow_collections/await_for_syntax_error_test.dart +++ b/tests/language_2/control_flow_collections/await_for_syntax_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { // Use await for in non-async function. var _ = [await for (var i in Stream.empty()) i]; //# 01: compile-time error diff --git a/tests/language_2/control_flow_collections/await_for_test.dart b/tests/language_2/control_flow_collections/await_for_test.dart index 9faee4ab9ed..402820be270 100644 --- a/tests/language_2/control_flow_collections/await_for_test.dart +++ b/tests/language_2/control_flow_collections/await_for_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/control_flow_collections/await_for_type_error_test.dart b/tests/language_2/control_flow_collections/await_for_type_error_test.dart index e63a52e569a..ef99194393d 100644 --- a/tests/language_2/control_flow_collections/await_for_type_error_test.dart +++ b/tests/language_2/control_flow_collections/await_for_type_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { () async { // Non-Stream type. diff --git a/tests/language_2/control_flow_collections/for_await_test.dart b/tests/language_2/control_flow_collections/for_await_test.dart index 2baeefc6834..69fa2d40afb 100644 --- a/tests/language_2/control_flow_collections/for_await_test.dart +++ b/tests/language_2/control_flow_collections/for_await_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:async_helper/async_helper.dart"; import 'package:expect/expect.dart'; diff --git a/tests/language_2/control_flow_collections/for_const_error_test.dart b/tests/language_2/control_flow_collections/for_const_error_test.dart index 334863990be..56d191949e2 100644 --- a/tests/language_2/control_flow_collections/for_const_error_test.dart +++ b/tests/language_2/control_flow_collections/for_const_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { // For cannot be used in a const collection. const _ = [for (var i in []) 1]; //# 00: compile-time error diff --git a/tests/language_2/control_flow_collections/for_inference_test.dart b/tests/language_2/control_flow_collections/for_inference_test.dart index 4e022e022c1..e7612c33716 100644 --- a/tests/language_2/control_flow_collections/for_inference_test.dart +++ b/tests/language_2/control_flow_collections/for_inference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test how control flow interacts with inference. import 'package:expect/expect.dart'; diff --git a/tests/language_2/control_flow_collections/for_non_bool_condition_test.dart b/tests/language_2/control_flow_collections/for_non_bool_condition_test.dart index a808e9cb257..3c9d45dc8ea 100644 --- a/tests/language_2/control_flow_collections/for_non_bool_condition_test.dart +++ b/tests/language_2/control_flow_collections/for_non_bool_condition_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void main() { diff --git a/tests/language_2/control_flow_collections/for_null_condition_test.dart b/tests/language_2/control_flow_collections/for_null_condition_test.dart index 8233c109070..637c064b085 100644 --- a/tests/language_2/control_flow_collections/for_null_condition_test.dart +++ b/tests/language_2/control_flow_collections/for_null_condition_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void main() { diff --git a/tests/language_2/control_flow_collections/for_runtime_error_test.dart b/tests/language_2/control_flow_collections/for_runtime_error_test.dart index ea5cfe4216a..5aa442a8f7b 100644 --- a/tests/language_2/control_flow_collections/for_runtime_error_test.dart +++ b/tests/language_2/control_flow_collections/for_runtime_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void main() { diff --git a/tests/language_2/control_flow_collections/for_test.dart b/tests/language_2/control_flow_collections/for_test.dart index 16026a6b57c..4e3e13bede1 100644 --- a/tests/language_2/control_flow_collections/for_test.dart +++ b/tests/language_2/control_flow_collections/for_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'utils.dart'; diff --git a/tests/language_2/control_flow_collections/for_variable_test.dart b/tests/language_2/control_flow_collections/for_variable_test.dart index 47ab2e74b51..13c44a0c623 100644 --- a/tests/language_2/control_flow_collections/for_variable_test.dart +++ b/tests/language_2/control_flow_collections/for_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Tests for how variables and scoping work with for elements. import 'package:expect/expect.dart'; diff --git a/tests/language_2/control_flow_collections/if_await_test.dart b/tests/language_2/control_flow_collections/if_await_test.dart index 08d0c607b96..cb38452d8af 100644 --- a/tests/language_2/control_flow_collections/if_await_test.dart +++ b/tests/language_2/control_flow_collections/if_await_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:async_helper/async_helper.dart"; import 'package:expect/expect.dart'; diff --git a/tests/language_2/control_flow_collections/if_const_error_test.dart b/tests/language_2/control_flow_collections/if_const_error_test.dart index bc1d0e27179..429452af671 100644 --- a/tests/language_2/control_flow_collections/if_const_error_test.dart +++ b/tests/language_2/control_flow_collections/if_const_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/control_flow_collections/if_const_test.dart b/tests/language_2/control_flow_collections/if_const_test.dart index 20a2c25472f..e6c75ce2e89 100644 --- a/tests/language_2/control_flow_collections/if_const_test.dart +++ b/tests/language_2/control_flow_collections/if_const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'utils.dart'; diff --git a/tests/language_2/control_flow_collections/if_inference_test.dart b/tests/language_2/control_flow_collections/if_inference_test.dart index 11c7b95672d..59c38ebffb6 100644 --- a/tests/language_2/control_flow_collections/if_inference_test.dart +++ b/tests/language_2/control_flow_collections/if_inference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test how control flow interacts with inference. import 'package:expect/expect.dart'; diff --git a/tests/language_2/control_flow_collections/if_null_condition_test.dart b/tests/language_2/control_flow_collections/if_null_condition_test.dart index fbfe3b9cf8e..b7de51eac67 100644 --- a/tests/language_2/control_flow_collections/if_null_condition_test.dart +++ b/tests/language_2/control_flow_collections/if_null_condition_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void main() { diff --git a/tests/language_2/control_flow_collections/if_promotion_test.dart b/tests/language_2/control_flow_collections/if_promotion_test.dart index 382db011a02..bdac6906544 100644 --- a/tests/language_2/control_flow_collections/if_promotion_test.dart +++ b/tests/language_2/control_flow_collections/if_promotion_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { var a = "a"; } diff --git a/tests/language_2/control_flow_collections/if_runtime_error_test.dart b/tests/language_2/control_flow_collections/if_runtime_error_test.dart index 1dba5b81d1f..1d92e32285a 100644 --- a/tests/language_2/control_flow_collections/if_runtime_error_test.dart +++ b/tests/language_2/control_flow_collections/if_runtime_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void main() { diff --git a/tests/language_2/control_flow_collections/if_test.dart b/tests/language_2/control_flow_collections/if_test.dart index 9338987009e..c1aedc0d2a1 100644 --- a/tests/language_2/control_flow_collections/if_test.dart +++ b/tests/language_2/control_flow_collections/if_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'utils.dart'; diff --git a/tests/language_2/control_flow_collections/map_set_ambiguity_error_test.dart b/tests/language_2/control_flow_collections/map_set_ambiguity_error_test.dart index ae4fee43ddd..dbf28ca3bc9 100644 --- a/tests/language_2/control_flow_collections/map_set_ambiguity_error_test.dart +++ b/tests/language_2/control_flow_collections/map_set_ambiguity_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test cases where the syntax is ambiguous between maps and sets when control // flow elements contain spreads. import 'dart:collection'; diff --git a/tests/language_2/control_flow_collections/map_set_ambiguity_test.dart b/tests/language_2/control_flow_collections/map_set_ambiguity_test.dart index bf5f68540d7..93ad3b51ae9 100644 --- a/tests/language_2/control_flow_collections/map_set_ambiguity_test.dart +++ b/tests/language_2/control_flow_collections/map_set_ambiguity_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test cases where the syntax is ambiguous between maps and sets because of // spreads inside control flow. import 'dart:collection'; diff --git a/tests/language_2/control_flow_collections/syntax_error_test.dart b/tests/language_2/control_flow_collections/syntax_error_test.dart index 8b9fa65ca75..6402d212344 100644 --- a/tests/language_2/control_flow_collections/syntax_error_test.dart +++ b/tests/language_2/control_flow_collections/syntax_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { // No then element. var _ = [if (true)]; //# 00: syntax error diff --git a/tests/language_2/control_flow_collections/syntax_test.dart b/tests/language_2/control_flow_collections/syntax_test.dart index 0ed9829a0c9..52f278e5a2a 100644 --- a/tests/language_2/control_flow_collections/syntax_test.dart +++ b/tests/language_2/control_flow_collections/syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests syntax edge cases. import 'package:expect/expect.dart'; diff --git a/tests/language_2/control_flow_collections/type_error_test.dart b/tests/language_2/control_flow_collections/type_error_test.dart index 63f670624ff..10fead51762 100644 --- a/tests/language_2/control_flow_collections/type_error_test.dart +++ b/tests/language_2/control_flow_collections/type_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { // Non-Boolean if condition. var _ = [if (1) 2]; //# 00: compile-time error diff --git a/tests/language_2/control_flow_collections/utils.dart b/tests/language_2/control_flow_collections/utils.dart index e2d6adeecd1..53e173dcc85 100644 --- a/tests/language_2/control_flow_collections/utils.dart +++ b/tests/language_2/control_flow_collections/utils.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/covariant/covariant_test.dart b/tests/language_2/covariant/covariant_test.dart index 998213ba787..b5a438a9b35 100644 --- a/tests/language_2/covariant/covariant_test.dart +++ b/tests/language_2/covariant/covariant_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that `covariant` can be parsed (and ignored) by // dart2js and the VM. // This test only checks for non-strong mode behavior. diff --git a/tests/language_2/covariant/field_test.dart b/tests/language_2/covariant/field_test.dart index df6c86227c9..d532d0b7cdb 100644 --- a/tests/language_2/covariant/field_test.dart +++ b/tests/language_2/covariant/field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/covariant/method_test.dart b/tests/language_2/covariant/method_test.dart index 03ea520eaae..da47e0c1859 100644 --- a/tests/language_2/covariant/method_test.dart +++ b/tests/language_2/covariant/method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/covariant/override_test.dart b/tests/language_2/covariant/override_test.dart index d6b6713f17d..c30cd2e535a 100644 --- a/tests/language_2/covariant/override_test.dart +++ b/tests/language_2/covariant/override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library covariant_override_test; // This test contains cases where `covariant` is used as intended. diff --git a/tests/language_2/covariant/return_type_test.dart b/tests/language_2/covariant/return_type_test.dart index 121c3bb481c..599b065ac89 100644 --- a/tests/language_2/covariant/return_type_test.dart +++ b/tests/language_2/covariant/return_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void main() { diff --git a/tests/language_2/covariant/setter_test.dart b/tests/language_2/covariant/setter_test.dart index 1a19dcac57e..c5fe6281540 100644 --- a/tests/language_2/covariant/setter_test.dart +++ b/tests/language_2/covariant/setter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/covariant/subtyping_tearoff1_test.dart b/tests/language_2/covariant/subtyping_tearoff1_test.dart index 404b4bbdeb5..24d5e9f2acd 100644 --- a/tests/language_2/covariant/subtyping_tearoff1_test.dart +++ b/tests/language_2/covariant/subtyping_tearoff1_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2016, 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 = 2.9 import 'package:expect/expect.dart'; class Foo { diff --git a/tests/language_2/covariant/subtyping_tearoff2_test.dart b/tests/language_2/covariant/subtyping_tearoff2_test.dart index 306d83ddf6d..3d263ba9136 100644 --- a/tests/language_2/covariant/subtyping_tearoff2_test.dart +++ b/tests/language_2/covariant/subtyping_tearoff2_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2016, 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 = 2.9 import 'package:expect/expect.dart'; class Implementation { diff --git a/tests/language_2/covariant/subtyping_tearoff3_test.dart b/tests/language_2/covariant/subtyping_tearoff3_test.dart index 3e1109b9f8c..5194b4e4674 100644 --- a/tests/language_2/covariant/subtyping_tearoff3_test.dart +++ b/tests/language_2/covariant/subtyping_tearoff3_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2016, 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 = 2.9 import 'package:expect/expect.dart'; class Implementation { diff --git a/tests/language_2/covariant/subtyping_test.dart b/tests/language_2/covariant/subtyping_test.dart index 255c360abb2..768850c55ab 100644 --- a/tests/language_2/covariant/subtyping_test.dart +++ b/tests/language_2/covariant/subtyping_test.dart @@ -1,6 +1,8 @@ // 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. + +// @dart = 2.9 import 'package:expect/expect.dart'; class Fields { diff --git a/tests/language_2/covariant/subtyping_unsafe_call1_test.dart b/tests/language_2/covariant/subtyping_unsafe_call1_test.dart index b5d4884a475..cdcd2dfce43 100644 --- a/tests/language_2/covariant/subtyping_unsafe_call1_test.dart +++ b/tests/language_2/covariant/subtyping_unsafe_call1_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2016, 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 = 2.9 import 'package:expect/expect.dart'; class Foo { diff --git a/tests/language_2/covariant/subtyping_unsafe_call2_test.dart b/tests/language_2/covariant/subtyping_unsafe_call2_test.dart index 5e45c375aa5..69b5dde7a4d 100644 --- a/tests/language_2/covariant/subtyping_unsafe_call2_test.dart +++ b/tests/language_2/covariant/subtyping_unsafe_call2_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2016, 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 = 2.9 import 'package:expect/expect.dart'; class Implementation { diff --git a/tests/language_2/covariant/subtyping_unsafe_call3_test.dart b/tests/language_2/covariant/subtyping_unsafe_call3_test.dart index 71143e69636..8291cb19077 100644 --- a/tests/language_2/covariant/subtyping_unsafe_call3_test.dart +++ b/tests/language_2/covariant/subtyping_unsafe_call3_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2016, 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 = 2.9 import 'package:expect/expect.dart'; class Implementation { diff --git a/tests/language_2/covariant/subtyping_with_mixin_test.dart b/tests/language_2/covariant/subtyping_with_mixin_test.dart index 8bff28edae6..2682871d70e 100644 --- a/tests/language_2/covariant/subtyping_with_mixin_test.dart +++ b/tests/language_2/covariant/subtyping_with_mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class A {} diff --git a/tests/language_2/covariant/tear_off_type_test.dart b/tests/language_2/covariant/tear_off_type_test.dart index ba52670e1aa..c99cfb5d751 100644 --- a/tests/language_2/covariant/tear_off_type_test.dart +++ b/tests/language_2/covariant/tear_off_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; typedef U F(T x); diff --git a/tests/language_2/covariant/type_parameter_test.dart b/tests/language_2/covariant/type_parameter_test.dart index 7bff58b2230..27d7c34572f 100644 --- a/tests/language_2/covariant/type_parameter_test.dart +++ b/tests/language_2/covariant/type_parameter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/covariant_override/runtime_check_test.dart b/tests/language_2/covariant_override/runtime_check_test.dart index eedc274f92f..4ffb233e46d 100644 --- a/tests/language_2/covariant_override/runtime_check_test.dart +++ b/tests/language_2/covariant_override/runtime_check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class View { diff --git a/tests/language_2/covariant_override/tear_off_type_test.dart b/tests/language_2/covariant_override/tear_off_type_test.dart index 59991b88f4a..eb3b19fa79b 100644 --- a/tests/language_2/covariant_override/tear_off_type_test.dart +++ b/tests/language_2/covariant_override/tear_off_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // If a parameter is directly or indirectly a covariant override, its type in diff --git a/tests/language_2/deferred/call_empty_before_load_lib.dart b/tests/language_2/deferred/call_empty_before_load_lib.dart index 32dd3765f61..4dd608bdeca 100644 --- a/tests/language_2/deferred/call_empty_before_load_lib.dart +++ b/tests/language_2/deferred/call_empty_before_load_lib.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + thefun() {} diff --git a/tests/language_2/deferred/call_empty_before_load_test.dart b/tests/language_2/deferred/call_empty_before_load_test.dart index 9a13981bac7..d00894f228c 100644 --- a/tests/language_2/deferred/call_empty_before_load_test.dart +++ b/tests/language_2/deferred/call_empty_before_load_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that calling a function, even though it itself has no effect, will // trigger an error if the corresponding deferred library has not been loaded. diff --git a/tests/language_2/deferred/closurize_load_library_lib.dart b/tests/language_2/deferred/closurize_load_library_lib.dart index 9878ae96d35..7b6872a8442 100644 --- a/tests/language_2/deferred/closurize_load_library_lib.dart +++ b/tests/language_2/deferred/closurize_load_library_lib.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + var trueVar = true; diff --git a/tests/language_2/deferred/closurize_load_library_test.dart b/tests/language_2/deferred/closurize_load_library_test.dart index 0f45d3a523b..10a4a50218d 100644 --- a/tests/language_2/deferred/closurize_load_library_test.dart +++ b/tests/language_2/deferred/closurize_load_library_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/language_2/deferred/constant_list_lib.dart b/tests/language_2/deferred/constant_list_lib.dart index 93a674084dc..b8751391971 100644 --- a/tests/language_2/deferred/constant_list_lib.dart +++ b/tests/language_2/deferred/constant_list_lib.dart @@ -2,5 +2,7 @@ // 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 = 2.9 + final finalConstList = const [1, 2]; var nonFinalConstList = const [3, 4]; diff --git a/tests/language_2/deferred/constant_list_test.dart b/tests/language_2/deferred/constant_list_test.dart index 01ee8d63bbf..cdae11c4ce6 100644 --- a/tests/language_2/deferred/constant_list_test.dart +++ b/tests/language_2/deferred/constant_list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/language_2/deferred/constraints_lib.dart b/tests/language_2/deferred/constraints_lib.dart index 0bf3cc97245..531843256ad 100644 --- a/tests/language_2/deferred/constraints_lib.dart +++ b/tests/language_2/deferred/constraints_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { static int staticMethod() => 42; } diff --git a/tests/language_2/deferred/constraints_lib2.dart b/tests/language_2/deferred/constraints_lib2.dart index 830705f0cd4..c2e165a1bc7 100644 --- a/tests/language_2/deferred/constraints_lib2.dart +++ b/tests/language_2/deferred/constraints_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + foo() => 42; class C {} diff --git a/tests/language_2/deferred/constraints_type_annotation_test.dart b/tests/language_2/deferred/constraints_type_annotation_test.dart index 9d86ccbc32c..d155d142f22 100644 --- a/tests/language_2/deferred/constraints_type_annotation_test.dart +++ b/tests/language_2/deferred/constraints_type_annotation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/language_2/deferred/deferred_and_immediate_import_lib.dart b/tests/language_2/deferred/deferred_and_immediate_import_lib.dart index 61eeb089e86..26ffbdb10a1 100644 --- a/tests/language_2/deferred/deferred_and_immediate_import_lib.dart +++ b/tests/language_2/deferred/deferred_and_immediate_import_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + foo() { print("Foo!"); } diff --git a/tests/language_2/deferred/deferred_and_immediate_import_test.dart b/tests/language_2/deferred/deferred_and_immediate_import_test.dart index d54ca7e3bef..5294a9716d3 100644 --- a/tests/language_2/deferred/deferred_and_immediate_import_test.dart +++ b/tests/language_2/deferred/deferred_and_immediate_import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "deferred_and_immediate_import_lib.dart" as immediatePrefix; diff --git a/tests/language_2/deferred/duplicate_prefix1_runtime_test.dart b/tests/language_2/deferred/duplicate_prefix1_runtime_test.dart index 0feaa2efbc8..74362d0cb84 100644 --- a/tests/language_2/deferred/duplicate_prefix1_runtime_test.dart +++ b/tests/language_2/deferred/duplicate_prefix1_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/deferred/duplicate_prefix1_test.dart b/tests/language_2/deferred/duplicate_prefix1_test.dart index 7668c0faaee..fa0bfe6f5da 100644 --- a/tests/language_2/deferred/duplicate_prefix1_test.dart +++ b/tests/language_2/deferred/duplicate_prefix1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "prefix_constraints_lib2.dart" as lib; import "prefix_constraints_lib.dart" deferred as lib; // ^^^^^^^^ diff --git a/tests/language_2/deferred/duplicate_prefix2_runtime_test.dart b/tests/language_2/deferred/duplicate_prefix2_runtime_test.dart index 482f8280e83..fc462b0a794 100644 --- a/tests/language_2/deferred/duplicate_prefix2_runtime_test.dart +++ b/tests/language_2/deferred/duplicate_prefix2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/deferred/duplicate_prefix2_test.dart b/tests/language_2/deferred/duplicate_prefix2_test.dart index cee67e0b3e0..21f839d7f66 100644 --- a/tests/language_2/deferred/duplicate_prefix2_test.dart +++ b/tests/language_2/deferred/duplicate_prefix2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "prefix_constraints_lib.dart" deferred as lib; // ^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.SHARED_DEFERRED_PREFIX diff --git a/tests/language_2/deferred/duplicate_prefix3_runtime_test.dart b/tests/language_2/deferred/duplicate_prefix3_runtime_test.dart index 3f409b6c051..ef6478e4f42 100644 --- a/tests/language_2/deferred/duplicate_prefix3_runtime_test.dart +++ b/tests/language_2/deferred/duplicate_prefix3_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/deferred/duplicate_prefix3_test.dart b/tests/language_2/deferred/duplicate_prefix3_test.dart index ee80c82fa32..59d732ad8d3 100644 --- a/tests/language_2/deferred/duplicate_prefix3_test.dart +++ b/tests/language_2/deferred/duplicate_prefix3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "prefix_constraints_lib.dart" deferred as lib; // ^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.SHARED_DEFERRED_PREFIX diff --git a/tests/language_2/deferred/function_type_lib.dart b/tests/language_2/deferred/function_type_lib.dart index f73a822b963..098d752152e 100644 --- a/tests/language_2/deferred/function_type_lib.dart +++ b/tests/language_2/deferred/function_type_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class T { diff --git a/tests/language_2/deferred/function_type_test.dart b/tests/language_2/deferred/function_type_test.dart index b69eae6eb61..7a0a2c22076 100644 --- a/tests/language_2/deferred/function_type_test.dart +++ b/tests/language_2/deferred/function_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions= // VMOptions=--dwarf_stack_traces --no-retain_function_objects --no-retain_code_objects diff --git a/tests/language_2/deferred/global_lib.dart b/tests/language_2/deferred/global_lib.dart index d4f3f05a034..3299c42a617 100644 --- a/tests/language_2/deferred/global_lib.dart +++ b/tests/language_2/deferred/global_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + var sideEffectCounter = 0; final finalConstGlobal = "finalConstGlobal"; diff --git a/tests/language_2/deferred/global_test.dart b/tests/language_2/deferred/global_test.dart index 6c3c72830cb..591d4e52826 100644 --- a/tests/language_2/deferred/global_test.dart +++ b/tests/language_2/deferred/global_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/language_2/deferred/import_core_test.dart b/tests/language_2/deferred/import_core_test.dart index 3c727662074..968fe90406d 100644 --- a/tests/language_2/deferred/import_core_test.dart +++ b/tests/language_2/deferred/import_core_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Nothing in the language spec explicitly prohibits a deferred import of // 'dart:core'. Make sure it doesn't lead to any strange behavior. diff --git a/tests/language_2/deferred/inheritance_constraints_lib.dart b/tests/language_2/deferred/inheritance_constraints_lib.dart index 38d3e68bb84..5211f743565 100644 --- a/tests/language_2/deferred/inheritance_constraints_lib.dart +++ b/tests/language_2/deferred/inheritance_constraints_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Foo {} class Foo2 {} diff --git a/tests/language_2/deferred/inheritance_constraints_runtime_test.dart b/tests/language_2/deferred/inheritance_constraints_runtime_test.dart index 719a170a8e6..42d0b221137 100644 --- a/tests/language_2/deferred/inheritance_constraints_runtime_test.dart +++ b/tests/language_2/deferred/inheritance_constraints_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/deferred/inheritance_constraints_test.dart b/tests/language_2/deferred/inheritance_constraints_test.dart index 7477a579281..065443b5c3c 100644 --- a/tests/language_2/deferred/inheritance_constraints_test.dart +++ b/tests/language_2/deferred/inheritance_constraints_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "inheritance_constraints_lib.dart" deferred as lib; diff --git a/tests/language_2/deferred/inlined_test.dart b/tests/language_2/deferred/inlined_test.dart index 5aa45b02a11..1f48d6b85b8 100644 --- a/tests/language_2/deferred/inlined_test.dart +++ b/tests/language_2/deferred/inlined_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + // Declares foo that returns 42. import "constraints_lib2.dart" deferred as lib; diff --git a/tests/language_2/deferred/load_constants.dart b/tests/language_2/deferred/load_constants.dart index a67bd03b24d..9948757c4ac 100644 --- a/tests/language_2/deferred/load_constants.dart +++ b/tests/language_2/deferred/load_constants.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart version of two-argument Ackermann-Peter function. +// @dart = 2.9 + library deferred_load_constants; // Constant declaration. diff --git a/tests/language_2/deferred/load_constants_runtime_test.dart b/tests/language_2/deferred/load_constants_runtime_test.dart index 97e91a293b0..4d35e068e68 100644 --- a/tests/language_2/deferred/load_constants_runtime_test.dart +++ b/tests/language_2/deferred/load_constants_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/deferred/load_constants_test.dart b/tests/language_2/deferred/load_constants_test.dart index 546b038261a..45fb9aa95ae 100644 --- a/tests/language_2/deferred/load_constants_test.dart +++ b/tests/language_2/deferred/load_constants_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart version of two-argument Ackermann-Peter function. +// @dart = 2.9 + library deferred_load_constants; import "package:expect/expect.dart"; diff --git a/tests/language_2/deferred/load_inval_code_lib.dart b/tests/language_2/deferred/load_inval_code_lib.dart index 512a8b3ffec..d586b249e84 100644 --- a/tests/language_2/deferred/load_inval_code_lib.dart +++ b/tests/language_2/deferred/load_inval_code_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + foo() { return "foo from library"; } diff --git a/tests/language_2/deferred/load_inval_code_test.dart b/tests/language_2/deferred/load_inval_code_test.dart index 596e0bca675..88a2f325c65 100644 --- a/tests/language_2/deferred/load_inval_code_test.dart +++ b/tests/language_2/deferred/load_inval_code_test.dart @@ -4,6 +4,8 @@ // // VMOptions=--optimization-counter-threshold=100 +// @dart = 2.9 + import "load_inval_code_lib.dart" deferred as d; bool loaded = false; diff --git a/tests/language_2/deferred/load_library_wrong_args_lib.dart b/tests/language_2/deferred/load_library_wrong_args_lib.dart index 0f02e436272..4f27b7807f7 100644 --- a/tests/language_2/deferred/load_library_wrong_args_lib.dart +++ b/tests/language_2/deferred/load_library_wrong_args_lib.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + foo() => 42; diff --git a/tests/language_2/deferred/load_library_wrong_args_test.dart b/tests/language_2/deferred/load_library_wrong_args_test.dart index 3903e19c1f9..d85bde537ee 100644 --- a/tests/language_2/deferred/load_library_wrong_args_test.dart +++ b/tests/language_2/deferred/load_library_wrong_args_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import "load_library_wrong_args_lib.dart" deferred as lib; void main() { diff --git a/tests/language_2/deferred/mixin_lib1.dart b/tests/language_2/deferred/mixin_lib1.dart index 3b43ffed321..ae316376755 100644 --- a/tests/language_2/deferred/mixin_lib1.dart +++ b/tests/language_2/deferred/mixin_lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib1; import "mixin_shared.dart"; diff --git a/tests/language_2/deferred/mixin_lib2.dart b/tests/language_2/deferred/mixin_lib2.dart index 32fafef0af8..899b6fd0c85 100644 --- a/tests/language_2/deferred/mixin_lib2.dart +++ b/tests/language_2/deferred/mixin_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib2; import "mixin_shared.dart"; diff --git a/tests/language_2/deferred/mixin_shared.dart b/tests/language_2/deferred/mixin_shared.dart index 8b6a2937326..7c97830eb61 100644 --- a/tests/language_2/deferred/mixin_shared.dart +++ b/tests/language_2/deferred/mixin_shared.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library shared; class SharedMixin { diff --git a/tests/language_2/deferred/mixin_test.dart b/tests/language_2/deferred/mixin_test.dart index 33594b71de4..3fa9a8b7562 100644 --- a/tests/language_2/deferred/mixin_test.dart +++ b/tests/language_2/deferred/mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/language_2/deferred/no_prefix_runtime_test.dart b/tests/language_2/deferred/no_prefix_runtime_test.dart index 1cbab75f7c0..7b1d25141a7 100644 --- a/tests/language_2/deferred/no_prefix_runtime_test.dart +++ b/tests/language_2/deferred/no_prefix_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/deferred/no_prefix_test.dart b/tests/language_2/deferred/no_prefix_test.dart index ff778e51836..5d04ee4e524 100644 --- a/tests/language_2/deferred/no_prefix_test.dart +++ b/tests/language_2/deferred/no_prefix_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Loading a deferred library without prefix is not allowed. import "constraints_lib2.dart" deferred diff --git a/tests/language_2/deferred/no_such_method_lib.dart b/tests/language_2/deferred/no_such_method_lib.dart index ccb00911cc4..085f67d5629 100644 --- a/tests/language_2/deferred/no_such_method_lib.dart +++ b/tests/language_2/deferred/no_such_method_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @proxy class C { noSuchMethod(Invocation invocation) => 42; diff --git a/tests/language_2/deferred/no_such_method_test.dart b/tests/language_2/deferred/no_such_method_test.dart index 06733196e44..e4324997ba8 100644 --- a/tests/language_2/deferred/no_such_method_test.dart +++ b/tests/language_2/deferred/no_such_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/language_2/deferred/not_loaded_check_lib.dart b/tests/language_2/deferred/not_loaded_check_lib.dart index 9979ea8c33f..c3e2a954f7f 100644 --- a/tests/language_2/deferred/not_loaded_check_lib.dart +++ b/tests/language_2/deferred/not_loaded_check_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + foo(int arg) {} class C { diff --git a/tests/language_2/deferred/not_loaded_check_test.dart b/tests/language_2/deferred/not_loaded_check_test.dart index 44c0fd44698..c08177caf51 100644 --- a/tests/language_2/deferred/not_loaded_check_test.dart +++ b/tests/language_2/deferred/not_loaded_check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/language_2/deferred/only_constant_lib.dart b/tests/language_2/deferred/only_constant_lib.dart index 1c84126865f..4bced2af9c6 100644 --- a/tests/language_2/deferred/only_constant_lib.dart +++ b/tests/language_2/deferred/only_constant_lib.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + const constant = const ["a", "b", "c"]; diff --git a/tests/language_2/deferred/only_constant_test.dart b/tests/language_2/deferred/only_constant_test.dart index 37d2a2a8e86..06970f3a97d 100644 --- a/tests/language_2/deferred/only_constant_test.dart +++ b/tests/language_2/deferred/only_constant_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing import of only constants from a deferred library. import 'package:expect/expect.dart'; diff --git a/tests/language_2/deferred/optimized_test.dart b/tests/language_2/deferred/optimized_test.dart index 7fd0a99babc..5f053b90d5e 100644 --- a/tests/language_2/deferred/optimized_test.dart +++ b/tests/language_2/deferred/optimized_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --compiler-passes=-Inlining +// @dart = 2.9 + // Declares foo that returns 42. import "constraints_lib2.dart" deferred as lib; diff --git a/tests/language_2/deferred/prefix_constraints_lib.dart b/tests/language_2/deferred/prefix_constraints_lib.dart index c79d4e53600..116acbd8c13 100644 --- a/tests/language_2/deferred/prefix_constraints_lib.dart +++ b/tests/language_2/deferred/prefix_constraints_lib.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + foo() => 24; diff --git a/tests/language_2/deferred/prefix_constraints_lib2.dart b/tests/language_2/deferred/prefix_constraints_lib2.dart index c79d4e53600..116acbd8c13 100644 --- a/tests/language_2/deferred/prefix_constraints_lib2.dart +++ b/tests/language_2/deferred/prefix_constraints_lib2.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + foo() => 24; diff --git a/tests/language_2/deferred/prefix_importer_tree_shaken_deferred.dart b/tests/language_2/deferred/prefix_importer_tree_shaken_deferred.dart index 4bf00ef7b6b..1278e037c84 100644 --- a/tests/language_2/deferred/prefix_importer_tree_shaken_deferred.dart +++ b/tests/language_2/deferred/prefix_importer_tree_shaken_deferred.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @pragma("vm:never-inline") bar() { return "bar"; diff --git a/tests/language_2/deferred/prefix_importer_tree_shaken_immediate.dart b/tests/language_2/deferred/prefix_importer_tree_shaken_immediate.dart index c85a5b7bc06..966a5a3f263 100644 --- a/tests/language_2/deferred/prefix_importer_tree_shaken_immediate.dart +++ b/tests/language_2/deferred/prefix_importer_tree_shaken_immediate.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "prefix_importer_tree_shaken_deferred.dart" deferred as d; @pragma("vm:prefer-inline") diff --git a/tests/language_2/deferred/prefix_importer_tree_shaken_test.dart b/tests/language_2/deferred/prefix_importer_tree_shaken_test.dart index ccb0246f0b9..48c2ec1468e 100644 --- a/tests/language_2/deferred/prefix_importer_tree_shaken_test.dart +++ b/tests/language_2/deferred/prefix_importer_tree_shaken_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// VMOptions=--dwarf_stack_traces=true /// VMOptions=--dwarf_stack_traces=false diff --git a/tests/language_2/deferred/redirecting_factory_lib1.dart b/tests/language_2/deferred/redirecting_factory_lib1.dart index 1e1a7a1d3f1..18f775151ad 100644 --- a/tests/language_2/deferred/redirecting_factory_lib1.dart +++ b/tests/language_2/deferred/redirecting_factory_lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib1; import "redirecting_factory_lib2.dart" deferred as lib2; diff --git a/tests/language_2/deferred/redirecting_factory_lib2.dart b/tests/language_2/deferred/redirecting_factory_lib2.dart index a72be648aa2..94536d7631d 100644 --- a/tests/language_2/deferred/redirecting_factory_lib2.dart +++ b/tests/language_2/deferred/redirecting_factory_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib2; import "redirecting_factory_lib1.dart" as lib1; diff --git a/tests/language_2/deferred/redirecting_factory_test.dart b/tests/language_2/deferred/redirecting_factory_test.dart index 1ee76d32487..2c8b449e0e8 100644 --- a/tests/language_2/deferred/redirecting_factory_test.dart +++ b/tests/language_2/deferred/redirecting_factory_test.dart @@ -1,6 +1,8 @@ // 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. + +// @dart = 2.9 library main; import "redirecting_factory_lib1.dart" deferred as lib1; diff --git a/tests/language_2/deferred/regression_22995_lib.dart b/tests/language_2/deferred/regression_22995_lib.dart index b6e3aef5ae7..c4e7e928b84 100644 --- a/tests/language_2/deferred/regression_22995_lib.dart +++ b/tests/language_2/deferred/regression_22995_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'regression_22995_test.dart'; foofoo() { diff --git a/tests/language_2/deferred/regression_22995_test.dart b/tests/language_2/deferred/regression_22995_test.dart index fdd36c16ae1..ca831d1efa9 100644 --- a/tests/language_2/deferred/regression_22995_test.dart +++ b/tests/language_2/deferred/regression_22995_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that closurizing a function implies a dependency on its type. import "package:expect/expect.dart"; diff --git a/tests/language_2/deferred/regression_28678_lib.dart b/tests/language_2/deferred/regression_28678_lib.dart index d985e0a7906..7c13077cd7c 100644 --- a/tests/language_2/deferred/regression_28678_lib.dart +++ b/tests/language_2/deferred/regression_28678_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + var v; class Clazz {} diff --git a/tests/language_2/deferred/regression_28678_test.dart b/tests/language_2/deferred/regression_28678_test.dart index 16a95f92053..7790ccaeedb 100644 --- a/tests/language_2/deferred/regression_28678_test.dart +++ b/tests/language_2/deferred/regression_28678_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that await after deferred loading works as expected. import 'dart:async'; diff --git a/tests/language_2/deferred/shadow_load_library_lib.dart b/tests/language_2/deferred/shadow_load_library_lib.dart index e7811aaaf59..f29d4cc8e7c 100644 --- a/tests/language_2/deferred/shadow_load_library_lib.dart +++ b/tests/language_2/deferred/shadow_load_library_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + loadLibrary() => 42; var trueVar = true; diff --git a/tests/language_2/deferred/shadow_load_library_test.dart b/tests/language_2/deferred/shadow_load_library_test.dart index 2c096c91e8c..3cc1dfcdc15 100644 --- a/tests/language_2/deferred/shadow_load_library_test.dart +++ b/tests/language_2/deferred/shadow_load_library_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/language_2/deferred/shared_and_unshared_classes_lib1.dart b/tests/language_2/deferred/shared_and_unshared_classes_lib1.dart index 28d2ef36788..f62c0fc0ddf 100644 --- a/tests/language_2/deferred/shared_and_unshared_classes_lib1.dart +++ b/tests/language_2/deferred/shared_and_unshared_classes_lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib1; import "shared_and_unshared_classes_lib_shared.dart"; diff --git a/tests/language_2/deferred/shared_and_unshared_classes_lib2.dart b/tests/language_2/deferred/shared_and_unshared_classes_lib2.dart index 86fc90100be..3d99dc67bbd 100644 --- a/tests/language_2/deferred/shared_and_unshared_classes_lib2.dart +++ b/tests/language_2/deferred/shared_and_unshared_classes_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib2; import "shared_and_unshared_classes_lib_shared.dart"; diff --git a/tests/language_2/deferred/shared_and_unshared_classes_lib_shared.dart b/tests/language_2/deferred/shared_and_unshared_classes_lib_shared.dart index a2c566547c3..a8bbf913f76 100644 --- a/tests/language_2/deferred/shared_and_unshared_classes_lib_shared.dart +++ b/tests/language_2/deferred/shared_and_unshared_classes_lib_shared.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library shared; class CShared { diff --git a/tests/language_2/deferred/shared_and_unshared_classes_test.dart b/tests/language_2/deferred/shared_and_unshared_classes_test.dart index 43c8ecde0e4..ef2e5805a97 100644 --- a/tests/language_2/deferred/shared_and_unshared_classes_test.dart +++ b/tests/language_2/deferred/shared_and_unshared_classes_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions= // VMOptions=--dwarf_stack_traces --no-retain_function_objects --no-retain_code_objects diff --git a/tests/language_2/deferred/split_constants_canonicalization_a.dart b/tests/language_2/deferred/split_constants_canonicalization_a.dart index 3e3ada7eea6..4f732d66237 100644 --- a/tests/language_2/deferred/split_constants_canonicalization_a.dart +++ b/tests/language_2/deferred/split_constants_canonicalization_a.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "split_constants_canonicalization_a_1.dart" deferred as a_1; import "split_constants_canonicalization_a_2.dart" deferred as a_2; diff --git a/tests/language_2/deferred/split_constants_canonicalization_a_1.dart b/tests/language_2/deferred/split_constants_canonicalization_a_1.dart index d7bfcdb6703..04157bbfa97 100644 --- a/tests/language_2/deferred/split_constants_canonicalization_a_1.dart +++ b/tests/language_2/deferred/split_constants_canonicalization_a_1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "split_constants_canonicalization_test.dart"; @pragma("vm:never-inline") diff --git a/tests/language_2/deferred/split_constants_canonicalization_a_2.dart b/tests/language_2/deferred/split_constants_canonicalization_a_2.dart index 3d71a40eb76..89b9d83870b 100644 --- a/tests/language_2/deferred/split_constants_canonicalization_a_2.dart +++ b/tests/language_2/deferred/split_constants_canonicalization_a_2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "split_constants_canonicalization_test.dart"; @pragma("vm:never-inline") diff --git a/tests/language_2/deferred/split_constants_canonicalization_b.dart b/tests/language_2/deferred/split_constants_canonicalization_b.dart index f27900dceba..4a901301953 100644 --- a/tests/language_2/deferred/split_constants_canonicalization_b.dart +++ b/tests/language_2/deferred/split_constants_canonicalization_b.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "split_constants_canonicalization_b_1.dart" deferred as b_1; import "split_constants_canonicalization_b_2.dart" deferred as b_2; diff --git a/tests/language_2/deferred/split_constants_canonicalization_b_1.dart b/tests/language_2/deferred/split_constants_canonicalization_b_1.dart index 3d71a40eb76..89b9d83870b 100644 --- a/tests/language_2/deferred/split_constants_canonicalization_b_1.dart +++ b/tests/language_2/deferred/split_constants_canonicalization_b_1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "split_constants_canonicalization_test.dart"; @pragma("vm:never-inline") diff --git a/tests/language_2/deferred/split_constants_canonicalization_b_2.dart b/tests/language_2/deferred/split_constants_canonicalization_b_2.dart index 3d71a40eb76..89b9d83870b 100644 --- a/tests/language_2/deferred/split_constants_canonicalization_b_2.dart +++ b/tests/language_2/deferred/split_constants_canonicalization_b_2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "split_constants_canonicalization_test.dart"; @pragma("vm:never-inline") diff --git a/tests/language_2/deferred/split_constants_canonicalization_test.dart b/tests/language_2/deferred/split_constants_canonicalization_test.dart index 02d5c6e7be2..d3df8836552 100644 --- a/tests/language_2/deferred/split_constants_canonicalization_test.dart +++ b/tests/language_2/deferred/split_constants_canonicalization_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--use_bare_instructions=false // VMOptions=--use_bare_instructions=true diff --git a/tests/language_2/deferred/static_seperate_lib1.dart b/tests/language_2/deferred/static_seperate_lib1.dart index 07e9cf5ea09..c126d4f0b64 100644 --- a/tests/language_2/deferred/static_seperate_lib1.dart +++ b/tests/language_2/deferred/static_seperate_lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib1; class ConstClass { diff --git a/tests/language_2/deferred/static_seperate_lib2.dart b/tests/language_2/deferred/static_seperate_lib2.dart index 683b9a4cf55..e4dd526740d 100644 --- a/tests/language_2/deferred/static_seperate_lib2.dart +++ b/tests/language_2/deferred/static_seperate_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib2; import "package:expect/expect.dart"; diff --git a/tests/language_2/deferred/static_seperate_test.dart b/tests/language_2/deferred/static_seperate_test.dart index c920eb8edc4..c609597655d 100644 --- a/tests/language_2/deferred/static_seperate_test.dart +++ b/tests/language_2/deferred/static_seperate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // The class lib1.C is referenced via lib1 // The static function lib1.C.foo is referenced via lib2 // Dart2js will put them in seperate hunks. diff --git a/tests/language_2/deferred/super_dependency_lib.dart b/tests/language_2/deferred/super_dependency_lib.dart index 8638a4fd0b0..3d1f2da69d8 100644 --- a/tests/language_2/deferred/super_dependency_lib.dart +++ b/tests/language_2/deferred/super_dependency_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A {} class C extends A { diff --git a/tests/language_2/deferred/super_dependency_runtime_test.dart b/tests/language_2/deferred/super_dependency_runtime_test.dart index c09a7f8ad31..f106998cf04 100644 --- a/tests/language_2/deferred/super_dependency_runtime_test.dart +++ b/tests/language_2/deferred/super_dependency_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/deferred/super_dependency_test.dart b/tests/language_2/deferred/super_dependency_test.dart index cf5e81176d3..73ebf0d53f6 100644 --- a/tests/language_2/deferred/super_dependency_test.dart +++ b/tests/language_2/deferred/super_dependency_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test. // lib.C.foo has code that references `super.foo=` that does not exist. This // used to cause a crash. diff --git a/tests/language_2/deferred/type_dependency_lib1.dart b/tests/language_2/deferred/type_dependency_lib1.dart index 491ecc6fe93..36a06ef2763 100644 --- a/tests/language_2/deferred/type_dependency_lib1.dart +++ b/tests/language_2/deferred/type_dependency_lib1.dart @@ -2,6 +2,8 @@ // source code is governed by a BSD-style license that can be found in // the LICENSE file. +// @dart = 2.9 + library lib1; import "type_dependency_lib3.dart"; diff --git a/tests/language_2/deferred/type_dependency_lib2.dart b/tests/language_2/deferred/type_dependency_lib2.dart index d20f4c0aaad..3d4cb789781 100644 --- a/tests/language_2/deferred/type_dependency_lib2.dart +++ b/tests/language_2/deferred/type_dependency_lib2.dart @@ -2,6 +2,8 @@ // source code is governed by a BSD-style license that can be found in // the LICENSE file. +// @dart = 2.9 + library lib2; import "type_dependency_lib3.dart"; diff --git a/tests/language_2/deferred/type_dependency_lib3.dart b/tests/language_2/deferred/type_dependency_lib3.dart index ae8c258608c..29e229a2ea7 100644 --- a/tests/language_2/deferred/type_dependency_lib3.dart +++ b/tests/language_2/deferred/type_dependency_lib3.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib3; class A { diff --git a/tests/language_2/deferred/type_dependency_test.dart b/tests/language_2/deferred/type_dependency_test.dart index 7d31d5fd769..7b73bd040c1 100644 --- a/tests/language_2/deferred/type_dependency_test.dart +++ b/tests/language_2/deferred/type_dependency_test.dart @@ -2,6 +2,8 @@ // source code is governed by a BSD-style license that can be found in // the LICENSE file. +// @dart = 2.9 + /// Checks that lib1.fooX's dependencies on [A] via is-checks, as-expressions /// and type-annotations(in checked-mode) is correctly tracked. diff --git a/tests/language_2/deferred/unreachable_loading_unit_deferred.dart b/tests/language_2/deferred/unreachable_loading_unit_deferred.dart index ca5f8bdc923..cec6f71a276 100644 --- a/tests/language_2/deferred/unreachable_loading_unit_deferred.dart +++ b/tests/language_2/deferred/unreachable_loading_unit_deferred.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + foo() { print("Foo"); } diff --git a/tests/language_2/deferred/unreachable_loading_unit_immediate.dart b/tests/language_2/deferred/unreachable_loading_unit_immediate.dart index a320045407e..2b87a9f3e4a 100644 --- a/tests/language_2/deferred/unreachable_loading_unit_immediate.dart +++ b/tests/language_2/deferred/unreachable_loading_unit_immediate.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "unreachable_loading_unit_deferred.dart" deferred as lib; unreachable() async { diff --git a/tests/language_2/deferred/unreachable_loading_unit_test.dart b/tests/language_2/deferred/unreachable_loading_unit_test.dart index 8a663429e92..ebd82b36784 100644 --- a/tests/language_2/deferred/unreachable_loading_unit_test.dart +++ b/tests/language_2/deferred/unreachable_loading_unit_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "unreachable_loading_unit_immediate.dart"; main() { diff --git a/tests/language_2/double/comparison_test.dart b/tests/language_2/double/comparison_test.dart index cf00962469c..13727946725 100644 --- a/tests/language_2/double/comparison_test.dart +++ b/tests/language_2/double/comparison_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Tests VM optimizing compiler negate condition for doubles (bug 5376516). +// @dart = 2.9 + loop() { for (double d = 0.0; d < 1100.0; d++) {} for (double d = 0.0; d <= 1100.0; d++) {} diff --git a/tests/language_2/double/identical_test.dart b/tests/language_2/double/identical_test.dart index 16b99fe257d..2a2e33aa379 100644 --- a/tests/language_2/double/identical_test.dart +++ b/tests/language_2/double/identical_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/double/int_addition_test.dart b/tests/language_2/double/int_addition_test.dart index 809fec5163e..b0cbe34a72d 100644 --- a/tests/language_2/double/int_addition_test.dart +++ b/tests/language_2/double/int_addition_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; // Test that optimized code does not silently convert integers to doubles. diff --git a/tests/language_2/double/int_to_string_test.dart b/tests/language_2/double/int_to_string_test.dart index 04c7ef7b8d9..fb8ca5c02dd 100644 --- a/tests/language_2/double/int_to_string_test.dart +++ b/tests/language_2/double/int_to_string_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test basic integer operations. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/double/invalid_runtime_test.dart b/tests/language_2/double/invalid_runtime_test.dart index a47bfc7ca42..273a9eb183c 100644 --- a/tests/language_2/double/invalid_runtime_test.dart +++ b/tests/language_2/double/invalid_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/double/invalid_test.dart b/tests/language_2/double/invalid_test.dart index dcfe3f435a4..bdea746a9df 100644 --- a/tests/language_2/double/invalid_test.dart +++ b/tests/language_2/double/invalid_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test an invalid double format main() { diff --git a/tests/language_2/double/modulo_test.dart b/tests/language_2/double/modulo_test.dart index d17bcc5e8a3..af08942555e 100644 --- a/tests/language_2/double/modulo_test.dart +++ b/tests/language_2/double/modulo_test.dart @@ -4,6 +4,8 @@ // Dart test optimization of modulo operator on Double. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/double/nan_comparison_test.dart b/tests/language_2/double/nan_comparison_test.dart index 64eb038a90b..61b9a5d73e5 100644 --- a/tests/language_2/double/nan_comparison_test.dart +++ b/tests/language_2/double/nan_comparison_test.dart @@ -4,6 +4,8 @@ // Tests double comparisons with NaN in different contexts. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; test_expr(a, b) => a != b; diff --git a/tests/language_2/double/to_string_as_exponential2_runtime_test.dart b/tests/language_2/double/to_string_as_exponential2_runtime_test.dart index 1c0a498c4dc..a9d1a1131e1 100644 --- a/tests/language_2/double/to_string_as_exponential2_runtime_test.dart +++ b/tests/language_2/double/to_string_as_exponential2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/double/to_string_as_exponential2_test.dart b/tests/language_2/double/to_string_as_exponential2_test.dart index 6fa5cc2df87..4d72d122aef 100644 --- a/tests/language_2/double/to_string_as_exponential2_test.dart +++ b/tests/language_2/double/to_string_as_exponential2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test basic integer operations. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/double/to_string_as_exponential3_test.dart b/tests/language_2/double/to_string_as_exponential3_test.dart index 7300013fadb..97c38eea8dc 100644 --- a/tests/language_2/double/to_string_as_exponential3_test.dart +++ b/tests/language_2/double/to_string_as_exponential3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test basic integer operations. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/double/to_string_as_exponential_test.dart b/tests/language_2/double/to_string_as_exponential_test.dart index e201913a548..ff24d4efe50 100644 --- a/tests/language_2/double/to_string_as_exponential_test.dart +++ b/tests/language_2/double/to_string_as_exponential_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test basic integer operations. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/double/to_string_as_fixed2_runtime_test.dart b/tests/language_2/double/to_string_as_fixed2_runtime_test.dart index e711f2df0c8..08ea5b30bd4 100644 --- a/tests/language_2/double/to_string_as_fixed2_runtime_test.dart +++ b/tests/language_2/double/to_string_as_fixed2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/double/to_string_as_fixed2_test.dart b/tests/language_2/double/to_string_as_fixed2_test.dart index 885d9fccb38..cd8feaeb3ac 100644 --- a/tests/language_2/double/to_string_as_fixed2_test.dart +++ b/tests/language_2/double/to_string_as_fixed2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test basic integer operations. +// @dart = 2.9 + // [NNBD non-migrated]: This test has no language/ counterpart. The static // errors are just redundant tests of the static type system, and the runtime // errors are redundant with to_string_as_fixed2_runtime_test.dart. diff --git a/tests/language_2/double/to_string_as_fixed_test.dart b/tests/language_2/double/to_string_as_fixed_test.dart index 6e0aed24214..0e57faf322c 100644 --- a/tests/language_2/double/to_string_as_fixed_test.dart +++ b/tests/language_2/double/to_string_as_fixed_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test basic integer operations. +// @dart = 2.9 + import "package:expect/expect.dart"; class ToStringAsFixedTest { diff --git a/tests/language_2/double/to_string_as_precision2_runtime_test.dart b/tests/language_2/double/to_string_as_precision2_runtime_test.dart index 42214dcb9e0..a75802166b0 100644 --- a/tests/language_2/double/to_string_as_precision2_runtime_test.dart +++ b/tests/language_2/double/to_string_as_precision2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/double/to_string_as_precision2_test.dart b/tests/language_2/double/to_string_as_precision2_test.dart index 6df42221cae..2f56ce88d65 100644 --- a/tests/language_2/double/to_string_as_precision2_test.dart +++ b/tests/language_2/double/to_string_as_precision2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test basic integer operations. +// @dart = 2.9 + // [NNBD non-migrated]: This test has no language/ counterpart. The static // errors are just redundant tests of the static type system, and the runtime // errors are redundant with to_string_as_precision2_runtime_test.dart. diff --git a/tests/language_2/double/to_string_as_precision3_test.dart b/tests/language_2/double/to_string_as_precision3_test.dart index 19f390cade4..69a97a1eb0a 100644 --- a/tests/language_2/double/to_string_as_precision3_test.dart +++ b/tests/language_2/double/to_string_as_precision3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test basic integer operations. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/double/to_string_as_precision_test.dart b/tests/language_2/double/to_string_as_precision_test.dart index 6c048fe1800..d98ba66a678 100644 --- a/tests/language_2/double/to_string_as_precision_test.dart +++ b/tests/language_2/double/to_string_as_precision_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test basic integer operations. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/double/to_string_test.dart b/tests/language_2/double/to_string_test.dart index fcdafb9b2dc..04f1af93008 100644 --- a/tests/language_2/double/to_string_test.dart +++ b/tests/language_2/double/to_string_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test basic integer operations. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/double_literals/double_literal_coercion_error_test.dart b/tests/language_2/double_literals/double_literal_coercion_error_test.dart index ca112be16ef..c3051cc11cc 100644 --- a/tests/language_2/double_literals/double_literal_coercion_error_test.dart +++ b/tests/language_2/double_literals/double_literal_coercion_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Introduces a context with double as type. void notDouble([double value]) { if (value != null) throw "unreachable"; diff --git a/tests/language_2/double_literals/double_literal_coercion_test.dart b/tests/language_2/double_literals/double_literal_coercion_test.dart index 2438bd41488..1771aec9efd 100644 --- a/tests/language_2/double_literals/double_literal_coercion_test.dart +++ b/tests/language_2/double_literals/double_literal_coercion_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Pass expected value and then decimal literal value in a double context. diff --git a/tests/language_2/double_literals/implicit_double_context_test.dart b/tests/language_2/double_literals/implicit_double_context_test.dart index 50842f37a40..8a2bfff20c7 100644 --- a/tests/language_2/double_literals/implicit_double_context_test.dart +++ b/tests/language_2/double_literals/implicit_double_context_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async" show FutureOr; import "package:expect/expect.dart"; diff --git a/tests/language_2/dynamic/call_test.dart b/tests/language_2/dynamic/call_test.dart index f7a760c1962..2ecd3a25f80 100644 --- a/tests/language_2/dynamic/call_test.dart +++ b/tests/language_2/dynamic/call_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing dynamic calls. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/dynamic/dynamic2_runtime_test.dart b/tests/language_2/dynamic/dynamic2_runtime_test.dart index d7159b8c36c..12a4448404c 100644 --- a/tests/language_2/dynamic/dynamic2_runtime_test.dart +++ b/tests/language_2/dynamic/dynamic2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/dynamic/dynamic2_test.dart b/tests/language_2/dynamic/dynamic2_test.dart index 6871f9f56cf..25e43d187f8 100644 --- a/tests/language_2/dynamic/dynamic2_test.dart +++ b/tests/language_2/dynamic/dynamic2_test.dart @@ -4,6 +4,8 @@ // // Test the prohibited use of 'dynamic' in extending and implementing classes. +// @dart = 2.9 + class A // ^ // [cfe] The type 'dynamic' can't be used as supertype. diff --git a/tests/language_2/dynamic/dynamic_test.dart b/tests/language_2/dynamic/dynamic_test.dart index e89b44e8492..1e88d2a8abd 100644 --- a/tests/language_2/dynamic/dynamic_test.dart +++ b/tests/language_2/dynamic/dynamic_test.dart @@ -4,6 +4,8 @@ // // Dart test program testing the use of 'dynamic' in generic types. +// @dart = 2.9 + import "package:expect/expect.dart"; abstract class Iface {} diff --git a/tests/language_2/dynamic/field_runtime_test.dart b/tests/language_2/dynamic/field_runtime_test.dart index aebfbf6666b..9bf48ef1939 100644 --- a/tests/language_2/dynamic/field_runtime_test.dart +++ b/tests/language_2/dynamic/field_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/dynamic/field_test.dart b/tests/language_2/dynamic/field_test.dart index 23190e0fee6..5ac338ee6b7 100644 --- a/tests/language_2/dynamic/field_test.dart +++ b/tests/language_2/dynamic/field_test.dart @@ -4,6 +4,8 @@ // // Test that ensures that fields can be accessed dynamically. +// @dart = 2.9 + import "package:expect/expect.dart"; class A extends C { diff --git a/tests/language_2/dynamic/hash_code_test.dart b/tests/language_2/dynamic/hash_code_test.dart index b705dd8afaa..79e7eaaa58c 100644 --- a/tests/language_2/dynamic/hash_code_test.dart +++ b/tests/language_2/dynamic/hash_code_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/dynamic/invoke_test.dart b/tests/language_2/dynamic/invoke_test.dart index d01beca077e..c142c29175b 100644 --- a/tests/language_2/dynamic/invoke_test.dart +++ b/tests/language_2/dynamic/invoke_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing dynamic calls. +// @dart = 2.9 + import "package:expect/expect.dart"; // Make this something that DDC considers side effecting. diff --git a/tests/language_2/dynamic/prefix_core_test.dart b/tests/language_2/dynamic/prefix_core_test.dart index 65da0323073..dcb6c9dd7fd 100644 --- a/tests/language_2/dynamic/prefix_core_test.dart +++ b/tests/language_2/dynamic/prefix_core_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test explicit import of dart:core in the source code.. +// @dart = 2.9 + library DynamicPrefixCoreTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/dynamic/set_test.dart b/tests/language_2/dynamic/set_test.dart index 35f2b976e95..27bba8137f7 100644 --- a/tests/language_2/dynamic/set_test.dart +++ b/tests/language_2/dynamic/set_test.dart @@ -4,6 +4,8 @@ // // Test that ensures that fields can be accessed dynamically. +// @dart = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/dynamic/type_literal_test.dart b/tests/language_2/dynamic/type_literal_test.dart index 335e9ae70a2..d940916543b 100644 --- a/tests/language_2/dynamic/type_literal_test.dart +++ b/tests/language_2/dynamic/type_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test generation of 'dynamic' type literals. import "package:expect/expect.dart"; diff --git a/tests/language_2/dynamic_type_helper.dart b/tests/language_2/dynamic_type_helper.dart index 543ceba123c..69db3460bda 100644 --- a/tests/language_2/dynamic_type_helper.dart +++ b/tests/language_2/dynamic_type_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library dynamic_type_helper; import 'package:expect/expect.dart'; diff --git a/tests/language_2/enum/duplicate_lib.dart b/tests/language_2/enum/duplicate_lib.dart index b9c84f5109a..9534b62d842 100644 --- a/tests/language_2/enum/duplicate_lib.dart +++ b/tests/language_2/enum/duplicate_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library enum_duplicate_lib; enum Enum1 { diff --git a/tests/language_2/enum/duplicate_test.dart b/tests/language_2/enum/duplicate_test.dart index 79046521fdc..0ae0bdda1d0 100644 --- a/tests/language_2/enum/duplicate_test.dart +++ b/tests/language_2/enum/duplicate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for duplicate enums. library enum_duplicate_test; diff --git a/tests/language_2/enum/enum_test.dart b/tests/language_2/enum/enum_test.dart index 4e1303db6c1..eb0d039eca2 100644 --- a/tests/language_2/enum/enum_test.dart +++ b/tests/language_2/enum/enum_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; enum Enum1 { _ } diff --git a/tests/language_2/enum/index_test.dart b/tests/language_2/enum/index_test.dart index ce6994b4476..fb1c5b3c243 100644 --- a/tests/language_2/enum/index_test.dart +++ b/tests/language_2/enum/index_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test index access for enums. library enum_index_test; diff --git a/tests/language_2/enum/initialization_near_stack_overflow_test.dart b/tests/language_2/enum/initialization_near_stack_overflow_test.dart index 598b382c070..7e4ece87bba 100644 --- a/tests/language_2/enum/initialization_near_stack_overflow_test.dart +++ b/tests/language_2/enum/initialization_near_stack_overflow_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // https://github.com/flutter/flutter/issues/25041 // This test may produce a compile time exception from stack overflow during diff --git a/tests/language_2/enum/is_keyword_runtime_test.dart b/tests/language_2/enum/is_keyword_runtime_test.dart index 2e9a471e218..8ea644f9637 100644 --- a/tests/language_2/enum/is_keyword_runtime_test.dart +++ b/tests/language_2/enum/is_keyword_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/enum/is_keyword_test.dart b/tests/language_2/enum/is_keyword_test.dart index 4d372397e1e..b57ee880fb7 100644 --- a/tests/language_2/enum/is_keyword_test.dart +++ b/tests/language_2/enum/is_keyword_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that `enum` is considered a keyword and therefore invalid as the name of // declarations. diff --git a/tests/language_2/enum/private_lib.dart b/tests/language_2/enum/private_lib.dart index c8fb00f6f3f..dfce2387ad5 100644 --- a/tests/language_2/enum/private_lib.dart +++ b/tests/language_2/enum/private_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library enum_private_lib; enum Enum2 { diff --git a/tests/language_2/enum/private_runtime_1_test.dart b/tests/language_2/enum/private_runtime_1_test.dart index 34af1267522..b2fbfeed218 100644 --- a/tests/language_2/enum/private_runtime_1_test.dart +++ b/tests/language_2/enum/private_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/enum/private_runtime_test.dart b/tests/language_2/enum/private_runtime_test.dart index adc8d7a3743..ad44d807a51 100644 --- a/tests/language_2/enum/private_runtime_test.dart +++ b/tests/language_2/enum/private_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/enum/private_test.dart b/tests/language_2/enum/private_test.dart index a24fec36e23..cf6f9807398 100644 --- a/tests/language_2/enum/private_test.dart +++ b/tests/language_2/enum/private_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test privacy issue for enums. library enum_private_test; diff --git a/tests/language_2/enum/syntax_test.dart b/tests/language_2/enum/syntax_test.dart index 250e1ae9273..1c6ce183573 100644 --- a/tests/language_2/enum/syntax_test.dart +++ b/tests/language_2/enum/syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Basic syntax test for enumeration types enum Color { red, orange, yellow, green } diff --git a/tests/language_2/enum/value_name_test.dart b/tests/language_2/enum/value_name_test.dart index f4a0d8af55f..a6b46d5c012 100644 --- a/tests/language_2/enum/value_name_test.dart +++ b/tests/language_2/enum/value_name_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; enum ErrorContext { general, name, description, targets } diff --git a/tests/language_2/exception/catch_liveness_test.dart b/tests/language_2/exception/catch_liveness_test.dart index df9a3ddfe89..da58334fccd 100644 --- a/tests/language_2/exception/catch_liveness_test.dart +++ b/tests/language_2/exception/catch_liveness_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; @pragma('dart2js:assumeDynamic') diff --git a/tests/language_2/exception/code_after_try_is_executed_test.dart b/tests/language_2/exception/code_after_try_is_executed_test.dart index 57ffd842cbe..a1f3d6b3690 100644 --- a/tests/language_2/exception/code_after_try_is_executed_test.dart +++ b/tests/language_2/exception/code_after_try_is_executed_test.dart @@ -5,6 +5,8 @@ // test cannot use Expect.throws, because Expect.throws uses the same // pattern. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/exception/exception_test.dart b/tests/language_2/exception/exception_test.dart index 2cdab5e0977..805fadbfac1 100644 --- a/tests/language_2/exception/exception_test.dart +++ b/tests/language_2/exception/exception_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class ExceptionTest { diff --git a/tests/language_2/exception/finally10_test.dart b/tests/language_2/exception/finally10_test.dart index dfe47b5d2c9..447f196d192 100644 --- a/tests/language_2/exception/finally10_test.dart +++ b/tests/language_2/exception/finally10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to not treat the finally // block as a successor of a catch block that throws. diff --git a/tests/language_2/exception/finally11_test.dart b/tests/language_2/exception/finally11_test.dart index dbe72888d4e..73b6b73486c 100644 --- a/tests/language_2/exception/finally11_test.dart +++ b/tests/language_2/exception/finally11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to not treat the finally // block as a successor of a nested try block. diff --git a/tests/language_2/exception/finally12_test.dart b/tests/language_2/exception/finally12_test.dart index e4f56a06cf0..8cf31c2246e 100644 --- a/tests/language_2/exception/finally12_test.dart +++ b/tests/language_2/exception/finally12_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to not treat the finally // block as a successor of a nested try block. diff --git a/tests/language_2/exception/finally1_test.dart b/tests/language_2/exception/finally1_test.dart index 0e8510acfd3..624b58f3165 100644 --- a/tests/language_2/exception/finally1_test.dart +++ b/tests/language_2/exception/finally1_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing execution of finally blocks on // control flow breaks because of 'return', 'continue' etc. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/exception/finally2_test.dart b/tests/language_2/exception/finally2_test.dart index fd64f696da3..d6684e5222e 100644 --- a/tests/language_2/exception/finally2_test.dart +++ b/tests/language_2/exception/finally2_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing execution of finally blocks on // control flow breaks because of 'return', 'continue' etc. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/exception/finally3_test.dart b/tests/language_2/exception/finally3_test.dart index c36ba0fe291..341b3628b4c 100644 --- a/tests/language_2/exception/finally3_test.dart +++ b/tests/language_2/exception/finally3_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing execution of finally blocks on // control flow breaks because of 'return', 'continue' etc. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/exception/finally4_test.dart b/tests/language_2/exception/finally4_test.dart index fcc308cf30f..ba159b7a6f4 100644 --- a/tests/language_2/exception/finally4_test.dart +++ b/tests/language_2/exception/finally4_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing execution of finally blocks on // control flow breaks because of 'return', 'continue' etc. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/exception/finally5_test.dart b/tests/language_2/exception/finally5_test.dart index 09cbdc15579..d5a052eb2bd 100644 --- a/tests/language_2/exception/finally5_test.dart +++ b/tests/language_2/exception/finally5_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing execution of finally blocks on // control flow breaks because of 'return', 'continue' etc. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/exception/finally6_test.dart b/tests/language_2/exception/finally6_test.dart index e9c5ea54b67..1e8407ba143 100644 --- a/tests/language_2/exception/finally6_test.dart +++ b/tests/language_2/exception/finally6_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing execution of finally blocks on // control flow breaks because of 'return', 'continue' etc. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/exception/finally7_test.dart b/tests/language_2/exception/finally7_test.dart index 51e524f396b..53d93a19f44 100644 --- a/tests/language_2/exception/finally7_test.dart +++ b/tests/language_2/exception/finally7_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing execution of finally blocks after an exception // is thrown from inside a local function capturing a variable. +// @dart = 2.9 + import "package:expect/expect.dart"; class MyException { diff --git a/tests/language_2/exception/finally8_test.dart b/tests/language_2/exception/finally8_test.dart index c697eee5505..f595151ea66 100644 --- a/tests/language_2/exception/finally8_test.dart +++ b/tests/language_2/exception/finally8_test.dart @@ -4,6 +4,8 @@ // This test ensures that the finally block executes correctly when // there are throw, break and return statements in the finally block. +// @dart = 2.9 + import "package:expect/expect.dart"; class Hello { diff --git a/tests/language_2/exception/finally9_test.dart b/tests/language_2/exception/finally9_test.dart index 5513466d77e..d98f7b06bcd 100644 --- a/tests/language_2/exception/finally9_test.dart +++ b/tests/language_2/exception/finally9_test.dart @@ -4,6 +4,8 @@ // This test ensures that the finally block executes correctly when // there are throw, break and return statements in the finally block. +// @dart = 2.9 + import "package:expect/expect.dart"; class Hello { diff --git a/tests/language_2/exception/finally_test.dart b/tests/language_2/exception/finally_test.dart index 92774164763..bf4c324edd8 100644 --- a/tests/language_2/exception/finally_test.dart +++ b/tests/language_2/exception/finally_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test for a bug in dart2js where the update of a field in a try diff --git a/tests/language_2/exception/identity_test.dart b/tests/language_2/exception/identity_test.dart index 2b166078b43..ec680bfce25 100644 --- a/tests/language_2/exception/identity_test.dart +++ b/tests/language_2/exception/identity_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that an object when thrown stays the same. diff --git a/tests/language_2/exception/in_increment_test.dart b/tests/language_2/exception/in_increment_test.dart index 5e34a609503..715bceec255 100644 --- a/tests/language_2/exception/in_increment_test.dart +++ b/tests/language_2/exception/in_increment_test.dart @@ -5,6 +5,8 @@ // part of the instance field increment never completes. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + main() { var a = new A(); a.field = new A(); diff --git a/tests/language_2/exception/on_catch_malformed_type_test.dart b/tests/language_2/exception/on_catch_malformed_type_test.dart index 8b49027f719..5b91b5ab87d 100644 --- a/tests/language_2/exception/on_catch_malformed_type_test.dart +++ b/tests/language_2/exception/on_catch_malformed_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that malformed types in on-catch are handled correctly, that is, // throws a type error in both production and checked mode. diff --git a/tests/language_2/exception/rethrow_test.dart b/tests/language_2/exception/rethrow_test.dart index 4b535c9f3e5..2379a94bab6 100644 --- a/tests/language_2/exception/rethrow_test.dart +++ b/tests/language_2/exception/rethrow_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing throw statement +// @dart = 2.9 + import "package:expect/expect.dart"; class MyException { diff --git a/tests/language_2/exception/throw1_test.dart b/tests/language_2/exception/throw1_test.dart index 1ae121e1722..60492b086ca 100644 --- a/tests/language_2/exception/throw1_test.dart +++ b/tests/language_2/exception/throw1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing throw statement +// @dart = 2.9 + import "package:expect/expect.dart"; abstract class TestException { diff --git a/tests/language_2/exception/throw2_test.dart b/tests/language_2/exception/throw2_test.dart index eaade240479..975ed7833e9 100644 --- a/tests/language_2/exception/throw2_test.dart +++ b/tests/language_2/exception/throw2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing throw statement +// @dart = 2.9 + import "package:expect/expect.dart"; abstract class TestException { diff --git a/tests/language_2/exception/throw3_test.dart b/tests/language_2/exception/throw3_test.dart index 1d72345a0f4..54c6b5cdf9c 100644 --- a/tests/language_2/exception/throw3_test.dart +++ b/tests/language_2/exception/throw3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing throw statement +// @dart = 2.9 + import "package:expect/expect.dart"; class MyException { diff --git a/tests/language_2/exception/throw4_test.dart b/tests/language_2/exception/throw4_test.dart index 6dd2f74b341..2d1f37a2911 100644 --- a/tests/language_2/exception/throw4_test.dart +++ b/tests/language_2/exception/throw4_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing throw statement +// @dart = 2.9 + import "package:expect/expect.dart"; class MyException1 { diff --git a/tests/language_2/exception/throw5_test.dart b/tests/language_2/exception/throw5_test.dart index 349ade71bf3..d77702279e5 100644 --- a/tests/language_2/exception/throw5_test.dart +++ b/tests/language_2/exception/throw5_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing throw statement +// @dart = 2.9 + import "package:expect/expect.dart"; class MyException1 { diff --git a/tests/language_2/exception/throw6_test.dart b/tests/language_2/exception/throw6_test.dart index 14334670c9b..03385bad77f 100644 --- a/tests/language_2/exception/throw6_test.dart +++ b/tests/language_2/exception/throw6_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing throw statement +// @dart = 2.9 + import "package:expect/expect.dart"; class MyException1 { diff --git a/tests/language_2/exception/throw8_test.dart b/tests/language_2/exception/throw8_test.dart index de840128df9..8512611248b 100644 --- a/tests/language_2/exception/throw8_test.dart +++ b/tests/language_2/exception/throw8_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing throw statement +// @dart = 2.9 + import "package:expect/expect.dart"; var finallyExecutionCount = 0; diff --git a/tests/language_2/exception/throw_expr_test.dart b/tests/language_2/exception/throw_expr_test.dart index c1f5044a308..ca11b65e89c 100644 --- a/tests/language_2/exception/throw_expr_test.dart +++ b/tests/language_2/exception/throw_expr_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for testing throw expressions. diff --git a/tests/language_2/exception/throw_test.dart b/tests/language_2/exception/throw_test.dart index 0c864cc740b..987a10bab83 100644 --- a/tests/language_2/exception/throw_test.dart +++ b/tests/language_2/exception/throw_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing throw statement +// @dart = 2.9 + import "package:expect/expect.dart"; class MyException { diff --git a/tests/language_2/exception/try_catch2_test.dart b/tests/language_2/exception/try_catch2_test.dart index 8da606c6bac..1482009fad1 100644 --- a/tests/language_2/exception/try_catch2_test.dart +++ b/tests/language_2/exception/try_catch2_test.dart @@ -5,6 +5,8 @@ // being thrown. (Nested try/catch blocks). // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; abstract class TestException { diff --git a/tests/language_2/exception/try_catch3_test.dart b/tests/language_2/exception/try_catch3_test.dart index 6cff3f82e0f..8cf79a7236f 100644 --- a/tests/language_2/exception/try_catch3_test.dart +++ b/tests/language_2/exception/try_catch3_test.dart @@ -5,6 +5,8 @@ // being thrown. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; abstract class TestException { diff --git a/tests/language_2/exception/try_catch4_test.dart b/tests/language_2/exception/try_catch4_test.dart index a6cbe033a4e..b1ed8cb1d03 100644 --- a/tests/language_2/exception/try_catch4_test.dart +++ b/tests/language_2/exception/try_catch4_test.dart @@ -5,6 +5,8 @@ // try/finally. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; var a; diff --git a/tests/language_2/exception/try_catch5_test.dart b/tests/language_2/exception/try_catch5_test.dart index 6920b0614bb..192c6072e63 100644 --- a/tests/language_2/exception/try_catch5_test.dart +++ b/tests/language_2/exception/try_catch5_test.dart @@ -5,6 +5,8 @@ // try/finally. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; var a; diff --git a/tests/language_2/exception/try_catch_on_syntax_test.dart b/tests/language_2/exception/try_catch_on_syntax_test.dart index c19a94f1c8e..e58b43eb3d3 100644 --- a/tests/language_2/exception/try_catch_on_syntax_test.dart +++ b/tests/language_2/exception/try_catch_on_syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class MyException {} diff --git a/tests/language_2/exception/try_catch_optimized1_test.dart b/tests/language_2/exception/try_catch_optimized1_test.dart index c405538740f..41b56b0fc52 100644 --- a/tests/language_2/exception/try_catch_optimized1_test.dart +++ b/tests/language_2/exception/try_catch_optimized1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; maythrow(x) { diff --git a/tests/language_2/exception/try_catch_optimized2_test.dart b/tests/language_2/exception/try_catch_optimized2_test.dart index 7b071769ec5..45672e70fd5 100644 --- a/tests/language_2/exception/try_catch_optimized2_test.dart +++ b/tests/language_2/exception/try_catch_optimized2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test allocation sinking with optimized try-catch. diff --git a/tests/language_2/exception/try_catch_optimized3_test.dart b/tests/language_2/exception/try_catch_optimized3_test.dart index a2b03fc340f..95f4dc94902 100644 --- a/tests/language_2/exception/try_catch_optimized3_test.dart +++ b/tests/language_2/exception/try_catch_optimized3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test unboxed double operations inside try-catch. diff --git a/tests/language_2/exception/try_catch_optimized4_test.dart b/tests/language_2/exception/try_catch_optimized4_test.dart index dc98f31fe3f..0bad7eacf6e 100644 --- a/tests/language_2/exception/try_catch_optimized4_test.dart +++ b/tests/language_2/exception/try_catch_optimized4_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test correct dead phi elimination with try catch. diff --git a/tests/language_2/exception/try_catch_optimized5_test.dart b/tests/language_2/exception/try_catch_optimized5_test.dart index a9f07892b46..90b61debdc2 100644 --- a/tests/language_2/exception/try_catch_optimized5_test.dart +++ b/tests/language_2/exception/try_catch_optimized5_test.dart @@ -5,6 +5,8 @@ // being thrown. // VMOptions=--optimization-counter-threshold=100 --no-background-compilation +// @dart = 2.9 + // Test optional parameters updated inside try-catch import "package:expect/expect.dart"; diff --git a/tests/language_2/exception/try_catch_osr_test.dart b/tests/language_2/exception/try_catch_osr_test.dart index 085241f4097..43eb3216f9c 100644 --- a/tests/language_2/exception/try_catch_osr_test.dart +++ b/tests/language_2/exception/try_catch_osr_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Test OSR in different places of a try-catch. import "package:expect/expect.dart"; diff --git a/tests/language_2/exception/try_catch_regress_27483_test.dart b/tests/language_2/exception/try_catch_regress_27483_test.dart index 06f1b00a95d..abb0fdc94f3 100644 --- a/tests/language_2/exception/try_catch_regress_27483_test.dart +++ b/tests/language_2/exception/try_catch_regress_27483_test.dart @@ -5,6 +5,8 @@ // being thrown. // VMOptions=--optimization-counter-threshold=100 --no-background-compilation +// @dart = 2.9 + // Test local variables updated inside try-catch. import "package:expect/expect.dart"; diff --git a/tests/language_2/exception/try_catch_runtime_test.dart b/tests/language_2/exception/try_catch_runtime_test.dart index 872f9d72184..065a4aacf3d 100644 --- a/tests/language_2/exception/try_catch_runtime_test.dart +++ b/tests/language_2/exception/try_catch_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/exception/try_catch_syntax_test.dart b/tests/language_2/exception/try_catch_syntax_test.dart index 5a192d1fd7a..66feac11864 100644 --- a/tests/language_2/exception/try_catch_syntax_test.dart +++ b/tests/language_2/exception/try_catch_syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { testMissingCatch(); testMissingTry(); diff --git a/tests/language_2/exception/try_catch_test.dart b/tests/language_2/exception/try_catch_test.dart index 2b8fee24045..8c38335a87a 100644 --- a/tests/language_2/exception/try_catch_test.dart +++ b/tests/language_2/exception/try_catch_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; class MyException {} diff --git a/tests/language_2/exception/try_finally_regress_25333_test.dart b/tests/language_2/exception/try_finally_regress_25333_test.dart index 6318f7c6939..ba36836c8a6 100644 --- a/tests/language_2/exception/try_finally_regress_25333_test.dart +++ b/tests/language_2/exception/try_finally_regress_25333_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test correct handling of try-catch inside try-finally. import "package:expect/expect.dart"; diff --git a/tests/language_2/exception/try_finally_regress_25654_test.dart b/tests/language_2/exception/try_finally_regress_25654_test.dart index 32a236fb6fc..a5835568fc2 100644 --- a/tests/language_2/exception/try_finally_regress_25654_test.dart +++ b/tests/language_2/exception/try_finally_regress_25654_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test break out of try-finally. import "package:expect/expect.dart"; diff --git a/tests/language_2/export/ambiguous_main_a.dart b/tests/language_2/export/ambiguous_main_a.dart index 4a7b820ac65..2a8a8d37eb4 100644 --- a/tests/language_2/export/ambiguous_main_a.dart +++ b/tests/language_2/export/ambiguous_main_a.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library export_ambiguous_main_a; main() { diff --git a/tests/language_2/export/ambiguous_main_b.dart b/tests/language_2/export/ambiguous_main_b.dart index 734a620649c..f344b7b6394 100644 --- a/tests/language_2/export/ambiguous_main_b.dart +++ b/tests/language_2/export/ambiguous_main_b.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library export_ambiguous_main_b; main() { diff --git a/tests/language_2/export/ambiguous_main_test.dart b/tests/language_2/export/ambiguous_main_test.dart index b2a8a24c064..d61ca80ab26 100644 --- a/tests/language_2/export/ambiguous_main_test.dart +++ b/tests/language_2/export/ambiguous_main_test.dart @@ -2,5 +2,7 @@ // 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 = 2.9 + export 'ambiguous_main_a.dart'; export 'ambiguous_main_b.dart'; /*@compile-error=unspecified*/ diff --git a/tests/language_2/export/cyclic_helper1.dart b/tests/language_2/export/cyclic_helper1.dart index af3225b7d79..d53f9965e59 100644 --- a/tests/language_2/export/cyclic_helper1.dart +++ b/tests/language_2/export/cyclic_helper1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library export_cyclic_helper1; import 'cyclic_helper2.dart'; diff --git a/tests/language_2/export/cyclic_helper2.dart b/tests/language_2/export/cyclic_helper2.dart index 2ad239c8f9f..394f5da5bca 100644 --- a/tests/language_2/export/cyclic_helper2.dart +++ b/tests/language_2/export/cyclic_helper2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library export_cyclic_helper2; import 'cyclic_test.dart'; diff --git a/tests/language_2/export/cyclic_helper3.dart b/tests/language_2/export/cyclic_helper3.dart index 17b9ff94ded..9458409e013 100644 --- a/tests/language_2/export/cyclic_helper3.dart +++ b/tests/language_2/export/cyclic_helper3.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library export_cyclic_helper3; class D {} diff --git a/tests/language_2/export/cyclic_test.dart b/tests/language_2/export/cyclic_test.dart index d854a398137..4396788ab6c 100644 --- a/tests/language_2/export/cyclic_test.dart +++ b/tests/language_2/export/cyclic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test cyclic export and re-export. /** diff --git a/tests/language_2/export/double_same_main_test.dart b/tests/language_2/export/double_same_main_test.dart index 8923855e738..b6742d1b6b7 100644 --- a/tests/language_2/export/double_same_main_test.dart +++ b/tests/language_2/export/double_same_main_test.dart @@ -2,5 +2,7 @@ // 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 = 2.9 + export 'top_level_entry_test.dart'; export 'main_test.dart' show main; diff --git a/tests/language_2/export/duplicate_collision_test.dart b/tests/language_2/export/duplicate_collision_test.dart index 5948d9b5a34..1f5a1a19f2b 100644 --- a/tests/language_2/export/duplicate_collision_test.dart +++ b/tests/language_2/export/duplicate_collision_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'duplicate_import_libd.dart'; //# 01: compile-time error void main() {} diff --git a/tests/language_2/export/duplicate_export_test.dart b/tests/language_2/export/duplicate_export_test.dart index 75f8a8234ed..aac5fdca3ed 100644 --- a/tests/language_2/export/duplicate_export_test.dart +++ b/tests/language_2/export/duplicate_export_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that it is not a compile-time error to reexport the same elements // through different paths. diff --git a/tests/language_2/export/duplicate_import_liba.dart b/tests/language_2/export/duplicate_import_liba.dart index b8af1a7da68..7913ee42231 100644 --- a/tests/language_2/export/duplicate_import_liba.dart +++ b/tests/language_2/export/duplicate_import_liba.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library liba; var field; diff --git a/tests/language_2/export/duplicate_import_libb.dart b/tests/language_2/export/duplicate_import_libb.dart index 456147fa8a9..66a23796916 100644 --- a/tests/language_2/export/duplicate_import_libb.dart +++ b/tests/language_2/export/duplicate_import_libb.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library libb; var field; diff --git a/tests/language_2/export/duplicate_import_libc.dart b/tests/language_2/export/duplicate_import_libc.dart index d1f1b41cfe1..10c17a78cc2 100644 --- a/tests/language_2/export/duplicate_import_libc.dart +++ b/tests/language_2/export/duplicate_import_libc.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library libc; var field; diff --git a/tests/language_2/export/duplicate_import_libd.dart b/tests/language_2/export/duplicate_import_libd.dart index 14f1ff413fb..54bd35cb84f 100644 --- a/tests/language_2/export/duplicate_import_libd.dart +++ b/tests/language_2/export/duplicate_import_libd.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library libd; import 'duplicate_import_liba.dart'; diff --git a/tests/language_2/export/duplicate_liba.dart b/tests/language_2/export/duplicate_liba.dart index 7b68d429a32..a5c90d5bcc6 100644 --- a/tests/language_2/export/duplicate_liba.dart +++ b/tests/language_2/export/duplicate_liba.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library export_liba; export 'duplicate_import_liba.dart'; diff --git a/tests/language_2/export/export_test.dart b/tests/language_2/export/export_test.dart index e1faa616b7f..2af96a6a546 100644 --- a/tests/language_2/export/export_test.dart +++ b/tests/language_2/export/export_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test export and re-export. library export_test; diff --git a/tests/language_2/export/helper1.dart b/tests/language_2/export/helper1.dart index 5b670f45031..a2938ef74b5 100644 --- a/tests/language_2/export/helper1.dart +++ b/tests/language_2/export/helper1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library export_helper1; import 'helper2.dart'; diff --git a/tests/language_2/export/helper2.dart b/tests/language_2/export/helper2.dart index 50dcc3db00b..7a21abae75b 100644 --- a/tests/language_2/export/helper2.dart +++ b/tests/language_2/export/helper2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library export_helper2; class ReExported {} diff --git a/tests/language_2/export/helper3.dart b/tests/language_2/export/helper3.dart index 3b3bed9b847..b04cf9cdefd 100644 --- a/tests/language_2/export/helper3.dart +++ b/tests/language_2/export/helper3.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library export_helper3; import 'helper4.dart'; diff --git a/tests/language_2/export/helper4.dart b/tests/language_2/export/helper4.dart index 3ca68ec6d80..e5d3577f4e8 100644 --- a/tests/language_2/export/helper4.dart +++ b/tests/language_2/export/helper4.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library export_helper4; class ReExported {} diff --git a/tests/language_2/export/local_a.dart b/tests/language_2/export/local_a.dart index dd6d0391afd..2af72a3c9ff 100644 --- a/tests/language_2/export/local_a.dart +++ b/tests/language_2/export/local_a.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library local_export_a; export 'local_a_export.dart'; diff --git a/tests/language_2/export/local_a_export.dart b/tests/language_2/export/local_a_export.dart index 1919d385af1..fb2d66a36e2 100644 --- a/tests/language_2/export/local_a_export.dart +++ b/tests/language_2/export/local_a_export.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library local_export_a_export; int A = 0; diff --git a/tests/language_2/export/local_export_test.dart b/tests/language_2/export/local_export_test.dart index 2ed46594128..fd4f507ad76 100644 --- a/tests/language_2/export/local_export_test.dart +++ b/tests/language_2/export/local_export_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library localExportTest; import "package:expect/expect.dart"; diff --git a/tests/language_2/export/main_override_test.dart b/tests/language_2/export/main_override_test.dart index 65782884947..b98c94dd392 100644 --- a/tests/language_2/export/main_override_test.dart +++ b/tests/language_2/export/main_override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + export 'top_level_entry_test.dart'; main() { diff --git a/tests/language_2/export/main_test.dart b/tests/language_2/export/main_test.dart index 1e920a70e26..3639eff689c 100644 --- a/tests/language_2/export/main_test.dart +++ b/tests/language_2/export/main_test.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + export 'top_level_entry_test.dart'; diff --git a/tests/language_2/export/not_shadowed_by_prefix_helper.dart b/tests/language_2/export/not_shadowed_by_prefix_helper.dart index d6d44fd5ded..78d0af57a1b 100644 --- a/tests/language_2/export/not_shadowed_by_prefix_helper.dart +++ b/tests/language_2/export/not_shadowed_by_prefix_helper.dart @@ -2,5 +2,7 @@ // 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 = 2.9 + export "not_shadowed_by_prefix_helper2.dart"; import "dart:core" as f; diff --git a/tests/language_2/export/not_shadowed_by_prefix_helper2.dart b/tests/language_2/export/not_shadowed_by_prefix_helper2.dart index ae2dca5fcf0..1af4ed2e85e 100644 --- a/tests/language_2/export/not_shadowed_by_prefix_helper2.dart +++ b/tests/language_2/export/not_shadowed_by_prefix_helper2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void f() { f_called = true; } diff --git a/tests/language_2/export/not_shadowed_by_prefix_test.dart b/tests/language_2/export/not_shadowed_by_prefix_test.dart index 6cebd57dfc5..134e29dc617 100644 --- a/tests/language_2/export/not_shadowed_by_prefix_test.dart +++ b/tests/language_2/export/not_shadowed_by_prefix_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that import prefixes within an imported library don't shadow // names re-exported by that library. diff --git a/tests/language_2/export/order_helper1.dart b/tests/language_2/export/order_helper1.dart index 68dd448cc41..22c5b742ffc 100644 --- a/tests/language_2/export/order_helper1.dart +++ b/tests/language_2/export/order_helper1.dart @@ -2,5 +2,7 @@ // 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 = 2.9 + export 'order_test.dart'; export 'order_helper2.dart' show z; diff --git a/tests/language_2/export/order_helper2.dart b/tests/language_2/export/order_helper2.dart index 7effbfb5e3b..8ac3c08cd18 100644 --- a/tests/language_2/export/order_helper2.dart +++ b/tests/language_2/export/order_helper2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'order_helper1.dart'; class Info { diff --git a/tests/language_2/export/order_test.dart b/tests/language_2/export/order_test.dart index 94cb915c3ff..b884508394e 100644 --- a/tests/language_2/export/order_test.dart +++ b/tests/language_2/export/order_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'order_helper1.dart' as bar; import 'order_helper2.dart'; diff --git a/tests/language_2/export/private_runtime_test.dart b/tests/language_2/export/private_runtime_test.dart index e78b2b1b4c7..d08a0b51f34 100644 --- a/tests/language_2/export/private_runtime_test.dart +++ b/tests/language_2/export/private_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/export/private_test.dart b/tests/language_2/export/private_test.dart index d152f327e75..c409ac7971a 100644 --- a/tests/language_2/export/private_test.dart +++ b/tests/language_2/export/private_test.dart @@ -3,8 +3,10 @@ // BSD-style license that can be found in the LICENSE file. // Check that private dart:_ libraries cannot be imported. +// @dart = 2.9 + export "dart:_internal"; -// [error line 6, column 1, length 24] +// [error line 8, column 1, length 24] // [analyzer] COMPILE_TIME_ERROR.EXPORT_INTERNAL_LIBRARY // [cfe] Can't access platform private library. diff --git a/tests/language_2/export/reexport_core_helper.dart b/tests/language_2/export/reexport_core_helper.dart index 86c81bf5c50..d1f3f680deb 100644 --- a/tests/language_2/export/reexport_core_helper.dart +++ b/tests/language_2/export/reexport_core_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library reexport_core_helper; export 'dart:core'; diff --git a/tests/language_2/export/reexport_core_test.dart b/tests/language_2/export/reexport_core_test.dart index e4a17dd1f0a..0d138e83ca8 100644 --- a/tests/language_2/export/reexport_core_test.dart +++ b/tests/language_2/export/reexport_core_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that exports are handled for libraries loaded prior to the entry point // library. // diff --git a/tests/language_2/export/top_level_entry.dart b/tests/language_2/export/top_level_entry.dart index 4399b58b101..7b07bb289ee 100644 --- a/tests/language_2/export/top_level_entry.dart +++ b/tests/language_2/export/top_level_entry.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of top_level_entry_test.dart; main() {} diff --git a/tests/language_2/export/top_level_entry_test.dart b/tests/language_2/export/top_level_entry_test.dart index 5f8c17800d8..c585b96c415 100644 --- a/tests/language_2/export/top_level_entry_test.dart +++ b/tests/language_2/export/top_level_entry_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library top_level_entry_test.dart; part 'top_level_entry.dart'; diff --git a/tests/language_2/extension_methods/basic_static_extension_test.dart b/tests/language_2/extension_methods/basic_static_extension_test.dart index b8c3c33580a..70c0fc2e797 100644 --- a/tests/language_2/extension_methods/basic_static_extension_test.dart +++ b/tests/language_2/extension_methods/basic_static_extension_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests the syntax of extension methods, and that the extensions are diff --git a/tests/language_2/extension_methods/extension_operation_in_const_test.dart b/tests/language_2/extension_methods/extension_operation_in_const_test.dart index 4dc4b6a8127..59edb863523 100644 --- a/tests/language_2/extension_methods/extension_operation_in_const_test.dart +++ b/tests/language_2/extension_methods/extension_operation_in_const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; extension on Object { diff --git a/tests/language_2/extension_methods/helpers/also_on_object.dart b/tests/language_2/extension_methods/helpers/also_on_object.dart index afe30e34230..c6be3cd87b5 100644 --- a/tests/language_2/extension_methods/helpers/also_on_object.dart +++ b/tests/language_2/extension_methods/helpers/also_on_object.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // An extension conflicting with the one from "on_object.dart"; extension AlsoOnObject on Object { String get onObject => "also object"; diff --git a/tests/language_2/extension_methods/helpers/class_no_shadow.dart b/tests/language_2/extension_methods/helpers/class_no_shadow.dart index 31e81958098..8dd2ab2455f 100644 --- a/tests/language_2/extension_methods/helpers/class_no_shadow.dart +++ b/tests/language_2/extension_methods/helpers/class_no_shadow.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; const String instanceValue = "1"; diff --git a/tests/language_2/extension_methods/helpers/class_shadow.dart b/tests/language_2/extension_methods/helpers/class_shadow.dart index 2e603d1ab41..331d649e48a 100644 --- a/tests/language_2/extension_methods/helpers/class_shadow.dart +++ b/tests/language_2/extension_methods/helpers/class_shadow.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "class_no_shadow.dart"; diff --git a/tests/language_2/extension_methods/helpers/extension_all.dart b/tests/language_2/extension_methods/helpers/extension_all.dart index 80656a71a2c..38652523215 100644 --- a/tests/language_2/extension_methods/helpers/extension_all.dart +++ b/tests/language_2/extension_methods/helpers/extension_all.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "class_no_shadow.dart"; diff --git a/tests/language_2/extension_methods/helpers/extension_global_instance.dart b/tests/language_2/extension_methods/helpers/extension_global_instance.dart index 1fbbe7b9771..3a263b011c2 100644 --- a/tests/language_2/extension_methods/helpers/extension_global_instance.dart +++ b/tests/language_2/extension_methods/helpers/extension_global_instance.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "class_no_shadow.dart"; diff --git a/tests/language_2/extension_methods/helpers/extension_only.dart b/tests/language_2/extension_methods/helpers/extension_only.dart index d625af73a90..07a1dad4b85 100644 --- a/tests/language_2/extension_methods/helpers/extension_only.dart +++ b/tests/language_2/extension_methods/helpers/extension_only.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "class_no_shadow.dart"; diff --git a/tests/language_2/extension_methods/helpers/global_scope.dart b/tests/language_2/extension_methods/helpers/global_scope.dart index ae6f4fe6c41..3f023b50de8 100644 --- a/tests/language_2/extension_methods/helpers/global_scope.dart +++ b/tests/language_2/extension_methods/helpers/global_scope.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; const int globalValue = 0; diff --git a/tests/language_2/extension_methods/helpers/on_int.dart b/tests/language_2/extension_methods/helpers/on_int.dart index a835f163285..1eee2a7b856 100644 --- a/tests/language_2/extension_methods/helpers/on_int.dart +++ b/tests/language_2/extension_methods/helpers/on_int.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + extension OnInt on int { String get onObject => "int"; String get onInt => "int"; diff --git a/tests/language_2/extension_methods/helpers/on_object.dart b/tests/language_2/extension_methods/helpers/on_object.dart index dfca4d6f431..135e4f35a30 100644 --- a/tests/language_2/extension_methods/helpers/on_object.dart +++ b/tests/language_2/extension_methods/helpers/on_object.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + extension OnObject on Object { String get onObject => "object"; } diff --git a/tests/language_2/extension_methods/issue_45551_error_test.dart b/tests/language_2/extension_methods/issue_45551_error_test.dart index 524b4f6fd75..758aef15f97 100644 --- a/tests/language_2/extension_methods/issue_45551_error_test.dart +++ b/tests/language_2/extension_methods/issue_45551_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test illustrates the error scenario described in // https://github.com/dart-lang/sdk/issues/45551 diff --git a/tests/language_2/extension_methods/static_extension_bounds_error_test.dart b/tests/language_2/extension_methods/static_extension_bounds_error_test.dart index 2dc6ba088a3..3400ee62ec8 100644 --- a/tests/language_2/extension_methods/static_extension_bounds_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_bounds_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests bounds checking for extension methods extension E1 on T { diff --git a/tests/language_2/extension_methods/static_extension_constant_error_test.dart b/tests/language_2/extension_methods/static_extension_constant_error_test.dart index a1bca72c4b3..b2eeb7a483c 100644 --- a/tests/language_2/extension_methods/static_extension_constant_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_constant_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'static_extension_constant_lib.dart'; // Tests that it is an error to invoke an extension method during constant diff --git a/tests/language_2/extension_methods/static_extension_constant_lib.dart b/tests/language_2/extension_methods/static_extension_constant_lib.dart index 23d6de959d5..be388d152ff 100644 --- a/tests/language_2/extension_methods/static_extension_constant_lib.dart +++ b/tests/language_2/extension_methods/static_extension_constant_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + extension ExtendObject on Object { int operator ~() => 1; bool operator &(Object other) => false; diff --git a/tests/language_2/extension_methods/static_extension_constant_test.dart b/tests/language_2/extension_methods/static_extension_constant_test.dart index 18fdad15379..b5fadbd2dd7 100644 --- a/tests/language_2/extension_methods/static_extension_constant_test.dart +++ b/tests/language_2/extension_methods/static_extension_constant_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'static_extension_constant_lib.dart' hide b, i, d, s; import 'static_extension_constant_lib.dart' as lib show b, i, d, s; diff --git a/tests/language_2/extension_methods/static_extension_deferred_double_import_test.dart b/tests/language_2/extension_methods/static_extension_deferred_double_import_test.dart index 0ef1f3311ec..7facb877444 100644 --- a/tests/language_2/extension_methods/static_extension_deferred_double_import_test.dart +++ b/tests/language_2/extension_methods/static_extension_deferred_double_import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart"; diff --git a/tests/language_2/extension_methods/static_extension_deferred_import_error_test.dart b/tests/language_2/extension_methods/static_extension_deferred_import_error_test.dart index 3d0c5ba4a2d..566bcd14f51 100644 --- a/tests/language_2/extension_methods/static_extension_deferred_import_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_deferred_import_error_test.dart @@ -2,12 +2,14 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // It is an error to import a deferred library containing extensions without // hiding them. import "helpers/on_object.dart" deferred as p1; -// [error line 9, column 1] +// [error line 11, column 1] // [cfe] Extension 'OnObject' cannot be imported through a deferred import. // ^^^^^^^^^^^^^^^^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.DEFERRED_IMPORT_OF_EXTENSION diff --git a/tests/language_2/extension_methods/static_extension_deferred_import_resolution_error_test.dart b/tests/language_2/extension_methods/static_extension_deferred_import_resolution_error_test.dart index 8dc19f1bcd1..7d193c51fde 100644 --- a/tests/language_2/extension_methods/static_extension_deferred_import_resolution_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_deferred_import_resolution_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart" deferred as p1 hide OnObject; diff --git a/tests/language_2/extension_methods/static_extension_deferred_import_test.dart b/tests/language_2/extension_methods/static_extension_deferred_import_test.dart index 829a2428287..eae0d39388e 100644 --- a/tests/language_2/extension_methods/static_extension_deferred_import_test.dart +++ b/tests/language_2/extension_methods/static_extension_deferred_import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart" deferred as p1 hide OnObject; diff --git a/tests/language_2/extension_methods/static_extension_getter_setter_conflicts_test.dart b/tests/language_2/extension_methods/static_extension_getter_setter_conflicts_test.dart index 7009a05adfc..86c1f112c0c 100644 --- a/tests/language_2/extension_methods/static_extension_getter_setter_conflicts_test.dart +++ b/tests/language_2/extension_methods/static_extension_getter_setter_conflicts_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests interactions between getters and setters where there is a conflict. // Conflicting class declarations. diff --git a/tests/language_2/extension_methods/static_extension_getter_setter_test.dart b/tests/language_2/extension_methods/static_extension_getter_setter_test.dart index fed35964c02..9a0e782d8af 100644 --- a/tests/language_2/extension_methods/static_extension_getter_setter_test.dart +++ b/tests/language_2/extension_methods/static_extension_getter_setter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests getters and setters where one or both is defined // by an extension. diff --git a/tests/language_2/extension_methods/static_extension_import_hide_error_test.dart b/tests/language_2/extension_methods/static_extension_import_hide_error_test.dart index 25b0461ac7d..04bb288ea07 100644 --- a/tests/language_2/extension_methods/static_extension_import_hide_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_import_hide_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart"; diff --git a/tests/language_2/extension_methods/static_extension_import_hide_test.dart b/tests/language_2/extension_methods/static_extension_import_hide_test.dart index 33efb801007..8cde4da73b9 100644 --- a/tests/language_2/extension_methods/static_extension_import_hide_test.dart +++ b/tests/language_2/extension_methods/static_extension_import_hide_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart"; diff --git a/tests/language_2/extension_methods/static_extension_import_prefixed_hide_error_test.dart b/tests/language_2/extension_methods/static_extension_import_prefixed_hide_error_test.dart index a146f12d75f..af6d53ef85d 100644 --- a/tests/language_2/extension_methods/static_extension_import_prefixed_hide_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_import_prefixed_hide_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart"; diff --git a/tests/language_2/extension_methods/static_extension_import_prefixed_hide_test.dart b/tests/language_2/extension_methods/static_extension_import_prefixed_hide_test.dart index eb24f4d4273..904c54cdccb 100644 --- a/tests/language_2/extension_methods/static_extension_import_prefixed_hide_test.dart +++ b/tests/language_2/extension_methods/static_extension_import_prefixed_hide_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart"; diff --git a/tests/language_2/extension_methods/static_extension_import_prefixed_show_test.dart b/tests/language_2/extension_methods/static_extension_import_prefixed_show_test.dart index caae31cdfb6..8cb537ea5f4 100644 --- a/tests/language_2/extension_methods/static_extension_import_prefixed_show_test.dart +++ b/tests/language_2/extension_methods/static_extension_import_prefixed_show_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart" as p1 show OnObject; diff --git a/tests/language_2/extension_methods/static_extension_import_prefixed_test.dart b/tests/language_2/extension_methods/static_extension_import_prefixed_test.dart index bc64023bf36..18b37b181d1 100644 --- a/tests/language_2/extension_methods/static_extension_import_prefixed_test.dart +++ b/tests/language_2/extension_methods/static_extension_import_prefixed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart" as p1; diff --git a/tests/language_2/extension_methods/static_extension_import_test.dart b/tests/language_2/extension_methods/static_extension_import_test.dart index 2585595cbad..337cb87fc4c 100644 --- a/tests/language_2/extension_methods/static_extension_import_test.dart +++ b/tests/language_2/extension_methods/static_extension_import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart"; diff --git a/tests/language_2/extension_methods/static_extension_import_unprefixed_show_test.dart b/tests/language_2/extension_methods/static_extension_import_unprefixed_show_test.dart index 5a45148cd44..7b5cda0fefb 100644 --- a/tests/language_2/extension_methods/static_extension_import_unprefixed_show_test.dart +++ b/tests/language_2/extension_methods/static_extension_import_unprefixed_show_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart" show OnObject; diff --git a/tests/language_2/extension_methods/static_extension_inference_test.dart b/tests/language_2/extension_methods/static_extension_inference_test.dart index 03d11d58c69..63426c2a1ed 100644 --- a/tests/language_2/extension_methods/static_extension_inference_test.dart +++ b/tests/language_2/extension_methods/static_extension_inference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests extension method resolution type inference. import "package:expect/expect.dart"; diff --git a/tests/language_2/extension_methods/static_extension_internal_basename_shadowing_error_test.dart b/tests/language_2/extension_methods/static_extension_internal_basename_shadowing_error_test.dart index 86941bece2e..5eaaaa80c59 100644 --- a/tests/language_2/extension_methods/static_extension_internal_basename_shadowing_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_internal_basename_shadowing_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /////////////////////////////////////////////////////////////////////// // The following tests check that setters or getters in an extension // correctly shadow members with the same basename in the surrounding diff --git a/tests/language_2/extension_methods/static_extension_internal_basename_shadowing_test.dart b/tests/language_2/extension_methods/static_extension_internal_basename_shadowing_test.dart index 2e31d19ce3d..4d749247545 100644 --- a/tests/language_2/extension_methods/static_extension_internal_basename_shadowing_test.dart +++ b/tests/language_2/extension_methods/static_extension_internal_basename_shadowing_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; /////////////////////////////////////////////////////////////////////// diff --git a/tests/language_2/extension_methods/static_extension_internal_name_conflict_error_test.dart b/tests/language_2/extension_methods/static_extension_internal_name_conflict_error_test.dart index f19b8e80df1..59776bd8ef2 100644 --- a/tests/language_2/extension_methods/static_extension_internal_name_conflict_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_internal_name_conflict_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that errors are given for internal name conflicts in extension methods. // It is an error to have duplicate type parameter names. diff --git a/tests/language_2/extension_methods/static_extension_internal_resolution_0_test.dart b/tests/language_2/extension_methods/static_extension_internal_resolution_0_test.dart index 49433ea3428..5bcf11a8187 100644 --- a/tests/language_2/extension_methods/static_extension_internal_resolution_0_test.dart +++ b/tests/language_2/extension_methods/static_extension_internal_resolution_0_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests resolution of identifiers inside of extension methods // Test an extension MyExt with no members against: diff --git a/tests/language_2/extension_methods/static_extension_internal_resolution_1_test.dart b/tests/language_2/extension_methods/static_extension_internal_resolution_1_test.dart index 29f080fc643..9035ae3764a 100644 --- a/tests/language_2/extension_methods/static_extension_internal_resolution_1_test.dart +++ b/tests/language_2/extension_methods/static_extension_internal_resolution_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests resolution of identifiers inside of extension methods // Test an extension MyExt with no members against: diff --git a/tests/language_2/extension_methods/static_extension_internal_resolution_2_test.dart b/tests/language_2/extension_methods/static_extension_internal_resolution_2_test.dart index 88e5ed77a5d..2276f391e18 100644 --- a/tests/language_2/extension_methods/static_extension_internal_resolution_2_test.dart +++ b/tests/language_2/extension_methods/static_extension_internal_resolution_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests resolution of identifiers inside of extension methods // Test an extension MyExt with members whose names overlap with names from the diff --git a/tests/language_2/extension_methods/static_extension_internal_resolution_3_error_test.dart b/tests/language_2/extension_methods/static_extension_internal_resolution_3_error_test.dart index 0e71bb2122e..f5de7e0559d 100644 --- a/tests/language_2/extension_methods/static_extension_internal_resolution_3_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_internal_resolution_3_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests resolution of identifiers inside of extension methods // Test the error cases for an extension MyExt with member names diff --git a/tests/language_2/extension_methods/static_extension_internal_resolution_3_test.dart b/tests/language_2/extension_methods/static_extension_internal_resolution_3_test.dart index 4ef00216694..ebe18c587d2 100644 --- a/tests/language_2/extension_methods/static_extension_internal_resolution_3_test.dart +++ b/tests/language_2/extension_methods/static_extension_internal_resolution_3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests resolution of identifiers inside of extension methods // Test the non error cases for an extension MyExt with member names diff --git a/tests/language_2/extension_methods/static_extension_internal_resolution_4_error_test.dart b/tests/language_2/extension_methods/static_extension_internal_resolution_4_error_test.dart index 6f6944c8c40..f880dedeafd 100644 --- a/tests/language_2/extension_methods/static_extension_internal_resolution_4_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_internal_resolution_4_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests resolution of identifiers inside of extension methods // Test the error cases for an extension MyExt with member names diff --git a/tests/language_2/extension_methods/static_extension_internal_resolution_4_test.dart b/tests/language_2/extension_methods/static_extension_internal_resolution_4_test.dart index 590a3597f91..70e17ea07ce 100644 --- a/tests/language_2/extension_methods/static_extension_internal_resolution_4_test.dart +++ b/tests/language_2/extension_methods/static_extension_internal_resolution_4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests resolution of identifiers inside of extension methods // Test the non error cases for an extension MyExt with member names diff --git a/tests/language_2/extension_methods/static_extension_internal_resolution_5_test.dart b/tests/language_2/extension_methods/static_extension_internal_resolution_5_test.dart index 114959deeec..db258495d0b 100644 --- a/tests/language_2/extension_methods/static_extension_internal_resolution_5_test.dart +++ b/tests/language_2/extension_methods/static_extension_internal_resolution_5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests resolution of identifiers inside of extension methods // Test the non error cases for an extension MyExt with member names diff --git a/tests/language_2/extension_methods/static_extension_internal_resolution_6_error_test.dart b/tests/language_2/extension_methods/static_extension_internal_resolution_6_error_test.dart index dd18be32e8e..0acc1d0e9a4 100644 --- a/tests/language_2/extension_methods/static_extension_internal_resolution_6_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_internal_resolution_6_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests resolution of identifiers inside of extension methods // Test various static error corner cases around internal resolution. diff --git a/tests/language_2/extension_methods/static_extension_internal_resolution_6_test.dart b/tests/language_2/extension_methods/static_extension_internal_resolution_6_test.dart index 2e41798e77e..60ec5566cf2 100644 --- a/tests/language_2/extension_methods/static_extension_internal_resolution_6_test.dart +++ b/tests/language_2/extension_methods/static_extension_internal_resolution_6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests resolution of identifiers inside of extension methods // Test various non-error corner cases around internal resolution. diff --git a/tests/language_2/extension_methods/static_extension_operator_override_error_test.dart b/tests/language_2/extension_methods/static_extension_operator_override_error_test.dart index acd3ab5a515..ccf436fc341 100644 --- a/tests/language_2/extension_methods/static_extension_operator_override_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_operator_override_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Regression test for https://github.com/dart-lang/sdk/issues/43114. class A {} diff --git a/tests/language_2/extension_methods/static_extension_operators_test.dart b/tests/language_2/extension_methods/static_extension_operators_test.dart index e72f7b9eff2..52f99e31515 100644 --- a/tests/language_2/extension_methods/static_extension_operators_test.dart +++ b/tests/language_2/extension_methods/static_extension_operators_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests that static extensions can be used for all operators. diff --git a/tests/language_2/extension_methods/static_extension_prefix_double_import_test.dart b/tests/language_2/extension_methods/static_extension_prefix_double_import_test.dart index 3df45524268..ce7c828c5ee 100644 --- a/tests/language_2/extension_methods/static_extension_prefix_double_import_test.dart +++ b/tests/language_2/extension_methods/static_extension_prefix_double_import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart"; diff --git a/tests/language_2/extension_methods/static_extension_prefix_import_conflict_test.dart b/tests/language_2/extension_methods/static_extension_prefix_import_conflict_test.dart index 7f3993f624d..8984ed20f81 100644 --- a/tests/language_2/extension_methods/static_extension_prefix_import_conflict_test.dart +++ b/tests/language_2/extension_methods/static_extension_prefix_import_conflict_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart"; diff --git a/tests/language_2/extension_methods/static_extension_prefix_import_show_test.dart b/tests/language_2/extension_methods/static_extension_prefix_import_show_test.dart index 8f5cf73df0b..8cc7e817cff 100644 --- a/tests/language_2/extension_methods/static_extension_prefix_import_show_test.dart +++ b/tests/language_2/extension_methods/static_extension_prefix_import_show_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart" as p1 show OnObject; diff --git a/tests/language_2/extension_methods/static_extension_prefix_import_test.dart b/tests/language_2/extension_methods/static_extension_prefix_import_test.dart index eba2e94fffd..412b4991bb3 100644 --- a/tests/language_2/extension_methods/static_extension_prefix_import_test.dart +++ b/tests/language_2/extension_methods/static_extension_prefix_import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "helpers/on_object.dart" as p1; diff --git a/tests/language_2/extension_methods/static_extension_resolution_failures_test.dart b/tests/language_2/extension_methods/static_extension_resolution_failures_test.dart index ce822ac58ad..0555d3d997f 100644 --- a/tests/language_2/extension_methods/static_extension_resolution_failures_test.dart +++ b/tests/language_2/extension_methods/static_extension_resolution_failures_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests extension method resolution failures. import "package:expect/expect.dart"; diff --git a/tests/language_2/extension_methods/static_extension_resolution_test.dart b/tests/language_2/extension_methods/static_extension_resolution_test.dart index c29e6580a18..ffde669ce2a 100644 --- a/tests/language_2/extension_methods/static_extension_resolution_test.dart +++ b/tests/language_2/extension_methods/static_extension_resolution_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests the resolution of multiple applicable extensions. diff --git a/tests/language_2/extension_methods/static_extension_setter_getter_assignability_error_test.dart b/tests/language_2/extension_methods/static_extension_setter_getter_assignability_error_test.dart index 8b05ada6017..f6e685432a9 100644 --- a/tests/language_2/extension_methods/static_extension_setter_getter_assignability_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_setter_getter_assignability_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // It is an error to have a setter and a getter in an extension where // the return type of the getter is not assignable to the argument type // of the setter. diff --git a/tests/language_2/extension_methods/static_extension_silly_types_test.dart b/tests/language_2/extension_methods/static_extension_silly_types_test.dart index bcb4e01198e..722e5ee5085 100644 --- a/tests/language_2/extension_methods/static_extension_silly_types_test.dart +++ b/tests/language_2/extension_methods/static_extension_silly_types_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests extension methods on the non-function, non-class types. import "dart:async" show FutureOr; diff --git a/tests/language_2/extension_methods/static_extension_syntax_test.dart b/tests/language_2/extension_methods/static_extension_syntax_test.dart index c400a88018e..495d297bcff 100644 --- a/tests/language_2/extension_methods/static_extension_syntax_test.dart +++ b/tests/language_2/extension_methods/static_extension_syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests extension declaration syntax combinations. import "package:expect/expect.dart"; diff --git a/tests/language_2/extension_methods/static_extension_this_not_promoted_error_test.dart b/tests/language_2/extension_methods/static_extension_this_not_promoted_error_test.dart index ed3e30148b4..4e8f4a74359 100644 --- a/tests/language_2/extension_methods/static_extension_this_not_promoted_error_test.dart +++ b/tests/language_2/extension_methods/static_extension_this_not_promoted_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test verifies that attempts to promote the type of `this` inside an // extension method have no effect. diff --git a/tests/language_2/extension_methods/syntax/extension_methods_test.dart b/tests/language_2/extension_methods/syntax/extension_methods_test.dart index 079b34414b8..d67a039d32c 100644 --- a/tests/language_2/extension_methods/syntax/extension_methods_test.dart +++ b/tests/language_2/extension_methods/syntax/extension_methods_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class C { diff --git a/tests/language_2/factory/and_instance_variable_runtime_test.dart b/tests/language_2/factory/and_instance_variable_runtime_test.dart index f250fb82257..13936d678a8 100644 --- a/tests/language_2/factory/and_instance_variable_runtime_test.dart +++ b/tests/language_2/factory/and_instance_variable_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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.md file. diff --git a/tests/language_2/factory/and_instance_variable_test.dart b/tests/language_2/factory/and_instance_variable_test.dart index b35c2906915..c421ef63364 100644 --- a/tests/language_2/factory/and_instance_variable_test.dart +++ b/tests/language_2/factory/and_instance_variable_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE.md file. +// @dart = 2.9 + abstract class A { var bar; factory A.bar() = B.bar; diff --git a/tests/language_2/factory/arrow_test.dart b/tests/language_2/factory/arrow_test.dart index d2cf52806c9..6066f8af786 100644 --- a/tests/language_2/factory/arrow_test.dart +++ b/tests/language_2/factory/arrow_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/factory/factory1_test.dart b/tests/language_2/factory/factory1_test.dart index cfe458b1fc2..d8b1dd7c97e 100644 --- a/tests/language_2/factory/factory1_test.dart +++ b/tests/language_2/factory/factory1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing factory generic result types. +// @dart = 2.9 + class A { A() {} factory A.factory() { diff --git a/tests/language_2/factory/factory2_test.dart b/tests/language_2/factory/factory2_test.dart index f8a2e3a76d5..abaeeecd6cb 100644 --- a/tests/language_2/factory/factory2_test.dart +++ b/tests/language_2/factory/factory2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test compile time error for factories with parameterized types. import "dart:collection"; diff --git a/tests/language_2/factory/factory3_test.dart b/tests/language_2/factory/factory3_test.dart index fe15ad9dae2..dc9d4cc312e 100644 --- a/tests/language_2/factory/factory3_test.dart +++ b/tests/language_2/factory/factory3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection"; // Test compile time error for factories with parameterized types. diff --git a/tests/language_2/factory/factory4_runtime_test.dart b/tests/language_2/factory/factory4_runtime_test.dart index 1d6ed5e75d6..7391e768c3e 100644 --- a/tests/language_2/factory/factory4_runtime_test.dart +++ b/tests/language_2/factory/factory4_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/factory/factory4_test.dart b/tests/language_2/factory/factory4_test.dart index ad2dd27aa2c..220c014fdca 100644 --- a/tests/language_2/factory/factory4_test.dart +++ b/tests/language_2/factory/factory4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class Link { factory Link.create() = LinkFactory.create; // ^^^^^^^^^^^^^^^^^^ diff --git a/tests/language_2/factory/factory5_runtime_test.dart b/tests/language_2/factory/factory5_runtime_test.dart index 28b34b0b572..e7b8700ffc1 100644 --- a/tests/language_2/factory/factory5_runtime_test.dart +++ b/tests/language_2/factory/factory5_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/factory/factory5_test.dart b/tests/language_2/factory/factory5_test.dart index ee187a5018f..5b1e442585e 100644 --- a/tests/language_2/factory/factory5_test.dart +++ b/tests/language_2/factory/factory5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class Link { factory Link.create() = LinkFactory.create; // ^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/language_2/factory/factory6_runtime_test.dart b/tests/language_2/factory/factory6_runtime_test.dart index 84520288244..68d4d7b3cda 100644 --- a/tests/language_2/factory/factory6_runtime_test.dart +++ b/tests/language_2/factory/factory6_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // Copyright (c) 2016, 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. diff --git a/tests/language_2/factory/factory6_test.dart b/tests/language_2/factory/factory6_test.dart index 6084e82ed46..d89d52117ed 100644 --- a/tests/language_2/factory/factory6_test.dart +++ b/tests/language_2/factory/factory6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; abstract class Link { diff --git a/tests/language_2/factory/factory_test.dart b/tests/language_2/factory/factory_test.dart index 5431241c1ca..423d3900213 100644 --- a/tests/language_2/factory/factory_test.dart +++ b/tests/language_2/factory/factory_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing factories. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/factory/implementation_test.dart b/tests/language_2/factory/implementation_test.dart index 7492df89035..e381fbe2a1b 100644 --- a/tests/language_2/factory/implementation_test.dart +++ b/tests/language_2/factory/implementation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class A { diff --git a/tests/language_2/factory/redirection2_runtime_test.dart b/tests/language_2/factory/redirection2_runtime_test.dart index b00089c7e1e..ab1f3e537f4 100644 --- a/tests/language_2/factory/redirection2_runtime_test.dart +++ b/tests/language_2/factory/redirection2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/factory/redirection2_test.dart b/tests/language_2/factory/redirection2_test.dart index f2edbc98a06..44976a8724c 100644 --- a/tests/language_2/factory/redirection2_test.dart +++ b/tests/language_2/factory/redirection2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that it is a compile-time error to have a redirection in a diff --git a/tests/language_2/factory/redirection3_cyclic_runtime_test.dart b/tests/language_2/factory/redirection3_cyclic_runtime_test.dart index ecbccc29c43..14982d7a10d 100644 --- a/tests/language_2/factory/redirection3_cyclic_runtime_test.dart +++ b/tests/language_2/factory/redirection3_cyclic_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/factory/redirection3_cyclic_test.dart b/tests/language_2/factory/redirection3_cyclic_test.dart index ab115ccb2b1..5b37ba0b3a1 100644 --- a/tests/language_2/factory/redirection3_cyclic_test.dart +++ b/tests/language_2/factory/redirection3_cyclic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a cycle in redirecting factories leads to a compile-time error. class A { diff --git a/tests/language_2/factory/redirection_test.dart b/tests/language_2/factory/redirection_test.dart index bddc5368c69..75d7071bf3d 100644 --- a/tests/language_2/factory/redirection_test.dart +++ b/tests/language_2/factory/redirection_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/factory/return_type_checked_runtime_test.dart b/tests/language_2/factory/return_type_checked_runtime_test.dart index 3bef4c25862..0e2febd8035 100644 --- a/tests/language_2/factory/return_type_checked_runtime_test.dart +++ b/tests/language_2/factory/return_type_checked_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/factory/return_type_checked_test.dart b/tests/language_2/factory/return_type_checked_test.dart index 76e6f3a19fa..069fe48ae73 100644 --- a/tests/language_2/factory/return_type_checked_test.dart +++ b/tests/language_2/factory/return_type_checked_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/factory/runtime_test.dart b/tests/language_2/factory/runtime_test.dart index bac5c667623..d22ba6f6481 100644 --- a/tests/language_2/factory/runtime_test.dart +++ b/tests/language_2/factory/runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/factory/type_parameter2_test.dart b/tests/language_2/factory/type_parameter2_test.dart index 6536be88a90..9f50ff0e2b7 100644 --- a/tests/language_2/factory/type_parameter2_test.dart +++ b/tests/language_2/factory/type_parameter2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that type variables are correctly set in instances created by factories. import 'package:expect/expect.dart'; diff --git a/tests/language_2/factory/type_parameter_test.dart b/tests/language_2/factory/type_parameter_test.dart index c9e7a0bcebf..88b4ef3728c 100644 --- a/tests/language_2/factory/type_parameter_test.dart +++ b/tests/language_2/factory/type_parameter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/factory/with_type_parameters_test.dart b/tests/language_2/factory/with_type_parameters_test.dart index e0c15833cdc..ec7e6817dcc 100644 --- a/tests/language_2/factory/with_type_parameters_test.dart +++ b/tests/language_2/factory/with_type_parameters_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Foo { Foo._(); diff --git a/tests/language_2/field/decl_missing_var_type_runtime_test.dart b/tests/language_2/field/decl_missing_var_type_runtime_test.dart index 3d31ad081e0..07f9d79ceb5 100644 --- a/tests/language_2/field/decl_missing_var_type_runtime_test.dart +++ b/tests/language_2/field/decl_missing_var_type_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/field/decl_missing_var_type_test.dart b/tests/language_2/field/decl_missing_var_type_test.dart index 6435dfbc419..9761b69be7c 100644 --- a/tests/language_2/field/decl_missing_var_type_test.dart +++ b/tests/language_2/field/decl_missing_var_type_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Exercises issue 2997, missing var or type on field declarations should // generate a compile-time error. diff --git a/tests/language_2/field/field1_test.dart b/tests/language_2/field/field1_test.dart index 1591ad141b5..07d48180f50 100644 --- a/tests/language_2/field/field1_test.dart +++ b/tests/language_2/field/field1_test.dart @@ -5,6 +5,8 @@ // Should be an error because we have setter/getter functions and fields // in the class. +// @dart = 2.9 + class C { var a; diff --git a/tests/language_2/field/field2_test.dart b/tests/language_2/field/field2_test.dart index a822357bc7d..a7baf4d0edf 100644 --- a/tests/language_2/field/field2_test.dart +++ b/tests/language_2/field/field2_test.dart @@ -5,6 +5,8 @@ // Should be an error because we have setter/getter functions and fields // in the class. +// @dart = 2.9 + class C { get a { return 1; diff --git a/tests/language_2/field/field3_test.dart b/tests/language_2/field/field3_test.dart index 901dd06dbd7..f97d31ba621 100644 --- a/tests/language_2/field/field3_test.dart +++ b/tests/language_2/field/field3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test to catch error reporting bugs in class fields declarations. +// @dart = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/field/field4_test.dart b/tests/language_2/field/field4_test.dart index 8c8ef6dcbb6..fbe06102c45 100644 --- a/tests/language_2/field/field4_test.dart +++ b/tests/language_2/field/field4_test.dart @@ -4,6 +4,8 @@ // Dart test to catch error reporting bugs in class fields declarations. // Should be an error because we have a field overriding a function name. +// @dart = 2.9 + class A { int a() { return 1; diff --git a/tests/language_2/field/field5_test.dart b/tests/language_2/field/field5_test.dart index 943e9bbded7..4002322098f 100644 --- a/tests/language_2/field/field5_test.dart +++ b/tests/language_2/field/field5_test.dart @@ -4,6 +4,8 @@ // Dart test to catch error reporting bugs in class fields declarations. // Should be an error because we have a function overriding a field name. +// @dart = 2.9 + class A { var a; int a() {/*@compile-error=unspecified*/ diff --git a/tests/language_2/field/field6_test.dart b/tests/language_2/field/field6_test.dart index fcf0f40d60b..459844aea26 100644 --- a/tests/language_2/field/field6_test.dart +++ b/tests/language_2/field/field6_test.dart @@ -4,6 +4,8 @@ // Dart test to catch error reporting bugs in class fields declarations. // Should be an error because we have a getter overriding a function name. +// @dart = 2.9 + class A { int a() { // //# 00: ok return 1;// //# 00: ok diff --git a/tests/language_2/field/field_test.dart b/tests/language_2/field/field_test.dart index 03e7085bd29..cc8975cbd77 100644 --- a/tests/language_2/field/field_test.dart +++ b/tests/language_2/field/field_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing setting/getting of instance fields. +// @dart = 2.9 + import "package:expect/expect.dart"; class First { diff --git a/tests/language_2/field/increment_bailout_test.dart b/tests/language_2/field/increment_bailout_test.dart index 1ee4e5adf06..8ec50483966 100644 --- a/tests/language_2/field/increment_bailout_test.dart +++ b/tests/language_2/field/increment_bailout_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // dart2js regression test for issue 8781. import "package:expect/expect.dart"; diff --git a/tests/language_2/field/inference_test.dart b/tests/language_2/field/inference_test.dart index 7a0132bc4c2..ba4f160e52e 100644 --- a/tests/language_2/field/inference_test.dart +++ b/tests/language_2/field/inference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js and its SsaConstructionFieldTypes // phase. diff --git a/tests/language_2/field/initialization_order_test.dart b/tests/language_2/field/initialization_order_test.dart index dda70a7139d..3c9d091ff4b 100644 --- a/tests/language_2/field/initialization_order_test.dart +++ b/tests/language_2/field/initialization_order_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that field initializers are evaluated in the right order. diff --git a/tests/language_2/field/method4_test.dart b/tests/language_2/field/method4_test.dart index c637241da1b..9b961431fe3 100644 --- a/tests/language_2/field/method4_test.dart +++ b/tests/language_2/field/method4_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test to catch error reporting bugs when using a field like a method. +// @dart = 2.9 + class A { var foo; A() { diff --git a/tests/language_2/field/method_test.dart b/tests/language_2/field/method_test.dart index 012b60ac9a4..b31123539c8 100644 --- a/tests/language_2/field/method_test.dart +++ b/tests/language_2/field/method_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test. Fields can be invoked directly if they are unqualified. +// @dart = 2.9 + class A { var foo; A() { diff --git a/tests/language_2/field/optimization2_test.dart b/tests/language_2/field/optimization2_test.dart index d0ee6bd986b..8013e3562d4 100644 --- a/tests/language_2/field/optimization2_test.dart +++ b/tests/language_2/field/optimization2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program to test type-based optimization on fields. diff --git a/tests/language_2/field/optimization3_test.dart b/tests/language_2/field/optimization3_test.dart index bf2ec9a09aa..a18821a7933 100644 --- a/tests/language_2/field/optimization3_test.dart +++ b/tests/language_2/field/optimization3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program to test type-based optimization on fields. diff --git a/tests/language_2/field/optimization_test.dart b/tests/language_2/field/optimization_test.dart index 58a1461c647..7779e16bf77 100644 --- a/tests/language_2/field/optimization_test.dart +++ b/tests/language_2/field/optimization_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program to test type-based optimization on fields. diff --git a/tests/language_2/field/override2_test.dart b/tests/language_2/field/override2_test.dart index d37a8ba7374..5aacd1d6f76 100644 --- a/tests/language_2/field/override2_test.dart +++ b/tests/language_2/field/override2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we are accessing the right field in a method of a super // class, when that field is overridden. diff --git a/tests/language_2/field/override3_test.dart b/tests/language_2/field/override3_test.dart index 9b100be75b7..ca175a7f813 100644 --- a/tests/language_2/field/override3_test.dart +++ b/tests/language_2/field/override3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we report a compile-time error when a static field conflicts with // an inherited instance member of the same name. diff --git a/tests/language_2/field/override4_test.dart b/tests/language_2/field/override4_test.dart index 0ccee61ac73..4429c4c1d8e 100644 --- a/tests/language_2/field/override4_test.dart +++ b/tests/language_2/field/override4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we report a compile-time error when an instance field conflicts // with an inherited instance method of the same name. diff --git a/tests/language_2/field/override_optimization_test.dart b/tests/language_2/field/override_optimization_test.dart index ebb765683e8..7027a45c1bd 100644 --- a/tests/language_2/field/override_optimization_test.dart +++ b/tests/language_2/field/override_optimization_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/field/override_test.dart b/tests/language_2/field/override_test.dart index 187773b3b49..b57f3d450ea 100644 --- a/tests/language_2/field/override_test.dart +++ b/tests/language_2/field/override_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test overriding of fields. +// @dart = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/field/parameter_test.dart b/tests/language_2/field/parameter_test.dart index 8363eb081c5..d51525a769f 100644 --- a/tests/language_2/field/parameter_test.dart +++ b/tests/language_2/field/parameter_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing setting/getting of instance fields. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/field/super_access2_test.dart b/tests/language_2/field/super_access2_test.dart index e1decf81cd7..84c9b622ae4 100644 --- a/tests/language_2/field/super_access2_test.dart +++ b/tests/language_2/field/super_access2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that a super call to access a field in a super class is just a normal // field access. diff --git a/tests/language_2/field/super_access_test.dart b/tests/language_2/field/super_access_test.dart index 5a80ca9ba42..8951668849e 100644 --- a/tests/language_2/field/super_access_test.dart +++ b/tests/language_2/field/super_access_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that a super call to access a field in a super class is just a normal // field access. diff --git a/tests/language_2/field/type_check2_test.dart b/tests/language_2/field/type_check2_test.dart index a526be30402..3189789b980 100644 --- a/tests/language_2/field/type_check2_test.dart +++ b/tests/language_2/field/type_check2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { A a; diff --git a/tests/language_2/field/type_check_runtime_test.dart b/tests/language_2/field/type_check_runtime_test.dart index 53fccb51588..97085f282a1 100644 --- a/tests/language_2/field/type_check_runtime_test.dart +++ b/tests/language_2/field/type_check_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/field/type_check_test.dart b/tests/language_2/field/type_check_test.dart index c27d3d597a3..382bfdbdbe1 100644 --- a/tests/language_2/field/type_check_test.dart +++ b/tests/language_2/field/type_check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { int e; } diff --git a/tests/language_2/field/wierd_name_test.dart b/tests/language_2/field/wierd_name_test.dart index d76eaa8e0b6..1b50ebf7abd 100644 --- a/tests/language_2/field/wierd_name_test.dart +++ b/tests/language_2/field/wierd_name_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing setting/getting of instance fields. +// @dart = 2.9 + import "package:expect/expect.dart"; // dart2js used to have a bug where a local called '_' in the constructor diff --git a/tests/language_2/final/attempt_reinitialization_runtime_test.dart b/tests/language_2/final/attempt_reinitialization_runtime_test.dart index b16a2c70880..9cc11b592a4 100644 --- a/tests/language_2/final/attempt_reinitialization_runtime_test.dart +++ b/tests/language_2/final/attempt_reinitialization_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/final/attempt_reinitialization_test.dart b/tests/language_2/final/attempt_reinitialization_test.dart index 67c2de96696..89cd75d53fe 100644 --- a/tests/language_2/final/attempt_reinitialization_test.dart +++ b/tests/language_2/final/attempt_reinitialization_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Foo { Foo(this.x); // ^ diff --git a/tests/language_2/final/field_initialization_order_test.dart b/tests/language_2/final/field_initialization_order_test.dart index 85adacc4c1b..eb9cd2f88e1 100644 --- a/tests/language_2/final/field_initialization_order_test.dart +++ b/tests/language_2/final/field_initialization_order_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that initializers for final fields are evaluated in the right diff --git a/tests/language_2/final/field_override_test.dart b/tests/language_2/final/field_override_test.dart index 5548bdfabcf..d17629fe6e1 100644 --- a/tests/language_2/final/field_override_test.dart +++ b/tests/language_2/final/field_override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/final/for_in_variable_test.dart b/tests/language_2/final/for_in_variable_test.dart index 0365e6717cc..8c5899d813f 100644 --- a/tests/language_2/final/for_in_variable_test.dart +++ b/tests/language_2/final/for_in_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { for (final i in [1, 2, 3]) { i = 4; /*@compile-error=unspecified*/ diff --git a/tests/language_2/final/initializer_instance_reference_test.dart b/tests/language_2/final/initializer_instance_reference_test.dart index 1f17dfc5752..e61652eecae 100644 --- a/tests/language_2/final/initializer_instance_reference_test.dart +++ b/tests/language_2/final/initializer_instance_reference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart2js regression test. Error in initializer might be report with the wrong // current element. diff --git a/tests/language_2/final/is_not_const_test.dart b/tests/language_2/final/is_not_const_test.dart index 798b40fd8ce..dae899e3df7 100644 --- a/tests/language_2/final/is_not_const_test.dart +++ b/tests/language_2/final/is_not_const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; final F0 = 42; diff --git a/tests/language_2/final/param_test.dart b/tests/language_2/final/param_test.dart index 197e35719fd..2bf807efa87 100644 --- a/tests/language_2/final/param_test.dart +++ b/tests/language_2/final/param_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Disallow assignment of parameters marked as final. +// @dart = 2.9 + class A { static void test(final x) { x = 2; /*@compile-error=unspecified*/ diff --git a/tests/language_2/final/super_field_set_test.dart b/tests/language_2/final/super_field_set_test.dart index 227b2726e52..765cbb306e7 100644 --- a/tests/language_2/final/super_field_set_test.dart +++ b/tests/language_2/final/super_field_set_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class SuperClass { final field = 0; noSuchMethod(_) => 42; diff --git a/tests/language_2/final/syntax_test.dart b/tests/language_2/final/syntax_test.dart index 42b21630c9c..c83d57381a8 100644 --- a/tests/language_2/final/syntax_test.dart +++ b/tests/language_2/final/syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/final/used_in_try_test.dart b/tests/language_2/final/used_in_try_test.dart index 259ba8dce8b..3415c92c3eb 100644 --- a/tests/language_2/final/used_in_try_test.dart +++ b/tests/language_2/final/used_in_try_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/final/variable_assignment_runtime_test.dart b/tests/language_2/final/variable_assignment_runtime_test.dart index 1fabb8b6785..b4d4253e8e8 100644 --- a/tests/language_2/final/variable_assignment_runtime_test.dart +++ b/tests/language_2/final/variable_assignment_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/final/variable_assignment_test.dart b/tests/language_2/final/variable_assignment_test.dart index 840f0e6d65e..9586f487668 100644 --- a/tests/language_2/final/variable_assignment_test.dart +++ b/tests/language_2/final/variable_assignment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test to make sure we catch assignments to final local variables. main() { diff --git a/tests/language_2/function/apply_generic2_test.dart b/tests/language_2/function/apply_generic2_test.dart index caa73751c09..8bfaa55ee0d 100644 --- a/tests/language_2/function/apply_generic2_test.dart +++ b/tests/language_2/function/apply_generic2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; makeFn() { diff --git a/tests/language_2/function/apply_generic_test.dart b/tests/language_2/function/apply_generic_test.dart index 464f591b4fc..c5af4c1184b 100644 --- a/tests/language_2/function/apply_generic_test.dart +++ b/tests/language_2/function/apply_generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; List staticFn( diff --git a/tests/language_2/function/argument_test.dart b/tests/language_2/function/argument_test.dart index f56861a915b..e07f5a750a5 100644 --- a/tests/language_2/function/argument_test.dart +++ b/tests/language_2/function/argument_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for function passing. +// @dart = 2.9 + import "package:expect/expect.dart"; class FunctionArgumentTest { diff --git a/tests/language_2/function/call_generic_test.dart b/tests/language_2/function/call_generic_test.dart index 3653c7a241b..f904806cce9 100644 --- a/tests/language_2/function/call_generic_test.dart +++ b/tests/language_2/function/call_generic_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // dart2jsOptions=-Ddart.isdart2js=true +// @dart = 2.9 + import "package:expect/expect.dart"; @pragma('dart2js:noInline') diff --git a/tests/language_2/function/field_test.dart b/tests/language_2/function/field_test.dart index 42f6bad81d4..2be3bae63af 100644 --- a/tests/language_2/function/field_test.dart +++ b/tests/language_2/function/field_test.dart @@ -5,6 +5,8 @@ // // Test of calling Function, which is field of some class. +// @dart = 2.9 + import "package:expect/expect.dart"; class Wrapper { diff --git a/tests/language_2/function/function_test.dart b/tests/language_2/function/function_test.dart index aa5f087d35f..8a40f58b729 100644 --- a/tests/language_2/function/function_test.dart +++ b/tests/language_2/function/function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests function statements and expressions. diff --git a/tests/language_2/function/getter_test.dart b/tests/language_2/function/getter_test.dart index efc483e2c0e..81a70a975ee 100644 --- a/tests/language_2/function/getter_test.dart +++ b/tests/language_2/function/getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/function/literals2_test.dart b/tests/language_2/function/literals2_test.dart index 14d71a3103b..0c99d59e4a8 100644 --- a/tests/language_2/function/literals2_test.dart +++ b/tests/language_2/function/literals2_test.dart @@ -4,6 +4,8 @@ // // Dart test for new function type alias. +// @dart = 2.9 + import "package:expect/expect.dart"; class FunctionLiteralsTest { diff --git a/tests/language_2/function/literals_test.dart b/tests/language_2/function/literals_test.dart index 250046162de..f3eee9e40dd 100644 --- a/tests/language_2/function/literals_test.dart +++ b/tests/language_2/function/literals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; /** diff --git a/tests/language_2/function/local2_test.dart b/tests/language_2/function/local2_test.dart index 44d2ef9d29d..e7045dae244 100644 --- a/tests/language_2/function/local2_test.dart +++ b/tests/language_2/function/local2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing closures. +// @dart = 2.9 + import "package:expect/expect.dart"; typedef T F(T t); diff --git a/tests/language_2/function/local3_test.dart b/tests/language_2/function/local3_test.dart index 0fc44b012fa..88d2878a5ca 100644 --- a/tests/language_2/function/local3_test.dart +++ b/tests/language_2/function/local3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing closures. +// @dart = 2.9 + import "package:expect/expect.dart"; class LocalFunction3Test { diff --git a/tests/language_2/function/local_function_test.dart b/tests/language_2/function/local_function_test.dart index 100b7c40e5f..982dcf924bb 100644 --- a/tests/language_2/function/local_function_test.dart +++ b/tests/language_2/function/local_function_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing closures. +// @dart = 2.9 + import "package:expect/expect.dart"; class LocalFunctionTest { diff --git a/tests/language_2/function/local_non_equal_test.dart b/tests/language_2/function/local_non_equal_test.dart index 5fbaf57dc43..8111821169e 100644 --- a/tests/language_2/function/local_non_equal_test.dart +++ b/tests/language_2/function/local_non_equal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; foo() => () => 42; diff --git a/tests/language_2/function/malformed_result_type_runtime_test.dart b/tests/language_2/function/malformed_result_type_runtime_test.dart index 02b26b46c12..e69b3fdb442 100644 --- a/tests/language_2/function/malformed_result_type_runtime_test.dart +++ b/tests/language_2/function/malformed_result_type_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/function/malformed_result_type_test.dart b/tests/language_2/function/malformed_result_type_test.dart index d149be534d4..99589d18bcd 100644 --- a/tests/language_2/function/malformed_result_type_test.dart +++ b/tests/language_2/function/malformed_result_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for a function with a malformed result type. import "package:expect/expect.dart"; diff --git a/tests/language_2/function/propagation_test.dart b/tests/language_2/function/propagation_test.dart index 9c6f7e62fc3..8803479c622 100644 --- a/tests/language_2/function/propagation_test.dart +++ b/tests/language_2/function/propagation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/function/regress_45601_test.dart b/tests/language_2/function/regress_45601_test.dart index e1a8c192a70..758623a7311 100644 --- a/tests/language_2/function/regress_45601_test.dart +++ b/tests/language_2/function/regress_45601_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for https://github.com/dart-lang/sdk/issues/45601 diff --git a/tests/language_2/function/syntax_test.dart b/tests/language_2/function/syntax_test.dart index 3baf2dfc5cf..f2529f0a927 100644 --- a/tests/language_2/function/syntax_test.dart +++ b/tests/language_2/function/syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests function statement and expression syntax. diff --git a/tests/language_2/function/type2_test.dart b/tests/language_2/function/type2_test.dart index 42ca6ffc7e7..dcfa499e1bb 100644 --- a/tests/language_2/function/type2_test.dart +++ b/tests/language_2/function/type2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/function/type3_test.dart b/tests/language_2/function/type3_test.dart index 75322bce2ad..c5d09ddf428 100644 --- a/tests/language_2/function/type3_test.dart +++ b/tests/language_2/function/type3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/function/type_alias10_test.dart b/tests/language_2/function/type_alias10_test.dart index cc487051de3..5f2add19e6c 100644 --- a/tests/language_2/function/type_alias10_test.dart +++ b/tests/language_2/function/type_alias10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for https://github.com/dart-lang/sdk/issues/30912. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function/type_alias2_test.dart b/tests/language_2/function/type_alias2_test.dart index fdc0b002dc7..ac35279715c 100644 --- a/tests/language_2/function/type_alias2_test.dart +++ b/tests/language_2/function/type_alias2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--enable_type_checks +// @dart = 2.9 + // Dart test for function type alias with optional parameters. import "package:expect/expect.dart"; diff --git a/tests/language_2/function/type_alias3_test.dart b/tests/language_2/function/type_alias3_test.dart index 01b82f438e1..1d241432d4f 100644 --- a/tests/language_2/function/type_alias3_test.dart +++ b/tests/language_2/function/type_alias3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for function type alias with an imported result type that happens // to have the same name as a type parameter. import "package:expect/expect.dart"; diff --git a/tests/language_2/function/type_alias4_test.dart b/tests/language_2/function/type_alias4_test.dart index 3d68fd4ad22..5e0e6527763 100644 --- a/tests/language_2/function/type_alias4_test.dart +++ b/tests/language_2/function/type_alias4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for function type alias with a type parameter as result type. import "package:expect/expect.dart"; diff --git a/tests/language_2/function/type_alias5_test.dart b/tests/language_2/function/type_alias5_test.dart index 40d6309b4ce..42d10e6e80f 100644 --- a/tests/language_2/function/type_alias5_test.dart +++ b/tests/language_2/function/type_alias5_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for illegally self referencing function type alias. +// @dart = 2.9 + typedef Handle Handle(String command); //# 00: compile-time error typedef F(F x); //# 01: compile-time error diff --git a/tests/language_2/function/type_alias6_runtime_test.dart b/tests/language_2/function/type_alias6_runtime_test.dart index 7b54ee48271..4017e5bd650 100644 --- a/tests/language_2/function/type_alias6_runtime_test.dart +++ b/tests/language_2/function/type_alias6_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/function/type_alias6_test.dart b/tests/language_2/function/type_alias6_test.dart index 8a27555b69b..b9a870451ec 100644 --- a/tests/language_2/function/type_alias6_test.dart +++ b/tests/language_2/function/type_alias6_test.dart @@ -3,10 +3,12 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for legally self referencing function type alias. +// @dart = 2.9 + import "package:expect/expect.dart"; typedef F(List x); -// [error line 8, column 1, length 21] +// [error line 10, column 1, length 21] // [analyzer] COMPILE_TIME_ERROR.TYPE_ALIAS_CANNOT_REFERENCE_ITSELF // ^ // [cfe] The typedef 'F' has a reference to itself. diff --git a/tests/language_2/function/type_alias7_test.dart b/tests/language_2/function/type_alias7_test.dart index 79bd6e724ae..49616a9632d 100644 --- a/tests/language_2/function/type_alias7_test.dart +++ b/tests/language_2/function/type_alias7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + typedef void funcType([int arg]); typedef void badFuncType([int arg = 0]); //# 00: compile-time error diff --git a/tests/language_2/function/type_alias8_test.dart b/tests/language_2/function/type_alias8_test.dart index 10f3f8e9ecd..9b93f34f983 100644 --- a/tests/language_2/function/type_alias8_test.dart +++ b/tests/language_2/function/type_alias8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 9442. typedef dynamic GetFromThing(T target); diff --git a/tests/language_2/function/type_alias9_runtime_test.dart b/tests/language_2/function/type_alias9_runtime_test.dart index 366a477d90f..ffab7783cca 100644 --- a/tests/language_2/function/type_alias9_runtime_test.dart +++ b/tests/language_2/function/type_alias9_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/function/type_alias9_test.dart b/tests/language_2/function/type_alias9_test.dart index fa15400b2af..bfb0db51515 100644 --- a/tests/language_2/function/type_alias9_test.dart +++ b/tests/language_2/function/type_alias9_test.dart @@ -3,13 +3,15 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for legally self referencing function type alias. +// @dart = 2.9 + typedef void F(List l); -// [error line 6, column 1, length 26] +// [error line 8, column 1, length 26] // [analyzer] COMPILE_TIME_ERROR.TYPE_ALIAS_CANNOT_REFERENCE_ITSELF // ^ // [cfe] The typedef 'F' has a reference to itself. typedef void G(List l); -// [error line 11, column 1, length 26] +// [error line 13, column 1, length 26] // [analyzer] COMPILE_TIME_ERROR.TYPE_ALIAS_CANNOT_REFERENCE_ITSELF main() { diff --git a/tests/language_2/function/type_alias_test.dart b/tests/language_2/function/type_alias_test.dart index b725a5f396f..4ecdbf7d81f 100644 --- a/tests/language_2/function/type_alias_test.dart +++ b/tests/language_2/function/type_alias_test.dart @@ -5,6 +5,8 @@ // // Dart test for function type alias. +// @dart = 2.9 + import "package:expect/expect.dart"; typedef Fun(Null a, Null b); diff --git a/tests/language_2/function/type_call_getter2_runtime_test.dart b/tests/language_2/function/type_call_getter2_runtime_test.dart index 689328b51d0..5cbfd1fb5a9 100644 --- a/tests/language_2/function/type_call_getter2_runtime_test.dart +++ b/tests/language_2/function/type_call_getter2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/function/type_call_getter2_test.dart b/tests/language_2/function/type_call_getter2_test.dart index 789f22eedb6..023b14caf5d 100644 --- a/tests/language_2/function/type_call_getter2_test.dart +++ b/tests/language_2/function/type_call_getter2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/function/type_call_getter_test.dart b/tests/language_2/function/type_call_getter_test.dart index 52ecbaa8f5f..792fd396ae6 100644 --- a/tests/language_2/function/type_call_getter_test.dart +++ b/tests/language_2/function/type_call_getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/function/type_in_constant_test.dart b/tests/language_2/function/type_in_constant_test.dart index ca9db12811d..9b967efe0be 100644 --- a/tests/language_2/function/type_in_constant_test.dart +++ b/tests/language_2/function/type_in_constant_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test that consts can be created with inlined function types as type /// arguments. diff --git a/tests/language_2/function/type_parameter2_test.dart b/tests/language_2/function/type_parameter2_test.dart index c3fd41bcecd..0ca6000c1ce 100644 --- a/tests/language_2/function/type_parameter2_test.dart +++ b/tests/language_2/function/type_parameter2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test to check that we can parse closure type formal parameters with // default value. diff --git a/tests/language_2/function/type_parameter3_test.dart b/tests/language_2/function/type_parameter3_test.dart index cb79201d60f..67a06c9b9ec 100644 --- a/tests/language_2/function/type_parameter3_test.dart +++ b/tests/language_2/function/type_parameter3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test that we detect that a function literal is not /// a compile time constant. diff --git a/tests/language_2/function/type_parameter_bound_object_test.dart b/tests/language_2/function/type_parameter_bound_object_test.dart index ba58f75ff09..f20d2fb000d 100644 --- a/tests/language_2/function/type_parameter_bound_object_test.dart +++ b/tests/language_2/function/type_parameter_bound_object_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + Q hest(dynamic x) { if (x is Q) return x; return null; diff --git a/tests/language_2/function/type_parameter_test.dart b/tests/language_2/function/type_parameter_test.dart index 586f83642ca..0393ed52813 100644 --- a/tests/language_2/function/type_parameter_test.dart +++ b/tests/language_2/function/type_parameter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test to check that we can parse closure type formal parameters with diff --git a/tests/language_2/function/type_test.dart b/tests/language_2/function/type_test.dart index 0812e719f0e..96c2550ac3f 100644 --- a/tests/language_2/function/type_test.dart +++ b/tests/language_2/function/type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for a function type test that cannot be eliminated at compile time. import "package:expect/expect.dart"; diff --git a/tests/language_2/function/type_this_parameter_test.dart b/tests/language_2/function/type_this_parameter_test.dart index 4ce65c72010..78b5f3cc625 100644 --- a/tests/language_2/function/type_this_parameter_test.dart +++ b/tests/language_2/function/type_this_parameter_test.dart @@ -4,6 +4,8 @@ // Check that function types are accepted for constructor arguments that // initialize fields. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/function_subtype/bound_closure0_test.dart b/tests/language_2/function_subtype/bound_closure0_test.dart index fc993e02e6a..394f8af0ef9 100644 --- a/tests/language_2/function_subtype/bound_closure0_test.dart +++ b/tests/language_2/function_subtype/bound_closure0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for bound closures. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/bound_closure1_test.dart b/tests/language_2/function_subtype/bound_closure1_test.dart index 01363e0a8d8..4c84632cfb9 100644 --- a/tests/language_2/function_subtype/bound_closure1_test.dart +++ b/tests/language_2/function_subtype/bound_closure1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for bound closures against generic typedefs. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/bound_closure2_test.dart b/tests/language_2/function_subtype/bound_closure2_test.dart index d8f4a404ff3..db2f3ace571 100644 --- a/tests/language_2/function_subtype/bound_closure2_test.dart +++ b/tests/language_2/function_subtype/bound_closure2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for bound closures on generic type against generic // typedefs. diff --git a/tests/language_2/function_subtype/bound_closure3_test.dart b/tests/language_2/function_subtype/bound_closure3_test.dart index 471f2ca413a..50adafb799a 100644 --- a/tests/language_2/function_subtype/bound_closure3_test.dart +++ b/tests/language_2/function_subtype/bound_closure3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for generic bound closures. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/bound_closure4_test.dart b/tests/language_2/function_subtype/bound_closure4_test.dart index a48fb94bafb..25f436eba95 100644 --- a/tests/language_2/function_subtype/bound_closure4_test.dart +++ b/tests/language_2/function_subtype/bound_closure4_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for generic bound closures. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/bound_closure5_test.dart b/tests/language_2/function_subtype/bound_closure5_test.dart index 4c6d36ce0ea..29e8a819384 100644 --- a/tests/language_2/function_subtype/bound_closure5_test.dart +++ b/tests/language_2/function_subtype/bound_closure5_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for bound closures on generic type against generic // typedefs. diff --git a/tests/language_2/function_subtype/bound_closure5a_test.dart b/tests/language_2/function_subtype/bound_closure5a_test.dart index 6b240edb5b1..57d7858fabf 100644 --- a/tests/language_2/function_subtype/bound_closure5a_test.dart +++ b/tests/language_2/function_subtype/bound_closure5a_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for bound closures on generic type against generic // typedefs. diff --git a/tests/language_2/function_subtype/bound_closure6_test.dart b/tests/language_2/function_subtype/bound_closure6_test.dart index 721d78b4535..34e71ea40ce 100644 --- a/tests/language_2/function_subtype/bound_closure6_test.dart +++ b/tests/language_2/function_subtype/bound_closure6_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for bound closures on generic type against generic // typedefs. diff --git a/tests/language_2/function_subtype/bound_closure7_test.dart b/tests/language_2/function_subtype/bound_closure7_test.dart index 2e16207e6c0..a9a706089a7 100644 --- a/tests/language_2/function_subtype/bound_closure7_test.dart +++ b/tests/language_2/function_subtype/bound_closure7_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for bound closures. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/call0_test.dart b/tests/language_2/function_subtype/call0_test.dart index bacced1cd2a..ad24bb2888b 100644 --- a/tests/language_2/function_subtype/call0_test.dart +++ b/tests/language_2/function_subtype/call0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for classes with call functions. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/call1_test.dart b/tests/language_2/function_subtype/call1_test.dart index 179f9f0362b..0df346ac619 100644 --- a/tests/language_2/function_subtype/call1_test.dart +++ b/tests/language_2/function_subtype/call1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for classes with call functions. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/call2_test.dart b/tests/language_2/function_subtype/call2_test.dart index ed16fe7301b..da64f65272a 100644 --- a/tests/language_2/function_subtype/call2_test.dart +++ b/tests/language_2/function_subtype/call2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for classes with call functions. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/call_type_variable_test.dart b/tests/language_2/function_subtype/call_type_variable_test.dart index dc1a81103a2..a33cea3a39e 100644 --- a/tests/language_2/function_subtype/call_type_variable_test.dart +++ b/tests/language_2/function_subtype/call_type_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that it is possible to invoke an object whose type is a proper subtype diff --git a/tests/language_2/function_subtype/cast0_test.dart b/tests/language_2/function_subtype/cast0_test.dart index f93ffc83e99..4a8b80c4501 100644 --- a/tests/language_2/function_subtype/cast0_test.dart +++ b/tests/language_2/function_subtype/cast0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping casts. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/cast1_test.dart b/tests/language_2/function_subtype/cast1_test.dart index e23eb0fd860..d98d2cb7db5 100644 --- a/tests/language_2/function_subtype/cast1_test.dart +++ b/tests/language_2/function_subtype/cast1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping casts. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/cast2_test.dart b/tests/language_2/function_subtype/cast2_test.dart index 123af74c674..b71394ffa17 100644 --- a/tests/language_2/function_subtype/cast2_test.dart +++ b/tests/language_2/function_subtype/cast2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping casts. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/cast3_test.dart b/tests/language_2/function_subtype/cast3_test.dart index ec222ac5b6d..801f0fee580 100644 --- a/tests/language_2/function_subtype/cast3_test.dart +++ b/tests/language_2/function_subtype/cast3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping casts. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/checked0_test.dart b/tests/language_2/function_subtype/checked0_test.dart index 0ded8d02e9e..9cc46deadfe 100644 --- a/tests/language_2/function_subtype/checked0_test.dart +++ b/tests/language_2/function_subtype/checked0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping of typedef vs. inlined function types. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/closure0_test.dart b/tests/language_2/function_subtype/closure0_test.dart index 42125a20500..4bc8462b0d5 100644 --- a/tests/language_2/function_subtype/closure0_test.dart +++ b/tests/language_2/function_subtype/closure0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping of static functions. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/closure1_test.dart b/tests/language_2/function_subtype/closure1_test.dart index 098f4f5894f..8f1fccfd2e3 100644 --- a/tests/language_2/function_subtype/closure1_test.dart +++ b/tests/language_2/function_subtype/closure1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping of dynamic closures. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/factory0_test.dart b/tests/language_2/function_subtype/factory0_test.dart index 91d6056e005..acda285f6df 100644 --- a/tests/language_2/function_subtype/factory0_test.dart +++ b/tests/language_2/function_subtype/factory0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping with type variables in factory constructors. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/factory1_test.dart b/tests/language_2/function_subtype/factory1_test.dart index dd7022accad..79f8e9a2d96 100644 --- a/tests/language_2/function_subtype/factory1_test.dart +++ b/tests/language_2/function_subtype/factory1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping with type variables in factory constructors. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/function_subtype0_test.dart b/tests/language_2/function_subtype/function_subtype0_test.dart index 1a39d92cb93..86fdab10cb5 100644 --- a/tests/language_2/function_subtype/function_subtype0_test.dart +++ b/tests/language_2/function_subtype/function_subtype0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/function_subtype1_test.dart b/tests/language_2/function_subtype/function_subtype1_test.dart index a7bd199e699..b7b7b652ffd 100644 --- a/tests/language_2/function_subtype/function_subtype1_test.dart +++ b/tests/language_2/function_subtype/function_subtype1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/function_subtype2_test.dart b/tests/language_2/function_subtype/function_subtype2_test.dart index 0f92421d075..571cd8e2251 100644 --- a/tests/language_2/function_subtype/function_subtype2_test.dart +++ b/tests/language_2/function_subtype/function_subtype2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for optional parameters. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/function_subtype3_test.dart b/tests/language_2/function_subtype/function_subtype3_test.dart index 09bc65f442e..9a7f30a447f 100644 --- a/tests/language_2/function_subtype/function_subtype3_test.dart +++ b/tests/language_2/function_subtype/function_subtype3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class FunctionLike { diff --git a/tests/language_2/function_subtype/inline0_test.dart b/tests/language_2/function_subtype/inline0_test.dart index 3e1db32d0d4..19edeedae20 100644 --- a/tests/language_2/function_subtype/inline0_test.dart +++ b/tests/language_2/function_subtype/inline0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for generic bound closures. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/inline1_test.dart b/tests/language_2/function_subtype/inline1_test.dart index 487c63d4bbe..55e14142e99 100644 --- a/tests/language_2/function_subtype/inline1_test.dart +++ b/tests/language_2/function_subtype/inline1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/inline2_test.dart b/tests/language_2/function_subtype/inline2_test.dart index 80ab19335a9..95a9e9249f0 100644 --- a/tests/language_2/function_subtype/inline2_test.dart +++ b/tests/language_2/function_subtype/inline2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping of inlined function typed parameters. import '../dynamic_type_helper.dart'; diff --git a/tests/language_2/function_subtype/local0_test.dart b/tests/language_2/function_subtype/local0_test.dart index 51d326978c4..f8805c2abae 100644 --- a/tests/language_2/function_subtype/local0_test.dart +++ b/tests/language_2/function_subtype/local0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for local functions. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/local1_test.dart b/tests/language_2/function_subtype/local1_test.dart index 83f93500d5f..9f05b289ee3 100644 --- a/tests/language_2/function_subtype/local1_test.dart +++ b/tests/language_2/function_subtype/local1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for local functions against generic typedefs. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/local2_test.dart b/tests/language_2/function_subtype/local2_test.dart index 0f774fb1b65..7ea39c88fa3 100644 --- a/tests/language_2/function_subtype/local2_test.dart +++ b/tests/language_2/function_subtype/local2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for local functions on generic type against generic // typedefs. diff --git a/tests/language_2/function_subtype/local3_test.dart b/tests/language_2/function_subtype/local3_test.dart index e491ddeccc2..dcb9d9a79b1 100644 --- a/tests/language_2/function_subtype/local3_test.dart +++ b/tests/language_2/function_subtype/local3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for generic bound closures. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/local4_test.dart b/tests/language_2/function_subtype/local4_test.dart index 5219757c3f6..1a66f21f14e 100644 --- a/tests/language_2/function_subtype/local4_test.dart +++ b/tests/language_2/function_subtype/local4_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for generic bound closures. This also tests // type argument substitution. diff --git a/tests/language_2/function_subtype/local5_test.dart b/tests/language_2/function_subtype/local5_test.dart index 00f18af942b..450174fc97a 100644 --- a/tests/language_2/function_subtype/local5_test.dart +++ b/tests/language_2/function_subtype/local5_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for local functions on generic type against generic // typedefs. diff --git a/tests/language_2/function_subtype/local6_test.dart b/tests/language_2/function_subtype/local6_test.dart index 95817d18cce..9ef9ac65a57 100644 --- a/tests/language_2/function_subtype/local6_test.dart +++ b/tests/language_2/function_subtype/local6_test.dart @@ -4,6 +4,8 @@ // Dart test program for constructors and initializers. // VMOptions=--no-eliminate-type-checks +// @dart = 2.9 + // Regression test for issue 12127. class C { diff --git a/tests/language_2/function_subtype/named1_test.dart b/tests/language_2/function_subtype/named1_test.dart index 917d3c82650..0934c5a610a 100644 --- a/tests/language_2/function_subtype/named1_test.dart +++ b/tests/language_2/function_subtype/named1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/named2_test.dart b/tests/language_2/function_subtype/named2_test.dart index c74a4d43e76..c24ec8dc672 100644 --- a/tests/language_2/function_subtype/named2_test.dart +++ b/tests/language_2/function_subtype/named2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/not0_test.dart b/tests/language_2/function_subtype/not0_test.dart index 4959ece00d9..8b06b8b5794 100644 --- a/tests/language_2/function_subtype/not0_test.dart +++ b/tests/language_2/function_subtype/not0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check negative function subtyping tests. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/not1_test.dart b/tests/language_2/function_subtype/not1_test.dart index 431bb765ae5..b4fbaace995 100644 --- a/tests/language_2/function_subtype/not1_test.dart +++ b/tests/language_2/function_subtype/not1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check negative function subtyping tests. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/not2_test.dart b/tests/language_2/function_subtype/not2_test.dart index 218c04deff6..cd1120e3cf8 100644 --- a/tests/language_2/function_subtype/not2_test.dart +++ b/tests/language_2/function_subtype/not2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check negative function subtyping tests. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/not3_test.dart b/tests/language_2/function_subtype/not3_test.dart index 07c40ea9510..dde3cd1fe76 100644 --- a/tests/language_2/function_subtype/not3_test.dart +++ b/tests/language_2/function_subtype/not3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check negative function subtyping tests. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/null.dart b/tests/language_2/function_subtype/null.dart index 44bdec49ba3..a11cde30626 100644 --- a/tests/language_2/function_subtype/null.dart +++ b/tests/language_2/function_subtype/null.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for null. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/optional1_test.dart b/tests/language_2/function_subtype/optional1_test.dart index be14976f3aa..8ba13ec4cf9 100644 --- a/tests/language_2/function_subtype/optional1_test.dart +++ b/tests/language_2/function_subtype/optional1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/optional2_test.dart b/tests/language_2/function_subtype/optional2_test.dart index 197dc0c53d2..b2101f631bf 100644 --- a/tests/language_2/function_subtype/optional2_test.dart +++ b/tests/language_2/function_subtype/optional2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/regress41680_test.dart b/tests/language_2/function_subtype/regress41680_test.dart index 696e9ecee4f..f37f5730e95 100644 --- a/tests/language_2/function_subtype/regress41680_test.dart +++ b/tests/language_2/function_subtype/regress41680_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // [NNBD non-migrated]: This test is migrated to regress41680_strong_test.dart // and regress41680_weak_test.dart. import "package:expect/expect.dart"; diff --git a/tests/language_2/function_subtype/regression_ddc_588_test.dart b/tests/language_2/function_subtype/regression_ddc_588_test.dart index a55dd6de868..6ac60ac5088 100644 --- a/tests/language_2/function_subtype/regression_ddc_588_test.dart +++ b/tests/language_2/function_subtype/regression_ddc_588_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import "package:expect/expect.dart"; // regression test for ddc #588 diff --git a/tests/language_2/function_subtype/setter0_test.dart b/tests/language_2/function_subtype/setter0_test.dart index fcc848bebaf..d052b62b284 100644 --- a/tests/language_2/function_subtype/setter0_test.dart +++ b/tests/language_2/function_subtype/setter0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for implicit setters. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/simple0_test.dart b/tests/language_2/function_subtype/simple0_test.dart index 929be52da22..a8671c7b7ce 100644 --- a/tests/language_2/function_subtype/simple0_test.dart +++ b/tests/language_2/function_subtype/simple0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping of simple function types. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/simple1_test.dart b/tests/language_2/function_subtype/simple1_test.dart index 1d0b05370cf..a35751a5ebb 100644 --- a/tests/language_2/function_subtype/simple1_test.dart +++ b/tests/language_2/function_subtype/simple1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping of simple function types. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/simple2_test.dart b/tests/language_2/function_subtype/simple2_test.dart index 119869b5133..9eb7549f1be 100644 --- a/tests/language_2/function_subtype/simple2_test.dart +++ b/tests/language_2/function_subtype/simple2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping of simple function types. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/top_level0_test.dart b/tests/language_2/function_subtype/top_level0_test.dart index ddc66f38d5e..491dbfbe3df 100644 --- a/tests/language_2/function_subtype/top_level0_test.dart +++ b/tests/language_2/function_subtype/top_level0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for top level functions. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/top_level1_test.dart b/tests/language_2/function_subtype/top_level1_test.dart index d522349408f..0334e767ff9 100644 --- a/tests/language_2/function_subtype/top_level1_test.dart +++ b/tests/language_2/function_subtype/top_level1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping for top level functions. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/typearg0_test.dart b/tests/language_2/function_subtype/typearg0_test.dart index ef39ba91546..f1eb40d1fa9 100644 --- a/tests/language_2/function_subtype/typearg0_test.dart +++ b/tests/language_2/function_subtype/typearg0_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping with type variables in factory constructors. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/typearg1_test.dart b/tests/language_2/function_subtype/typearg1_test.dart index 1d6e47311e1..8e48557825b 100644 --- a/tests/language_2/function_subtype/typearg1_test.dart +++ b/tests/language_2/function_subtype/typearg1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping of type arguments. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/typearg2_test.dart b/tests/language_2/function_subtype/typearg2_test.dart index e23c88ff6af..2a608111185 100644 --- a/tests/language_2/function_subtype/typearg2_test.dart +++ b/tests/language_2/function_subtype/typearg2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping of type arguments. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/typearg3_test.dart b/tests/language_2/function_subtype/typearg3_test.dart index b2208afcabe..8af7af933d5 100644 --- a/tests/language_2/function_subtype/typearg3_test.dart +++ b/tests/language_2/function_subtype/typearg3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check function subtyping of type arguments. import 'package:expect/expect.dart'; diff --git a/tests/language_2/function_subtype/typearg5_test.dart b/tests/language_2/function_subtype/typearg5_test.dart index bd6e2bdc4bf..bcada2097ac 100644 --- a/tests/language_2/function_subtype/typearg5_test.dart +++ b/tests/language_2/function_subtype/typearg5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check function subtyping of type arguments. These cases use typedefs as type // arguments, and the typedefs have type parameters that are used more than // once. diff --git a/tests/language_2/function_type/function_type0_test.dart b/tests/language_2/function_type/function_type0_test.dart index 9bcf990231c..3678a19bdcb 100644 --- a/tests/language_2/function_type/function_type0_test.dart +++ b/tests/language_2/function_type/function_type0_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type10_test.dart b/tests/language_2/function_type/function_type10_test.dart index 9ec77373ca6..d54897aa397 100644 --- a/tests/language_2/function_type/function_type10_test.dart +++ b/tests/language_2/function_type/function_type10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type11_test.dart b/tests/language_2/function_type/function_type11_test.dart index 202a918d259..8f3439c4ae8 100644 --- a/tests/language_2/function_type/function_type11_test.dart +++ b/tests/language_2/function_type/function_type11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type12_test.dart b/tests/language_2/function_type/function_type12_test.dart index c5eecf528df..24eefa31e47 100644 --- a/tests/language_2/function_type/function_type12_test.dart +++ b/tests/language_2/function_type/function_type12_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type13_test.dart b/tests/language_2/function_type/function_type13_test.dart index e97c2198cbf..4c47ae72dc3 100644 --- a/tests/language_2/function_type/function_type13_test.dart +++ b/tests/language_2/function_type/function_type13_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type14_test.dart b/tests/language_2/function_type/function_type14_test.dart index 0e5cb1aa8d2..15bc6c9b209 100644 --- a/tests/language_2/function_type/function_type14_test.dart +++ b/tests/language_2/function_type/function_type14_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type15_test.dart b/tests/language_2/function_type/function_type15_test.dart index b1c26fab51d..69bcf21332c 100644 --- a/tests/language_2/function_type/function_type15_test.dart +++ b/tests/language_2/function_type/function_type15_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type16_test.dart b/tests/language_2/function_type/function_type16_test.dart index fb657f2113c..e64fc261445 100644 --- a/tests/language_2/function_type/function_type16_test.dart +++ b/tests/language_2/function_type/function_type16_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type17_test.dart b/tests/language_2/function_type/function_type17_test.dart index 058d1c19349..8fdee380d72 100644 --- a/tests/language_2/function_type/function_type17_test.dart +++ b/tests/language_2/function_type/function_type17_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type18_test.dart b/tests/language_2/function_type/function_type18_test.dart index e336db6be4e..c1c9bcb0ea6 100644 --- a/tests/language_2/function_type/function_type18_test.dart +++ b/tests/language_2/function_type/function_type18_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type19_test.dart b/tests/language_2/function_type/function_type19_test.dart index 26393044986..546f1abe88d 100644 --- a/tests/language_2/function_type/function_type19_test.dart +++ b/tests/language_2/function_type/function_type19_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type1_test.dart b/tests/language_2/function_type/function_type1_test.dart index 7d3515a9f91..7e267fdd279 100644 --- a/tests/language_2/function_type/function_type1_test.dart +++ b/tests/language_2/function_type/function_type1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type20_test.dart b/tests/language_2/function_type/function_type20_test.dart index 446bf0af945..ab832758a11 100644 --- a/tests/language_2/function_type/function_type20_test.dart +++ b/tests/language_2/function_type/function_type20_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type21_test.dart b/tests/language_2/function_type/function_type21_test.dart index 0e9eed4681b..163cb844fb2 100644 --- a/tests/language_2/function_type/function_type21_test.dart +++ b/tests/language_2/function_type/function_type21_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type22_test.dart b/tests/language_2/function_type/function_type22_test.dart index a7464556506..f4df66f10d7 100644 --- a/tests/language_2/function_type/function_type22_test.dart +++ b/tests/language_2/function_type/function_type22_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type23_test.dart b/tests/language_2/function_type/function_type23_test.dart index da420f92d59..9d8ea27511a 100644 --- a/tests/language_2/function_type/function_type23_test.dart +++ b/tests/language_2/function_type/function_type23_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type24_test.dart b/tests/language_2/function_type/function_type24_test.dart index ab89f880aa3..458c3c5d0e0 100644 --- a/tests/language_2/function_type/function_type24_test.dart +++ b/tests/language_2/function_type/function_type24_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type25_test.dart b/tests/language_2/function_type/function_type25_test.dart index dfa26f3170c..567f2aa6833 100644 --- a/tests/language_2/function_type/function_type25_test.dart +++ b/tests/language_2/function_type/function_type25_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type26_test.dart b/tests/language_2/function_type/function_type26_test.dart index 5d6141a2b2c..8c5f5cecb8a 100644 --- a/tests/language_2/function_type/function_type26_test.dart +++ b/tests/language_2/function_type/function_type26_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type27_test.dart b/tests/language_2/function_type/function_type27_test.dart index 79a07bd7471..ef6da7fb7b4 100644 --- a/tests/language_2/function_type/function_type27_test.dart +++ b/tests/language_2/function_type/function_type27_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type28_test.dart b/tests/language_2/function_type/function_type28_test.dart index f40ad194484..c88505556f4 100644 --- a/tests/language_2/function_type/function_type28_test.dart +++ b/tests/language_2/function_type/function_type28_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type29_test.dart b/tests/language_2/function_type/function_type29_test.dart index dfc8fdf70fb..81740b1bcb5 100644 --- a/tests/language_2/function_type/function_type29_test.dart +++ b/tests/language_2/function_type/function_type29_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type2_test.dart b/tests/language_2/function_type/function_type2_test.dart index bb0b4f009a9..ed1eab98fa7 100644 --- a/tests/language_2/function_type/function_type2_test.dart +++ b/tests/language_2/function_type/function_type2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type30_test.dart b/tests/language_2/function_type/function_type30_test.dart index 5662b44a00b..3fbb971081d 100644 --- a/tests/language_2/function_type/function_type30_test.dart +++ b/tests/language_2/function_type/function_type30_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type31_test.dart b/tests/language_2/function_type/function_type31_test.dart index 29248f94557..00099809ddc 100644 --- a/tests/language_2/function_type/function_type31_test.dart +++ b/tests/language_2/function_type/function_type31_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type32_test.dart b/tests/language_2/function_type/function_type32_test.dart index 0186636c9f8..2714ce95546 100644 --- a/tests/language_2/function_type/function_type32_test.dart +++ b/tests/language_2/function_type/function_type32_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type33_test.dart b/tests/language_2/function_type/function_type33_test.dart index 78c33619709..17ad658aaaa 100644 --- a/tests/language_2/function_type/function_type33_test.dart +++ b/tests/language_2/function_type/function_type33_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type34_test.dart b/tests/language_2/function_type/function_type34_test.dart index 0a8f8732b3d..1bc1dda8ebf 100644 --- a/tests/language_2/function_type/function_type34_test.dart +++ b/tests/language_2/function_type/function_type34_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type35_test.dart b/tests/language_2/function_type/function_type35_test.dart index 9894b76854b..f9362f030d6 100644 --- a/tests/language_2/function_type/function_type35_test.dart +++ b/tests/language_2/function_type/function_type35_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type36_test.dart b/tests/language_2/function_type/function_type36_test.dart index fda0c2dd019..5ba9e98d350 100644 --- a/tests/language_2/function_type/function_type36_test.dart +++ b/tests/language_2/function_type/function_type36_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type37_test.dart b/tests/language_2/function_type/function_type37_test.dart index cb342f47b7a..9f2b14d910b 100644 --- a/tests/language_2/function_type/function_type37_test.dart +++ b/tests/language_2/function_type/function_type37_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type38_test.dart b/tests/language_2/function_type/function_type38_test.dart index b21a02f80c9..26cc22af015 100644 --- a/tests/language_2/function_type/function_type38_test.dart +++ b/tests/language_2/function_type/function_type38_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type39_test.dart b/tests/language_2/function_type/function_type39_test.dart index b42345cefd2..a0792677650 100644 --- a/tests/language_2/function_type/function_type39_test.dart +++ b/tests/language_2/function_type/function_type39_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type3_test.dart b/tests/language_2/function_type/function_type3_test.dart index 5a6511ec3d5..52ae455adb4 100644 --- a/tests/language_2/function_type/function_type3_test.dart +++ b/tests/language_2/function_type/function_type3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type40_test.dart b/tests/language_2/function_type/function_type40_test.dart index e19b28bd745..9bf69105a41 100644 --- a/tests/language_2/function_type/function_type40_test.dart +++ b/tests/language_2/function_type/function_type40_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type41_test.dart b/tests/language_2/function_type/function_type41_test.dart index e7cacec9ddb..784144bcaf0 100644 --- a/tests/language_2/function_type/function_type41_test.dart +++ b/tests/language_2/function_type/function_type41_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type42_test.dart b/tests/language_2/function_type/function_type42_test.dart index be92a164535..b7bd2e9adb5 100644 --- a/tests/language_2/function_type/function_type42_test.dart +++ b/tests/language_2/function_type/function_type42_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type43_test.dart b/tests/language_2/function_type/function_type43_test.dart index 31f94f283d0..e7171e8c5f3 100644 --- a/tests/language_2/function_type/function_type43_test.dart +++ b/tests/language_2/function_type/function_type43_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type44_test.dart b/tests/language_2/function_type/function_type44_test.dart index 2af4fd2b17b..8b470c3fcf6 100644 --- a/tests/language_2/function_type/function_type44_test.dart +++ b/tests/language_2/function_type/function_type44_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type45_test.dart b/tests/language_2/function_type/function_type45_test.dart index 70af4a74a5b..62823998662 100644 --- a/tests/language_2/function_type/function_type45_test.dart +++ b/tests/language_2/function_type/function_type45_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type46_test.dart b/tests/language_2/function_type/function_type46_test.dart index 60760e3af12..7349efb2680 100644 --- a/tests/language_2/function_type/function_type46_test.dart +++ b/tests/language_2/function_type/function_type46_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type47_test.dart b/tests/language_2/function_type/function_type47_test.dart index 999e76c6dc6..3a49d25ec86 100644 --- a/tests/language_2/function_type/function_type47_test.dart +++ b/tests/language_2/function_type/function_type47_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type48_test.dart b/tests/language_2/function_type/function_type48_test.dart index da44e7989d2..07487ca186c 100644 --- a/tests/language_2/function_type/function_type48_test.dart +++ b/tests/language_2/function_type/function_type48_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type49_test.dart b/tests/language_2/function_type/function_type49_test.dart index 8e7e84b2ded..570f24e01dd 100644 --- a/tests/language_2/function_type/function_type49_test.dart +++ b/tests/language_2/function_type/function_type49_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type4_test.dart b/tests/language_2/function_type/function_type4_test.dart index 6eafe68e64a..0d8bf38e5e4 100644 --- a/tests/language_2/function_type/function_type4_test.dart +++ b/tests/language_2/function_type/function_type4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type50_test.dart b/tests/language_2/function_type/function_type50_test.dart index ca0d344149e..43fd72e7634 100644 --- a/tests/language_2/function_type/function_type50_test.dart +++ b/tests/language_2/function_type/function_type50_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type51_test.dart b/tests/language_2/function_type/function_type51_test.dart index e642bb5bcd4..a466411f54a 100644 --- a/tests/language_2/function_type/function_type51_test.dart +++ b/tests/language_2/function_type/function_type51_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type52_test.dart b/tests/language_2/function_type/function_type52_test.dart index 3df824e3f5e..1cd849bd5a3 100644 --- a/tests/language_2/function_type/function_type52_test.dart +++ b/tests/language_2/function_type/function_type52_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type53_test.dart b/tests/language_2/function_type/function_type53_test.dart index fc6c8ca8d44..b16845fa2d0 100644 --- a/tests/language_2/function_type/function_type53_test.dart +++ b/tests/language_2/function_type/function_type53_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type54_test.dart b/tests/language_2/function_type/function_type54_test.dart index a940fdc3f08..bf5da700e79 100644 --- a/tests/language_2/function_type/function_type54_test.dart +++ b/tests/language_2/function_type/function_type54_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type55_test.dart b/tests/language_2/function_type/function_type55_test.dart index 333f42b8097..2c771d24fc8 100644 --- a/tests/language_2/function_type/function_type55_test.dart +++ b/tests/language_2/function_type/function_type55_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type56_test.dart b/tests/language_2/function_type/function_type56_test.dart index 622b5d5fca1..4a805e9fd14 100644 --- a/tests/language_2/function_type/function_type56_test.dart +++ b/tests/language_2/function_type/function_type56_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type57_test.dart b/tests/language_2/function_type/function_type57_test.dart index ecf15d42de8..869755ccbf7 100644 --- a/tests/language_2/function_type/function_type57_test.dart +++ b/tests/language_2/function_type/function_type57_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type58_test.dart b/tests/language_2/function_type/function_type58_test.dart index 52ceae9e40f..afcd6ff805a 100644 --- a/tests/language_2/function_type/function_type58_test.dart +++ b/tests/language_2/function_type/function_type58_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type59_test.dart b/tests/language_2/function_type/function_type59_test.dart index 4431f9bf687..c92f6126e22 100644 --- a/tests/language_2/function_type/function_type59_test.dart +++ b/tests/language_2/function_type/function_type59_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type5_test.dart b/tests/language_2/function_type/function_type5_test.dart index b1590283f0e..ef9245a458f 100644 --- a/tests/language_2/function_type/function_type5_test.dart +++ b/tests/language_2/function_type/function_type5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type60_test.dart b/tests/language_2/function_type/function_type60_test.dart index dae537b4d29..0f85e50ab70 100644 --- a/tests/language_2/function_type/function_type60_test.dart +++ b/tests/language_2/function_type/function_type60_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type61_test.dart b/tests/language_2/function_type/function_type61_test.dart index 3cee969ec41..319b52ef5d3 100644 --- a/tests/language_2/function_type/function_type61_test.dart +++ b/tests/language_2/function_type/function_type61_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type62_test.dart b/tests/language_2/function_type/function_type62_test.dart index ac4114d1615..6f8946d4a84 100644 --- a/tests/language_2/function_type/function_type62_test.dart +++ b/tests/language_2/function_type/function_type62_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type63_test.dart b/tests/language_2/function_type/function_type63_test.dart index ff72ac95b2b..98160448971 100644 --- a/tests/language_2/function_type/function_type63_test.dart +++ b/tests/language_2/function_type/function_type63_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type64_test.dart b/tests/language_2/function_type/function_type64_test.dart index e0a1c6d3ec3..83ec553fe75 100644 --- a/tests/language_2/function_type/function_type64_test.dart +++ b/tests/language_2/function_type/function_type64_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type65_test.dart b/tests/language_2/function_type/function_type65_test.dart index e4791894f31..57116641d51 100644 --- a/tests/language_2/function_type/function_type65_test.dart +++ b/tests/language_2/function_type/function_type65_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type66_test.dart b/tests/language_2/function_type/function_type66_test.dart index c168c04c454..783881e7c50 100644 --- a/tests/language_2/function_type/function_type66_test.dart +++ b/tests/language_2/function_type/function_type66_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type67_test.dart b/tests/language_2/function_type/function_type67_test.dart index 9ca375d00dd..8c123813ae7 100644 --- a/tests/language_2/function_type/function_type67_test.dart +++ b/tests/language_2/function_type/function_type67_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type68_test.dart b/tests/language_2/function_type/function_type68_test.dart index feaab1f9e62..39aad3859e1 100644 --- a/tests/language_2/function_type/function_type68_test.dart +++ b/tests/language_2/function_type/function_type68_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type69_test.dart b/tests/language_2/function_type/function_type69_test.dart index da7740542cf..8ad28c6d053 100644 --- a/tests/language_2/function_type/function_type69_test.dart +++ b/tests/language_2/function_type/function_type69_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type6_test.dart b/tests/language_2/function_type/function_type6_test.dart index 8695a267c7c..761ecec2612 100644 --- a/tests/language_2/function_type/function_type6_test.dart +++ b/tests/language_2/function_type/function_type6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type70_test.dart b/tests/language_2/function_type/function_type70_test.dart index 369e6798311..b8e748716bb 100644 --- a/tests/language_2/function_type/function_type70_test.dart +++ b/tests/language_2/function_type/function_type70_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type71_test.dart b/tests/language_2/function_type/function_type71_test.dart index 85e3986082e..1198b38e4be 100644 --- a/tests/language_2/function_type/function_type71_test.dart +++ b/tests/language_2/function_type/function_type71_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type72_test.dart b/tests/language_2/function_type/function_type72_test.dart index 1f67b506dbc..8afc187081b 100644 --- a/tests/language_2/function_type/function_type72_test.dart +++ b/tests/language_2/function_type/function_type72_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type73_test.dart b/tests/language_2/function_type/function_type73_test.dart index de51f95b2f7..f89804e8522 100644 --- a/tests/language_2/function_type/function_type73_test.dart +++ b/tests/language_2/function_type/function_type73_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type74_test.dart b/tests/language_2/function_type/function_type74_test.dart index d6b9dee22c2..f5fe9193976 100644 --- a/tests/language_2/function_type/function_type74_test.dart +++ b/tests/language_2/function_type/function_type74_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type75_test.dart b/tests/language_2/function_type/function_type75_test.dart index 2e277f9b185..f6f205402b9 100644 --- a/tests/language_2/function_type/function_type75_test.dart +++ b/tests/language_2/function_type/function_type75_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type76_test.dart b/tests/language_2/function_type/function_type76_test.dart index b5df005d910..f1c1ef902e2 100644 --- a/tests/language_2/function_type/function_type76_test.dart +++ b/tests/language_2/function_type/function_type76_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type77_test.dart b/tests/language_2/function_type/function_type77_test.dart index 6ffd0bdc21d..fd100137d2e 100644 --- a/tests/language_2/function_type/function_type77_test.dart +++ b/tests/language_2/function_type/function_type77_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type78_test.dart b/tests/language_2/function_type/function_type78_test.dart index 2d78785446d..2052c5ea673 100644 --- a/tests/language_2/function_type/function_type78_test.dart +++ b/tests/language_2/function_type/function_type78_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type79_test.dart b/tests/language_2/function_type/function_type79_test.dart index 3fb799522f6..9a172528be0 100644 --- a/tests/language_2/function_type/function_type79_test.dart +++ b/tests/language_2/function_type/function_type79_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type7_test.dart b/tests/language_2/function_type/function_type7_test.dart index 5a56e1e2753..7c8bf2bf238 100644 --- a/tests/language_2/function_type/function_type7_test.dart +++ b/tests/language_2/function_type/function_type7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type80_test.dart b/tests/language_2/function_type/function_type80_test.dart index 631c3ecd85f..0527832da31 100644 --- a/tests/language_2/function_type/function_type80_test.dart +++ b/tests/language_2/function_type/function_type80_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type81_test.dart b/tests/language_2/function_type/function_type81_test.dart index 5803180dcb1..26c7a938424 100644 --- a/tests/language_2/function_type/function_type81_test.dart +++ b/tests/language_2/function_type/function_type81_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type82_test.dart b/tests/language_2/function_type/function_type82_test.dart index 3b374804841..ea17429cdfa 100644 --- a/tests/language_2/function_type/function_type82_test.dart +++ b/tests/language_2/function_type/function_type82_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type83_test.dart b/tests/language_2/function_type/function_type83_test.dart index 7713741176e..01b39abc17d 100644 --- a/tests/language_2/function_type/function_type83_test.dart +++ b/tests/language_2/function_type/function_type83_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type84_test.dart b/tests/language_2/function_type/function_type84_test.dart index 12f5a59c02f..6db3eb6b091 100644 --- a/tests/language_2/function_type/function_type84_test.dart +++ b/tests/language_2/function_type/function_type84_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type85_test.dart b/tests/language_2/function_type/function_type85_test.dart index 34a5836f101..d60125700f4 100644 --- a/tests/language_2/function_type/function_type85_test.dart +++ b/tests/language_2/function_type/function_type85_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type86_test.dart b/tests/language_2/function_type/function_type86_test.dart index 62da5947ffa..12c841c1e7e 100644 --- a/tests/language_2/function_type/function_type86_test.dart +++ b/tests/language_2/function_type/function_type86_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type87_test.dart b/tests/language_2/function_type/function_type87_test.dart index b422aab5182..f597bf5f946 100644 --- a/tests/language_2/function_type/function_type87_test.dart +++ b/tests/language_2/function_type/function_type87_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type88_test.dart b/tests/language_2/function_type/function_type88_test.dart index ef7b6edd01a..f855e7d1d29 100644 --- a/tests/language_2/function_type/function_type88_test.dart +++ b/tests/language_2/function_type/function_type88_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type89_test.dart b/tests/language_2/function_type/function_type89_test.dart index 0db0109bc2f..1a4d3b02f8d 100644 --- a/tests/language_2/function_type/function_type89_test.dart +++ b/tests/language_2/function_type/function_type89_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type8_test.dart b/tests/language_2/function_type/function_type8_test.dart index 09a6382389d..800b1b18b39 100644 --- a/tests/language_2/function_type/function_type8_test.dart +++ b/tests/language_2/function_type/function_type8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type90_test.dart b/tests/language_2/function_type/function_type90_test.dart index 0e795265456..98b1ca3f3f3 100644 --- a/tests/language_2/function_type/function_type90_test.dart +++ b/tests/language_2/function_type/function_type90_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type91_test.dart b/tests/language_2/function_type/function_type91_test.dart index 3470fb18989..784144ec94f 100644 --- a/tests/language_2/function_type/function_type91_test.dart +++ b/tests/language_2/function_type/function_type91_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type92_test.dart b/tests/language_2/function_type/function_type92_test.dart index 81c3b6e9238..823ee3e1bba 100644 --- a/tests/language_2/function_type/function_type92_test.dart +++ b/tests/language_2/function_type/function_type92_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type93_test.dart b/tests/language_2/function_type/function_type93_test.dart index 88541fd27f7..93913ce2937 100644 --- a/tests/language_2/function_type/function_type93_test.dart +++ b/tests/language_2/function_type/function_type93_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type94_test.dart b/tests/language_2/function_type/function_type94_test.dart index e7ebcdfc1b2..d8c9432c5bd 100644 --- a/tests/language_2/function_type/function_type94_test.dart +++ b/tests/language_2/function_type/function_type94_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type95_test.dart b/tests/language_2/function_type/function_type95_test.dart index 16b9e086251..a4902c6f6e6 100644 --- a/tests/language_2/function_type/function_type95_test.dart +++ b/tests/language_2/function_type/function_type95_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type96_test.dart b/tests/language_2/function_type/function_type96_test.dart index 65abf5d6307..f6beecd1091 100644 --- a/tests/language_2/function_type/function_type96_test.dart +++ b/tests/language_2/function_type/function_type96_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type97_test.dart b/tests/language_2/function_type/function_type97_test.dart index 78df65f319b..1e90015d417 100644 --- a/tests/language_2/function_type/function_type97_test.dart +++ b/tests/language_2/function_type/function_type97_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type98_test.dart b/tests/language_2/function_type/function_type98_test.dart index 1ea40a6ecae..212d5fe35a4 100644 --- a/tests/language_2/function_type/function_type98_test.dart +++ b/tests/language_2/function_type/function_type98_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type99_test.dart b/tests/language_2/function_type/function_type99_test.dart index 3404851b6bc..0bceaaaeac5 100644 --- a/tests/language_2/function_type/function_type99_test.dart +++ b/tests/language_2/function_type/function_type99_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/function_type9_test.dart b/tests/language_2/function_type/function_type9_test.dart index bfcd9fa47aa..e447cac8019 100644 --- a/tests/language_2/function_type/function_type9_test.dart +++ b/tests/language_2/function_type/function_type9_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. // GENERATED - DON'T EDIT. diff --git a/tests/language_2/function_type/test_generator.dart b/tests/language_2/function_type/test_generator.dart index 74b18849874..48265aa8941 100644 --- a/tests/language_2/function_type/test_generator.dart +++ b/tests/language_2/function_type/test_generator.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; // By convention: diff --git a/tests/language_2/generic/async_star_test.dart b/tests/language_2/generic/async_star_test.dart index da88b9a0e18..66b6eb3d441 100644 --- a/tests/language_2/generic/async_star_test.dart +++ b/tests/language_2/generic/async_star_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/language_2/generic/async_test.dart b/tests/language_2/generic/async_test.dart index 8f86031c848..10310a89666 100644 --- a/tests/language_2/generic/async_test.dart +++ b/tests/language_2/generic/async_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/language_2/generic/cascaded_forwarding_stubs_generic_test.dart b/tests/language_2/generic/cascaded_forwarding_stubs_generic_test.dart index 9dc502b7ce9..d97fa3dca93 100644 --- a/tests/language_2/generic/cascaded_forwarding_stubs_generic_test.dart +++ b/tests/language_2/generic/cascaded_forwarding_stubs_generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/generic/closure_test.dart b/tests/language_2/generic/closure_test.dart index 333ba2f6353..91845efd58f 100644 --- a/tests/language_2/generic/closure_test.dart +++ b/tests/language_2/generic/closure_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + // Check that generic closures are properly instantiated. import 'package:expect/expect.dart'; diff --git a/tests/language_2/generic/conflicting_generic_interfaces_hierarchy_loop_infinite_test.dart b/tests/language_2/generic/conflicting_generic_interfaces_hierarchy_loop_infinite_test.dart index f3f44736a34..1be02363ac5 100644 --- a/tests/language_2/generic/conflicting_generic_interfaces_hierarchy_loop_infinite_test.dart +++ b/tests/language_2/generic/conflicting_generic_interfaces_hierarchy_loop_infinite_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + // There is an interface conflict here due to a loop in the class // hierarchy leading to an infinite set of implemented types; this loop // shouldn't cause non-termination. diff --git a/tests/language_2/generic/conflicting_generic_interfaces_hierarchy_loop_test.dart b/tests/language_2/generic/conflicting_generic_interfaces_hierarchy_loop_test.dart index e24aaa8daeb..f5e7566e26e 100644 --- a/tests/language_2/generic/conflicting_generic_interfaces_hierarchy_loop_test.dart +++ b/tests/language_2/generic/conflicting_generic_interfaces_hierarchy_loop_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + // There is no interface conflict here, but there is a loop in the class // hierarchy leading to a finite set of implemented types; this loop // shouldn't cause non-termination. diff --git a/tests/language_2/generic/conflicting_generic_interfaces_no_conflict_test.dart b/tests/language_2/generic/conflicting_generic_interfaces_no_conflict_test.dart index f52d32bf880..61d4b0c7cfa 100644 --- a/tests/language_2/generic/conflicting_generic_interfaces_no_conflict_test.dart +++ b/tests/language_2/generic/conflicting_generic_interfaces_no_conflict_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + class I {} class A implements I {} diff --git a/tests/language_2/generic/conflicting_generic_interfaces_simple_test.dart b/tests/language_2/generic/conflicting_generic_interfaces_simple_test.dart index fe319b2f0c1..b9b6108b5e1 100644 --- a/tests/language_2/generic/conflicting_generic_interfaces_simple_test.dart +++ b/tests/language_2/generic/conflicting_generic_interfaces_simple_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + class I {} class A implements I {} diff --git a/tests/language_2/generic/constructor_mixin2_runtime_test.dart b/tests/language_2/generic/constructor_mixin2_runtime_test.dart index 969c8930681..dd4cbf7a62c 100644 --- a/tests/language_2/generic/constructor_mixin2_runtime_test.dart +++ b/tests/language_2/generic/constructor_mixin2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/constructor_mixin2_test.dart b/tests/language_2/generic/constructor_mixin2_test.dart index 88281e3f02e..a2d8f296825 100644 --- a/tests/language_2/generic/constructor_mixin2_test.dart +++ b/tests/language_2/generic/constructor_mixin2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that parameter types types are checked correctly in the face of // mixin application upon a generic constructor. diff --git a/tests/language_2/generic/constructor_mixin3_runtime_test.dart b/tests/language_2/generic/constructor_mixin3_runtime_test.dart index dfdd2bfe01a..ed04a8a5cde 100644 --- a/tests/language_2/generic/constructor_mixin3_runtime_test.dart +++ b/tests/language_2/generic/constructor_mixin3_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/constructor_mixin3_test.dart b/tests/language_2/generic/constructor_mixin3_test.dart index 04e86a19930..6f847d3926e 100644 --- a/tests/language_2/generic/constructor_mixin3_test.dart +++ b/tests/language_2/generic/constructor_mixin3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that parameter types types are checked correctly in the face of // mixin application upon a generic constructor. diff --git a/tests/language_2/generic/constructor_mixin_runtime_test.dart b/tests/language_2/generic/constructor_mixin_runtime_test.dart index 31d7fd2b950..c0898b7b8f3 100644 --- a/tests/language_2/generic/constructor_mixin_runtime_test.dart +++ b/tests/language_2/generic/constructor_mixin_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/constructor_mixin_test.dart b/tests/language_2/generic/constructor_mixin_test.dart index f79f865e5c9..1848573cb3b 100644 --- a/tests/language_2/generic/constructor_mixin_test.dart +++ b/tests/language_2/generic/constructor_mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that parameter types types are checked correctly in the face of // mixin application upon a generic constructor. diff --git a/tests/language_2/generic/creation_test.dart b/tests/language_2/generic/creation_test.dart index eb3c4ef24f9..40cb4b687c5 100644 --- a/tests/language_2/generic/creation_test.dart +++ b/tests/language_2/generic/creation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/generic/deep_test.dart b/tests/language_2/generic/deep_test.dart index f907cea4303..7ebf7ea6268 100644 --- a/tests/language_2/generic/deep_test.dart +++ b/tests/language_2/generic/deep_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test for deeply nested generic types. diff --git a/tests/language_2/generic/f_bounded_equality_test.dart b/tests/language_2/generic/f_bounded_equality_test.dart index 43fadfc19a2..6d33996199a 100644 --- a/tests/language_2/generic/f_bounded_equality_test.dart +++ b/tests/language_2/generic/f_bounded_equality_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Magnitude { diff --git a/tests/language_2/generic/f_bounded_quantification2_test.dart b/tests/language_2/generic/f_bounded_quantification2_test.dart index b55977b8e68..9c3dc43998d 100644 --- a/tests/language_2/generic/f_bounded_quantification2_test.dart +++ b/tests/language_2/generic/f_bounded_quantification2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for F-Bounded Quantification. Regression test for issue 9291. class Entities> implements EntitiesApi {} diff --git a/tests/language_2/generic/f_bounded_quantification3_test.dart b/tests/language_2/generic/f_bounded_quantification3_test.dart index 6c6f81c6ddb..e8a7da5337e 100644 --- a/tests/language_2/generic/f_bounded_quantification3_test.dart +++ b/tests/language_2/generic/f_bounded_quantification3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for F-Bounded Quantification. class FBound1, F2 extends FBound2> { diff --git a/tests/language_2/generic/f_bounded_quantification4_test.dart b/tests/language_2/generic/f_bounded_quantification4_test.dart index c3f7decde2a..154628639a3 100644 --- a/tests/language_2/generic/f_bounded_quantification4_test.dart +++ b/tests/language_2/generic/f_bounded_quantification4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for F-Bounded Quantification. import "package:expect/expect.dart"; diff --git a/tests/language_2/generic/f_bounded_quantification5_test.dart b/tests/language_2/generic/f_bounded_quantification5_test.dart index 412cc951dbc..3d68ea4c843 100644 --- a/tests/language_2/generic/f_bounded_quantification5_test.dart +++ b/tests/language_2/generic/f_bounded_quantification5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for F-Bounded Quantification. import "package:expect/expect.dart"; diff --git a/tests/language_2/generic/f_bounded_quantification_runtime_test.dart b/tests/language_2/generic/f_bounded_quantification_runtime_test.dart index 77a34669a76..b425012fc20 100644 --- a/tests/language_2/generic/f_bounded_quantification_runtime_test.dart +++ b/tests/language_2/generic/f_bounded_quantification_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/f_bounded_quantification_test.dart b/tests/language_2/generic/f_bounded_quantification_test.dart index 4247e7dd731..055e05acceb 100644 --- a/tests/language_2/generic/f_bounded_quantification_test.dart +++ b/tests/language_2/generic/f_bounded_quantification_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for F-Bounded Quantification. class FBound> {} diff --git a/tests/language_2/generic/field_mixin2_test.dart b/tests/language_2/generic/field_mixin2_test.dart index 99e2d926a8e..425dec93ffb 100644 --- a/tests/language_2/generic/field_mixin2_test.dart +++ b/tests/language_2/generic/field_mixin2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that generic types in mixins are handled. import 'package:expect/expect.dart'; diff --git a/tests/language_2/generic/field_mixin3_test.dart b/tests/language_2/generic/field_mixin3_test.dart index d8e78f3217f..f801244f604 100644 --- a/tests/language_2/generic/field_mixin3_test.dart +++ b/tests/language_2/generic/field_mixin3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that generic types in mixins are handled. import 'package:expect/expect.dart'; diff --git a/tests/language_2/generic/field_mixin4_test.dart b/tests/language_2/generic/field_mixin4_test.dart index 137fa1bd1ed..df4cfaa09c3 100644 --- a/tests/language_2/generic/field_mixin4_test.dart +++ b/tests/language_2/generic/field_mixin4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that generic types in mixins are handled. import 'package:expect/expect.dart'; diff --git a/tests/language_2/generic/field_mixin5_test.dart b/tests/language_2/generic/field_mixin5_test.dart index a684903b361..0a44e4ef3bc 100644 --- a/tests/language_2/generic/field_mixin5_test.dart +++ b/tests/language_2/generic/field_mixin5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that generic types in mixins are handled. import 'package:expect/expect.dart'; diff --git a/tests/language_2/generic/field_mixin6_runtime_test.dart b/tests/language_2/generic/field_mixin6_runtime_test.dart index 7fa746bd41e..24a6fdef41c 100644 --- a/tests/language_2/generic/field_mixin6_runtime_test.dart +++ b/tests/language_2/generic/field_mixin6_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/field_mixin6_test.dart b/tests/language_2/generic/field_mixin6_test.dart index 303df88354b..8bd5366309e 100644 --- a/tests/language_2/generic/field_mixin6_test.dart +++ b/tests/language_2/generic/field_mixin6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that generic types in mixins are handled. import 'package:expect/expect.dart'; diff --git a/tests/language_2/generic/field_mixin_test.dart b/tests/language_2/generic/field_mixin_test.dart index ea34a9e2d0e..c208d19f51a 100644 --- a/tests/language_2/generic/field_mixin_test.dart +++ b/tests/language_2/generic/field_mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that generic types in mixins are handled. import 'package:expect/expect.dart'; diff --git a/tests/language_2/generic/function_bounds_test.dart b/tests/language_2/generic/function_bounds_test.dart index f361f64cdb8..f5690efe54d 100644 --- a/tests/language_2/generic/function_bounds_test.dart +++ b/tests/language_2/generic/function_bounds_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--lazy-dispatchers // VMOptions=--no-lazy-dispatchers diff --git a/tests/language_2/generic/function_dcall_test.dart b/tests/language_2/generic/function_dcall_test.dart index 28fa0dc837a..bc73b00c07d 100644 --- a/tests/language_2/generic/function_dcall_test.dart +++ b/tests/language_2/generic/function_dcall_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void testCallsToGenericFn() { diff --git a/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_1_test.dart b/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_1_test.dart index 568b6c7eaf9..56e3910ee6a 100644 --- a/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_1_test.dart +++ b/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_2_test.dart b/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_2_test.dart index c3226fbb09c..9f93afa43a7 100644 --- a/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_2_test.dart +++ b/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_3_test.dart b/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_3_test.dart index fbdd29a3df7..9c861078e99 100644 --- a/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_3_test.dart +++ b/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_test.dart b/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_test.dart index 9749428e6d4..7bb124babd9 100644 --- a/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_test.dart +++ b/tests/language_2/generic/function_subtype_parametrized_typedef_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/function_subtype_parametrized_typedef_test.dart b/tests/language_2/generic/function_subtype_parametrized_typedef_test.dart index 10775ef0c15..1df3b9d0048 100644 --- a/tests/language_2/generic/function_subtype_parametrized_typedef_test.dart +++ b/tests/language_2/generic/function_subtype_parametrized_typedef_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test of the subtype relationship that includes parametrized typedefs and // invariant occurrences of types. diff --git a/tests/language_2/generic/function_subtype_runtime_1_test.dart b/tests/language_2/generic/function_subtype_runtime_1_test.dart index 1153373b8c0..a69ca1c14b6 100644 --- a/tests/language_2/generic/function_subtype_runtime_1_test.dart +++ b/tests/language_2/generic/function_subtype_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/function_subtype_runtime_2_test.dart b/tests/language_2/generic/function_subtype_runtime_2_test.dart index 44aeb532570..18f49106063 100644 --- a/tests/language_2/generic/function_subtype_runtime_2_test.dart +++ b/tests/language_2/generic/function_subtype_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/function_subtype_runtime_test.dart b/tests/language_2/generic/function_subtype_runtime_test.dart index eb7163ab7f8..9f45d65bedb 100644 --- a/tests/language_2/generic/function_subtype_runtime_test.dart +++ b/tests/language_2/generic/function_subtype_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/function_subtype_test.dart b/tests/language_2/generic/function_subtype_test.dart index d392f6da96b..35e543cc662 100644 --- a/tests/language_2/generic/function_subtype_test.dart +++ b/tests/language_2/generic/function_subtype_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Simple test of the subtype relationship on generic function types. typedef F1 = void Function(); diff --git a/tests/language_2/generic/function_type_as_type_argument_runtime_1_test.dart b/tests/language_2/generic/function_type_as_type_argument_runtime_1_test.dart index e0074f5af53..0feeeb1c448 100644 --- a/tests/language_2/generic/function_type_as_type_argument_runtime_1_test.dart +++ b/tests/language_2/generic/function_type_as_type_argument_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/function_type_as_type_argument_runtime_test.dart b/tests/language_2/generic/function_type_as_type_argument_runtime_test.dart index 0ad5dad0ba2..c5f49119921 100644 --- a/tests/language_2/generic/function_type_as_type_argument_runtime_test.dart +++ b/tests/language_2/generic/function_type_as_type_argument_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/function_type_as_type_argument_test.dart b/tests/language_2/generic/function_type_as_type_argument_test.dart index c59dce73f22..130d1b2fe3b 100644 --- a/tests/language_2/generic/function_type_as_type_argument_test.dart +++ b/tests/language_2/generic/function_type_as_type_argument_test.dart @@ -4,6 +4,8 @@ // // VMOptions=--reify-generic-functions +// @dart = 2.9 + import "package:expect/expect.dart"; T foo(T i) => i; diff --git a/tests/language_2/generic/function_typedef2_runtime_test.dart b/tests/language_2/generic/function_typedef2_runtime_test.dart index 195bc418dd4..9e39010f0c5 100644 --- a/tests/language_2/generic/function_typedef2_runtime_test.dart +++ b/tests/language_2/generic/function_typedef2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/function_typedef2_test.dart b/tests/language_2/generic/function_typedef2_test.dart index b7ae03a5e88..b82b29cbef0 100644 --- a/tests/language_2/generic/function_typedef2_test.dart +++ b/tests/language_2/generic/function_typedef2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for a function type test that cannot be eliminated at compile time. +// @dart = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/generic/function_typedef_test.dart b/tests/language_2/generic/function_typedef_test.dart index a61b0b618f6..1902ad1b9c6 100644 --- a/tests/language_2/generic/function_typedef_test.dart +++ b/tests/language_2/generic/function_typedef_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for a function type test that cannot be eliminated at compile time. +// @dart = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/generic/functions_test.dart b/tests/language_2/generic/functions_test.dart index 529a7e91dbb..16f674afdcb 100644 --- a/tests/language_2/generic/functions_test.dart +++ b/tests/language_2/generic/functions_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Dart test verifying that the parser can handle type parameterization of /// function declarations and function invocations. Variant of code from /// DEP #22, adjusted to use generic top level functions. diff --git a/tests/language_2/generic/generic2_test.dart b/tests/language_2/generic/generic2_test.dart index 00cf5e63dcb..362fdba4b3f 100644 --- a/tests/language_2/generic/generic2_test.dart +++ b/tests/language_2/generic/generic2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test is-tests with type variables. import "package:expect/expect.dart"; diff --git a/tests/language_2/generic/generic_test.dart b/tests/language_2/generic/generic_test.dart index 16742d5d693..9f4820e308f 100644 --- a/tests/language_2/generic/generic_test.dart +++ b/tests/language_2/generic/generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Dart test program testing generic type allocations and generic type tests. import "package:expect/expect.dart"; diff --git a/tests/language_2/generic/generics2_test.dart b/tests/language_2/generic/generics2_test.dart index a492e558c17..c2699dd203b 100644 --- a/tests/language_2/generic/generics2_test.dart +++ b/tests/language_2/generic/generics2_test.dart @@ -5,6 +5,8 @@ // // Dart test program testing generic type allocations and generic type tests. +// @dart = 2.9 + class A {} class Pair extends A /* i.e. extends A */ { diff --git a/tests/language_2/generic/generics3_test.dart b/tests/language_2/generic/generics3_test.dart index 0a25732ddc0..0d7f7759ba0 100644 --- a/tests/language_2/generic/generics3_test.dart +++ b/tests/language_2/generic/generics3_test.dart @@ -5,6 +5,8 @@ // Dart test program testing generic type allocations and generic type tests. // Regression test for issue 8710. +// @dart = 2.9 + class C1 {} class C2 {} diff --git a/tests/language_2/generic/generics_test.dart b/tests/language_2/generic/generics_test.dart index e6764348329..2d653098ddc 100644 --- a/tests/language_2/generic/generics_test.dart +++ b/tests/language_2/generic/generics_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for generic types. +// @dart = 2.9 + import "package:expect/expect.dart"; abstract class GenericsTest implements Map { diff --git a/tests/language_2/generic/inheritance_test.dart b/tests/language_2/generic/inheritance_test.dart index 404723a2548..a46f3f98195 100644 --- a/tests/language_2/generic/inheritance_test.dart +++ b/tests/language_2/generic/inheritance_test.dart @@ -5,6 +5,8 @@ // Test verifying that the type argument vector of subclasses are properly // initialized by the class finalizer. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/generic/instanceof.dart b/tests/language_2/generic/instanceof.dart index 9e25e5df3f5..a03f3cc189f 100644 --- a/tests/language_2/generic/instanceof.dart +++ b/tests/language_2/generic/instanceof.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test that instanceof works correctly with type variables. +// @dart = 2.9 + part of GenericInstanceofTest.dart; class Foo { diff --git a/tests/language_2/generic/instanceof2_test.dart b/tests/language_2/generic/instanceof2_test.dart index e8a28e35e31..36dbf286fa4 100644 --- a/tests/language_2/generic/instanceof2_test.dart +++ b/tests/language_2/generic/instanceof2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test that instanceof works correctly with type variables. +// @dart = 2.9 + import "package:expect/expect.dart"; // Test that partially typed generic instances are correctly constructed. diff --git a/tests/language_2/generic/instanceof3_test.dart b/tests/language_2/generic/instanceof3_test.dart index 28aa88214f1..3d896383a26 100644 --- a/tests/language_2/generic/instanceof3_test.dart +++ b/tests/language_2/generic/instanceof3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing the instanceof operation. +// @dart = 2.9 + import "package:expect/expect.dart"; // Tests involving generics. diff --git a/tests/language_2/generic/instanceof4_test.dart b/tests/language_2/generic/instanceof4_test.dart index 15896cb5985..fca5b802060 100644 --- a/tests/language_2/generic/instanceof4_test.dart +++ b/tests/language_2/generic/instanceof4_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test that instanceof works correctly with type variables. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/generic/instanceof5_test.dart b/tests/language_2/generic/instanceof5_test.dart index 5df4087d3ce..425011ad0fc 100644 --- a/tests/language_2/generic/instanceof5_test.dart +++ b/tests/language_2/generic/instanceof5_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test that instanceof works correctly with type variables. +// @dart = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/generic/instanceof_test.dart b/tests/language_2/generic/instanceof_test.dart index 46eda6417af..49f6f5b4f20 100644 --- a/tests/language_2/generic/instanceof_test.dart +++ b/tests/language_2/generic/instanceof_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test that instanceof works correctly with type variables. +// @dart = 2.9 + library GenericInstanceofTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/generic/instantiate_tearoff_after_contravariance_check_test.dart b/tests/language_2/generic/instantiate_tearoff_after_contravariance_check_test.dart index cb0fa33ea28..2ed97b2d827 100644 --- a/tests/language_2/generic/instantiate_tearoff_after_contravariance_check_test.dart +++ b/tests/language_2/generic/instantiate_tearoff_after_contravariance_check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/generic/instantiate_tearoff_of_call_test.dart b/tests/language_2/generic/instantiate_tearoff_of_call_test.dart index 665a2718016..55643beeef6 100644 --- a/tests/language_2/generic/instantiate_tearoff_of_call_test.dart +++ b/tests/language_2/generic/instantiate_tearoff_of_call_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; T f(T x) => x; diff --git a/tests/language_2/generic/instantiate_tearoff_test.dart b/tests/language_2/generic/instantiate_tearoff_test.dart index dc1afd4211f..ed27adbce28 100644 --- a/tests/language_2/generic/instantiate_tearoff_test.dart +++ b/tests/language_2/generic/instantiate_tearoff_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--lazy-dispatchers // VMOptions=--no-lazy-dispatchers diff --git a/tests/language_2/generic/instantiate_to_bounds_super_bounded_test.dart b/tests/language_2/generic/instantiate_to_bounds_super_bounded_test.dart index 7990480590c..3d8c9f9ca93 100644 --- a/tests/language_2/generic/instantiate_to_bounds_super_bounded_test.dart +++ b/tests/language_2/generic/instantiate_to_bounds_super_bounded_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that when a super-bounded type is produced by instantiate-to-bounds, // it's properly allowed or rejected depending on the context in which it's // used. diff --git a/tests/language_2/generic/instantiate_type_variable_runtime_test.dart b/tests/language_2/generic/instantiate_type_variable_runtime_test.dart index 973da615000..35274169f21 100644 --- a/tests/language_2/generic/instantiate_type_variable_runtime_test.dart +++ b/tests/language_2/generic/instantiate_type_variable_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/instantiate_type_variable_test.dart b/tests/language_2/generic/instantiate_type_variable_test.dart index 8eb9c7a2767..1ce7ae8cc36 100644 --- a/tests/language_2/generic/instantiate_type_variable_test.dart +++ b/tests/language_2/generic/instantiate_type_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that you cannot instantiate a type variable. class Foo { diff --git a/tests/language_2/generic/is_check_test.dart b/tests/language_2/generic/is_check_test.dart index 5cfa38a4773..505c70079fe 100644 --- a/tests/language_2/generic/is_check_test.dart +++ b/tests/language_2/generic/is_check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/generic/list_checked_test.dart b/tests/language_2/generic/list_checked_test.dart index 6dc688a265d..c4926894245 100644 --- a/tests/language_2/generic/list_checked_test.dart +++ b/tests/language_2/generic/list_checked_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/language_2/generic/local_functions_test.dart b/tests/language_2/generic/local_functions_test.dart index b587677faea..c05359c4fe5 100644 --- a/tests/language_2/generic/local_functions_test.dart +++ b/tests/language_2/generic/local_functions_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Dart test verifying that the parser can handle type parameterization of /// local function declarations, and declarations of function parameters. diff --git a/tests/language_2/generic/many_generic_instanceof_test.dart b/tests/language_2/generic/many_generic_instanceof_test.dart index ea9e1ebb172..917bd6e698e 100644 --- a/tests/language_2/generic/many_generic_instanceof_test.dart +++ b/tests/language_2/generic/many_generic_instanceof_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + library GenericInstanceofTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/generic/metadata_in_function_body_test.dart b/tests/language_2/generic/metadata_in_function_body_test.dart index e6be65f028d..1b7fe3ca39f 100644 --- a/tests/language_2/generic/metadata_in_function_body_test.dart +++ b/tests/language_2/generic/metadata_in_function_body_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that annotations inside function bodies cannot use type arguments, but // can be raw. diff --git a/tests/language_2/generic/metadata_runtime_1_test.dart b/tests/language_2/generic/metadata_runtime_1_test.dart index f411bd2ff0b..754aa7b38fb 100644 --- a/tests/language_2/generic/metadata_runtime_1_test.dart +++ b/tests/language_2/generic/metadata_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // Copyright (c) 2016, 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. diff --git a/tests/language_2/generic/metadata_runtime_test.dart b/tests/language_2/generic/metadata_runtime_test.dart index bee4c44e843..003da95366e 100644 --- a/tests/language_2/generic/metadata_runtime_test.dart +++ b/tests/language_2/generic/metadata_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // Copyright (c) 2016, 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. diff --git a/tests/language_2/generic/metadata_test.dart b/tests/language_2/generic/metadata_test.dart index a6a5ad8872c..18d6b86112b 100644 --- a/tests/language_2/generic/metadata_test.dart +++ b/tests/language_2/generic/metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that annotations cannot use type arguments, but can be raw. class C { diff --git a/tests/language_2/generic/method_types_test.dart b/tests/language_2/generic/method_types_test.dart index 8fc355c9c39..aeafb7740d2 100644 --- a/tests/language_2/generic/method_types_test.dart +++ b/tests/language_2/generic/method_types_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; typedef Convert1 = O Function(I input); diff --git a/tests/language_2/generic/mock_test.dart b/tests/language_2/generic/mock_test.dart index f30e43e2696..28289337d10 100644 --- a/tests/language_2/generic/mock_test.dart +++ b/tests/language_2/generic/mock_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for https://github.com/dart-lang/sdk/issues/38384 class Built {} diff --git a/tests/language_2/generic/native_test.dart b/tests/language_2/generic/native_test.dart index 80eb8fef55a..d3fc09548f7 100644 --- a/tests/language_2/generic/native_test.dart +++ b/tests/language_2/generic/native_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test is-tests with type variables on native subclasses. import "package:expect/expect.dart"; diff --git a/tests/language_2/generic/no_such_method_dispatcher_test.dart b/tests/language_2/generic/no_such_method_dispatcher_test.dart index 336e7b9d206..aa0fce9fdd7 100644 --- a/tests/language_2/generic/no_such_method_dispatcher_test.dart +++ b/tests/language_2/generic/no_such_method_dispatcher_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--reify-generic-functions --optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test that noSuchMethod dispatching and auto-closurization work correctly diff --git a/tests/language_2/generic/object_type_test.dart b/tests/language_2/generic/object_type_test.dart index 4b1733a63a3..0af0abfe7b4 100644 --- a/tests/language_2/generic/object_type_test.dart +++ b/tests/language_2/generic/object_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Tester { diff --git a/tests/language_2/generic/parameterized_extends_test.dart b/tests/language_2/generic/parameterized_extends_test.dart index 0d85fe92e00..a333de6f994 100644 --- a/tests/language_2/generic/parameterized_extends_test.dart +++ b/tests/language_2/generic/parameterized_extends_test.dart @@ -4,6 +4,8 @@ // // Test verifying that generic extends are processed correctly. +// @dart = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/generic/recursive_generic_test.dart b/tests/language_2/generic/recursive_generic_test.dart index 6f56104d5e9..28d551596cb 100644 --- a/tests/language_2/generic/recursive_generic_test.dart +++ b/tests/language_2/generic/recursive_generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class S> { diff --git a/tests/language_2/generic/reify_typevar_runtime_1_test.dart b/tests/language_2/generic/reify_typevar_runtime_1_test.dart index d2f11b2c6d7..2eebebca345 100644 --- a/tests/language_2/generic/reify_typevar_runtime_1_test.dart +++ b/tests/language_2/generic/reify_typevar_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/reify_typevar_runtime_2_test.dart b/tests/language_2/generic/reify_typevar_runtime_2_test.dart index 568cc9347ff..5b37d7f7dc4 100644 --- a/tests/language_2/generic/reify_typevar_runtime_2_test.dart +++ b/tests/language_2/generic/reify_typevar_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/reify_typevar_runtime_3_test.dart b/tests/language_2/generic/reify_typevar_runtime_3_test.dart index 712db2ef7d6..3908383423a 100644 --- a/tests/language_2/generic/reify_typevar_runtime_3_test.dart +++ b/tests/language_2/generic/reify_typevar_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/reify_typevar_runtime_test.dart b/tests/language_2/generic/reify_typevar_runtime_test.dart index 02131f028b9..9b3c94b51a2 100644 --- a/tests/language_2/generic/reify_typevar_runtime_test.dart +++ b/tests/language_2/generic/reify_typevar_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/reify_typevar_static_test.dart b/tests/language_2/generic/reify_typevar_static_test.dart index c589aff3d02..338e2fbeafc 100644 --- a/tests/language_2/generic/reify_typevar_static_test.dart +++ b/tests/language_2/generic/reify_typevar_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/generic/self_reference_test.dart b/tests/language_2/generic/self_reference_test.dart index e5e60e873fe..5ffd2eb8ea0 100644 --- a/tests/language_2/generic/self_reference_test.dart +++ b/tests/language_2/generic/self_reference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Bar {} diff --git a/tests/language_2/generic/sends_test.dart b/tests/language_2/generic/sends_test.dart index 57befeec731..ddfd2410ee3 100644 --- a/tests/language_2/generic/sends_test.dart +++ b/tests/language_2/generic/sends_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Dart test verifying that the parser can handle certain cases where /// grammar ambiguity is resolved in favor of generic sends, not /// relational expressions. diff --git a/tests/language_2/generic/sync_star_test.dart b/tests/language_2/generic/sync_star_test.dart index cf61d9220fe..088ee58211e 100644 --- a/tests/language_2/generic/sync_star_test.dart +++ b/tests/language_2/generic/sync_star_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; Iterable foo(T x) sync* { diff --git a/tests/language_2/generic/syntax_test.dart b/tests/language_2/generic/syntax_test.dart index 7ccc03974f4..99ff230ebb7 100644 --- a/tests/language_2/generic/syntax_test.dart +++ b/tests/language_2/generic/syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test verifying that the parser does not confuse parameterized types with diff --git a/tests/language_2/generic/tearoff_test.dart b/tests/language_2/generic/tearoff_test.dart index 06c863fbca6..e633ffb4f1b 100644 --- a/tests/language_2/generic/tearoff_test.dart +++ b/tests/language_2/generic/tearoff_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:math' as math; import 'dart:math' show min; // <-- generic: (T, T) -> T import 'package:expect/expect.dart'; diff --git a/tests/language_2/generic/type_argument_in_super_type_test.dart b/tests/language_2/generic/type_argument_in_super_type_test.dart index 1d9a2a0a286..8007470471a 100644 --- a/tests/language_2/generic/type_argument_in_super_type_test.dart +++ b/tests/language_2/generic/type_argument_in_super_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C {} diff --git a/tests/language_2/generic/type_argument_substitution_test.dart b/tests/language_2/generic/type_argument_substitution_test.dart index cca72f01f67..946e56139c5 100644 --- a/tests/language_2/generic/type_argument_substitution_test.dart +++ b/tests/language_2/generic/type_argument_substitution_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that substitutions are emitted for classes that are only used as // type arguments. diff --git a/tests/language_2/generic/type_parameter_literal_test.dart b/tests/language_2/generic/type_parameter_literal_test.dart index 452b535a1ef..7aa7f9218cf 100644 --- a/tests/language_2/generic/type_parameter_literal_test.dart +++ b/tests/language_2/generic/type_parameter_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test type parameter literal expressions. diff --git a/tests/language_2/generic/type_parameter_test.dart b/tests/language_2/generic/type_parameter_test.dart index 1b0e8801d07..25f06e5d606 100644 --- a/tests/language_2/generic/type_parameter_test.dart +++ b/tests/language_2/generic/type_parameter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/generic/typedef_test.dart b/tests/language_2/generic/typedef_test.dart index 09dce80266b..7622f437358 100644 --- a/tests/language_2/generic/typedef_test.dart +++ b/tests/language_2/generic/typedef_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; // Test runtime behavior of generic function typedefs: diff --git a/tests/language_2/generic/wrong_number_type_arguments_runtime_test.dart b/tests/language_2/generic/wrong_number_type_arguments_runtime_test.dart index 3a8f42cfcc9..9884079f365 100644 --- a/tests/language_2/generic/wrong_number_type_arguments_runtime_test.dart +++ b/tests/language_2/generic/wrong_number_type_arguments_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic/wrong_number_type_arguments_test.dart b/tests/language_2/generic/wrong_number_type_arguments_test.dart index 53e962798d6..bc9b1e91885 100644 --- a/tests/language_2/generic/wrong_number_type_arguments_test.dart +++ b/tests/language_2/generic/wrong_number_type_arguments_test.dart @@ -2,13 +2,15 @@ // 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 = 2.9 + // Map takes 2 type arguments. Map foo; -// [error line 6, column 1, length 11] +// [error line 8, column 1, length 11] // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_TYPE_ARGUMENTS // [cfe] Expected 2 type arguments. Map baz; -// [error line 10, column 1, length 11] +// [error line 12, column 1, length 11] // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_TYPE_ARGUMENTS // [cfe] Expected 2 type arguments. diff --git a/tests/language_2/generic_methods/bounds_test.dart b/tests/language_2/generic_methods/bounds_test.dart index 365d0efc030..faadde604c6 100644 --- a/tests/language_2/generic_methods/bounds_test.dart +++ b/tests/language_2/generic_methods/bounds_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a dynamic call to a generic function checks the type argument // against its bound. diff --git a/tests/language_2/generic_methods/closure_test.dart b/tests/language_2/generic_methods/closure_test.dart index 131105dc835..c13cd1dad63 100644 --- a/tests/language_2/generic_methods/closure_test.dart +++ b/tests/language_2/generic_methods/closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a generic closure is correctly constructed. library generic_methods_closure_test; diff --git a/tests/language_2/generic_methods/dynamic_test.dart b/tests/language_2/generic_methods/dynamic_test.dart index 6b92dc3abce..68033f50b44 100644 --- a/tests/language_2/generic_methods/dynamic_test.dart +++ b/tests/language_2/generic_methods/dynamic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that if the type of a parameter of a generic method is a type parameter, // the type of the passed argument is checked (01) at compile time // if the receiver is given via an interface-type variable, and (02) at runtime diff --git a/tests/language_2/generic_methods/function_type_test.dart b/tests/language_2/generic_methods/function_type_test.dart index 4941c43f52b..e8f5ad7fdd8 100644 --- a/tests/language_2/generic_methods/function_type_test.dart +++ b/tests/language_2/generic_methods/function_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Dart test on the usage of method type arguments in a function typed /// parameter declaration. diff --git a/tests/language_2/generic_methods/generic_class_tearoff_test.dart b/tests/language_2/generic_methods/generic_class_tearoff_test.dart index d60d300ac1d..57b923c4210 100644 --- a/tests/language_2/generic_methods/generic_class_tearoff_test.dart +++ b/tests/language_2/generic_methods/generic_class_tearoff_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a torn off method of a generic class is not a generic method, // and that it is correctly specialized. diff --git a/tests/language_2/generic_methods/generic_function_parameter_test.dart b/tests/language_2/generic_methods/generic_function_parameter_test.dart index 3c4c2c73904..99fcff3e190 100644 --- a/tests/language_2/generic_methods/generic_function_parameter_test.dart +++ b/tests/language_2/generic_methods/generic_function_parameter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/generic_methods/generic_function_result_runtime_test.dart b/tests/language_2/generic_methods/generic_function_result_runtime_test.dart index e3829650d23..8eb8217af29 100644 --- a/tests/language_2/generic_methods/generic_function_result_runtime_test.dart +++ b/tests/language_2/generic_methods/generic_function_result_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/generic_methods/generic_function_result_test.dart b/tests/language_2/generic_methods/generic_function_result_test.dart index 41d474213e4..9e24263e02c 100644 --- a/tests/language_2/generic_methods/generic_function_result_test.dart +++ b/tests/language_2/generic_methods/generic_function_result_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that function type parameter S can be resolved in bar's result type. // Verify that generic function types are not allowed as type arguments. diff --git a/tests/language_2/generic_methods/generic_methods_test.dart b/tests/language_2/generic_methods/generic_methods_test.dart index 3e2ae8bcb58..f6646560b4e 100644 --- a/tests/language_2/generic_methods/generic_methods_test.dart +++ b/tests/language_2/generic_methods/generic_methods_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Dart test verifying that the parser can handle type parameterization of /// method declarations and method invocations. Slightly adjusted version of /// code from DEP #22. diff --git a/tests/language_2/generic_methods/local_variable_declaration_test.dart b/tests/language_2/generic_methods/local_variable_declaration_test.dart index 46b22dfbdef..d2f98418861 100644 --- a/tests/language_2/generic_methods/local_variable_declaration_test.dart +++ b/tests/language_2/generic_methods/local_variable_declaration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a type variable can be used to declare local variables, and that // these local variables are of correct type. diff --git a/tests/language_2/generic_methods/named_parameters_test.dart b/tests/language_2/generic_methods/named_parameters_test.dart index 08b4a636140..7a519550ea8 100644 --- a/tests/language_2/generic_methods/named_parameters_test.dart +++ b/tests/language_2/generic_methods/named_parameters_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that generic methods with named parameters are of correct type. library generic_methods_named_parameters_test; diff --git a/tests/language_2/generic_methods/new_test.dart b/tests/language_2/generic_methods/new_test.dart index 31d62ed46a4..e2bcc0978cf 100644 --- a/tests/language_2/generic_methods/new_test.dart +++ b/tests/language_2/generic_methods/new_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2016, 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 = 2.9 import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/generic_methods/optional_parameters_test.dart b/tests/language_2/generic_methods/optional_parameters_test.dart index 2718d40ff7f..f6250b79be6 100644 --- a/tests/language_2/generic_methods/optional_parameters_test.dart +++ b/tests/language_2/generic_methods/optional_parameters_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that generic methods with optional parameters are of correct type. library generic_methods_optional_parameters_test; diff --git a/tests/language_2/generic_methods/overriding_test.dart b/tests/language_2/generic_methods/overriding_test.dart index 2ef1def02b8..ffa4f5080fe 100644 --- a/tests/language_2/generic_methods/overriding_test.dart +++ b/tests/language_2/generic_methods/overriding_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that generic methods can be overloaded (a) with widened type bounds, and // (b) using the bound as the type of the parameter in the overloaded method. diff --git a/tests/language_2/generic_methods/recursive_bound_test.dart b/tests/language_2/generic_methods/recursive_bound_test.dart index f79ce2050e5..a6ab1556b6f 100644 --- a/tests/language_2/generic_methods/recursive_bound_test.dart +++ b/tests/language_2/generic_methods/recursive_bound_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that F-bounded quantification works for generic methods, and that types // that are passed to generic methods in dynamic calls are checked for being // recursively defined. diff --git a/tests/language_2/generic_methods/reuse_type_variables_test.dart b/tests/language_2/generic_methods/reuse_type_variables_test.dart index c885116fedb..aca75f960f9 100644 --- a/tests/language_2/generic_methods/reuse_type_variables_test.dart +++ b/tests/language_2/generic_methods/reuse_type_variables_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that type parameter can be passed as a type argument in a definition of // a local variable, and that this local variable is correctly constructed. diff --git a/tests/language_2/generic_methods/shadowing_test.dart b/tests/language_2/generic_methods/shadowing_test.dart index ae6a69d1cb5..ea975dce9e7 100644 --- a/tests/language_2/generic_methods/shadowing_test.dart +++ b/tests/language_2/generic_methods/shadowing_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that type parameters in generic methods can be shadowed. library generic_methods_shadowing_test; diff --git a/tests/language_2/generic_methods/simple_as_expression_test.dart b/tests/language_2/generic_methods/simple_as_expression_test.dart index d6b3c48c214..947d02fd60f 100644 --- a/tests/language_2/generic_methods/simple_as_expression_test.dart +++ b/tests/language_2/generic_methods/simple_as_expression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that type parameters in generic methods can be used in as-expressions. library generic_methods_simple_as_expression_test; diff --git a/tests/language_2/generic_methods/simple_is_expression_test.dart b/tests/language_2/generic_methods/simple_is_expression_test.dart index 5e9dced7faa..bf3e5839f04 100644 --- a/tests/language_2/generic_methods/simple_is_expression_test.dart +++ b/tests/language_2/generic_methods/simple_is_expression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that type parameters in generic methods can be used in is-expressions. library generic_methods_simple_is_expression_test; diff --git a/tests/language_2/generic_methods/tearoff_specialization_test.dart b/tests/language_2/generic_methods/tearoff_specialization_test.dart index 5c032977600..db4e2cfb051 100644 --- a/tests/language_2/generic_methods/tearoff_specialization_test.dart +++ b/tests/language_2/generic_methods/tearoff_specialization_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that generic methods can be specialized after being torn off, and that // their specialized versions are correctly constructed. diff --git a/tests/language_2/generic_methods/type_expression_test.dart b/tests/language_2/generic_methods/type_expression_test.dart index e8097043ae6..b39a6735fbc 100644 --- a/tests/language_2/generic_methods/type_expression_test.dart +++ b/tests/language_2/generic_methods/type_expression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Dart test on the usage of method type arguments in type expressions. import "package:expect/expect.dart"; diff --git a/tests/language_2/generic_methods/unused_parameter_test.dart b/tests/language_2/generic_methods/unused_parameter_test.dart index c0c26411895..f39af16ca53 100644 --- a/tests/language_2/generic_methods/unused_parameter_test.dart +++ b/tests/language_2/generic_methods/unused_parameter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that generic methods with unused parameters aren't treated as // non-generic methods, but can be specialized as such. diff --git a/tests/language_2/getter/closure_execution_order_test.dart b/tests/language_2/getter/closure_execution_order_test.dart index 0b5196ba854..9eebed680a2 100644 --- a/tests/language_2/getter/closure_execution_order_test.dart +++ b/tests/language_2/getter/closure_execution_order_test.dart @@ -5,6 +5,8 @@ // Test that a getter is evaluated after the arguments, when a getter is // for invoking a method. See chapter 'Method Invocation' in specification. +// @dart = 2.9 + import "package:expect/expect.dart"; var counter = 0; diff --git a/tests/language_2/getter/declaration_test.dart b/tests/language_2/getter/declaration_test.dart index 6ccc1372c64..eeab6b7ce57 100644 --- a/tests/language_2/getter/declaration_test.dart +++ b/tests/language_2/getter/declaration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test that a getter takes no parameters. get m(extraParam) { // ^ diff --git a/tests/language_2/getter/no_setter2_runtime_test.dart b/tests/language_2/getter/no_setter2_runtime_test.dart index 3e7567b5554..b7724cba903 100644 --- a/tests/language_2/getter/no_setter2_runtime_test.dart +++ b/tests/language_2/getter/no_setter2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/getter/no_setter2_test.dart b/tests/language_2/getter/no_setter2_test.dart index 22ad07ef3c8..42af45955df 100644 --- a/tests/language_2/getter/no_setter2_test.dart +++ b/tests/language_2/getter/no_setter2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Verifies behavior with a static getter, but no field and no setter. +// @dart = 2.9 + import "package:expect/expect.dart"; class Example { diff --git a/tests/language_2/getter/no_setter_runtime_test.dart b/tests/language_2/getter/no_setter_runtime_test.dart index 3e7567b5554..b7724cba903 100644 --- a/tests/language_2/getter/no_setter_runtime_test.dart +++ b/tests/language_2/getter/no_setter_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/getter/no_setter_test.dart b/tests/language_2/getter/no_setter_test.dart index 260b5fcfc49..02bc833b749 100644 --- a/tests/language_2/getter/no_setter_test.dart +++ b/tests/language_2/getter/no_setter_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Verifies behavior with a static getter, but no field and no setter. +// @dart = 2.9 + import "package:expect/expect.dart"; class Example { diff --git a/tests/language_2/getter/override2_test.dart b/tests/language_2/getter/override2_test.dart index 95519a28315..548f4f93d8e 100644 --- a/tests/language_2/getter/override2_test.dart +++ b/tests/language_2/getter/override2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we report a compile-time error when an instance getter conflicts // with an inherited instance method of the same name. diff --git a/tests/language_2/getter/override3_test.dart b/tests/language_2/getter/override3_test.dart index c17b27e7fd1..787ab7a717d 100644 --- a/tests/language_2/getter/override3_test.dart +++ b/tests/language_2/getter/override3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that a getter in a subclass does not shadow the setter in the // superclass. import "package:expect/expect.dart"; diff --git a/tests/language_2/getter/override_test.dart b/tests/language_2/getter/override_test.dart index 8e17d337a13..713e5d9c31b 100644 --- a/tests/language_2/getter/override_test.dart +++ b/tests/language_2/getter/override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we report a compile-time error when a static getter conflicts with // an inherited instance member of the same name. diff --git a/tests/language_2/getter/parameters_runtime_test.dart b/tests/language_2/getter/parameters_runtime_test.dart index f61f2fcea3d..4d9a128871d 100644 --- a/tests/language_2/getter/parameters_runtime_test.dart +++ b/tests/language_2/getter/parameters_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/getter/parameters_test.dart b/tests/language_2/getter/parameters_test.dart index 0ff6eacc9bb..12ce7e863f3 100644 --- a/tests/language_2/getter/parameters_test.dart +++ b/tests/language_2/getter/parameters_test.dart @@ -4,28 +4,30 @@ // // Test that a getter has no parameters. +// @dart = 2.9 + get f1 => null; get f2 () -// [error line 9, column 1, length 1] +// [error line 11, column 1, length 1] // [analyzer] SYNTACTIC_ERROR.GETTER_WITH_PARAMETERS // [cfe] A getter can't have formal parameters. => null; get f3 (arg) -// [error line 15, column 1, length 1] +// [error line 17, column 1, length 1] // [analyzer] SYNTACTIC_ERROR.GETTER_WITH_PARAMETERS // [cfe] A getter can't have formal parameters. => null; get f4 ([arg]) -// [error line 21, column 1, length 1] +// [error line 23, column 1, length 1] // [analyzer] SYNTACTIC_ERROR.GETTER_WITH_PARAMETERS // [cfe] A getter can't have formal parameters. => null; get f5 ({arg}) -// [error line 27, column 1, length 1] +// [error line 29, column 1, length 1] // [analyzer] SYNTACTIC_ERROR.GETTER_WITH_PARAMETERS // [cfe] A getter can't have formal parameters. => null; diff --git a/tests/language_2/getter/setter2_runtime_test.dart b/tests/language_2/getter/setter2_runtime_test.dart index 85cbfa03293..5debd8f5e36 100644 --- a/tests/language_2/getter/setter2_runtime_test.dart +++ b/tests/language_2/getter/setter2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/getter/setter2_test.dart b/tests/language_2/getter/setter2_test.dart index ad8700b899c..5fd824826e1 100644 --- a/tests/language_2/getter/setter2_test.dart +++ b/tests/language_2/getter/setter2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests classes with getters and setters that do not have the same type. diff --git a/tests/language_2/getter/setter_getters_setters_test.dart b/tests/language_2/getter/setter_getters_setters_test.dart index 2524aa5c5b2..453ab5fd8d3 100644 --- a/tests/language_2/getter/setter_getters_setters_test.dart +++ b/tests/language_2/getter/setter_getters_setters_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class GettersSettersTest { diff --git a/tests/language_2/getter/setter_in_lib.dart b/tests/language_2/getter/setter_in_lib.dart index 9761ab27c2e..f19c973d010 100644 --- a/tests/language_2/getter/setter_in_lib.dart +++ b/tests/language_2/getter/setter_in_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library GetterSetterInLib; get foo => 42; diff --git a/tests/language_2/getter/setter_in_lib2.dart b/tests/language_2/getter/setter_in_lib2.dart index 46a23b31937..e3b587975c8 100644 --- a/tests/language_2/getter/setter_in_lib2.dart +++ b/tests/language_2/getter/setter_in_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library GetterSetterInLib2; set bar(a) {} diff --git a/tests/language_2/getter/setter_in_lib3.dart b/tests/language_2/getter/setter_in_lib3.dart index 2d05421a1a2..3d1270e2d1f 100644 --- a/tests/language_2/getter/setter_in_lib3.dart +++ b/tests/language_2/getter/setter_in_lib3.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library GetterSetterInLib3; var _f = 33; diff --git a/tests/language_2/getter/setter_in_lib_test.dart b/tests/language_2/getter/setter_in_lib_test.dart index f9803e0bc9a..1ac76cbb717 100644 --- a/tests/language_2/getter/setter_in_lib_test.dart +++ b/tests/language_2/getter/setter_in_lib_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library GetterSetterInLibTest; import "package:expect/expect.dart"; diff --git a/tests/language_2/getter/setter_interceptor_test.dart b/tests/language_2/getter/setter_interceptor_test.dart index f0ee9727c21..1b165eb4e02 100644 --- a/tests/language_2/getter/setter_interceptor_test.dart +++ b/tests/language_2/getter/setter_interceptor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/getter/setter_order_test.dart b/tests/language_2/getter/setter_order_test.dart index 0050b7eb04e..8f3ff6bb87c 100644 --- a/tests/language_2/getter/setter_order_test.dart +++ b/tests/language_2/getter/setter_order_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for the evaluation order of getters and setters. import 'package:expect/expect.dart'; diff --git a/tests/language_2/getter/setter_type2_test.dart b/tests/language_2/getter/setter_type2_test.dart index 33bf18bb49b..2eb953ae13b 100644 --- a/tests/language_2/getter/setter_type2_test.dart +++ b/tests/language_2/getter/setter_type2_test.dart @@ -4,6 +4,8 @@ // Getters and setters can have different types, and it is not a warning if the // two types are assignable. +// @dart = 2.9 + import "package:expect/expect.dart"; int bar = 499; diff --git a/tests/language_2/getter/setter_type3_test.dart b/tests/language_2/getter/setter_type3_test.dart index 3fa6ac6e3aa..0637d171d7c 100644 --- a/tests/language_2/getter/setter_type3_test.dart +++ b/tests/language_2/getter/setter_type3_test.dart @@ -4,6 +4,8 @@ // Getters and setters can have different types, and it is not a warning if the // two types are assignable. +// @dart = 2.9 + // [NNBD non-migrated]: NNBD requires a getter's return type to be a subtype of // the corresponding setter's parameter type. So this test would be a static // error, and hence there is no corresponding NNBD version. diff --git a/tests/language_2/getter/setter_type_runtime_test.dart b/tests/language_2/getter/setter_type_runtime_test.dart index 150f1737c4c..4348bff648b 100644 --- a/tests/language_2/getter/setter_type_runtime_test.dart +++ b/tests/language_2/getter/setter_type_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/getter/setter_type_test.dart b/tests/language_2/getter/setter_type_test.dart index c813ca84e9f..118366b7583 100644 --- a/tests/language_2/getter/setter_type_test.dart +++ b/tests/language_2/getter/setter_type_test.dart @@ -4,6 +4,8 @@ // Getters and setters can have different types, but it is a warning if the // two types are not assignable. +// @dart = 2.9 + import "package:expect/expect.dart"; int bar = 499; diff --git a/tests/language_2/getter/syntax_get_set_syntax_test.dart b/tests/language_2/getter/syntax_get_set_syntax_test.dart index a275ea87ee7..31bcf4e8058 100644 --- a/tests/language_2/getter/syntax_get_set_syntax_test.dart +++ b/tests/language_2/getter/syntax_get_set_syntax_test.dart @@ -2,27 +2,26 @@ // 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 = 2.9 + var get; var get a; -// [error line 6, column 1, length 3] +// [error line 8, column 1, length 3] // [analyzer] SYNTACTIC_ERROR.VAR_RETURN_TYPE // [cfe] The return type can't be 'var'. // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_BODY // [cfe] Expected a function body or '=>'. var get b, c; -// [error line 13, column 1, length 3] +// [error line 15, column 1, length 3] // [analyzer] SYNTACTIC_ERROR.VAR_RETURN_TYPE // [cfe] The return type can't be 'var'. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_EXECUTABLE -// [cfe] Expected '{' before this. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_BODY +// [cfe] Expected '{' before this. // [cfe] Expected a declaration, but got ','. -// ^ // [cfe] Expected a function body, but got ','. -// ^ // [cfe] Expected a function body, but got '{'. // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_CONST_FINAL_VAR_OR_TYPE @@ -30,35 +29,30 @@ var get b, c; var set; var set d; -// [error line 32, column 1, length 3] +// [error line 31, column 1, length 3] // [analyzer] SYNTACTIC_ERROR.VAR_RETURN_TYPE // [cfe] The return type can't be 'var'. // ^ // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER -// [cfe] A function declaration needs an explicit list of parameters. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_PARAMETERS +// [cfe] A function declaration needs an explicit list of parameters. // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_BODY // [cfe] A setter should have exactly one formal parameter. -// ^ // [cfe] Expected a function body or '=>'. var set e, f; -// [error line 46, column 1, length 3] +// [error line 43, column 1, length 3] // [analyzer] SYNTACTIC_ERROR.VAR_RETURN_TYPE // [cfe] The return type can't be 'var'. // ^ // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER -// [cfe] A function declaration needs an explicit list of parameters. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_PARAMETERS +// [cfe] A function declaration needs an explicit list of parameters. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_EXECUTABLE -// [cfe] A setter should have exactly one formal parameter. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_BODY +// [cfe] A setter should have exactly one formal parameter. // [cfe] Expected '{' before this. -// ^ // [cfe] Expected a declaration, but got ','. // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_CONST_FINAL_VAR_OR_TYPE @@ -80,9 +74,8 @@ class C0 { // [cfe] The return type can't be 'var'. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_CLASS_MEMBER -// [cfe] Expected '{' before this. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_BODY +// [cfe] Expected '{' before this. // [cfe] Expected a class member, but got ','. // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_CONST_FINAL_VAR_OR_TYPE @@ -97,9 +90,8 @@ class C0 { // [analyzer] COMPILE_TIME_ERROR.CONCRETE_CLASS_WITH_ABSTRACT_MEMBER // ^ // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER -// [cfe] A method declaration needs an explicit list of parameters. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_METHOD_PARAMETERS +// [cfe] A method declaration needs an explicit list of parameters. // ^ // [cfe] A setter should have exactly one formal parameter. var set e, f; @@ -108,16 +100,13 @@ class C0 { // [cfe] The return type can't be 'var'. // ^ // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER -// [cfe] A method declaration needs an explicit list of parameters. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_METHOD_PARAMETERS +// [cfe] A method declaration needs an explicit list of parameters. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_CLASS_MEMBER -// [cfe] A setter should have exactly one formal parameter. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_BODY +// [cfe] A setter should have exactly one formal parameter. // [cfe] Expected '{' before this. -// ^ // [cfe] Expected a class member, but got ','. // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_CONST_FINAL_VAR_OR_TYPE @@ -130,9 +119,8 @@ class C1 { List get b, c; // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_CLASS_MEMBER - // [cfe] Expected '{' before this. - // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_BODY + // [cfe] Expected '{' before this. // [cfe] Expected a class member, but got ','. // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_CONST_FINAL_VAR_OR_TYPE @@ -142,14 +130,13 @@ class C1 { List set d; //^^^^ // [analyzer] COMPILE_TIME_ERROR.NON_VOID_RETURN_FOR_SETTER -// [cfe] The return type of the setter must be 'void' or absent. //^^^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.CONCRETE_CLASS_WITH_ABSTRACT_MEMBER +// [cfe] The return type of the setter must be 'void' or absent. // ^ // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER -// [cfe] A method declaration needs an explicit list of parameters. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_METHOD_PARAMETERS +// [cfe] A method declaration needs an explicit list of parameters. // ^ // [cfe] A setter should have exactly one formal parameter. List set e, f; @@ -158,16 +145,13 @@ class C1 { // [cfe] The return type of the setter must be 'void' or absent. // ^ // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER -// [cfe] A method declaration needs an explicit list of parameters. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_METHOD_PARAMETERS +// [cfe] A method declaration needs an explicit list of parameters. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_CLASS_MEMBER -// [cfe] A setter should have exactly one formal parameter. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_BODY +// [cfe] A setter should have exactly one formal parameter. // [cfe] Expected '{' before this. -// ^ // [cfe] Expected a class member, but got ','. // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_CONST_FINAL_VAR_OR_TYPE @@ -180,9 +164,8 @@ class C2 { List get b, c; // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_CLASS_MEMBER - // [cfe] Expected '{' before this. - // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_BODY + // [cfe] Expected '{' before this. // [cfe] Expected a class member, but got ','. // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_CONST_FINAL_VAR_OR_TYPE @@ -192,14 +175,13 @@ class C2 { List set d; //^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.NON_VOID_RETURN_FOR_SETTER -// [cfe] The return type of the setter must be 'void' or absent. //^^^^^^^^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.CONCRETE_CLASS_WITH_ABSTRACT_MEMBER +// [cfe] The return type of the setter must be 'void' or absent. // ^ // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER -// [cfe] A method declaration needs an explicit list of parameters. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_METHOD_PARAMETERS +// [cfe] A method declaration needs an explicit list of parameters. // ^ // [cfe] A setter should have exactly one formal parameter. List set e, f; @@ -208,16 +190,13 @@ class C2 { // [cfe] The return type of the setter must be 'void' or absent. // ^ // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_PARAMETERS_FOR_SETTER -// [cfe] A method declaration needs an explicit list of parameters. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_METHOD_PARAMETERS +// [cfe] A method declaration needs an explicit list of parameters. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_CLASS_MEMBER -// [cfe] A setter should have exactly one formal parameter. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_BODY +// [cfe] A setter should have exactly one formal parameter. // [cfe] Expected '{' before this. -// ^ // [cfe] Expected a class member, but got ','. // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_CONST_FINAL_VAR_OR_TYPE diff --git a/tests/language_2/getter/syntax_runtime_1_test.dart b/tests/language_2/getter/syntax_runtime_1_test.dart index c64ac207496..0fd7fcc9d74 100644 --- a/tests/language_2/getter/syntax_runtime_1_test.dart +++ b/tests/language_2/getter/syntax_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/getter/syntax_runtime_test.dart b/tests/language_2/getter/syntax_runtime_test.dart index baf143713b6..abd575ce382 100644 --- a/tests/language_2/getter/syntax_runtime_test.dart +++ b/tests/language_2/getter/syntax_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/getter/unbound_test.dart b/tests/language_2/getter/unbound_test.dart index 8eb2120995a..eb4d297c551 100644 --- a/tests/language_2/getter/unbound_test.dart +++ b/tests/language_2/getter/unbound_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Verify that an unbound getter is properly resolved at runtime. +// @dart = 2.9 + class A { const A(); foo() { diff --git a/tests/language_2/identifier/built_in_identifier_test.dart b/tests/language_2/identifier/built_in_identifier_test.dart index 50cc344769f..a19d8934fea 100644 --- a/tests/language_2/identifier/built_in_identifier_test.dart +++ b/tests/language_2/identifier/built_in_identifier_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check that we can use pseudo keywords as names in function level code. +// @dart = 2.9 + import "package:expect/expect.dart"; class PseudoKWTest { diff --git a/tests/language_2/identifier/built_in_illegal_runtime_test.dart b/tests/language_2/identifier/built_in_illegal_runtime_test.dart index ab96118c1ff..667aa87fdc1 100644 --- a/tests/language_2/identifier/built_in_illegal_runtime_test.dart +++ b/tests/language_2/identifier/built_in_illegal_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/identifier/built_in_illegal_test.dart b/tests/language_2/identifier/built_in_illegal_test.dart index 12be975cb80..822bfc95419 100644 --- a/tests/language_2/identifier/built_in_illegal_test.dart +++ b/tests/language_2/identifier/built_in_illegal_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check that we cannot use a pseudo keyword at the class level code. +// @dart = 2.9 + // Pseudo keywords are not allowed to be used as class names. class abstract { } // ^^^^^^^^ @@ -19,23 +21,18 @@ class dynamic { } class export { } // ^^^^^^ // [analyzer] SYNTACTIC_ERROR.DIRECTIVE_AFTER_DECLARATION -// [cfe] A class declaration must have a body, even if it is empty. -// ^^^^^^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_BODY -// [cfe] Directives must appear before any declarations. -// ^^^^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER +// [cfe] A class declaration must have a body, even if it is empty. +// [cfe] Directives must appear before any declarations. // [cfe] Expected an identifier, but got 'export'. -// [error line 19, column 14, length 0] -// [cfe] Expected ';' after this. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_EXECUTABLE -// [cfe] Expected a String, but got '{'. -// ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_STRING_LITERAL -// [cfe] Expected a declaration, but got '{'. -// ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN +// [cfe] Expected ';' after this. +// [cfe] Expected a String, but got '{'. +// [cfe] Expected a declaration, but got '{'. class external { } // ^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.BUILT_IN_IDENTIFIER_IN_DECLARATION @@ -47,12 +44,10 @@ class factory { } class get { } // ^^^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_BODY -// [cfe] A class declaration must have a body, even if it is empty. -// ^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_PARAMETERS -// [cfe] A function declaration needs an explicit list of parameters. -// ^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER +// [cfe] A class declaration must have a body, even if it is empty. +// [cfe] A function declaration needs an explicit list of parameters. // [cfe] Expected an identifier, but got 'get'. class interface { } // ^^^^^^^^^ @@ -62,37 +57,31 @@ class implements { } // ^^^^^^^^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER // [cfe] Expected an identifier, but got 'implements'. -// [error line 61, column 18, length 0] +// [error line 56, column 18, length 0] // [analyzer] COMPILE_TIME_ERROR.IMPLEMENTS_NON_CLASS -// [cfe] Expected a type, but got '{'. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_TYPE_NAME +// [cfe] Expected a type, but got '{'. class import { } // ^^^^^^ // [analyzer] SYNTACTIC_ERROR.DIRECTIVE_AFTER_DECLARATION -// [cfe] A class declaration must have a body, even if it is empty. -// ^^^^^^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_BODY -// [cfe] Directives must appear before any declarations. -// ^^^^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER +// [cfe] A class declaration must have a body, even if it is empty. +// [cfe] Directives must appear before any declarations. // [cfe] Expected an identifier, but got 'import'. -// [error line 70, column 14, length 0] -// [cfe] Expected ';' after this. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_EXECUTABLE -// [cfe] Expected a String, but got '{'. -// ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_STRING_LITERAL -// [cfe] Expected a declaration, but got '{'. -// ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN +// [cfe] Expected ';' after this. +// [cfe] Expected a String, but got '{'. +// [cfe] Expected a declaration, but got '{'. class mixin { } // ^^^^^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_BODY -// [cfe] A class declaration must have a body, even if it is empty. -// ^^^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER +// [cfe] A class declaration must have a body, even if it is empty. // [cfe] Expected an identifier, but got 'mixin'. // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER @@ -100,21 +89,18 @@ class mixin { } class library { } // ^^^^^^^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_BODY -// [cfe] A class declaration must have a body, even if it is empty. -// ^^^^^^^ // [analyzer] SYNTACTIC_ERROR.LIBRARY_DIRECTIVE_NOT_FIRST -// [cfe] Expected an identifier, but got 'library'. -// ^^^^^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER +// [cfe] A class declaration must have a body, even if it is empty. +// [cfe] Expected an identifier, but got 'library'. // [cfe] The library directive must appear before all other directives. // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER // [cfe] Expected an identifier, but got '{'. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_EXECUTABLE -// [cfe] Expected ';' after this. -// ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN +// [cfe] Expected ';' after this. // [cfe] Expected a declaration, but got '}'. class operator { } // ^^^^^^^^ @@ -123,32 +109,25 @@ class operator { } class part { } // ^^^^ // [analyzer] SYNTACTIC_ERROR.DIRECTIVE_AFTER_DECLARATION -// [cfe] A class declaration must have a body, even if it is empty. -// ^^^^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_BODY -// [cfe] Directives must appear before any declarations. -// ^^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER +// [cfe] A class declaration must have a body, even if it is empty. +// [cfe] Directives must appear before any declarations. // [cfe] Expected an identifier, but got 'part'. -// [error line 123, column 12, length 0] -// [cfe] Expected ';' after this. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_EXECUTABLE -// [cfe] Expected a String, but got '{'. -// ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_STRING_LITERAL -// [cfe] Expected a declaration, but got '{'. -// ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN +// [cfe] Expected ';' after this. +// [cfe] Expected a String, but got '{'. +// [cfe] Expected a declaration, but got '{'. class set { } // ^^^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_BODY -// [cfe] A class declaration must have a body, even if it is empty. -// ^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_FUNCTION_PARAMETERS -// [cfe] A function declaration needs an explicit list of parameters. -// ^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER +// [cfe] A class declaration must have a body, even if it is empty. +// [cfe] A function declaration needs an explicit list of parameters. // [cfe] Expected an identifier, but got 'set'. class static { } // ^^^^^^ @@ -157,21 +136,18 @@ class static { } class typedef { } // ^^^^^^^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_BODY -// [cfe] A class declaration must have a body, even if it is empty. -// ^^^^^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER +// [cfe] A class declaration must have a body, even if it is empty. // [cfe] Expected an identifier, but got 'typedef'. // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER // [cfe] Expected an identifier, but got '{'. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_EXECUTABLE -// [cfe] A typedef needs an explicit list of parameters. -// ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN -// [cfe] Expected ';' after this. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_TYPEDEF_PARAMETERS +// [cfe] A typedef needs an explicit list of parameters. +// [cfe] Expected ';' after this. // [cfe] Expected a declaration, but got '}'. main() {} diff --git a/tests/language_2/identifier/built_in_not_prefix_test.dart b/tests/language_2/identifier/built_in_not_prefix_test.dart index db1e856b644..d6f22b6cda4 100644 --- a/tests/language_2/identifier/built_in_not_prefix_test.dart +++ b/tests/language_2/identifier/built_in_not_prefix_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // From The Dart Programming Language Specification, section 16.33 // "Identifier Reference": // diff --git a/tests/language_2/identifier/built_in_prefix_library_async.dart b/tests/language_2/identifier/built_in_prefix_library_async.dart index 5662daef8f3..88994e73daf 100644 --- a/tests/language_2/identifier/built_in_prefix_library_async.dart +++ b/tests/language_2/identifier/built_in_prefix_library_async.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library async; class A {} diff --git a/tests/language_2/identifier/built_in_prefix_library_await.dart b/tests/language_2/identifier/built_in_prefix_library_await.dart index c4f5d3795c1..9508b845ec6 100644 --- a/tests/language_2/identifier/built_in_prefix_library_await.dart +++ b/tests/language_2/identifier/built_in_prefix_library_await.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library await; class A {} diff --git a/tests/language_2/identifier/built_in_prefix_library_hide.dart b/tests/language_2/identifier/built_in_prefix_library_hide.dart index 6c686a0c90d..e91272c2a67 100644 --- a/tests/language_2/identifier/built_in_prefix_library_hide.dart +++ b/tests/language_2/identifier/built_in_prefix_library_hide.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library hide; class A {} diff --git a/tests/language_2/identifier/built_in_prefix_library_library.dart b/tests/language_2/identifier/built_in_prefix_library_library.dart index 6565cece8f0..3a693012ecb 100644 --- a/tests/language_2/identifier/built_in_prefix_library_library.dart +++ b/tests/language_2/identifier/built_in_prefix_library_library.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library library; class A {} diff --git a/tests/language_2/identifier/built_in_prefix_library_of.dart b/tests/language_2/identifier/built_in_prefix_library_of.dart index e2fec7d57cf..fb061cad800 100644 --- a/tests/language_2/identifier/built_in_prefix_library_of.dart +++ b/tests/language_2/identifier/built_in_prefix_library_of.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library of; class A {} diff --git a/tests/language_2/identifier/built_in_prefix_library_on.dart b/tests/language_2/identifier/built_in_prefix_library_on.dart index 861eac937fa..48658f50bcf 100644 --- a/tests/language_2/identifier/built_in_prefix_library_on.dart +++ b/tests/language_2/identifier/built_in_prefix_library_on.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library on; class A {} diff --git a/tests/language_2/identifier/built_in_prefix_library_show.dart b/tests/language_2/identifier/built_in_prefix_library_show.dart index 12f2e7bc1ab..54bcc77bbab 100644 --- a/tests/language_2/identifier/built_in_prefix_library_show.dart +++ b/tests/language_2/identifier/built_in_prefix_library_show.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library show; class A {} diff --git a/tests/language_2/identifier/built_in_prefix_library_sync.dart b/tests/language_2/identifier/built_in_prefix_library_sync.dart index e63a2b2decb..004c3fb89dc 100644 --- a/tests/language_2/identifier/built_in_prefix_library_sync.dart +++ b/tests/language_2/identifier/built_in_prefix_library_sync.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library sync; class A {} diff --git a/tests/language_2/identifier/built_in_prefix_library_yield.dart b/tests/language_2/identifier/built_in_prefix_library_yield.dart index 2b97a2c6803..f3193be7d16 100644 --- a/tests/language_2/identifier/built_in_prefix_library_yield.dart +++ b/tests/language_2/identifier/built_in_prefix_library_yield.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library yield; class A {} diff --git a/tests/language_2/identifier/built_in_type_annotation_test.dart b/tests/language_2/identifier/built_in_type_annotation_test.dart index 5225709e273..4ef7b53f762 100644 --- a/tests/language_2/identifier/built_in_type_annotation_test.dart +++ b/tests/language_2/identifier/built_in_type_annotation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // From The Dart Programming Language Specification, section 16.33 // "Identifier Reference": // diff --git a/tests/language_2/identifier/known_prefix_error_runtime_test.dart b/tests/language_2/identifier/known_prefix_error_runtime_test.dart index 2d4a40cc627..f83e405da7a 100644 --- a/tests/language_2/identifier/known_prefix_error_runtime_test.dart +++ b/tests/language_2/identifier/known_prefix_error_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/identifier/known_prefix_error_test.dart b/tests/language_2/identifier/known_prefix_error_test.dart index 06ec097359f..73a5e97796d 100644 --- a/tests/language_2/identifier/known_prefix_error_test.dart +++ b/tests/language_2/identifier/known_prefix_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that identifiers which are used explicitly in the grammar but are // not built-in identifiers can be used as library prefixes. @@ -22,52 +24,44 @@ import 'built_in_prefix_library_sync.dart' as sync; import 'built_in_prefix_library_yield.dart' as yield; async _async = new async.A(); -// [error line 24, column 1, length 5] +// [error line 26, column 1, length 5] // [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE // [cfe] 'async' isn't a type. -// [error line 24, column 1] // [cfe] Expected 0 type arguments. await _await = new await.A(); -// [error line 30, column 1, length 5] +// [error line 31, column 1, length 5] // [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE // [cfe] 'await' isn't a type. -// [error line 30, column 1] // [cfe] Expected 0 type arguments. hide _hide = new hide.A(); // [error line 36, column 1, length 4] // [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE // [cfe] 'hide' isn't a type. -// [error line 36, column 1] // [cfe] Expected 0 type arguments. of _of = new of.A(); -// [error line 42, column 1, length 2] +// [error line 41, column 1, length 2] // [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE // [cfe] 'of' isn't a type. -// [error line 42, column 1] // [cfe] Expected 0 type arguments. on _on = new on.A(); -// [error line 48, column 1, length 2] +// [error line 46, column 1, length 2] // [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE // [cfe] 'on' isn't a type. -// [error line 48, column 1] // [cfe] Expected 0 type arguments. show _show = new show.A(); -// [error line 54, column 1, length 4] +// [error line 51, column 1, length 4] // [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE // [cfe] 'show' isn't a type. -// [error line 54, column 1] // [cfe] Expected 0 type arguments. sync _sync = new sync.A(); -// [error line 60, column 1, length 4] +// [error line 56, column 1, length 4] // [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE // [cfe] 'sync' isn't a type. -// [error line 60, column 1] // [cfe] Expected 0 type arguments. yield _yield = new yield.A(); -// [error line 66, column 1, length 5] +// [error line 61, column 1, length 5] // [analyzer] COMPILE_TIME_ERROR.NOT_A_TYPE // [cfe] 'yield' isn't a type. -// [error line 66, column 1] // [cfe] Expected 0 type arguments. async.B _B_async = new async.B(); @@ -107,49 +101,41 @@ async.B> _B2_async = new async.B(); // ^^^^^ // [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT // [cfe] 'async' isn't a type. -// ^ // [cfe] Expected 0 type arguments. await.B> _B2_await = new await.B(); // ^^^^^ // [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT // [cfe] 'await' isn't a type. -// ^ // [cfe] Expected 0 type arguments. hide.B> _B2_hide = new hide.B(); // ^^^^ // [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT // [cfe] 'hide' isn't a type. -// ^ // [cfe] Expected 0 type arguments. of.B> _B2_of = new of.B(); // ^^ // [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT // [cfe] 'of' isn't a type. -// ^ // [cfe] Expected 0 type arguments. on.B> _B2_on = new on.B(); // ^^ // [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT // [cfe] 'on' isn't a type. -// ^ // [cfe] Expected 0 type arguments. show.B> _B2_show = new show.B(); // ^^^^ // [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT // [cfe] 'show' isn't a type. -// ^ // [cfe] Expected 0 type arguments. sync.B> _B2_sync = new sync.B(); // ^^^^ // [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT // [cfe] 'sync' isn't a type. -// ^ // [cfe] Expected 0 type arguments. yield.B> _B2_yield = new yield.B(); // ^^^^^ // [analyzer] COMPILE_TIME_ERROR.NON_TYPE_AS_TYPE_ARGUMENT // [cfe] 'yield' isn't a type. -// ^ // [cfe] Expected 0 type arguments. main() { diff --git a/tests/language_2/identifier/known_prefix_test.dart b/tests/language_2/identifier/known_prefix_test.dart index 9caf67bccf8..2b18de79f2c 100644 --- a/tests/language_2/identifier/known_prefix_test.dart +++ b/tests/language_2/identifier/known_prefix_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // The identifiers listed below are mentioned in the grammar, but none of // them is a reserved word or a built-in identifier. Such an identifier can // be used as library prefix. Here are said 'known' identifiers: diff --git a/tests/language_2/identifier/known_usage_error_runtime_test.dart b/tests/language_2/identifier/known_usage_error_runtime_test.dart index 51520d0e6d9..29a187d69ad 100644 --- a/tests/language_2/identifier/known_usage_error_runtime_test.dart +++ b/tests/language_2/identifier/known_usage_error_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/identifier/known_usage_error_test.dart b/tests/language_2/identifier/known_usage_error_test.dart index a0f8866613e..5554cf8fe79 100644 --- a/tests/language_2/identifier/known_usage_error_test.dart +++ b/tests/language_2/identifier/known_usage_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // The identifiers listed below are mentioned in the grammar, but none of // them is a reserved word or a built-in identifier. Such an identifier can // be used just like all other identifiers, with the exceptions mentioned diff --git a/tests/language_2/identifier/known_usage_test.dart b/tests/language_2/identifier/known_usage_test.dart index 51eaf83c04c..00eb2e80846 100644 --- a/tests/language_2/identifier/known_usage_test.dart +++ b/tests/language_2/identifier/known_usage_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // The identifiers listed below are mentioned in the grammar, but none of // them is a reserved word or a built-in identifier. Such an identifier can // be used just like all other identifiers, with a few exceptions. Here are diff --git a/tests/language_2/identifier/naming2_test.dart b/tests/language_2/identifier/naming2_test.dart index f9c08004b24..a23b0be5f13 100644 --- a/tests/language_2/identifier/naming2_test.dart +++ b/tests/language_2/identifier/naming2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/identifier/naming3_test.dart b/tests/language_2/identifier/naming3_test.dart index 39367781b55..4017b7ff382 100644 --- a/tests/language_2/identifier/naming3_test.dart +++ b/tests/language_2/identifier/naming3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/identifier/naming_test.dart b/tests/language_2/identifier/naming_test.dart index 07f92e84936..4ab6a0002e6 100644 --- a/tests/language_2/identifier/naming_test.dart +++ b/tests/language_2/identifier/naming_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/identity/closure2_test.dart b/tests/language_2/identity/closure2_test.dart index 5b9621edceb..1027b6339c7 100644 --- a/tests/language_2/identity/closure2_test.dart +++ b/tests/language_2/identity/closure2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var myIdentical = identical; diff --git a/tests/language_2/identity/closure_test.dart b/tests/language_2/identity/closure_test.dart index 62f47d0fabf..63e7d91f818 100644 --- a/tests/language_2/identity/closure_test.dart +++ b/tests/language_2/identity/closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var myIdentical = identical; diff --git a/tests/language_2/identity/const_test.dart b/tests/language_2/identity/const_test.dart index 9c62b060478..2ea728bbbe4 100644 --- a/tests/language_2/identity/const_test.dart +++ b/tests/language_2/identity/const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; f() {} diff --git a/tests/language_2/identity/identical_test.dart b/tests/language_2/identity/identical_test.dart index 244f8149ef6..8be2590f6f4 100644 --- a/tests/language_2/identity/identical_test.dart +++ b/tests/language_2/identity/identical_test.dart @@ -4,6 +4,8 @@ // Test efficient and correct implementation of !identical(a, b). // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import 'package:expect/expect.dart'; notIdenticalTest1(a) { diff --git a/tests/language_2/identity/mint_identical_test.dart b/tests/language_2/identity/mint_identical_test.dart index a499a9eda18..ab81c99581b 100644 --- a/tests/language_2/identity/mint_identical_test.dart +++ b/tests/language_2/identity/mint_identical_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/identity/nan_identical_test.dart b/tests/language_2/identity/nan_identical_test.dart index 83fa7e4c8da..b352f80e73d 100644 --- a/tests/language_2/identity/nan_identical_test.dart +++ b/tests/language_2/identity/nan_identical_test.dart @@ -4,6 +4,8 @@ // Test a new statement by itself. // VMOptions=--optimization-counter-threshold=4 --no-use-osr +// @dart = 2.9 + import 'dart:typed_data'; import "package:expect/expect.dart"; diff --git a/tests/language_2/identity/strict_equal_test.dart b/tests/language_2/identity/strict_equal_test.dart index 31c31cd4861..72f46918d6a 100644 --- a/tests/language_2/identity/strict_equal_test.dart +++ b/tests/language_2/identity/strict_equal_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/if/and_test.dart b/tests/language_2/if/and_test.dart index 55c28da2d4f..531e38d3113 100644 --- a/tests/language_2/if/and_test.dart +++ b/tests/language_2/if/and_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // The "if (negative) res2 |= 3" below can be emitted as negative && (res2 |= 3) diff --git a/tests/language_2/if/dangling_else_test.dart b/tests/language_2/if/dangling_else_test.dart index 4790e57117b..921c3b51a27 100644 --- a/tests/language_2/if/dangling_else_test.dart +++ b/tests/language_2/if/dangling_else_test.dart @@ -4,6 +4,8 @@ // Tests dangling else. The VM should not have any problems, but dart2js or // dart2dart could get this wrong. +// @dart = 2.9 + import "package:expect/expect.dart"; nestedIf1(notTrue) { diff --git a/tests/language_2/if/if_test.dart b/tests/language_2/if/if_test.dart index 86b7202981b..5b48a2e18bc 100644 --- a/tests/language_2/if/if_test.dart +++ b/tests/language_2/if/if_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing if statement. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/if/nested_if_test.dart b/tests/language_2/if/nested_if_test.dart index 41c7d347a28..3e347e5bb8f 100644 --- a/tests/language_2/if/nested_if_test.dart +++ b/tests/language_2/if/nested_if_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart2Js had problems with nested ifs inside loops. +// @dart = 2.9 + import "package:expect/expect.dart"; foo(x, a) { diff --git a/tests/language_2/if_null/assignment_behavior_runtime_10_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_10_test.dart index 6fba05c6e07..00ba8d5e9b9 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_10_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_10_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_13_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_13_test.dart index e1685816891..f46dc5d2af2 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_13_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_13_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_14_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_14_test.dart index 17a5c90214c..53939332a71 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_14_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_14_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_15_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_15_test.dart index 9310956e142..89de7c3a013 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_15_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_15_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_16_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_16_test.dart index 8781d7a4254..e67d1c0245c 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_16_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_16_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_17_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_17_test.dart index 55c4fbebf8e..54d92ded68f 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_17_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_17_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_18_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_18_test.dart index 190aeb0c8be..0d0bae169ab 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_18_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_18_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_19_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_19_test.dart index 0aa639409bd..ab7e577ceb2 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_19_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_19_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_1_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_1_test.dart index 8c461f7d443..5714958d30d 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_1_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_20_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_20_test.dart index a76471b9475..cec8faaff4c 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_20_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_20_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_21_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_21_test.dart index 88129e0b94a..d9c76126e67 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_21_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_21_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_22_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_22_test.dart index 3b09af8be61..48287dba7e8 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_22_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_22_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_23_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_23_test.dart index eeae2ecd69a..acc4b164649 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_23_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_23_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_24_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_24_test.dart index 21b0594e512..697e6dea6da 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_24_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_24_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_25_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_25_test.dart index e323f4dc2c8..ecd8f446046 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_25_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_25_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_26_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_26_test.dart index afd709b8c0c..707d2fdee58 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_26_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_26_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_27_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_27_test.dart index 97fa09c082d..2afb861aed2 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_27_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_27_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_2_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_2_test.dart index 24750fa340e..ed3489a9e60 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_2_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_3_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_3_test.dart index bca92f80932..8fe5ecbc3c2 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_3_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_4_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_4_test.dart index 027437fd6aa..b4aa3da96ea 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_4_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_5_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_5_test.dart index 534bffd734f..20a0ccc6208 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_5_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_5_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_6_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_6_test.dart index fbe170b2458..9505cd71ce1 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_6_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_6_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_7_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_7_test.dart index 8009cf4ae1b..4ba0c2b251c 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_7_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_7_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_8_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_8_test.dart index 739db83cbec..5d0674c7d44 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_8_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_8_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_9_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_9_test.dart index 3acef402237..be41efac795 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_9_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_9_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_runtime_test.dart b/tests/language_2/if_null/assignment_behavior_runtime_test.dart index 4ef49b06648..7bdbbcb6e45 100644 --- a/tests/language_2/if_null/assignment_behavior_runtime_test.dart +++ b/tests/language_2/if_null/assignment_behavior_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/assignment_behavior_test.dart b/tests/language_2/if_null/assignment_behavior_test.dart index 6b027791eaf..3d517c7bfb1 100644 --- a/tests/language_2/if_null/assignment_behavior_test.dart +++ b/tests/language_2/if_null/assignment_behavior_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify semantics of the ??= operator, including order of operations, by // keeping track of the operations performed. diff --git a/tests/language_2/if_null/assignment_helper.dart b/tests/language_2/if_null/assignment_helper.dart index 9d6819b9413..281ae52bbfd 100644 --- a/tests/language_2/if_null/assignment_helper.dart +++ b/tests/language_2/if_null/assignment_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Library used by if_null_assignment_behavior_test.dart, which // imports it using the prefix "h.". diff --git a/tests/language_2/if_null/assignment_static_test.dart b/tests/language_2/if_null/assignment_static_test.dart index e3683367818..020b988607d 100644 --- a/tests/language_2/if_null/assignment_static_test.dart +++ b/tests/language_2/if_null/assignment_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that the static type of a ??= b is the least upper bound of the // static types of a and b. diff --git a/tests/language_2/if_null/behavior_test.dart b/tests/language_2/if_null/behavior_test.dart index ac93cff96d7..02422029512 100644 --- a/tests/language_2/if_null/behavior_test.dart +++ b/tests/language_2/if_null/behavior_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Evaluation of an if-null expression e of the form e1 ?? e2 is equivalent to // the evaluation of the expression ((x) => x == null ? e2 : x)(e1). The // static type of e is the least upper bound of the static type of e1 and the diff --git a/tests/language_2/if_null/evaluation_order_test.dart b/tests/language_2/if_null/evaluation_order_test.dart index c819a9bf3e2..4d40b885f7a 100644 --- a/tests/language_2/if_null/evaluation_order_test.dart +++ b/tests/language_2/if_null/evaluation_order_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Evaluation of an if-null expression e of the form e1 ?? e2 is equivalent to // the evaluation of the expression ((x) => x == null ? e2 : x)(e1). // diff --git a/tests/language_2/if_null/precedence_runtime_test.dart b/tests/language_2/if_null/precedence_runtime_test.dart index 27f4d851967..f91ef9bac71 100644 --- a/tests/language_2/if_null/precedence_runtime_test.dart +++ b/tests/language_2/if_null/precedence_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/if_null/precedence_test.dart b/tests/language_2/if_null/precedence_test.dart index 224238f8719..a5b5d162431 100644 --- a/tests/language_2/if_null/precedence_test.dart +++ b/tests/language_2/if_null/precedence_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that '??' binds tighter than '?:' and less tightly than '||'. import "package:expect/expect.dart"; diff --git a/tests/language_2/implicit_creation/implicit_const_context_constructor_generic_named_test.dart b/tests/language_2/implicit_creation/implicit_const_context_constructor_generic_named_test.dart index 468077df1bd..82b0151e9bc 100644 --- a/tests/language_2/implicit_creation/implicit_const_context_constructor_generic_named_test.dart +++ b/tests/language_2/implicit_creation/implicit_const_context_constructor_generic_named_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that constructor invocations are constant diff --git a/tests/language_2/implicit_creation/implicit_const_context_constructor_generic_test.dart b/tests/language_2/implicit_creation/implicit_const_context_constructor_generic_test.dart index ffeb1fea861..a23dad535c1 100644 --- a/tests/language_2/implicit_creation/implicit_const_context_constructor_generic_test.dart +++ b/tests/language_2/implicit_creation/implicit_const_context_constructor_generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that constructor invocations are constant diff --git a/tests/language_2/implicit_creation/implicit_const_context_constructor_named_test.dart b/tests/language_2/implicit_creation/implicit_const_context_constructor_named_test.dart index 16345ab436c..cf308ef154b 100644 --- a/tests/language_2/implicit_creation/implicit_const_context_constructor_named_test.dart +++ b/tests/language_2/implicit_creation/implicit_const_context_constructor_named_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that constructor invocations are constant diff --git a/tests/language_2/implicit_creation/implicit_const_context_constructor_test.dart b/tests/language_2/implicit_creation/implicit_const_context_constructor_test.dart index fec39c2fa9c..a80dcde8675 100644 --- a/tests/language_2/implicit_creation/implicit_const_context_constructor_test.dart +++ b/tests/language_2/implicit_creation/implicit_const_context_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that constructor invocations are constant diff --git a/tests/language_2/implicit_creation/implicit_const_context_list_test.dart b/tests/language_2/implicit_creation/implicit_const_context_list_test.dart index c089d35521d..c8aa9a0d1f1 100644 --- a/tests/language_2/implicit_creation/implicit_const_context_list_test.dart +++ b/tests/language_2/implicit_creation/implicit_const_context_list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that list literals are constant when evaluated in a const context. diff --git a/tests/language_2/implicit_creation/implicit_const_context_map_test.dart b/tests/language_2/implicit_creation/implicit_const_context_map_test.dart index 231bfc379e7..b9f866855a0 100644 --- a/tests/language_2/implicit_creation/implicit_const_context_map_test.dart +++ b/tests/language_2/implicit_creation/implicit_const_context_map_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that map literals are constant when evaluated in a const context. diff --git a/tests/language_2/implicit_creation/implicit_const_context_not_test.dart b/tests/language_2/implicit_creation/implicit_const_context_not_test.dart index 7d69c0a8fa8..8f8d999dcd7 100644 --- a/tests/language_2/implicit_creation/implicit_const_context_not_test.dart +++ b/tests/language_2/implicit_creation/implicit_const_context_not_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Check places that are *not* supposed to be constant contexts, diff --git a/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_generic_named_test.dart b/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_generic_named_test.dart index 0455aa77177..765272da1d8 100644 --- a/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_generic_named_test.dart +++ b/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_generic_named_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "implicit_const_context_prefix_constructor_generic_named_test.dart" diff --git a/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_generic_test.dart b/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_generic_test.dart index e86289f040e..b4105a826de 100644 --- a/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_generic_test.dart +++ b/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "implicit_const_context_prefix_constructor_generic_test.dart" as prefix; diff --git a/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_named_test.dart b/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_named_test.dart index 4ab160347b6..61d604e02d0 100644 --- a/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_named_test.dart +++ b/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_named_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "implicit_const_context_prefix_constructor_named_test.dart" as prefix; diff --git a/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_test.dart b/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_test.dart index cfd8fd1b023..98b58af56c5 100644 --- a/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_test.dart +++ b/tests/language_2/implicit_creation/implicit_const_context_prefix_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "implicit_const_context_prefix_constructor_test.dart" as prefix; diff --git a/tests/language_2/implicit_creation/implicit_const_not_default_values_test.dart b/tests/language_2/implicit_creation/implicit_const_not_default_values_test.dart index 3968dea74c5..77ed9a66d53 100644 --- a/tests/language_2/implicit_creation/implicit_const_not_default_values_test.dart +++ b/tests/language_2/implicit_creation/implicit_const_not_default_values_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that const/new-insertion does the right thing for default values. // A default-value expression does not introduce a const context. diff --git a/tests/language_2/implicit_creation/implicit_new_constructor_generic_named_test.dart b/tests/language_2/implicit_creation/implicit_new_constructor_generic_named_test.dart index 11d9aa19562..ce3612d4a23 100644 --- a/tests/language_2/implicit_creation/implicit_new_constructor_generic_named_test.dart +++ b/tests/language_2/implicit_creation/implicit_new_constructor_generic_named_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that an omitted `new` is allowed for a generic constructor invocation. diff --git a/tests/language_2/implicit_creation/implicit_new_constructor_generic_test.dart b/tests/language_2/implicit_creation/implicit_new_constructor_generic_test.dart index aca30e2d620..c53178a3a46 100644 --- a/tests/language_2/implicit_creation/implicit_new_constructor_generic_test.dart +++ b/tests/language_2/implicit_creation/implicit_new_constructor_generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that an omitted `new` is allowed for a generic constructor invocation. diff --git a/tests/language_2/implicit_creation/implicit_new_constructor_named_test.dart b/tests/language_2/implicit_creation/implicit_new_constructor_named_test.dart index 2b45bd55c6e..a8a4f1481c5 100644 --- a/tests/language_2/implicit_creation/implicit_new_constructor_named_test.dart +++ b/tests/language_2/implicit_creation/implicit_new_constructor_named_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that an omitted `new` is allowed for a non-generic class. diff --git a/tests/language_2/implicit_creation/implicit_new_constructor_test.dart b/tests/language_2/implicit_creation/implicit_new_constructor_test.dart index ff7cc4c398a..88899b9b5a5 100644 --- a/tests/language_2/implicit_creation/implicit_new_constructor_test.dart +++ b/tests/language_2/implicit_creation/implicit_new_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that an omitted `new` is allowed for a non-generic class. diff --git a/tests/language_2/implicit_creation/implicit_new_or_const_composite_test.dart b/tests/language_2/implicit_creation/implicit_new_or_const_composite_test.dart index 3b9af6d05e7..47613fbf981 100644 --- a/tests/language_2/implicit_creation/implicit_new_or_const_composite_test.dart +++ b/tests/language_2/implicit_creation/implicit_new_or_const_composite_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests that new-insertion always inserts `new` when not in const context, diff --git a/tests/language_2/implicit_creation/implicit_new_or_const_generic_test.dart b/tests/language_2/implicit_creation/implicit_new_or_const_generic_test.dart index 9afaba74fad..538207f6244 100644 --- a/tests/language_2/implicit_creation/implicit_new_or_const_generic_test.dart +++ b/tests/language_2/implicit_creation/implicit_new_or_const_generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "implicit_new_or_const_generic_test.dart" as prefix; diff --git a/tests/language_2/implicit_creation/implicit_new_or_const_test.dart b/tests/language_2/implicit_creation/implicit_new_or_const_test.dart index 1d217a669fa..aaef189b410 100644 --- a/tests/language_2/implicit_creation/implicit_new_or_const_test.dart +++ b/tests/language_2/implicit_creation/implicit_new_or_const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "implicit_new_or_const_test.dart" as prefix; diff --git a/tests/language_2/implicit_creation/implicit_new_prefix_constructor_generic_named_test.dart b/tests/language_2/implicit_creation/implicit_new_prefix_constructor_generic_named_test.dart index 600537cc948..d9cc0ad5fc5 100644 --- a/tests/language_2/implicit_creation/implicit_new_prefix_constructor_generic_named_test.dart +++ b/tests/language_2/implicit_creation/implicit_new_prefix_constructor_generic_named_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "implicit_new_prefix_constructor_generic_named_test.dart" as prefix; diff --git a/tests/language_2/implicit_creation/implicit_new_prefix_constructor_generic_test.dart b/tests/language_2/implicit_creation/implicit_new_prefix_constructor_generic_test.dart index 3487d90f859..6fa68b30234 100644 --- a/tests/language_2/implicit_creation/implicit_new_prefix_constructor_generic_test.dart +++ b/tests/language_2/implicit_creation/implicit_new_prefix_constructor_generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "implicit_new_prefix_constructor_generic_test.dart" as prefix; diff --git a/tests/language_2/implicit_creation/implicit_new_prefix_constructor_named_test.dart b/tests/language_2/implicit_creation/implicit_new_prefix_constructor_named_test.dart index b23034261bc..5fe061679ed 100644 --- a/tests/language_2/implicit_creation/implicit_new_prefix_constructor_named_test.dart +++ b/tests/language_2/implicit_creation/implicit_new_prefix_constructor_named_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "implicit_new_prefix_constructor_named_test.dart" as prefix; diff --git a/tests/language_2/implicit_creation/implicit_new_prefix_constructor_test.dart b/tests/language_2/implicit_creation/implicit_new_prefix_constructor_test.dart index 3205294c703..71a917e6e76 100644 --- a/tests/language_2/implicit_creation/implicit_new_prefix_constructor_test.dart +++ b/tests/language_2/implicit_creation/implicit_new_prefix_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "implicit_new_prefix_constructor_test.dart" as prefix; diff --git a/tests/language_2/implicit_downcast_during/assert_initializer_test.dart b/tests/language_2/implicit_downcast_during/assert_initializer_test.dart index ec842e2810c..e28353f25f5 100644 --- a/tests/language_2/implicit_downcast_during/assert_initializer_test.dart +++ b/tests/language_2/implicit_downcast_during/assert_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { C.oneArg(Object x) : assert(x); C.twoArgs(Object x, Object y) : assert(x, y); diff --git a/tests/language_2/implicit_downcast_during/assert_statement_test.dart b/tests/language_2/implicit_downcast_during/assert_statement_test.dart index 9c34acade01..f0a3e00069f 100644 --- a/tests/language_2/implicit_downcast_during/assert_statement_test.dart +++ b/tests/language_2/implicit_downcast_during/assert_statement_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { Object b = true; assert(b); // No error diff --git a/tests/language_2/implicit_downcast_during/assignment_test.dart b/tests/language_2/implicit_downcast_during/assignment_test.dart index 73f773b0bbc..28a8925b587 100644 --- a/tests/language_2/implicit_downcast_during/assignment_test.dart +++ b/tests/language_2/implicit_downcast_during/assignment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/combiner_test.dart b/tests/language_2/implicit_downcast_during/combiner_test.dart index d329b82844d..3ebd023a4f0 100644 --- a/tests/language_2/implicit_downcast_during/combiner_test.dart +++ b/tests/language_2/implicit_downcast_during/combiner_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/compound_assignment_test.dart b/tests/language_2/implicit_downcast_during/compound_assignment_test.dart index 550fe92960f..6d05918904b 100644 --- a/tests/language_2/implicit_downcast_during/compound_assignment_test.dart +++ b/tests/language_2/implicit_downcast_during/compound_assignment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/conditional_expression_test.dart b/tests/language_2/implicit_downcast_during/conditional_expression_test.dart index 849c04b575d..89c379c4576 100644 --- a/tests/language_2/implicit_downcast_during/conditional_expression_test.dart +++ b/tests/language_2/implicit_downcast_during/conditional_expression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/implicit_downcast_during/constructor_initializer_test.dart b/tests/language_2/implicit_downcast_during/constructor_initializer_test.dart index 3191bfda83c..18bde65e5c6 100644 --- a/tests/language_2/implicit_downcast_during/constructor_initializer_test.dart +++ b/tests/language_2/implicit_downcast_during/constructor_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/constructor_invocation_test.dart b/tests/language_2/implicit_downcast_during/constructor_invocation_test.dart index 84a1cf837a0..e6d26b41281 100644 --- a/tests/language_2/implicit_downcast_during/constructor_invocation_test.dart +++ b/tests/language_2/implicit_downcast_during/constructor_invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/do_test.dart b/tests/language_2/implicit_downcast_during/do_test.dart index 43c76d723aa..ca3cebf17ad 100644 --- a/tests/language_2/implicit_downcast_during/do_test.dart +++ b/tests/language_2/implicit_downcast_during/do_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/implicit_downcast_during/factory_constructor_invocation_test.dart b/tests/language_2/implicit_downcast_during/factory_constructor_invocation_test.dart index 4ca74400802..09aca6a4952 100644 --- a/tests/language_2/implicit_downcast_during/factory_constructor_invocation_test.dart +++ b/tests/language_2/implicit_downcast_during/factory_constructor_invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/field_declaration_test.dart b/tests/language_2/implicit_downcast_during/field_declaration_test.dart index 339e6d3058d..5a41dbc8f6f 100644 --- a/tests/language_2/implicit_downcast_during/field_declaration_test.dart +++ b/tests/language_2/implicit_downcast_during/field_declaration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/for_condition_test.dart b/tests/language_2/implicit_downcast_during/for_condition_test.dart index 092a4b4215c..037fb82423c 100644 --- a/tests/language_2/implicit_downcast_during/for_condition_test.dart +++ b/tests/language_2/implicit_downcast_during/for_condition_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/implicit_downcast_during/for_in_element_test.dart b/tests/language_2/implicit_downcast_during/for_in_element_test.dart index 230b354a025..5910259c68a 100644 --- a/tests/language_2/implicit_downcast_during/for_in_element_test.dart +++ b/tests/language_2/implicit_downcast_during/for_in_element_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/for_in_iterable_test.dart b/tests/language_2/implicit_downcast_during/for_in_iterable_test.dart index 5ecc2fc8ad0..3d4e2de7c49 100644 --- a/tests/language_2/implicit_downcast_during/for_in_iterable_test.dart +++ b/tests/language_2/implicit_downcast_during/for_in_iterable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/for_initializer_expression_test.dart b/tests/language_2/implicit_downcast_during/for_initializer_expression_test.dart index 88d504f1fa6..d9bacb5329e 100644 --- a/tests/language_2/implicit_downcast_during/for_initializer_expression_test.dart +++ b/tests/language_2/implicit_downcast_during/for_initializer_expression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/implicit_downcast_during/for_initializer_var_test.dart b/tests/language_2/implicit_downcast_during/for_initializer_var_test.dart index a0c10bf8301..847e5def9b1 100644 --- a/tests/language_2/implicit_downcast_during/for_initializer_var_test.dart +++ b/tests/language_2/implicit_downcast_during/for_initializer_var_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/implicit_downcast_during/function_literal_arrow_test.dart b/tests/language_2/implicit_downcast_during/function_literal_arrow_test.dart index b74f788c009..7ee2d92a96b 100644 --- a/tests/language_2/implicit_downcast_during/function_literal_arrow_test.dart +++ b/tests/language_2/implicit_downcast_during/function_literal_arrow_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/function_literal_return_test.dart b/tests/language_2/implicit_downcast_during/function_literal_return_test.dart index 791f2cdfc7c..6eaf42c735f 100644 --- a/tests/language_2/implicit_downcast_during/function_literal_return_test.dart +++ b/tests/language_2/implicit_downcast_during/function_literal_return_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/if_null_assignment_test.dart b/tests/language_2/implicit_downcast_during/if_null_assignment_test.dart index 4e7ea7f0c82..04e917cf5b1 100644 --- a/tests/language_2/implicit_downcast_during/if_null_assignment_test.dart +++ b/tests/language_2/implicit_downcast_during/if_null_assignment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/if_statement_test.dart b/tests/language_2/implicit_downcast_during/if_statement_test.dart index c1ca7411461..6d954a8d911 100644 --- a/tests/language_2/implicit_downcast_during/if_statement_test.dart +++ b/tests/language_2/implicit_downcast_during/if_statement_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/implicit_downcast_during/indexed_assignment_test.dart b/tests/language_2/implicit_downcast_during/indexed_assignment_test.dart index 8177fd5017c..86c771188cc 100644 --- a/tests/language_2/implicit_downcast_during/indexed_assignment_test.dart +++ b/tests/language_2/implicit_downcast_during/indexed_assignment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/indexed_compound_assignment_test.dart b/tests/language_2/implicit_downcast_during/indexed_compound_assignment_test.dart index 153ca697f56..18f2c11d404 100644 --- a/tests/language_2/implicit_downcast_during/indexed_compound_assignment_test.dart +++ b/tests/language_2/implicit_downcast_during/indexed_compound_assignment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/indexed_get_test.dart b/tests/language_2/implicit_downcast_during/indexed_get_test.dart index 83f453c68b4..7886e358740 100644 --- a/tests/language_2/implicit_downcast_during/indexed_get_test.dart +++ b/tests/language_2/implicit_downcast_during/indexed_get_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/indexed_if_null_assignment_test.dart b/tests/language_2/implicit_downcast_during/indexed_if_null_assignment_test.dart index b29b62bfc15..b65ef3de538 100644 --- a/tests/language_2/implicit_downcast_during/indexed_if_null_assignment_test.dart +++ b/tests/language_2/implicit_downcast_during/indexed_if_null_assignment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/invocation_test.dart b/tests/language_2/implicit_downcast_during/invocation_test.dart index 8be03d1128c..b09e00f393d 100644 --- a/tests/language_2/implicit_downcast_during/invocation_test.dart +++ b/tests/language_2/implicit_downcast_during/invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/list_literal_test.dart b/tests/language_2/implicit_downcast_during/list_literal_test.dart index e21d4c8d4ab..48d27162d9b 100644 --- a/tests/language_2/implicit_downcast_during/list_literal_test.dart +++ b/tests/language_2/implicit_downcast_during/list_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/logical_expression_test.dart b/tests/language_2/implicit_downcast_during/logical_expression_test.dart index dd0af27e316..8da77c09113 100644 --- a/tests/language_2/implicit_downcast_during/logical_expression_test.dart +++ b/tests/language_2/implicit_downcast_during/logical_expression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/implicit_downcast_during/map_literal_test.dart b/tests/language_2/implicit_downcast_during/map_literal_test.dart index d2b411d1259..a31f6a25a51 100644 --- a/tests/language_2/implicit_downcast_during/map_literal_test.dart +++ b/tests/language_2/implicit_downcast_during/map_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/method_invocation_test.dart b/tests/language_2/implicit_downcast_during/method_invocation_test.dart index a220b9e50c1..f67bf58678a 100644 --- a/tests/language_2/implicit_downcast_during/method_invocation_test.dart +++ b/tests/language_2/implicit_downcast_during/method_invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/not_test.dart b/tests/language_2/implicit_downcast_during/not_test.dart index 972d8032f79..da1cbbbf405 100644 --- a/tests/language_2/implicit_downcast_during/not_test.dart +++ b/tests/language_2/implicit_downcast_during/not_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/implicit_downcast_during/null_aware_method_invocation_test.dart b/tests/language_2/implicit_downcast_during/null_aware_method_invocation_test.dart index 8b7f72683dc..a5384265c96 100644 --- a/tests/language_2/implicit_downcast_during/null_aware_method_invocation_test.dart +++ b/tests/language_2/implicit_downcast_during/null_aware_method_invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/redirecting_initializer_test.dart b/tests/language_2/implicit_downcast_during/redirecting_initializer_test.dart index 6dfcf8e7b55..14c602ac344 100644 --- a/tests/language_2/implicit_downcast_during/redirecting_initializer_test.dart +++ b/tests/language_2/implicit_downcast_during/redirecting_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/return_async_test.dart b/tests/language_2/implicit_downcast_during/return_async_test.dart index aa50cd280eb..ceaeb3ff8c3 100644 --- a/tests/language_2/implicit_downcast_during/return_async_test.dart +++ b/tests/language_2/implicit_downcast_during/return_async_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import "package:expect/expect.dart"; diff --git a/tests/language_2/implicit_downcast_during/return_test.dart b/tests/language_2/implicit_downcast_during/return_test.dart index be16d9c6881..899706aa606 100644 --- a/tests/language_2/implicit_downcast_during/return_test.dart +++ b/tests/language_2/implicit_downcast_during/return_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/static_method_invocation_test.dart b/tests/language_2/implicit_downcast_during/static_method_invocation_test.dart index b43f324a23e..4428b47440d 100644 --- a/tests/language_2/implicit_downcast_during/static_method_invocation_test.dart +++ b/tests/language_2/implicit_downcast_during/static_method_invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/super_initializer_test.dart b/tests/language_2/implicit_downcast_during/super_initializer_test.dart index ee9df788d97..b2b9be4f046 100644 --- a/tests/language_2/implicit_downcast_during/super_initializer_test.dart +++ b/tests/language_2/implicit_downcast_during/super_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/super_method_invocation_test.dart b/tests/language_2/implicit_downcast_during/super_method_invocation_test.dart index c0f7282dbab..b2f804c208a 100644 --- a/tests/language_2/implicit_downcast_during/super_method_invocation_test.dart +++ b/tests/language_2/implicit_downcast_during/super_method_invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/variable_declaration_test.dart b/tests/language_2/implicit_downcast_during/variable_declaration_test.dart index a2ddd7478f6..c996db157d7 100644 --- a/tests/language_2/implicit_downcast_during/variable_declaration_test.dart +++ b/tests/language_2/implicit_downcast_during/variable_declaration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/while_statement_test.dart b/tests/language_2/implicit_downcast_during/while_statement_test.dart index 83bc52046fd..310c7c81fc8 100644 --- a/tests/language_2/implicit_downcast_during/while_statement_test.dart +++ b/tests/language_2/implicit_downcast_during/while_statement_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/implicit_downcast_during/yield_star_test.dart b/tests/language_2/implicit_downcast_during/yield_star_test.dart index 3d326d9fca8..09acc266916 100644 --- a/tests/language_2/implicit_downcast_during/yield_star_test.dart +++ b/tests/language_2/implicit_downcast_during/yield_star_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/implicit_downcast_during/yield_test.dart b/tests/language_2/implicit_downcast_during/yield_test.dart index 59cf36fb110..97b69929163 100644 --- a/tests/language_2/implicit_downcast_during/yield_test.dart +++ b/tests/language_2/implicit_downcast_during/yield_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/import/collection_no_prefix_test.dart b/tests/language_2/import/collection_no_prefix_test.dart index cf4f490d616..538be1a706a 100644 --- a/tests/language_2/import/collection_no_prefix_test.dart +++ b/tests/language_2/import/collection_no_prefix_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program importing the core library explicitly. library ImportCollectionNoPrefixTest.dart; diff --git a/tests/language_2/import/combinators2_runtime_test.dart b/tests/language_2/import/combinators2_runtime_test.dart index ec0051de767..aeef4ba8f5c 100644 --- a/tests/language_2/import/combinators2_runtime_test.dart +++ b/tests/language_2/import/combinators2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/import/combinators2_test.dart b/tests/language_2/import/combinators2_test.dart index c1ee2fb8d1e..09312bc276d 100644 --- a/tests/language_2/import/combinators2_test.dart +++ b/tests/language_2/import/combinators2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program importing with show/hide combinators. // Show "hide" and "show", hide "ugly". diff --git a/tests/language_2/import/combinators_part.dart b/tests/language_2/import/combinators_part.dart index 9db5453eb57..d63ef0537cf 100644 --- a/tests/language_2/import/combinators_part.dart +++ b/tests/language_2/import/combinators_part.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This file is part of the test import_combinators_test.dart part of importCombinatorsTest; diff --git a/tests/language_2/import/combinators_test.dart b/tests/language_2/import/combinators_test.dart index c330983ae1e..2c0f499f947 100644 --- a/tests/language_2/import/combinators_test.dart +++ b/tests/language_2/import/combinators_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program importing with show/hide combinators. library importCombinatorsTest; diff --git a/tests/language_2/import/conditional_import_test.dart b/tests/language_2/import/conditional_import_test.dart index 4aa3b31e9ac..0cabc2ed761 100644 --- a/tests/language_2/import/conditional_import_test.dart +++ b/tests/language_2/import/conditional_import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/import/conditional_string_test.dart b/tests/language_2/import/conditional_string_test.dart index 2eafa52e2b8..8103d0eb356 100644 --- a/tests/language_2/import/conditional_string_test.dart +++ b/tests/language_2/import/conditional_string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/import/config_corelib_general.dart b/tests/language_2/import/config_corelib_general.dart index 295f09aa9dd..fdd163e1814 100644 --- a/tests/language_2/import/config_corelib_general.dart +++ b/tests/language_2/import/config_corelib_general.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Classy { String get name => "classy general"; String httpSpecific() => throw UnimplementedError(); diff --git a/tests/language_2/import/config_corelib_http.dart b/tests/language_2/import/config_corelib_http.dart index 857e391cea9..be230111c5b 100644 --- a/tests/language_2/import/config_corelib_http.dart +++ b/tests/language_2/import/config_corelib_http.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:http"; class Classy { diff --git a/tests/language_2/import/config_corelib_io.dart b/tests/language_2/import/config_corelib_io.dart index 5e1543debb9..fe9b1e92954 100644 --- a/tests/language_2/import/config_corelib_io.dart +++ b/tests/language_2/import/config_corelib_io.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; class Classy { diff --git a/tests/language_2/import/config_corelib_test.dart b/tests/language_2/import/config_corelib_test.dart index 362e41eb5b9..46262c13707 100644 --- a/tests/language_2/import/config_corelib_test.dart +++ b/tests/language_2/import/config_corelib_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'config_corelib_general.dart' diff --git a/tests/language_2/import/core_no_prefix_test.dart b/tests/language_2/import/core_no_prefix_test.dart index 254744f1f25..146dfd7b29c 100644 --- a/tests/language_2/import/core_no_prefix_test.dart +++ b/tests/language_2/import/core_no_prefix_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program importing the core library explicitly. library ImportCoreNoPrefixTest.dart; diff --git a/tests/language_2/import/core_prefix_test.dart b/tests/language_2/import/core_prefix_test.dart index 0f3374b3b5a..524bc9411f3 100644 --- a/tests/language_2/import/core_prefix_test.dart +++ b/tests/language_2/import/core_prefix_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test explicit import of dart:core in the source code.. +// @dart = 2.9 + library ImportCorePrefixTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/import/core_test.dart b/tests/language_2/import/core_test.dart index 12560129c08..9bcd512d5f1 100644 --- a/tests/language_2/import/core_test.dart +++ b/tests/language_2/import/core_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test explicit import of dart:core in the source code.. +// @dart = 2.9 + library ImportCoreTest.dart; import "dart:core"; diff --git a/tests/language_2/import/cyclic_test.dart b/tests/language_2/import/cyclic_test.dart index d266b87a7d2..a9b188408cc 100644 --- a/tests/language_2/import/cyclic_test.dart +++ b/tests/language_2/import/cyclic_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library CyclicImportTest; import 'sub/sub.dart'; diff --git a/tests/language_2/import/duplicate_import_liba.dart b/tests/language_2/import/duplicate_import_liba.dart index b8af1a7da68..7913ee42231 100644 --- a/tests/language_2/import/duplicate_import_liba.dart +++ b/tests/language_2/import/duplicate_import_liba.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library liba; var field; diff --git a/tests/language_2/import/duplicate_libb.dart b/tests/language_2/import/duplicate_libb.dart index 456147fa8a9..66a23796916 100644 --- a/tests/language_2/import/duplicate_libb.dart +++ b/tests/language_2/import/duplicate_libb.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library libb; var field; diff --git a/tests/language_2/import/duplicate_prefix_test.dart b/tests/language_2/import/duplicate_prefix_test.dart index bb5a36ceaab..f2e5c0742d7 100644 --- a/tests/language_2/import/duplicate_prefix_test.dart +++ b/tests/language_2/import/duplicate_prefix_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Importing with a duplicate prefix is allowed. import "duplicate_import_liba.dart" as a; diff --git a/tests/language_2/import/export1_lib.dart b/tests/language_2/import/export1_lib.dart index 3f7be5b0a64..5addb9e8b84 100644 --- a/tests/language_2/import/export1_lib.dart +++ b/tests/language_2/import/export1_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library export1_lib; export "dart:math" show ln10, ln2, e; diff --git a/tests/language_2/import/hidden_import_test.dart b/tests/language_2/import/hidden_import_test.dart index 4c51a190621..3d80f38e71a 100644 --- a/tests/language_2/import/hidden_import_test.dart +++ b/tests/language_2/import/hidden_import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that dart: imports are implicitly hidden and cause warning on use. library hidden_import; diff --git a/tests/language_2/import/hidden_lib.dart b/tests/language_2/import/hidden_lib.dart index de7f2df6936..f40d422e8b3 100644 --- a/tests/language_2/import/hidden_lib.dart +++ b/tests/language_2/import/hidden_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library hidden_import_lib; class Future {} diff --git a/tests/language_2/import/hidden_runtime_test.dart b/tests/language_2/import/hidden_runtime_test.dart index 6a9964ed321..f3c4d7c070f 100644 --- a/tests/language_2/import/hidden_runtime_test.dart +++ b/tests/language_2/import/hidden_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/import/import1_lib.dart b/tests/language_2/import/import1_lib.dart index bf458080779..5ebed89d76e 100644 --- a/tests/language_2/import/import1_lib.dart +++ b/tests/language_2/import/import1_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library import1_lib; int libfunc(a, b) => a + b; diff --git a/tests/language_2/import/internal_library_runtime_test.dart b/tests/language_2/import/internal_library_runtime_test.dart index a0e4c2306cc..d76974bb815 100644 --- a/tests/language_2/import/internal_library_runtime_test.dart +++ b/tests/language_2/import/internal_library_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/import/internal_library_test.dart b/tests/language_2/import/internal_library_test.dart deleted file mode 100644 index 4983fd9066b..00000000000 --- a/tests/language_2/import/internal_library_test.dart +++ /dev/null @@ -1,33 +0,0 @@ -// 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 a private library cannot be accessed from outside the platform. - -library internal_library_test; - -import 'dart:core'; // This loads 'dart:_foreign_helper' and 'patch:core'. -import 'dart:_foreign_helper'; -// ^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.IMPORT_INTERNAL_LIBRARY -// [cfe] Can't access platform private library. -// ^ -// [cfe] Not found: 'dart:_foreign_helper' - -part 'dart:_foreign_helper'; -// ^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.PART_OF_NON_PART -// [cfe] Can't access platform private library. -// ^ -// [cfe] Can't use 'org-dartlang-untranslatable-uri:dart%3A_foreign_helper' as a part, because it has no 'part of' declaration. -// ^ -// [cfe] Not found: 'dart:_foreign_helper' - -void main() { - JS('int', '0'); -//^ -// [cfe] Method not found: 'JS'. - JS('int', '0'); -//^ -// [cfe] Method not found: 'JS'. -} diff --git a/tests/language_2/import/name_clash_lib1.dart b/tests/language_2/import/name_clash_lib1.dart index 8fbfaf30acf..c2a3c8506ea 100644 --- a/tests/language_2/import/name_clash_lib1.dart +++ b/tests/language_2/import/name_clash_lib1.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + library clashing.nonempty.name; diff --git a/tests/language_2/import/name_clash_lib2.dart b/tests/language_2/import/name_clash_lib2.dart index 8fbfaf30acf..c2a3c8506ea 100644 --- a/tests/language_2/import/name_clash_lib2.dart +++ b/tests/language_2/import/name_clash_lib2.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + library clashing.nonempty.name; diff --git a/tests/language_2/import/name_clash_test.dart b/tests/language_2/import/name_clash_test.dart index 72d06a5e78b..7d44f02e12b 100644 --- a/tests/language_2/import/name_clash_test.dart +++ b/tests/language_2/import/name_clash_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that a library name clash is not an error. import "name_clash_lib1.dart"; diff --git a/tests/language_2/import/nonexisting_dart_uri_runtime_test.dart b/tests/language_2/import/nonexisting_dart_uri_runtime_test.dart index f31c56d9097..3e132311da9 100644 --- a/tests/language_2/import/nonexisting_dart_uri_runtime_test.dart +++ b/tests/language_2/import/nonexisting_dart_uri_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/import/nonexisting_dart_uri_test.dart b/tests/language_2/import/nonexisting_dart_uri_test.dart index cb25b61edc6..2ebe3121ccc 100644 --- a/tests/language_2/import/nonexisting_dart_uri_test.dart +++ b/tests/language_2/import/nonexisting_dart_uri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:nonexisting/nonexisting.dart"; // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.URI_DOES_NOT_EXIST diff --git a/tests/language_2/import/private_runtime_test.dart b/tests/language_2/import/private_runtime_test.dart index 81914a970a0..fddcf749d2d 100644 --- a/tests/language_2/import/private_runtime_test.dart +++ b/tests/language_2/import/private_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/import/private_test.dart b/tests/language_2/import/private_test.dart index deb2f1ee664..434ca2b5197 100644 --- a/tests/language_2/import/private_test.dart +++ b/tests/language_2/import/private_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check that private dart:_ libraries cannot be imported. +// @dart = 2.9 + import "dart:_internal"; // ^^^^^^^^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.IMPORT_INTERNAL_LIBRARY diff --git a/tests/language_2/import/self_runtime_test.dart b/tests/language_2/import/self_runtime_test.dart index 47dac6e2190..03db0a5d5f4 100644 --- a/tests/language_2/import/self_runtime_test.dart +++ b/tests/language_2/import/self_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/import/self_test.dart b/tests/language_2/import/self_test.dart index f724a601d05..e95dae16891 100644 --- a/tests/language_2/import/self_test.dart +++ b/tests/language_2/import/self_test.dart @@ -5,6 +5,8 @@ // Check that private names cannot be imported even if the library imports // itself. +// @dart = 2.9 + library import_self; import "package:expect/expect.dart"; diff --git a/tests/language_2/import/show_lib.dart b/tests/language_2/import/show_lib.dart index a3d73252c0b..b5e7eb29114 100644 --- a/tests/language_2/import/show_lib.dart +++ b/tests/language_2/import/show_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library import_show_lib; get theEnd => "http://www.endoftheinternet.com/"; diff --git a/tests/language_2/import/show_test.dart b/tests/language_2/import/show_test.dart index cb3a488b26a..b8ac20400a7 100644 --- a/tests/language_2/import/show_test.dart +++ b/tests/language_2/import/show_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library import_show_test; import "package:expect/expect.dart"; diff --git a/tests/language_2/import/sub/sub.dart b/tests/language_2/import/sub/sub.dart index cd902474d2e..9a9899e2fd4 100644 --- a/tests/language_2/import/sub/sub.dart +++ b/tests/language_2/import/sub/sub.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library sub; import '../cyclic_test.dart'; diff --git a/tests/language_2/import/transitive_private_library_access_test.dart b/tests/language_2/import/transitive_private_library_access_test.dart index 9dcdaed3525..5f3e5ec93d5 100644 --- a/tests/language_2/import/transitive_private_library_access_test.dart +++ b/tests/language_2/import/transitive_private_library_access_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to check that we can resolve unqualified identifiers +// @dart = 2.9 + // Import 'dart:typed_data' which internally imports 'dart:_internal'. import 'dart:typed_data'; diff --git a/tests/language_2/inference/accessor_ref_runtime_1_test.dart b/tests/language_2/inference/accessor_ref_runtime_1_test.dart index 4cb3b54aea8..eecd4374db1 100644 --- a/tests/language_2/inference/accessor_ref_runtime_1_test.dart +++ b/tests/language_2/inference/accessor_ref_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/inference/accessor_ref_runtime_2_test.dart b/tests/language_2/inference/accessor_ref_runtime_2_test.dart index ed578054fda..73f51bf6c55 100644 --- a/tests/language_2/inference/accessor_ref_runtime_2_test.dart +++ b/tests/language_2/inference/accessor_ref_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/inference/accessor_ref_runtime_3_test.dart b/tests/language_2/inference/accessor_ref_runtime_3_test.dart index 39b40699e81..589abb2ec14 100644 --- a/tests/language_2/inference/accessor_ref_runtime_3_test.dart +++ b/tests/language_2/inference/accessor_ref_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/inference/accessor_ref_runtime_4_test.dart b/tests/language_2/inference/accessor_ref_runtime_4_test.dart index 900b1d2a654..5e0fb2e68db 100644 --- a/tests/language_2/inference/accessor_ref_runtime_4_test.dart +++ b/tests/language_2/inference/accessor_ref_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/inference/accessor_ref_runtime_test.dart b/tests/language_2/inference/accessor_ref_runtime_test.dart index 4b301bef6d5..3adb3acffba 100644 --- a/tests/language_2/inference/accessor_ref_runtime_test.dart +++ b/tests/language_2/inference/accessor_ref_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/inference/accessor_ref_test.dart b/tests/language_2/inference/accessor_ref_test.dart index ec80b1449ff..3a789351062 100644 --- a/tests/language_2/inference/accessor_ref_test.dart +++ b/tests/language_2/inference/accessor_ref_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /*@testedFeatures=inference*/ library test; diff --git a/tests/language_2/inference/circularity_test.dart b/tests/language_2/inference/circularity_test.dart index f7d1db2a35e..9b502ee8f0c 100644 --- a/tests/language_2/inference/circularity_test.dart +++ b/tests/language_2/inference/circularity_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + var /*@compile-error=unspecified*/ x = () => y; var /*@compile-error=unspecified*/ y = () => x; diff --git a/tests/language_2/inference/inconsistent_inheritance_test.dart b/tests/language_2/inference/inconsistent_inheritance_test.dart index 1d49b866a4d..362a5c6c062 100644 --- a/tests/language_2/inference/inconsistent_inheritance_test.dart +++ b/tests/language_2/inference/inconsistent_inheritance_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { void f(Object x) {} } diff --git a/tests/language_2/initializing_formal/access_test.dart b/tests/language_2/initializing_formal/access_test.dart index 79ce73fbde7..4db10c1fdfc 100644 --- a/tests/language_2/initializing_formal/access_test.dart +++ b/tests/language_2/initializing_formal/access_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/initializing_formal/capture_test.dart b/tests/language_2/initializing_formal/capture_test.dart index 3fd2d2ca5f1..3eb86f60ab5 100644 --- a/tests/language_2/initializing_formal/capture_test.dart +++ b/tests/language_2/initializing_formal/capture_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/initializing_formal/final_test.dart b/tests/language_2/initializing_formal/final_test.dart index d08f6d273ef..006393896f3 100644 --- a/tests/language_2/initializing_formal/final_test.dart +++ b/tests/language_2/initializing_formal/final_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/initializing_formal/promotion_test.dart b/tests/language_2/initializing_formal/promotion_test.dart index 822d2d21537..bde1d8b6d56 100644 --- a/tests/language_2/initializing_formal/promotion_test.dart +++ b/tests/language_2/initializing_formal/promotion_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class B {} diff --git a/tests/language_2/initializing_formal/scope_test.dart b/tests/language_2/initializing_formal/scope_test.dart index f75308fd52f..c94bf59050f 100644 --- a/tests/language_2/initializing_formal/scope_test.dart +++ b/tests/language_2/initializing_formal/scope_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Duplicate definition checks for `this.x` will check the scopes associated diff --git a/tests/language_2/initializing_formal/type_annotation_runtime_test.dart b/tests/language_2/initializing_formal/type_annotation_runtime_test.dart index c09a0ff2b65..5f5b0b7129c 100644 --- a/tests/language_2/initializing_formal/type_annotation_runtime_test.dart +++ b/tests/language_2/initializing_formal/type_annotation_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/initializing_formal/type_annotation_test.dart b/tests/language_2/initializing_formal/type_annotation_test.dart index 6ca65488f4c..312baab0be5 100644 --- a/tests/language_2/initializing_formal/type_annotation_test.dart +++ b/tests/language_2/initializing_formal/type_annotation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing the static checks for type annotations on initializing formals. class C { diff --git a/tests/language_2/initializing_formal/type_test.dart b/tests/language_2/initializing_formal/type_test.dart index 4c50c8d9e4c..59f381fca66 100644 --- a/tests/language_2/initializing_formal/type_test.dart +++ b/tests/language_2/initializing_formal/type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/instance/call_wrong_argument_count_test.dart b/tests/language_2/instance/call_wrong_argument_count_test.dart index 62560510567..b900f948548 100644 --- a/tests/language_2/instance/call_wrong_argument_count_test.dart +++ b/tests/language_2/instance/call_wrong_argument_count_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test mismatch in argument counts. class Niederhorn { diff --git a/tests/language_2/instance/compound_assignment_operator_test.dart b/tests/language_2/instance/compound_assignment_operator_test.dart index b992acc8537..922d74feac4 100644 --- a/tests/language_2/instance/compound_assignment_operator_test.dart +++ b/tests/language_2/instance/compound_assignment_operator_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test correct instance compound assignment operator. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/instance/field_initializer_test.dart b/tests/language_2/instance/field_initializer_test.dart index 1cb5c93c42a..8063b1793db 100644 --- a/tests/language_2/instance/field_initializer_test.dart +++ b/tests/language_2/instance/field_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/instance/incr_deopt_test.dart b/tests/language_2/instance/incr_deopt_test.dart index d9424fdf0ca..36a5232ee67 100644 --- a/tests/language_2/instance/incr_deopt_test.dart +++ b/tests/language_2/instance/incr_deopt_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Check correct deoptimization of instance field increment. diff --git a/tests/language_2/instance/inline_test.dart b/tests/language_2/instance/inline_test.dart index 0e58815ac50..406752ba59c 100644 --- a/tests/language_2/instance/inline_test.dart +++ b/tests/language_2/instance/inline_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test inlining of assignments in parameter passing. If [StringScanner.charAt] diff --git a/tests/language_2/instance/method2_test.dart b/tests/language_2/instance/method2_test.dart index de929674ba1..3e1f35e64de 100644 --- a/tests/language_2/instance/method2_test.dart +++ b/tests/language_2/instance/method2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Check that we correctly flag the use of an instance method (as a closure) /// from a static method. diff --git a/tests/language_2/instance/method_test.dart b/tests/language_2/instance/method_test.dart index f2de9134802..9ac86ac25e2 100644 --- a/tests/language_2/instance/method_test.dart +++ b/tests/language_2/instance/method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Check that we correctly flag the use of an instance method from a static /// method. diff --git a/tests/language_2/interceptor/interceptor2_test.dart b/tests/language_2/interceptor/interceptor2_test.dart index 06260c82eff..9233e294d06 100644 --- a/tests/language_2/interceptor/interceptor2_test.dart +++ b/tests/language_2/interceptor/interceptor2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for issue http://dartbug.com/6903: dart2js used to diff --git a/tests/language_2/interceptor/interceptor3_test.dart b/tests/language_2/interceptor/interceptor3_test.dart index b22b26d1c19..6c688b000c6 100644 --- a/tests/language_2/interceptor/interceptor3_test.dart +++ b/tests/language_2/interceptor/interceptor3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that code motion in the presence of interceptors work in dart2js. diff --git a/tests/language_2/interceptor/interceptor4_test.dart b/tests/language_2/interceptor/interceptor4_test.dart index 00bac2837b6..c8d1f41fb43 100644 --- a/tests/language_2/interceptor/interceptor4_test.dart +++ b/tests/language_2/interceptor/interceptor4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that dart2js gets the right interceptor for an int. diff --git a/tests/language_2/interceptor/interceptor5_test.dart b/tests/language_2/interceptor/interceptor5_test.dart index 41b76e98dae..190b5a17d85 100644 --- a/tests/language_2/interceptor/interceptor5_test.dart +++ b/tests/language_2/interceptor/interceptor5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; get X => [() => 123]; diff --git a/tests/language_2/interceptor/interceptor7_test.dart b/tests/language_2/interceptor/interceptor7_test.dart index 7e88bcdff73..0f968abfdd7 100644 --- a/tests/language_2/interceptor/interceptor7_test.dart +++ b/tests/language_2/interceptor/interceptor7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that dart2js uses the right interceptor when call a method on // something that has type number. diff --git a/tests/language_2/interceptor/interceptor8_test.dart b/tests/language_2/interceptor/interceptor8_test.dart index 089012452d0..2d78fbb66f5 100644 --- a/tests/language_2/interceptor/interceptor8_test.dart +++ b/tests/language_2/interceptor/interceptor8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js whose codegen used to not consider a double // could be instantiated when doing int / int. diff --git a/tests/language_2/interceptor/interceptor9_test.dart b/tests/language_2/interceptor/interceptor9_test.dart index 07525a57d27..1d59f35e211 100644 --- a/tests/language_2/interceptor/interceptor9_test.dart +++ b/tests/language_2/interceptor/interceptor9_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js whose codegen in some cases did not take is // tests into account when computing the set of classes for interceptors. // See http://dartbug.com/17325 diff --git a/tests/language_2/interceptor/interceptor_test.dart b/tests/language_2/interceptor/interceptor_test.dart index 7faf1746342..3da812ebca8 100644 --- a/tests/language_2/interceptor/interceptor_test.dart +++ b/tests/language_2/interceptor/interceptor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that interceptors (that is, methods in classes implemented as diff --git a/tests/language_2/interface/constants_test.dart b/tests/language_2/interface/constants_test.dart index 56540660aba..88f25a9745e 100644 --- a/tests/language_2/interface/constants_test.dart +++ b/tests/language_2/interface/constants_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class Constants { diff --git a/tests/language_2/interface/cycle_test.dart b/tests/language_2/interface/cycle_test.dart index 0e44708fa26..fe71325b861 100644 --- a/tests/language_2/interface/cycle_test.dart +++ b/tests/language_2/interface/cycle_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check fail because of cycles in super interface relationship. +// @dart = 2.9 + class C implements B {} class A implements B {} diff --git a/tests/language_2/interface/duplicate_implements_test.dart b/tests/language_2/interface/duplicate_implements_test.dart index 41c10fabd30..a5b00151a98 100644 --- a/tests/language_2/interface/duplicate_implements_test.dart +++ b/tests/language_2/interface/duplicate_implements_test.dart @@ -4,6 +4,8 @@ // Check that duplicate types in implements/extends list are // compile-time errors. +// @dart = 2.9 + abstract class I {} abstract class J {} diff --git a/tests/language_2/interface/duplicate_interface_implements_runtime_test.dart b/tests/language_2/interface/duplicate_interface_implements_runtime_test.dart index aced31d673f..53272e55641 100644 --- a/tests/language_2/interface/duplicate_interface_implements_runtime_test.dart +++ b/tests/language_2/interface/duplicate_interface_implements_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/interface/duplicate_interface_implements_test.dart b/tests/language_2/interface/duplicate_interface_implements_test.dart index 0c8555e779a..066a2fcdf48 100644 --- a/tests/language_2/interface/duplicate_interface_implements_test.dart +++ b/tests/language_2/interface/duplicate_interface_implements_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "duplicate_interface_lib.dart" as alib; import "duplicate_interface_lib.dart" show InterfA; diff --git a/tests/language_2/interface/duplicate_interface_lib.dart b/tests/language_2/interface/duplicate_interface_lib.dart index b369b3a8fc5..8ddb8294a68 100644 --- a/tests/language_2/interface/duplicate_interface_lib.dart +++ b/tests/language_2/interface/duplicate_interface_lib.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check fail because of cycles in super class relationship. +// @dart = 2.9 + library Interface_Lib; class InterfA {} diff --git a/tests/language_2/interface/duplicate_interface_test.dart b/tests/language_2/interface/duplicate_interface_test.dart index d957be9b1f2..b36a2a18330 100644 --- a/tests/language_2/interface/duplicate_interface_test.dart +++ b/tests/language_2/interface/duplicate_interface_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check fail because of cycles in super class relationship. +// @dart = 2.9 + library duplicateInterfaceTest; import 'package:expect/expect.dart'; diff --git a/tests/language_2/interface/implements_futureor_runtime_test.dart b/tests/language_2/interface/implements_futureor_runtime_test.dart index 257056bf26f..898410b6a69 100644 --- a/tests/language_2/interface/implements_futureor_runtime_test.dart +++ b/tests/language_2/interface/implements_futureor_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/interface/implements_futureor_test.dart b/tests/language_2/interface/implements_futureor_test.dart index abe2e64b346..a2984d23956 100644 --- a/tests/language_2/interface/implements_futureor_test.dart +++ b/tests/language_2/interface/implements_futureor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; class A implements FutureOr {} diff --git a/tests/language_2/interface/inherit_field_test.dart b/tests/language_2/interface/inherit_field_test.dart index fa43fb9e45c..9451ee567a5 100644 --- a/tests/language_2/interface/inherit_field_test.dart +++ b/tests/language_2/interface/inherit_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that it is legal to override a field with a field in an interface. abstract class IA { diff --git a/tests/language_2/interface/injection1_runtime_test.dart b/tests/language_2/interface/injection1_runtime_test.dart index ab438b43afc..4e590c84f85 100644 --- a/tests/language_2/interface/injection1_runtime_test.dart +++ b/tests/language_2/interface/injection1_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/interface/injection1_test.dart b/tests/language_2/interface/injection1_test.dart index 9a3faf483aa..0239efcdbf3 100644 --- a/tests/language_2/interface/injection1_test.dart +++ b/tests/language_2/interface/injection1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // The removed language feature "interface injection" is now a syntax error. import "package:expect/expect.dart"; diff --git a/tests/language_2/interface/injection2_runtime_test.dart b/tests/language_2/interface/injection2_runtime_test.dart index a8a67885e7d..fd89b6a8540 100644 --- a/tests/language_2/interface/injection2_runtime_test.dart +++ b/tests/language_2/interface/injection2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/interface/injection2_test.dart b/tests/language_2/interface/injection2_test.dart index e49d5bd7285..27841403b1b 100644 --- a/tests/language_2/interface/injection2_test.dart +++ b/tests/language_2/interface/injection2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // The removed language feature "interface injection" is now a syntax error. import "package:expect/expect.dart"; diff --git a/tests/language_2/interface/interface2_test.dart b/tests/language_2/interface/interface2_test.dart index 6a0a7628e10..fb7140ab02c 100644 --- a/tests/language_2/interface/interface2_test.dart +++ b/tests/language_2/interface/interface2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// A class must implement a known interface. class Interface2NegativeTest implements BooHoo {} diff --git a/tests/language_2/interface/interface_test.dart b/tests/language_2/interface/interface_test.dart index b05e0a6ba9c..9bc7abd7ebb 100644 --- a/tests/language_2/interface/interface_test.dart +++ b/tests/language_2/interface/interface_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing Interfaces. +// @dart = 2.9 + abstract class Ai { int foo(); } diff --git a/tests/language_2/interface/runtime_test.dart b/tests/language_2/interface/runtime_test.dart index b789fe76edb..8570fc72383 100644 --- a/tests/language_2/interface/runtime_test.dart +++ b/tests/language_2/interface/runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/interface/static_method_test.dart b/tests/language_2/interface/static_method_test.dart index 63783efc948..c2e27f83ca9 100644 --- a/tests/language_2/interface/static_method_test.dart +++ b/tests/language_2/interface/static_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class A { static void foo(); // ^ diff --git a/tests/language_2/invalid_returns/async_invalid_return_00_test.dart b/tests/language_2/invalid_returns/async_invalid_return_00_test.dart index eb558c17626..6cc0bddb490 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_00_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_00_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_01_test.dart b/tests/language_2/invalid_returns/async_invalid_return_01_test.dart index 7c2ea7e028b..b4efc34b106 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_01_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_01_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_02_test.dart b/tests/language_2/invalid_returns/async_invalid_return_02_test.dart index f3bb17fd22a..dab4a779de8 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_02_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_02_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_03_test.dart b/tests/language_2/invalid_returns/async_invalid_return_03_test.dart index aba69cd32b7..3974975b040 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_03_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_03_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_04_test.dart b/tests/language_2/invalid_returns/async_invalid_return_04_test.dart index 089d20ddc74..b3dae4e96c8 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_04_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_04_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_05_test.dart b/tests/language_2/invalid_returns/async_invalid_return_05_test.dart index 28be90b97d5..bc42415ce44 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_05_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_05_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_08_test.dart b/tests/language_2/invalid_returns/async_invalid_return_08_test.dart index cfd12e3598a..2bef7b8cfa5 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_08_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_08_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_11_test.dart b/tests/language_2/invalid_returns/async_invalid_return_11_test.dart index 0d8da86bdc7..6cde58665f5 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_11_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_14_test.dart b/tests/language_2/invalid_returns/async_invalid_return_14_test.dart index 62bf342007c..b3c547ab19d 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_14_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_14_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_17_test.dart b/tests/language_2/invalid_returns/async_invalid_return_17_test.dart index c3e6f93c8b1..d2fe89a5470 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_17_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_17_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_20_test.dart b/tests/language_2/invalid_returns/async_invalid_return_20_test.dart index a8bb214c442..4d0d5a2373c 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_20_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_20_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_23_test.dart b/tests/language_2/invalid_returns/async_invalid_return_23_test.dart index 604c0f0492a..1702d660da4 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_23_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_23_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_24_test.dart b/tests/language_2/invalid_returns/async_invalid_return_24_test.dart index ed625c31b9e..d6a0052e842 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_24_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_24_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_25_test.dart b/tests/language_2/invalid_returns/async_invalid_return_25_test.dart index d00e9f0d89d..2419225078c 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_25_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_25_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_26_test.dart b/tests/language_2/invalid_returns/async_invalid_return_26_test.dart index 0151c97fa0e..633160cc503 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_26_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_26_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_27_test.dart b/tests/language_2/invalid_returns/async_invalid_return_27_test.dart index 04dc428b0aa..8424d4a2e87 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_27_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_27_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_28_test.dart b/tests/language_2/invalid_returns/async_invalid_return_28_test.dart index 3630bb46f51..2966d060298 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_28_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_28_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_29_test.dart b/tests/language_2/invalid_returns/async_invalid_return_29_test.dart index 3a498349694..455a6836f2e 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_29_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_29_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_30_test.dart b/tests/language_2/invalid_returns/async_invalid_return_30_test.dart index 391e1c6956d..ae4100b62c8 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_30_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_30_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_31_test.dart b/tests/language_2/invalid_returns/async_invalid_return_31_test.dart index be94da2b298..94235678ccd 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_31_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_31_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_32_test.dart b/tests/language_2/invalid_returns/async_invalid_return_32_test.dart index 6247cb77ab5..5f12002ed92 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_32_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_32_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_33_test.dart b/tests/language_2/invalid_returns/async_invalid_return_33_test.dart index d7c673d6855..8d72f80b8e8 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_33_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_33_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_34_test.dart b/tests/language_2/invalid_returns/async_invalid_return_34_test.dart index 740505a27de..efbd26b41f1 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_34_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_34_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_35_test.dart b/tests/language_2/invalid_returns/async_invalid_return_35_test.dart index 09cef1cf1b5..4e26ff0660c 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_35_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_35_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_36_test.dart b/tests/language_2/invalid_returns/async_invalid_return_36_test.dart index 9fb723ac787..2b711d01e62 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_36_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_36_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_37_test.dart b/tests/language_2/invalid_returns/async_invalid_return_37_test.dart index 483e0e11cb0..e9e9fd225f6 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_37_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_37_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_38_test.dart b/tests/language_2/invalid_returns/async_invalid_return_38_test.dart index d5e3b0552ea..0a2f430acb7 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_38_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_38_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_39_test.dart b/tests/language_2/invalid_returns/async_invalid_return_39_test.dart index 9628c6950f7..594ce33dbd5 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_39_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_39_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_40_test.dart b/tests/language_2/invalid_returns/async_invalid_return_40_test.dart index 8de06ea4256..9ddb98eb35a 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_40_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_40_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_41_test.dart b/tests/language_2/invalid_returns/async_invalid_return_41_test.dart index d32049b0da9..5e7ec9f95a7 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_41_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_41_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_42_test.dart b/tests/language_2/invalid_returns/async_invalid_return_42_test.dart index 9dbc0e5d51b..260ee69f313 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_42_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_42_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_43_test.dart b/tests/language_2/invalid_returns/async_invalid_return_43_test.dart index 10358d7cb97..7db359f4ea8 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_43_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_43_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_44_test.dart b/tests/language_2/invalid_returns/async_invalid_return_44_test.dart index 1dd43d635c2..0a1fef9aa99 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_44_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_44_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_invalid_return_45_test.dart b/tests/language_2/invalid_returns/async_invalid_return_45_test.dart index 0f5689df728..378b550d489 100644 --- a/tests/language_2/invalid_returns/async_invalid_return_45_test.dart +++ b/tests/language_2/invalid_returns/async_invalid_return_45_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/async_valid_returns_test.dart b/tests/language_2/invalid_returns/async_valid_returns_test.dart index 649f2c982cf..4c7db334bc5 100644 --- a/tests/language_2/invalid_returns/async_valid_returns_test.dart +++ b/tests/language_2/invalid_returns/async_valid_returns_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void vv = null; diff --git a/tests/language_2/invalid_returns/sync_invalid_return_00_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_00_test.dart index 479a6890ada..e3e3316391f 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_00_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_00_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_01_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_01_test.dart index 716b9856ccc..c81b1dc42f6 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_01_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_01_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_02_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_02_test.dart index 73d89e1d500..f7584a7f7a8 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_02_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_02_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_03_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_03_test.dart index 1cf96e22d58..9e972dad91b 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_03_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_03_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_04_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_04_test.dart index 1555126ad06..8f03155f050 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_04_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_04_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_05_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_05_test.dart index 2322acc79a3..7fbc21b23c2 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_05_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_05_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_06_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_06_test.dart index d590372efe0..d652600d446 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_06_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_06_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_07_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_07_test.dart index d4586810f69..6d0d433621f 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_07_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_07_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_08_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_08_test.dart index c6eae33bdb1..c6a5c42f805 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_08_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_08_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_09_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_09_test.dart index e1b5705dd24..5520b0d5b94 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_09_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_09_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_10_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_10_test.dart index 9f27148ca9b..7120b5a75ca 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_10_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_11_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_11_test.dart index c30d319887d..512d86cb33d 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_11_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_12_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_12_test.dart index 047b36ab8bb..dccc9ab4ea5 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_12_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_12_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_13_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_13_test.dart index 04ce202bd86..3f225d5d155 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_13_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_13_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_14_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_14_test.dart index e4c7c539379..f9b77455f4b 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_14_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_14_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_15_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_15_test.dart index afba0193160..0aa4c78221d 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_15_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_15_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_16_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_16_test.dart index f8998d8f0b1..187e10154df 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_16_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_16_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_17_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_17_test.dart index 9e572d685fd..2f4a20f9a1f 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_17_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_17_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_18_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_18_test.dart index cf3369563a1..506919ddbb1 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_18_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_18_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_19_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_19_test.dart index a68e4dc02a1..d169b250bfd 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_19_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_19_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_20_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_20_test.dart index 38a03c10db4..da14cd8dca7 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_20_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_20_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_21_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_21_test.dart index 71962373f74..9b612c4fa6e 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_21_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_21_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_22_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_22_test.dart index 18c5c5b0ffe..623085917f2 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_22_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_22_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_23_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_23_test.dart index 26400285042..27fbed11436 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_23_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_23_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_24_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_24_test.dart index f891e6343bc..9eb5d64bf05 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_24_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_24_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_25_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_25_test.dart index b6237fde3fb..4a071732ae8 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_25_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_25_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_invalid_return_26_test.dart b/tests/language_2/invalid_returns/sync_invalid_return_26_test.dart index 2f112088bff..92d2ac4a48f 100644 --- a/tests/language_2/invalid_returns/sync_invalid_return_26_test.dart +++ b/tests/language_2/invalid_returns/sync_invalid_return_26_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; /* diff --git a/tests/language_2/invalid_returns/sync_valid_returns_test.dart b/tests/language_2/invalid_returns/sync_valid_returns_test.dart index ba3842d3c3f..0cb6a2a4151 100644 --- a/tests/language_2/invalid_returns/sync_valid_returns_test.dart +++ b/tests/language_2/invalid_returns/sync_valid_returns_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void vv = null; diff --git a/tests/language_2/is/function_test.dart b/tests/language_2/is/function_test.dart index 520a199d582..b4c9885e842 100644 --- a/tests/language_2/is/function_test.dart +++ b/tests/language_2/is/function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var staticClosure; diff --git a/tests/language_2/is/instanceof_test.dart b/tests/language_2/is/instanceof_test.dart index 2f9c7e7ce72..dabf8f38f1d 100644 --- a/tests/language_2/is/instanceof_test.dart +++ b/tests/language_2/is/instanceof_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class InstanceofTest { diff --git a/tests/language_2/is/interfaces2_test.dart b/tests/language_2/is/interfaces2_test.dart index bc68d950072..01db9e2dbd4 100644 --- a/tests/language_2/is/interfaces2_test.dart +++ b/tests/language_2/is/interfaces2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/is/interfaces_test.dart b/tests/language_2/is/interfaces_test.dart index a71319abe27..a8d1decf2bd 100644 --- a/tests/language_2/is/interfaces_test.dart +++ b/tests/language_2/is/interfaces_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/is/is2_test.dart b/tests/language_2/is/is2_test.dart index 6b03ff8d493..b225f83746b 100644 --- a/tests/language_2/is/is2_test.dart +++ b/tests/language_2/is/is2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing the instanceof operation. +// @dart = 2.9 + import "package:expect/expect.dart"; abstract class I {} diff --git a/tests/language_2/is/is4_test.dart b/tests/language_2/is/is4_test.dart index b560557f52a..4be4b2673bf 100644 --- a/tests/language_2/is/is4_test.dart +++ b/tests/language_2/is/is4_test.dart @@ -5,6 +5,8 @@ // Regression test for issue 5216. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; class Foo { diff --git a/tests/language_2/is/isnot_malformed_type_runtime_test.dart b/tests/language_2/is/isnot_malformed_type_runtime_test.dart index c81599264f2..4e223a88de0 100644 --- a/tests/language_2/is/isnot_malformed_type_runtime_test.dart +++ b/tests/language_2/is/isnot_malformed_type_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/is/isnot_malformed_type_test.dart b/tests/language_2/is/isnot_malformed_type_test.dart index c81c644be7b..6d7003c5564 100644 --- a/tests/language_2/is/isnot_malformed_type_test.dart +++ b/tests/language_2/is/isnot_malformed_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; f(obj) { diff --git a/tests/language_2/is/malformed_type_runtime_test.dart b/tests/language_2/is/malformed_type_runtime_test.dart index 1389f622ad5..879a637df15 100644 --- a/tests/language_2/is/malformed_type_runtime_test.dart +++ b/tests/language_2/is/malformed_type_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/is/malformed_type_test.dart b/tests/language_2/is/malformed_type_test.dart index 9628aa8bed0..3bc0ee6e7a8 100644 --- a/tests/language_2/is/malformed_type_test.dart +++ b/tests/language_2/is/malformed_type_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for the "is" and "as" operator with malformed type. +// @dart = 2.9 + import "package:expect/expect.dart"; testEval(x) { diff --git a/tests/language_2/is/nan_test.dart b/tests/language_2/is/nan_test.dart index 125aabf4a6c..571da26b5a8 100644 --- a/tests/language_2/is/nan_test.dart +++ b/tests/language_2/is/nan_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/is/not_class1_test.dart b/tests/language_2/is/not_class1_test.dart index bb9a756ed27..2f2b94ac477 100644 --- a/tests/language_2/is/not_class1_test.dart +++ b/tests/language_2/is/not_class1_test.dart @@ -2,19 +2,20 @@ // 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 = 2.9 + /// Test that we expect a class after an 'is'. class A {} main() { var a = A(); if (a is "A") return 0; - // [error line 10, column 12, length 0] + // [error line 12, column 12, length 0] // [analyzer] COMPILE_TIME_ERROR.TYPE_TEST_WITH_UNDEFINED_NAME - // [cfe] Expected ')' before this. // ^^^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN - // [cfe] Expected a type, but got '"A"'. - // ^^^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_TYPE_NAME + // [cfe] Expected ')' before this. + // [cfe] Expected a type, but got '"A"'. // [cfe] This couldn't be parsed. } diff --git a/tests/language_2/is/not_class2_runtime_test.dart b/tests/language_2/is/not_class2_runtime_test.dart index 088e489f658..607862768ef 100644 --- a/tests/language_2/is/not_class2_runtime_test.dart +++ b/tests/language_2/is/not_class2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/is/not_class2_test.dart b/tests/language_2/is/not_class2_test.dart index 9e82ec1dfe5..b66f1a4b405 100644 --- a/tests/language_2/is/not_class2_test.dart +++ b/tests/language_2/is/not_class2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program for catch that we expect a class after an 'is'. 'aa' is a // malformed type and a type error should be thrown upon test. diff --git a/tests/language_2/is/not_class4_test.dart b/tests/language_2/is/not_class4_test.dart index a3adae277fb..62ea922da6d 100644 --- a/tests/language_2/is/not_class4_test.dart +++ b/tests/language_2/is/not_class4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test that the parser emits an error when one 'is' expression follows /// another. class A {} diff --git a/tests/language_2/is/object_test.dart b/tests/language_2/is/object_test.dart index 05490ca7e57..4be183a6401 100644 --- a/tests/language_2/is/object_test.dart +++ b/tests/language_2/is/object_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for the "is" type test operator. +// @dart = 2.9 + import "package:expect/expect.dart"; testTryCatch(x) { diff --git a/tests/language_2/is/operator_clash_test.dart b/tests/language_2/is/operator_clash_test.dart index 3cbe0952aec..20eafb86cfc 100644 --- a/tests/language_2/is/operator_clash_test.dart +++ b/tests/language_2/is/operator_clash_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/is/operator_test.dart b/tests/language_2/is/operator_test.dart index a934dc1e97f..f9abce85b8a 100644 --- a/tests/language_2/is/operator_test.dart +++ b/tests/language_2/is/operator_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for the "is" type test operator. +// @dart = 2.9 + import "package:expect/expect.dart"; abstract class I {} diff --git a/tests/language_2/is/optimized_test.dart b/tests/language_2/is/optimized_test.dart index 3c3f875b6a9..0c630ac6854 100644 --- a/tests/language_2/is/optimized_test.dart +++ b/tests/language_2/is/optimized_test.dart @@ -4,6 +4,8 @@ // Testing optimized 'is' tests. // VMOptions=--optimization-counter-threshold=5 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; bool isInt(x) => x is int; diff --git a/tests/language_2/label/label3_runtime_1_test.dart b/tests/language_2/label/label3_runtime_1_test.dart index 76da5010ba4..842c22f0547 100644 --- a/tests/language_2/label/label3_runtime_1_test.dart +++ b/tests/language_2/label/label3_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/label/label3_runtime_test.dart b/tests/language_2/label/label3_runtime_test.dart index afcaad747a9..2758cabb925 100644 --- a/tests/language_2/label/label3_runtime_test.dart +++ b/tests/language_2/label/label3_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/label/label3_test.dart b/tests/language_2/label/label3_test.dart index cdea8e4d091..8de76db27c5 100644 --- a/tests/language_2/label/label3_test.dart +++ b/tests/language_2/label/label3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { L: while (false) { if (true) break L; diff --git a/tests/language_2/label/label5_runtime_test.dart b/tests/language_2/label/label5_runtime_test.dart index fd934f04400..bfc0d955818 100644 --- a/tests/language_2/label/label5_runtime_test.dart +++ b/tests/language_2/label/label5_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/label/label5_test.dart b/tests/language_2/label/label5_test.dart index 985680967f8..dde78b36773 100644 --- a/tests/language_2/label/label5_test.dart +++ b/tests/language_2/label/label5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { var L = 33; while (false) { diff --git a/tests/language_2/label/label6_runtime_1_test.dart b/tests/language_2/label/label6_runtime_1_test.dart index effe712c308..08280fe7b9b 100644 --- a/tests/language_2/label/label6_runtime_1_test.dart +++ b/tests/language_2/label/label6_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/label/label6_runtime_2_test.dart b/tests/language_2/label/label6_runtime_2_test.dart index 732c430878d..693ec51d975 100644 --- a/tests/language_2/label/label6_runtime_2_test.dart +++ b/tests/language_2/label/label6_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/label/label6_runtime_test.dart b/tests/language_2/label/label6_runtime_test.dart index e240a78ea2f..2fa8993a60b 100644 --- a/tests/language_2/label/label6_runtime_test.dart +++ b/tests/language_2/label/label6_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/label/label6_test.dart b/tests/language_2/label/label6_test.dart index 5219b011638..71b0275cded 100644 --- a/tests/language_2/label/label6_test.dart +++ b/tests/language_2/label/label6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { L: while (false) { diff --git a/tests/language_2/label/label8_runtime_test.dart b/tests/language_2/label/label8_runtime_test.dart index 313ce694b55..d3c87158a71 100644 --- a/tests/language_2/label/label8_runtime_test.dart +++ b/tests/language_2/label/label8_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/label/label8_test.dart b/tests/language_2/label/label8_test.dart index 5e71b10ef99..630c561a93f 100644 --- a/tests/language_2/label/label8_test.dart +++ b/tests/language_2/label/label8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { int i; // Grammar doesn't allow label on block for switch statement. diff --git a/tests/language_2/label/label_test.dart b/tests/language_2/label/label_test.dart index 0ac8dbfa49c..d255a5859ae 100644 --- a/tests/language_2/label/label_test.dart +++ b/tests/language_2/label/label_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test check that we can parse labels. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/lazy/map_test.dart b/tests/language_2/lazy/map_test.dart index 08554a43c36..fae2aa80ae5 100644 --- a/tests/language_2/lazy/map_test.dart +++ b/tests/language_2/lazy/map_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var data = {'a': 'a'}; diff --git a/tests/language_2/lazy/static2_test.dart b/tests/language_2/lazy/static2_test.dart index 5a0ce9f462a..ab3f983ff5d 100644 --- a/tests/language_2/lazy/static2_test.dart +++ b/tests/language_2/lazy/static2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; final x = (int t) => t + 1; diff --git a/tests/language_2/lazy/static3_test.dart b/tests/language_2/lazy/static3_test.dart index 72821aeb4e2..9a75762ff6f 100644 --- a/tests/language_2/lazy/static3_test.dart +++ b/tests/language_2/lazy/static3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; final x = foo(); diff --git a/tests/language_2/lazy/static4_test.dart b/tests/language_2/lazy/static4_test.dart index 4e532c98821..af9f042467b 100644 --- a/tests/language_2/lazy/static4_test.dart +++ b/tests/language_2/lazy/static4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; final x = foo(499); diff --git a/tests/language_2/lazy/static5_test.dart b/tests/language_2/lazy/static5_test.dart index afaf30ece1c..0a3fecd0d2a 100644 --- a/tests/language_2/lazy/static5_test.dart +++ b/tests/language_2/lazy/static5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; final x = (int t) => (int u) => t + u; diff --git a/tests/language_2/lazy/static6_src.dart b/tests/language_2/lazy/static6_src.dart index 78f7a8380aa..14eb00f043e 100644 --- a/tests/language_2/lazy/static6_src.dart +++ b/tests/language_2/lazy/static6_src.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /* * A lot of comments to make sure that the lazy initialization code has a * position that does not fit into lazy_static6_test.dart file. diff --git a/tests/language_2/lazy/static6_test.dart b/tests/language_2/lazy/static6_test.dart index 61c309ad513..7891c0514fc 100644 --- a/tests/language_2/lazy/static6_test.dart +++ b/tests/language_2/lazy/static6_test.dart @@ -1,6 +1,8 @@ // 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 = 2.9 library lazy_static6_test; import "package:expect/expect.dart"; diff --git a/tests/language_2/lazy/static7_test.dart b/tests/language_2/lazy/static7_test.dart index fecd89a7e26..a05b244cfc9 100644 --- a/tests/language_2/lazy/static7_test.dart +++ b/tests/language_2/lazy/static7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var sideEffect = 0; diff --git a/tests/language_2/lazy/static8_test.dart b/tests/language_2/lazy/static8_test.dart index 73ffe909075..94bbb7686f8 100644 --- a/tests/language_2/lazy/static8_test.dart +++ b/tests/language_2/lazy/static8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test re-entrant initializer - calls throw CyclicInitializationError. diff --git a/tests/language_2/lazy/static_test.dart b/tests/language_2/lazy/static_test.dart index cdfabdd7028..cb030c0b2fb 100644 --- a/tests/language_2/lazy/static_test.dart +++ b/tests/language_2/lazy/static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; final x = foo(); diff --git a/tests/language_2/lazy/throwing_variable_test.dart b/tests/language_2/lazy/throwing_variable_test.dart index c97d2fb6bd1..a6b96233195 100644 --- a/tests/language_2/lazy/throwing_variable_test.dart +++ b/tests/language_2/lazy/throwing_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that engines will not infer that [a] is always of type int. var a = foo(); diff --git a/tests/language_2/least_upper_bound/expansive_runtime_test.dart b/tests/language_2/least_upper_bound/expansive_runtime_test.dart index 5d2e5425675..69c63edb899 100644 --- a/tests/language_2/least_upper_bound/expansive_runtime_test.dart +++ b/tests/language_2/least_upper_bound/expansive_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/expansive_test.dart b/tests/language_2/least_upper_bound/expansive_test.dart index 970b685b06e..6a4b63ae7b1 100644 --- a/tests/language_2/least_upper_bound/expansive_test.dart +++ b/tests/language_2/least_upper_bound/expansive_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test least upper bound through type checking of conditionals. class N { diff --git a/tests/language_2/least_upper_bound/least_upper_bound_test.dart b/tests/language_2/least_upper_bound/least_upper_bound_test.dart index 4a7a784c9db..5fd28641c42 100644 --- a/tests/language_2/least_upper_bound/least_upper_bound_test.dart +++ b/tests/language_2/least_upper_bound/least_upper_bound_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test least upper bound through type checking of conditionals. class A { diff --git a/tests/language_2/least_upper_bound/runtime_10_test.dart b/tests/language_2/least_upper_bound/runtime_10_test.dart index 417d1cebad5..caeae51c2aa 100644 --- a/tests/language_2/least_upper_bound/runtime_10_test.dart +++ b/tests/language_2/least_upper_bound/runtime_10_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_11_test.dart b/tests/language_2/least_upper_bound/runtime_11_test.dart index e699c6b1986..2f334d0809d 100644 --- a/tests/language_2/least_upper_bound/runtime_11_test.dart +++ b/tests/language_2/least_upper_bound/runtime_11_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_12_test.dart b/tests/language_2/least_upper_bound/runtime_12_test.dart index 67d2199b443..5c37565fe89 100644 --- a/tests/language_2/least_upper_bound/runtime_12_test.dart +++ b/tests/language_2/least_upper_bound/runtime_12_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_13_test.dart b/tests/language_2/least_upper_bound/runtime_13_test.dart index 28c2cbae64a..73b1ed1f950 100644 --- a/tests/language_2/least_upper_bound/runtime_13_test.dart +++ b/tests/language_2/least_upper_bound/runtime_13_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_14_test.dart b/tests/language_2/least_upper_bound/runtime_14_test.dart index 25210f94c6a..59ad272a557 100644 --- a/tests/language_2/least_upper_bound/runtime_14_test.dart +++ b/tests/language_2/least_upper_bound/runtime_14_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_15_test.dart b/tests/language_2/least_upper_bound/runtime_15_test.dart index f637466470a..62b3188ee2c 100644 --- a/tests/language_2/least_upper_bound/runtime_15_test.dart +++ b/tests/language_2/least_upper_bound/runtime_15_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_16_test.dart b/tests/language_2/least_upper_bound/runtime_16_test.dart index 22ad6d3baf4..fbfedae3f73 100644 --- a/tests/language_2/least_upper_bound/runtime_16_test.dart +++ b/tests/language_2/least_upper_bound/runtime_16_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_17_test.dart b/tests/language_2/least_upper_bound/runtime_17_test.dart index acaa1c529de..53ba3f6935e 100644 --- a/tests/language_2/least_upper_bound/runtime_17_test.dart +++ b/tests/language_2/least_upper_bound/runtime_17_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_18_test.dart b/tests/language_2/least_upper_bound/runtime_18_test.dart index 67cf93de409..8600210ee39 100644 --- a/tests/language_2/least_upper_bound/runtime_18_test.dart +++ b/tests/language_2/least_upper_bound/runtime_18_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_19_test.dart b/tests/language_2/least_upper_bound/runtime_19_test.dart index 9fc6257d6e8..7c5ebae7dc5 100644 --- a/tests/language_2/least_upper_bound/runtime_19_test.dart +++ b/tests/language_2/least_upper_bound/runtime_19_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_1_test.dart b/tests/language_2/least_upper_bound/runtime_1_test.dart index c0dd6268e16..775c95e660f 100644 --- a/tests/language_2/least_upper_bound/runtime_1_test.dart +++ b/tests/language_2/least_upper_bound/runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_20_test.dart b/tests/language_2/least_upper_bound/runtime_20_test.dart index 4d41fa20e6f..4e2fe64f957 100644 --- a/tests/language_2/least_upper_bound/runtime_20_test.dart +++ b/tests/language_2/least_upper_bound/runtime_20_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_21_test.dart b/tests/language_2/least_upper_bound/runtime_21_test.dart index 6da9f5d3586..6cbb67c6d13 100644 --- a/tests/language_2/least_upper_bound/runtime_21_test.dart +++ b/tests/language_2/least_upper_bound/runtime_21_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_22_test.dart b/tests/language_2/least_upper_bound/runtime_22_test.dart index 659af0861ac..0d2398d0c0c 100644 --- a/tests/language_2/least_upper_bound/runtime_22_test.dart +++ b/tests/language_2/least_upper_bound/runtime_22_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_2_test.dart b/tests/language_2/least_upper_bound/runtime_2_test.dart index 78e9ff650cc..5ee9a36490e 100644 --- a/tests/language_2/least_upper_bound/runtime_2_test.dart +++ b/tests/language_2/least_upper_bound/runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_3_test.dart b/tests/language_2/least_upper_bound/runtime_3_test.dart index 98b80160d08..816e7997581 100644 --- a/tests/language_2/least_upper_bound/runtime_3_test.dart +++ b/tests/language_2/least_upper_bound/runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_4_test.dart b/tests/language_2/least_upper_bound/runtime_4_test.dart index 260ca6ea465..eb008f4c6dc 100644 --- a/tests/language_2/least_upper_bound/runtime_4_test.dart +++ b/tests/language_2/least_upper_bound/runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_5_test.dart b/tests/language_2/least_upper_bound/runtime_5_test.dart index af9eb20127a..57ceed7e6ca 100644 --- a/tests/language_2/least_upper_bound/runtime_5_test.dart +++ b/tests/language_2/least_upper_bound/runtime_5_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_6_test.dart b/tests/language_2/least_upper_bound/runtime_6_test.dart index 8bd31ee7f84..b961fd3b6c1 100644 --- a/tests/language_2/least_upper_bound/runtime_6_test.dart +++ b/tests/language_2/least_upper_bound/runtime_6_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_7_test.dart b/tests/language_2/least_upper_bound/runtime_7_test.dart index 5e2405b32b4..7557361c518 100644 --- a/tests/language_2/least_upper_bound/runtime_7_test.dart +++ b/tests/language_2/least_upper_bound/runtime_7_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_8_test.dart b/tests/language_2/least_upper_bound/runtime_8_test.dart index 5bc86d3643a..0bbad5e8a49 100644 --- a/tests/language_2/least_upper_bound/runtime_8_test.dart +++ b/tests/language_2/least_upper_bound/runtime_8_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_9_test.dart b/tests/language_2/least_upper_bound/runtime_9_test.dart index fe6d5c0401b..03aa22d1cd8 100644 --- a/tests/language_2/least_upper_bound/runtime_9_test.dart +++ b/tests/language_2/least_upper_bound/runtime_9_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/least_upper_bound/runtime_test.dart b/tests/language_2/least_upper_bound/runtime_test.dart index 781a3a73edd..f0df39c2a50 100644 --- a/tests/language_2/least_upper_bound/runtime_test.dart +++ b/tests/language_2/least_upper_bound/runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/library/a.dart b/tests/language_2/library/a.dart index 95f855e7661..1b7fc617cc4 100644 --- a/tests/language_2/library/a.dart +++ b/tests/language_2/library/a.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library libraryA.dart; import "c.dart"; diff --git a/tests/language_2/library/ambiguous_test.dart b/tests/language_2/library/ambiguous_test.dart index 1c2cd6b9d56..228bc10f9ba 100644 --- a/tests/language_2/library/ambiguous_test.dart +++ b/tests/language_2/library/ambiguous_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test should fail to load because we are importing two libraries // which define the same top level name foo, and we are referring to the name. diff --git a/tests/language_2/library/b.dart b/tests/language_2/library/b.dart index 2a36a647d36..dfc7b36d989 100644 --- a/tests/language_2/library/b.dart +++ b/tests/language_2/library/b.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library libraryB.dart; import "c.dart"; diff --git a/tests/language_2/library/c.dart b/tests/language_2/library/c.dart index fcf3555c930..cc212ff1018 100644 --- a/tests/language_2/library/c.dart +++ b/tests/language_2/library/c.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library libraryC.dart; var fooC = 10; diff --git a/tests/language_2/library/d.dart b/tests/language_2/library/d.dart index 054c0339083..25ec2a91afa 100644 --- a/tests/language_2/library/d.dart +++ b/tests/language_2/library/d.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library libraryD.dart; import "f.dart"; diff --git a/tests/language_2/library/e.dart b/tests/language_2/library/e.dart index 0332e42cd1e..c00631e5c4b 100644 --- a/tests/language_2/library/e.dart +++ b/tests/language_2/library/e.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library libraryE.dart; import "c.dart"; diff --git a/tests/language_2/library/env_test.dart b/tests/language_2/library/env_test.dart index 17a5e590cc4..9367eb5073a 100644 --- a/tests/language_2/library/env_test.dart +++ b/tests/language_2/library/env_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/language_2/library/f.dart b/tests/language_2/library/f.dart index f73e3cb6e87..085bea44215 100644 --- a/tests/language_2/library/f.dart +++ b/tests/language_2/library/f.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library libraryF.dart; var fooC = 10; diff --git a/tests/language_2/library/juxtaposition_lib.dart b/tests/language_2/library/juxtaposition_lib.dart index bf1230af4ed..d1fdb716a0f 100644 --- a/tests/language_2/library/juxtaposition_lib.dart +++ b/tests/language_2/library/juxtaposition_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib; part "" "juxtaposition_" "part.dart"; diff --git a/tests/language_2/library/juxtaposition_part.dart b/tests/language_2/library/juxtaposition_part.dart index 708c8545b88..dcae020d7cf 100644 --- a/tests/language_2/library/juxtaposition_part.dart +++ b/tests/language_2/library/juxtaposition_part.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of lib; const c = 47; diff --git a/tests/language_2/library/juxtaposition_test.dart b/tests/language_2/library/juxtaposition_test.dart index be49df39b2b..4c4b4a552f3 100644 --- a/tests/language_2/library/juxtaposition_test.dart +++ b/tests/language_2/library/juxtaposition_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "" "juxtaposition_" "lib.dart"; export "" "juxtaposition_" "lib.dart"; diff --git a/tests/language_2/library/library1.dart b/tests/language_2/library/library1.dart index 96cdd1bfe75..78c860cb772 100644 --- a/tests/language_2/library/library1.dart +++ b/tests/language_2/library/library1.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library library1.dart; var foo; diff --git a/tests/language_2/library/library1_lib.dart b/tests/language_2/library/library1_lib.dart index 81f27af8d25..1d36227b7c6 100644 --- a/tests/language_2/library/library1_lib.dart +++ b/tests/language_2/library/library1_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library Library1Lib; class A { diff --git a/tests/language_2/library/library1_test.dart b/tests/language_2/library/library1_test.dart index 1219f85977c..6b3cfdf5fbe 100644 --- a/tests/language_2/library/library1_test.dart +++ b/tests/language_2/library/library1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing libraries. +// @dart = 2.9 + library Library1Test.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/library/library2.dart b/tests/language_2/library/library2.dart index 219303f3688..8a1a94eed27 100644 --- a/tests/language_2/library/library2.dart +++ b/tests/language_2/library/library2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + var foo; var foo1 = 0; diff --git a/tests/language_2/library/library3.dart b/tests/language_2/library/library3.dart index 625f568c458..96a979f71f4 100644 --- a/tests/language_2/library/library3.dart +++ b/tests/language_2/library/library3.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library library3.dart; import "../library2.dart"; // defines "foo" and "foo1". diff --git a/tests/language_2/library/library4.dart b/tests/language_2/library/library4.dart index 25af0117371..f4d701e95ba 100644 --- a/tests/language_2/library/library4.dart +++ b/tests/language_2/library/library4.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library library4.dart; import "../library2.dart"; // defines "foo" and "foo1". diff --git a/tests/language_2/library/library5_test.dart b/tests/language_2/library/library5_test.dart index ca6919d0eb3..86547eff1a6 100644 --- a/tests/language_2/library/library5_test.dart +++ b/tests/language_2/library/library5_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library Library5Test.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/library/library5a.dart b/tests/language_2/library/library5a.dart index af5ba9c280a..16d57c5a783 100644 --- a/tests/language_2/library/library5a.dart +++ b/tests/language_2/library/library5a.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library Library5a.dart; typedef int Fun(); diff --git a/tests/language_2/library/library5b.dart b/tests/language_2/library/library5b.dart index ef3e3030691..a46bd3bbcc6 100644 --- a/tests/language_2/library/library5b.dart +++ b/tests/language_2/library/library5b.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library Library5b.dart; typedef int Fun(x); diff --git a/tests/language_2/library/library6.dart b/tests/language_2/library/library6.dart index 7f4ab4b74b5..a4329586cdd 100644 --- a/tests/language_2/library/library6.dart +++ b/tests/language_2/library/library6.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This tests that it is a compile-time error to both import a library // that defines a function type alias and to have a local definition for // another function type alias with the same name. diff --git a/tests/language_2/library/library_test.dart b/tests/language_2/library/library_test.dart index 6dd7428f93d..c7dffb53e82 100644 --- a/tests/language_2/library/library_test.dart +++ b/tests/language_2/library/library_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "nonexistent_library.dart"; //# 01: compile-time error main() { diff --git a/tests/language_2/library/prefixes.dart b/tests/language_2/library/prefixes.dart index fee5b6e81a0..377493f40d9 100644 --- a/tests/language_2/library/prefixes.dart +++ b/tests/language_2/library/prefixes.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library LibraryPrefixes.lib; import "prefixes_test1.dart"; diff --git a/tests/language_2/library/prefixes_test.dart b/tests/language_2/library/prefixes_test.dart index 4ffef88a5e2..fdc790375dc 100644 --- a/tests/language_2/library/prefixes_test.dart +++ b/tests/language_2/library/prefixes_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library LibraryPrefixesTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/library/prefixes_test1.dart b/tests/language_2/library/prefixes_test1.dart index 17eeaa21177..9cdc1c64969 100644 --- a/tests/language_2/library/prefixes_test1.dart +++ b/tests/language_2/library/prefixes_test1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Constants { static const PI = 3.14; static const foo = 1; diff --git a/tests/language_2/library/prefixes_test2.dart b/tests/language_2/library/prefixes_test2.dart index fcdc7c5db84..d1dd475c9ea 100644 --- a/tests/language_2/library/prefixes_test2.dart +++ b/tests/language_2/library/prefixes_test2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Constants { static const PI = 3.14; static const foo = 2; diff --git a/tests/language_2/library/private_in_constructor_a.dart b/tests/language_2/library/private_in_constructor_a.dart index ba67fcd3a74..0353149653d 100644 --- a/tests/language_2/library/private_in_constructor_a.dart +++ b/tests/language_2/library/private_in_constructor_a.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library LibraryPrivateInConstructorA; class PrivateA { diff --git a/tests/language_2/library/private_in_constructor_b.dart b/tests/language_2/library/private_in_constructor_b.dart index 44183722423..04f717336c0 100644 --- a/tests/language_2/library/private_in_constructor_b.dart +++ b/tests/language_2/library/private_in_constructor_b.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library LibraryPrivateInConstructorB; import "private_in_constructor_a.dart"; diff --git a/tests/language_2/library/private_in_constructor_test.dart b/tests/language_2/library/private_in_constructor_test.dart index f62563ad77a..c26bedc16be 100644 --- a/tests/language_2/library/private_in_constructor_test.dart +++ b/tests/language_2/library/private_in_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library LibraryPrivateInConstructor; import "package:expect/expect.dart"; diff --git a/tests/language_2/library/same_name_used_lib1.dart b/tests/language_2/library/same_name_used_lib1.dart index 3a93459a439..67c946a06f0 100644 --- a/tests/language_2/library/same_name_used_lib1.dart +++ b/tests/language_2/library/same_name_used_lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib1; import 'same_name_used_lib2.dart' as lib2; diff --git a/tests/language_2/library/same_name_used_lib2.dart b/tests/language_2/library/same_name_used_lib2.dart index 7d8c8a8e8c2..7b9c605fd95 100644 --- a/tests/language_2/library/same_name_used_lib2.dart +++ b/tests/language_2/library/same_name_used_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib2; import 'same_name_used_lib1.dart' as lib1; // for abstract class X. diff --git a/tests/language_2/library/same_name_used_test.dart b/tests/language_2/library/same_name_used_test.dart index 74779f9ce90..9efc200cf45 100644 --- a/tests/language_2/library/same_name_used_test.dart +++ b/tests/language_2/library/same_name_used_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // 'X' is defined as an abstract class in lib1 and a class implementing that // abstract class in lib2. Use of import prefixes should allow this. diff --git a/tests/language_2/library1.dart b/tests/language_2/library1.dart index 96cdd1bfe75..78c860cb772 100644 --- a/tests/language_2/library1.dart +++ b/tests/language_2/library1.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library library1.dart; var foo; diff --git a/tests/language_2/library10.dart b/tests/language_2/library10.dart index 8d2c7b5771b..9a173790c43 100644 --- a/tests/language_2/library10.dart +++ b/tests/language_2/library10.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library library10.dart; import "library11.dart" as lib11; diff --git a/tests/language_2/library11.dart b/tests/language_2/library11.dart index 30dfbf292fd..5523666d676 100644 --- a/tests/language_2/library11.dart +++ b/tests/language_2/library11.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library library11.dart; class Library11 { diff --git a/tests/language_2/library12.dart b/tests/language_2/library12.dart index 1eeaa0e38c1..3203a89f3f8 100644 --- a/tests/language_2/library12.dart +++ b/tests/language_2/library12.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library library12.dart; import 'package:expect/expect.dart'; diff --git a/tests/language_2/library2.dart b/tests/language_2/library2.dart index 219303f3688..8a1a94eed27 100644 --- a/tests/language_2/library2.dart +++ b/tests/language_2/library2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + var foo; var foo1 = 0; diff --git a/tests/language_2/list/double_index_in_loop2_test.dart b/tests/language_2/list/double_index_in_loop2_test.dart index 01ae74b3a04..7633b07e51e 100644 --- a/tests/language_2/list/double_index_in_loop2_test.dart +++ b/tests/language_2/list/double_index_in_loop2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing arrays. +// @dart = 2.9 + import "package:expect/expect.dart"; bar() => true; diff --git a/tests/language_2/list/double_index_in_loop_test.dart b/tests/language_2/list/double_index_in_loop_test.dart index ab40f999816..92ab549541c 100644 --- a/tests/language_2/list/double_index_in_loop_test.dart +++ b/tests/language_2/list/double_index_in_loop_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing arrays. +// @dart = 2.9 + import "package:expect/expect.dart"; bar() => true; diff --git a/tests/language_2/list/in_closure_test.dart b/tests/language_2/list/in_closure_test.dart index 5ac5d991c88..539b0abc97a 100644 --- a/tests/language_2/list/in_closure_test.dart +++ b/tests/language_2/list/in_closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to see aborting closure // bodies as aborting their enclosing element. diff --git a/tests/language_2/list/is_test.dart b/tests/language_2/list/is_test.dart index 56e716d546f..27ef122d291 100644 --- a/tests/language_2/list/is_test.dart +++ b/tests/language_2/list/is_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/list/length_tracer_test.dart b/tests/language_2/list/length_tracer_test.dart index f8c1070aa04..6d9417a58ba 100644 --- a/tests/language_2/list/length_tracer_test.dart +++ b/tests/language_2/list/length_tracer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that dart2js' optimization on list length does not fold a // length getter to a constant if the receiver can be null. diff --git a/tests/language_2/list/list_test.dart b/tests/language_2/list/list_test.dart index e5475c493f2..d7ec6b90f27 100644 --- a/tests/language_2/list/list_test.dart +++ b/tests/language_2/list/list_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing arrays. +// @dart = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/list/literal1_runtime_test.dart b/tests/language_2/list/literal1_runtime_test.dart index 542d7edfd0b..e6f9ab9e3f4 100644 --- a/tests/language_2/list/literal1_runtime_test.dart +++ b/tests/language_2/list/literal1_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/list/literal1_test.dart b/tests/language_2/list/literal1_test.dart index cd549068e59..a34bec137fa 100644 --- a/tests/language_2/list/literal1_test.dart +++ b/tests/language_2/list/literal1_test.dart @@ -4,6 +4,8 @@ // // A type mismatch in a list literal is a compile-time error +// @dart = 2.9 + main() { var m = const diff --git a/tests/language_2/list/literal2_test.dart b/tests/language_2/list/literal2_test.dart index a21113ea584..d1c9d47acb2 100644 --- a/tests/language_2/list/literal2_test.dart +++ b/tests/language_2/list/literal2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test program for array literals. +// @dart = 2.9 + import "package:expect/expect.dart"; class ArrayLiteral2Test { diff --git a/tests/language_2/list/literal3_test.dart b/tests/language_2/list/literal3_test.dart index e78cb508339..248eaae8f4d 100644 --- a/tests/language_2/list/literal3_test.dart +++ b/tests/language_2/list/literal3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check that arrays from const array literals are immutable. +// @dart = 2.9 + import "package:expect/expect.dart"; class ListLiteral3Test { diff --git a/tests/language_2/list/literal4_test.dart b/tests/language_2/list/literal4_test.dart index 72a31d12465..95039a2cedc 100644 --- a/tests/language_2/list/literal4_test.dart +++ b/tests/language_2/list/literal4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class ListLiteral4Test { diff --git a/tests/language_2/list/literal5_test.dart b/tests/language_2/list/literal5_test.dart index ea27f04f376..f9b63531ed8 100644 --- a/tests/language_2/list/literal5_test.dart +++ b/tests/language_2/list/literal5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Legacy compound literal syntax that should go away. main() { diff --git a/tests/language_2/list/literal6_test.dart b/tests/language_2/list/literal6_test.dart index f066509e981..f14b4fd8bf0 100644 --- a/tests/language_2/list/literal6_test.dart +++ b/tests/language_2/list/literal6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Dart test program const map literals. class ListLiteral2NegativeTest { diff --git a/tests/language_2/list/literal_syntax_test.dart b/tests/language_2/list/literal_syntax_test.dart index 652d1b16768..827a4ec68cc 100644 --- a/tests/language_2/list/literal_syntax_test.dart +++ b/tests/language_2/list/literal_syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class I {} diff --git a/tests/language_2/list/literal_test.dart b/tests/language_2/list/literal_test.dart index da94733769c..c877081cd1b 100644 --- a/tests/language_2/list/literal_test.dart +++ b/tests/language_2/list/literal_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test program for array literals. +// @dart = 2.9 + import "package:expect/expect.dart"; class ListLiteralTest { diff --git a/tests/language_2/list/mixin_test.dart b/tests/language_2/list/mixin_test.dart index 6d5ec8b7344..233cb3a820b 100644 --- a/tests/language_2/list/mixin_test.dart +++ b/tests/language_2/list/mixin_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:collection'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/list/tracer_call_last_test.dart b/tests/language_2/list/tracer_call_last_test.dart index dbaf1360ce5..782aa7c5dae 100644 --- a/tests/language_2/list/tracer_call_last_test.dart +++ b/tests/language_2/list/tracer_call_last_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // dart2js used to fail this test, by inferring that `a.last()` // returns the element type of the `a` list. diff --git a/tests/language_2/list/tracer_closure_test.dart b/tests/language_2/list/tracer_closure_test.dart index acb226e3d16..702a52d870c 100644 --- a/tests/language_2/list/tracer_closure_test.dart +++ b/tests/language_2/list/tracer_closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js' inferrer: if we closurize a method, we // still need to collect the users of the parameters for the trace // container pass to work. diff --git a/tests/language_2/list/tracer_in_list_test.dart b/tests/language_2/list/tracer_in_list_test.dart index 643f8ad3674..c8602e9e81a 100644 --- a/tests/language_2/list/tracer_in_list_test.dart +++ b/tests/language_2/list/tracer_in_list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { var a = [[]]; a[0].add(42); diff --git a/tests/language_2/list/tracer_in_map_test.dart b/tests/language_2/list/tracer_in_map_test.dart index 95290a04b2b..45895a844a1 100644 --- a/tests/language_2/list/tracer_in_map_test.dart +++ b/tests/language_2/list/tracer_in_map_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js, whose type inferrer used to not see // literal maps as places where a list could escape. diff --git a/tests/language_2/list/tracer_return_from_tearoff_closure_test.dart b/tests/language_2/list/tracer_return_from_tearoff_closure_test.dart index 47e1bb49796..7f816fd8681 100644 --- a/tests/language_2/list/tracer_return_from_tearoff_closure_test.dart +++ b/tests/language_2/list/tracer_return_from_tearoff_closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js's list tracer, that used to not see a // returned value of a method can escape to places where that method // is closurized and invoked. diff --git a/tests/language_2/loop/break_outside_loop_runtime_test.dart b/tests/language_2/loop/break_outside_loop_runtime_test.dart index b4879cf08ee..778a35476e4 100644 --- a/tests/language_2/loop/break_outside_loop_runtime_test.dart +++ b/tests/language_2/loop/break_outside_loop_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/loop/break_outside_loop_test.dart b/tests/language_2/loop/break_outside_loop_test.dart index 6cfbbbdf273..fecee3eac58 100644 --- a/tests/language_2/loop/break_outside_loop_test.dart +++ b/tests/language_2/loop/break_outside_loop_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test check that we catch label errors. +// @dart = 2.9 + main() { if (true) { break; diff --git a/tests/language_2/loop/break_test.dart b/tests/language_2/loop/break_test.dart index ca79675f2e9..340b7c6edea 100644 --- a/tests/language_2/loop/break_test.dart +++ b/tests/language_2/loop/break_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for breaks in for, do/while and while loops. +// @dart = 2.9 + import "package:expect/expect.dart"; class BreakTest { diff --git a/tests/language_2/loop/continue_test.dart b/tests/language_2/loop/continue_test.dart index 4587241ecc0..0d18cb7e5bc 100644 --- a/tests/language_2/loop/continue_test.dart +++ b/tests/language_2/loop/continue_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for continue in for, do/while and while loops. +// @dart = 2.9 + import "package:expect/expect.dart"; class ContinueTest { diff --git a/tests/language_2/loop/do_while2_test.dart b/tests/language_2/loop/do_while2_test.dart index 9243e94917e..1bf16343ca4 100644 --- a/tests/language_2/loop/do_while2_test.dart +++ b/tests/language_2/loop/do_while2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var a = 42; diff --git a/tests/language_2/loop/do_while3_test.dart b/tests/language_2/loop/do_while3_test.dart index 4026ec94ba5..1d0e2e29350 100644 --- a/tests/language_2/loop/do_while3_test.dart +++ b/tests/language_2/loop/do_while3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that a condition is only evaluated once in a loop. diff --git a/tests/language_2/loop/do_while4_test.dart b/tests/language_2/loop/do_while4_test.dart index 9b7115aaa9b..baa46efd45e 100644 --- a/tests/language_2/loop/do_while4_test.dart +++ b/tests/language_2/loop/do_while4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to crash in the presence of // do/while, break and a local variable declared after the break. diff --git a/tests/language_2/loop/do_while_test.dart b/tests/language_2/loop/do_while_test.dart index 435fab5bac5..562ec1fe6c8 100644 --- a/tests/language_2/loop/do_while_test.dart +++ b/tests/language_2/loop/do_while_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing do while statement. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/loop/exchange2_test.dart b/tests/language_2/loop/exchange2_test.dart index 79fa6edbb52..2f6491c334a 100644 --- a/tests/language_2/loop/exchange2_test.dart +++ b/tests/language_2/loop/exchange2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // This program tripped dart2js. diff --git a/tests/language_2/loop/exchange3_test.dart b/tests/language_2/loop/exchange3_test.dart index c621da178b7..3d62359913b 100644 --- a/tests/language_2/loop/exchange3_test.dart +++ b/tests/language_2/loop/exchange3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // This program tripped dart2js. diff --git a/tests/language_2/loop/exchange4_test.dart b/tests/language_2/loop/exchange4_test.dart index b6245a9acf8..920fb1273aa 100644 --- a/tests/language_2/loop/exchange4_test.dart +++ b/tests/language_2/loop/exchange4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // This program tripped dart2js. diff --git a/tests/language_2/loop/exchange_loop_exchange_test.dart b/tests/language_2/loop/exchange_loop_exchange_test.dart index 0edd06d8066..1043d954693 100644 --- a/tests/language_2/loop/exchange_loop_exchange_test.dart +++ b/tests/language_2/loop/exchange_loop_exchange_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // This program tripped dart2js. diff --git a/tests/language_2/loop/exhaustive_for_test.dart b/tests/language_2/loop/exhaustive_for_test.dart index a88d2d78f26..153f268710f 100644 --- a/tests/language_2/loop/exhaustive_for_test.dart +++ b/tests/language_2/loop/exhaustive_for_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing for statement. +// @dart = 2.9 + import "package:expect/expect.dart"; // Test several variations of for loops: diff --git a/tests/language_2/loop/for2_test.dart b/tests/language_2/loop/for2_test.dart index 52686e255ab..c91b189c9cd 100644 --- a/tests/language_2/loop/for2_test.dart +++ b/tests/language_2/loop/for2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing for statement which captures loop variable. +// @dart = 2.9 + import "package:expect/expect.dart"; var f; diff --git a/tests/language_2/loop/for_in2_test.dart b/tests/language_2/loop/for_in2_test.dart index bf3e26ad4b5..4dcae09f555 100644 --- a/tests/language_2/loop/for_in2_test.dart +++ b/tests/language_2/loop/for_in2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that using a field or a global variable for a for/in variable // works. diff --git a/tests/language_2/loop/for_in3_test.dart b/tests/language_2/loop/for_in3_test.dart index 7de80496e4d..3f38724a335 100644 --- a/tests/language_2/loop/for_in3_test.dart +++ b/tests/language_2/loop/for_in3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for testing that strings aren't iterable. main() { diff --git a/tests/language_2/loop/for_in_side_effects_test.dart b/tests/language_2/loop/for_in_side_effects_test.dart index f9b5f1ab8a5..747d1575c8d 100644 --- a/tests/language_2/loop/for_in_side_effects_test.dart +++ b/tests/language_2/loop/for_in_side_effects_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to not see side effects of // iterator calls made in a "for in". diff --git a/tests/language_2/loop/for_in_test.dart b/tests/language_2/loop/for_in_test.dart index 32b423badd7..370e18218b5 100644 --- a/tests/language_2/loop/for_in_test.dart +++ b/tests/language_2/loop/for_in_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test for testing for in on a list literal. diff --git a/tests/language_2/loop/for_inlining_test.dart b/tests/language_2/loop/for_inlining_test.dart index 6615c1ed42b..30955618294 100644 --- a/tests/language_2/loop/for_inlining_test.dart +++ b/tests/language_2/loop/for_inlining_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to emit an invalid JS // variable declaration initializer in a for initializer. diff --git a/tests/language_2/loop/for_runtime_test.dart b/tests/language_2/loop/for_runtime_test.dart index 9de889f2486..7ae24f2144e 100644 --- a/tests/language_2/loop/for_runtime_test.dart +++ b/tests/language_2/loop/for_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/loop/for_test.dart b/tests/language_2/loop/for_test.dart index 375fa78604c..4fef4ab02cf 100644 --- a/tests/language_2/loop/for_test.dart +++ b/tests/language_2/loop/for_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing for statement. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/loop/for_variable_capture_test.dart b/tests/language_2/loop/for_variable_capture_test.dart index 97a062680f4..098f97c7d9c 100644 --- a/tests/language_2/loop/for_variable_capture_test.dart +++ b/tests/language_2/loop/for_variable_capture_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; run(callback) => callback(); diff --git a/tests/language_2/loop/for_without_condition_test.dart b/tests/language_2/loop/for_without_condition_test.dart index b63739d71c6..2f709f05b54 100644 --- a/tests/language_2/loop/for_without_condition_test.dart +++ b/tests/language_2/loop/for_without_condition_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/loop/hoist_test.dart b/tests/language_2/loop/hoist_test.dart index 5b15ec8e544..a5ce53dee5c 100644 --- a/tests/language_2/loop/hoist_test.dart +++ b/tests/language_2/loop/hoist_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/loop/non_dominating_loop_test.dart b/tests/language_2/loop/non_dominating_loop_test.dart index ac16396927a..aa6d4a5106c 100644 --- a/tests/language_2/loop/non_dominating_loop_test.dart +++ b/tests/language_2/loop/non_dominating_loop_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int calls = 0; diff --git a/tests/language_2/loop/unconditional_break_test.dart b/tests/language_2/loop/unconditional_break_test.dart index 63ec511883d..32d50d9d572 100644 --- a/tests/language_2/loop/unconditional_break_test.dart +++ b/tests/language_2/loop/unconditional_break_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test to ensure that we get don't exceptions in the SSA verifier when // generating phi for the return value of an inlined function that contains a // loop that always breaks. diff --git a/tests/language_2/loop/while_test.dart b/tests/language_2/loop/while_test.dart index 6df3760c7f3..3636225178b 100644 --- a/tests/language_2/loop/while_test.dart +++ b/tests/language_2/loop/while_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing while statement. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/main/main_test.dart b/tests/language_2/main/main_test.dart index da3b57e346b..5fb10affba3 100644 --- a/tests/language_2/main/main_test.dart +++ b/tests/language_2/main/main_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main( a // //# 01: ok diff --git a/tests/language_2/main/no_main_test.dart b/tests/language_2/main/no_main_test.dart index 0700b65c53e..7866fb2d3c1 100644 --- a/tests/language_2/main/no_main_test.dart +++ b/tests/language_2/main/no_main_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /* //# 01: static type warning, runtime error main() {} */ //# 01: continued diff --git a/tests/language_2/main/not_a_function_test.dart b/tests/language_2/main/not_a_function_test.dart index 62ab4ccb86a..ff2b02a32cf 100644 --- a/tests/language_2/main/not_a_function_test.dart +++ b/tests/language_2/main/not_a_function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() {} var main; /*@compile-error=unspecified*/ diff --git a/tests/language_2/malbounded/instantiation_runtime_test.dart b/tests/language_2/malbounded/instantiation_runtime_test.dart index 31f8703cff7..b326933bf79 100644 --- a/tests/language_2/malbounded/instantiation_runtime_test.dart +++ b/tests/language_2/malbounded/instantiation_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/malbounded/instantiation_test.dart b/tests/language_2/malbounded/instantiation_test.dart index 2f397b2d761..9f524276ec1 100644 --- a/tests/language_2/malbounded/instantiation_test.dart +++ b/tests/language_2/malbounded/instantiation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Super {} class Malbounded1 implements Super {} // ^ diff --git a/tests/language_2/malbounded/redirecting_factory_test.dart b/tests/language_2/malbounded/redirecting_factory_test.dart index 9d2d8a9859c..0c9c6ca9413 100644 --- a/tests/language_2/malbounded/redirecting_factory_test.dart +++ b/tests/language_2/malbounded/redirecting_factory_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A< Ta extends num // //# 02: continued diff --git a/tests/language_2/malbounded/type_cast2_test.dart b/tests/language_2/malbounded/type_cast2_test.dart index 06940a8e958..e001c815cb2 100644 --- a/tests/language_2/malbounded/type_cast2_test.dart +++ b/tests/language_2/malbounded/type_cast2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/malbounded/type_cast_runtime_test.dart b/tests/language_2/malbounded/type_cast_runtime_test.dart index fd75b123c41..7c9f34d27fc 100644 --- a/tests/language_2/malbounded/type_cast_runtime_test.dart +++ b/tests/language_2/malbounded/type_cast_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/malbounded/type_cast_test.dart b/tests/language_2/malbounded/type_cast_test.dart index 2c56e68d6d7..476c63e312f 100644 --- a/tests/language_2/malbounded/type_cast_test.dart +++ b/tests/language_2/malbounded/type_cast_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class Super {} diff --git a/tests/language_2/malbounded/type_literal_runtime_test.dart b/tests/language_2/malbounded/type_literal_runtime_test.dart index adeefbfca34..2ca0f44237f 100644 --- a/tests/language_2/malbounded/type_literal_runtime_test.dart +++ b/tests/language_2/malbounded/type_literal_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/malbounded/type_literal_test.dart b/tests/language_2/malbounded/type_literal_test.dart index 2369b69d451..ebfef5b7057 100644 --- a/tests/language_2/malbounded/type_literal_test.dart +++ b/tests/language_2/malbounded/type_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class Super {} diff --git a/tests/language_2/malbounded/type_test2_runtime_test.dart b/tests/language_2/malbounded/type_test2_runtime_test.dart index 1edb15f6c02..21d04c8349e 100644 --- a/tests/language_2/malbounded/type_test2_runtime_test.dart +++ b/tests/language_2/malbounded/type_test2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/malbounded/type_test2_test.dart b/tests/language_2/malbounded/type_test2_test.dart index 8eec3aa544f..542b7f6dccd 100644 --- a/tests/language_2/malbounded/type_test2_test.dart +++ b/tests/language_2/malbounded/type_test2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/malbounded/type_test_runtime_test.dart b/tests/language_2/malbounded/type_test_runtime_test.dart index e62f180a543..92a424b2556 100644 --- a/tests/language_2/malbounded/type_test_runtime_test.dart +++ b/tests/language_2/malbounded/type_test_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/malbounded/type_test_test.dart b/tests/language_2/malbounded/type_test_test.dart index 70fc93962f7..b5434fd4536 100644 --- a/tests/language_2/malbounded/type_test_test.dart +++ b/tests/language_2/malbounded/type_test_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class Super {} diff --git a/tests/language_2/malformed/bound_test.dart b/tests/language_2/malformed/bound_test.dart index 035cedf9fe7..fbc42f675c8 100644 --- a/tests/language_2/malformed/bound_test.dart +++ b/tests/language_2/malformed/bound_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { diff --git a/tests/language_2/malformed/inheritance_runtime_test.dart b/tests/language_2/malformed/inheritance_runtime_test.dart index 8c88a6251a3..8d943b127ad 100644 --- a/tests/language_2/malformed/inheritance_runtime_test.dart +++ b/tests/language_2/malformed/inheritance_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/malformed/inheritance_test.dart b/tests/language_2/malformed/inheritance_test.dart index 8eed85875db..20b78ddbf52 100644 --- a/tests/language_2/malformed/inheritance_test.dart +++ b/tests/language_2/malformed/inheritance_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that malformed types used in extends, implements, and with clauses // cause compile-time errors. diff --git a/tests/language_2/malformed/malformed2_lib.dart b/tests/language_2/malformed/malformed2_lib.dart index a940c82dc92..c29d200d62a 100644 --- a/tests/language_2/malformed/malformed2_lib.dart +++ b/tests/language_2/malformed/malformed2_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of malformed_test; void testValue(var o) { diff --git a/tests/language_2/malformed/malformed2_test.dart b/tests/language_2/malformed/malformed2_test.dart index 79061c2419a..f6c32cb502e 100644 --- a/tests/language_2/malformed/malformed2_test.dart +++ b/tests/language_2/malformed/malformed2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library malformed_test; // This part includes the actual tests. diff --git a/tests/language_2/malformed/malformed_test.dart b/tests/language_2/malformed/malformed_test.dart index 7f51c3dfcbe..68c7cd3ad5e 100644 --- a/tests/language_2/malformed/malformed_test.dart +++ b/tests/language_2/malformed/malformed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:expect/expect.dart' as prefix; // Define 'prefix'. diff --git a/tests/language_2/malformed/runtime_test.dart b/tests/language_2/malformed/runtime_test.dart index e08772f9b89..ebc90950c09 100644 --- a/tests/language_2/malformed/runtime_test.dart +++ b/tests/language_2/malformed/runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/malformed/type_test.dart b/tests/language_2/malformed/type_test.dart index b464d6eed97..c68374ce3cf 100644 --- a/tests/language_2/malformed/type_test.dart +++ b/tests/language_2/malformed/type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + null_() => null; final Undeclared/*@compile-error=unspecified*/ x = null_(); diff --git a/tests/language_2/map/literal10_test.dart b/tests/language_2/map/literal10_test.dart index d1d388604d0..58706567251 100644 --- a/tests/language_2/map/literal10_test.dart +++ b/tests/language_2/map/literal10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the use of '__proto__' keys in maps. library map_literal10_test; diff --git a/tests/language_2/map/literal11_test.dart b/tests/language_2/map/literal11_test.dart index 93643eb9878..ce974958981 100644 --- a/tests/language_2/map/literal11_test.dart +++ b/tests/language_2/map/literal11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the use type arguments on constant maps. library map_literal11_test; diff --git a/tests/language_2/map/literal12_test.dart b/tests/language_2/map/literal12_test.dart index 1cd42d89a9c..9cce37db2b0 100644 --- a/tests/language_2/map/literal12_test.dart +++ b/tests/language_2/map/literal12_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test relative order of key and value evaluation. library map_literal12_test; diff --git a/tests/language_2/map/literal13_test.dart b/tests/language_2/map/literal13_test.dart index 1ab622b23fb..8e8156fcad8 100644 --- a/tests/language_2/map/literal13_test.dart +++ b/tests/language_2/map/literal13_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Legacy compound literal syntax that should go away. main() { diff --git a/tests/language_2/map/literal14_test.dart b/tests/language_2/map/literal14_test.dart index 1b4108ff481..a3850d279e5 100644 --- a/tests/language_2/map/literal14_test.dart +++ b/tests/language_2/map/literal14_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Dart test program const map literals. class MapLiteral2NegativeTest { diff --git a/tests/language_2/map/literal1_runtime_test.dart b/tests/language_2/map/literal1_runtime_test.dart index 093f893c9fc..7f29a097263 100644 --- a/tests/language_2/map/literal1_runtime_test.dart +++ b/tests/language_2/map/literal1_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/map/literal1_test.dart b/tests/language_2/map/literal1_test.dart index 49aa5fa51d2..228f1b7ba00 100644 --- a/tests/language_2/map/literal1_test.dart +++ b/tests/language_2/map/literal1_test.dart @@ -4,6 +4,8 @@ // // A type mismatch in a constant map literal is a compile-time error. +// @dart = 2.9 + main() { var m = const diff --git a/tests/language_2/map/literal2_test.dart b/tests/language_2/map/literal2_test.dart index d170b58a3e3..0275dff0a78 100644 --- a/tests/language_2/map/literal2_test.dart +++ b/tests/language_2/map/literal2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test program for map literals. +// @dart = 2.9 + import "package:expect/expect.dart"; int nextValCtr; diff --git a/tests/language_2/map/literal3_test.dart b/tests/language_2/map/literal3_test.dart index a5d054c317d..abf13100464 100644 --- a/tests/language_2/map/literal3_test.dart +++ b/tests/language_2/map/literal3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test program for map literals. +// @dart = 2.9 + import "package:expect/expect.dart"; class MapLiteralTest { diff --git a/tests/language_2/map/literal4_test.dart b/tests/language_2/map/literal4_test.dart index 9358e59f6c4..7e8196903d0 100644 --- a/tests/language_2/map/literal4_test.dart +++ b/tests/language_2/map/literal4_test.dart @@ -5,6 +5,8 @@ // // Dart test program testing type checks in map literals. +// @dart = 2.9 + import "package:expect/expect.dart"; class MapLiteral4Test { diff --git a/tests/language_2/map/literal5_test.dart b/tests/language_2/map/literal5_test.dart index 94f298d13ae..b69d529a730 100644 --- a/tests/language_2/map/literal5_test.dart +++ b/tests/language_2/map/literal5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the use of general expression as keys in map literals. library map_literal5_test; diff --git a/tests/language_2/map/literal6_test.dart b/tests/language_2/map/literal6_test.dart index 5454f487f5c..2eb2339b0c4 100644 --- a/tests/language_2/map/literal6_test.dart +++ b/tests/language_2/map/literal6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the use of general expression as keys in const map literals. library map_literal6_test; diff --git a/tests/language_2/map/literal7_test.dart b/tests/language_2/map/literal7_test.dart index 06c2e39eac4..d366a6b38f6 100644 --- a/tests/language_2/map/literal7_test.dart +++ b/tests/language_2/map/literal7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the use type arguments on constant maps. library map_literal7_test; diff --git a/tests/language_2/map/literal8_test.dart b/tests/language_2/map/literal8_test.dart index bf793205170..649a2518cdb 100644 --- a/tests/language_2/map/literal8_test.dart +++ b/tests/language_2/map/literal8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the use of type arguments on const map literals using general expression // as keys. diff --git a/tests/language_2/map/literal9_test.dart b/tests/language_2/map/literal9_test.dart index cc12411a2f0..8e9c37645ae 100644 --- a/tests/language_2/map/literal9_test.dart +++ b/tests/language_2/map/literal9_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the use type arguments on constant maps. library map_literal9_test; diff --git a/tests/language_2/map/literal_syntax_test.dart b/tests/language_2/map/literal_syntax_test.dart index 953730a1315..54e5141f3a2 100644 --- a/tests/language_2/map/literal_syntax_test.dart +++ b/tests/language_2/map/literal_syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Foo { diff --git a/tests/language_2/map/literal_test.dart b/tests/language_2/map/literal_test.dart index 93f1c3d563e..ba1c3dcf125 100644 --- a/tests/language_2/map/literal_test.dart +++ b/tests/language_2/map/literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests map literals. diff --git a/tests/language_2/map/map_test.dart b/tests/language_2/map/map_test.dart index 0b565fd6223..797572b56eb 100644 --- a/tests/language_2/map/map_test.dart +++ b/tests/language_2/map/map_test.dart @@ -4,6 +4,8 @@ // A subtest of the larger MapTest. Will eliminate once the full // test is running. +// @dart = 2.9 + import "package:expect/expect.dart"; class MapTest { diff --git a/tests/language_2/map/null_key_foreach_test.dart b/tests/language_2/map/null_key_foreach_test.dart index 4e566fb4adf..a8ea1860a20 100644 --- a/tests/language_2/map/null_key_foreach_test.dart +++ b/tests/language_2/map/null_key_foreach_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for using `null` as a key with `forEach`. diff --git a/tests/language_2/map/ordered_test.dart b/tests/language_2/map/ordered_test.dart index b074ecb5b67..0678d1add09 100644 --- a/tests/language_2/map/ordered_test.dart +++ b/tests/language_2/map/ordered_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests that map literals are ordered. diff --git a/tests/language_2/metadata/cyclic_test.dart b/tests/language_2/metadata/cyclic_test.dart index 6ff4798273f..d120e84c436 100644 --- a/tests/language_2/metadata/cyclic_test.dart +++ b/tests/language_2/metadata/cyclic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that metadata on a class 'Super' using subtypes of 'Super' are not // considered as cyclic inheritance or lead to crashes. diff --git a/tests/language_2/metadata/lib.dart b/tests/language_2/metadata/lib.dart index 94923eb06dc..3b05b6b2c0e 100644 --- a/tests/language_2/metadata/lib.dart +++ b/tests/language_2/metadata/lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library metadata.dart; class Alien { diff --git a/tests/language_2/metadata/metadata_builtin_test.dart b/tests/language_2/metadata/metadata_builtin_test.dart index f5c346da5fb..acba9821795 100644 --- a/tests/language_2/metadata/metadata_builtin_test.dart +++ b/tests/language_2/metadata/metadata_builtin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that built-in identifiers can be used to specify metadata. const abstract = 0; diff --git a/tests/language_2/metadata/metadata_test.dart b/tests/language_2/metadata/metadata_test.dart index 77399615e87..468c4f61f30 100644 --- a/tests/language_2/metadata/metadata_test.dart +++ b/tests/language_2/metadata/metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test ensuring that compiler can parse metadata. Need to add negative // test cases with illegal metadata annotations. diff --git a/tests/language_2/metadata/scope1_test.dart b/tests/language_2/metadata/scope1_test.dart index c70d9fabe88..9ee34d455ce 100644 --- a/tests/language_2/metadata/scope1_test.dart +++ b/tests/language_2/metadata/scope1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a type variable is not in scope for metadata declared on the type // declaration. diff --git a/tests/language_2/metadata/scope2_test.dart b/tests/language_2/metadata/scope2_test.dart index 9b1ded66f9f..4afea25011d 100644 --- a/tests/language_2/metadata/scope2_test.dart +++ b/tests/language_2/metadata/scope2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a type variable is not in scope for metadata declared on the type // declaration. diff --git a/tests/language_2/metadata/self_test.dart b/tests/language_2/metadata/self_test.dart index 434cc38a0a0..4185d5c2103 100644 --- a/tests/language_2/metadata/self_test.dart +++ b/tests/language_2/metadata/self_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that metadata refer to the annotated declaration. @Foo() diff --git a/tests/language_2/method/as_constants2_test.dart b/tests/language_2/method/as_constants2_test.dart index 4c64077cba6..2b5121fbb0d 100644 --- a/tests/language_2/method/as_constants2_test.dart +++ b/tests/language_2/method/as_constants2_test.dart @@ -4,6 +4,8 @@ // Test that a function only used by compile-time constants is being // generated. +// @dart = 2.9 + import "package:expect/expect.dart"; topLevelMethod() => 42; diff --git a/tests/language_2/method/as_constants_test.dart b/tests/language_2/method/as_constants_test.dart index e92d024c8fc..ed313133ea5 100644 --- a/tests/language_2/method/as_constants_test.dart +++ b/tests/language_2/method/as_constants_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; topLevelMethod() => 't'; diff --git a/tests/language_2/method/binding_test.dart b/tests/language_2/method/binding_test.dart index 325e1c98a4e..e5bd08d31ea 100644 --- a/tests/language_2/method/binding_test.dart +++ b/tests/language_2/method/binding_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Bind a method to a variable that can be invoked as a function diff --git a/tests/language_2/method/invocation_test.dart b/tests/language_2/method/invocation_test.dart index 3cc47a65aa3..8ba25abbd8a 100644 --- a/tests/language_2/method/invocation_test.dart +++ b/tests/language_2/method/invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Testing method invocation. diff --git a/tests/language_2/method/name_test.dart b/tests/language_2/method/name_test.dart index ca9c48ba690..f9cd04ec964 100644 --- a/tests/language_2/method/name_test.dart +++ b/tests/language_2/method/name_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests that methods with names "get", "set" and "operator" don't diff --git a/tests/language_2/method/not_found_runtime_test.dart b/tests/language_2/method/not_found_runtime_test.dart index 49dc4340be0..cce2881cbf3 100644 --- a/tests/language_2/method/not_found_runtime_test.dart +++ b/tests/language_2/method/not_found_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/method/not_found_test.dart b/tests/language_2/method/not_found_test.dart index 883cd6f6e48..f064cf36825 100644 --- a/tests/language_2/method/not_found_test.dart +++ b/tests/language_2/method/not_found_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { // ^ // [cfe] The non-abstract class 'A' is missing implementations for these members: diff --git a/tests/language_2/method/override2_test.dart b/tests/language_2/method/override2_test.dart index 0669a5e425e..740fefc18cc 100644 --- a/tests/language_2/method/override2_test.dart +++ b/tests/language_2/method/override2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Checks that an overriding method has compatible parameters. abstract class I { diff --git a/tests/language_2/method/override3_runtime_test.dart b/tests/language_2/method/override3_runtime_test.dart index e39183083a4..448bbed5de6 100644 --- a/tests/language_2/method/override3_runtime_test.dart +++ b/tests/language_2/method/override3_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/method/override3_test.dart b/tests/language_2/method/override3_test.dart index b131ff0fcc0..faf298aadf3 100644 --- a/tests/language_2/method/override3_test.dart +++ b/tests/language_2/method/override3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class A { diff --git a/tests/language_2/method/override7_test.dart b/tests/language_2/method/override7_test.dart index 51588d5fc07..23c6565c80f 100644 --- a/tests/language_2/method/override7_test.dart +++ b/tests/language_2/method/override7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we report a compile-time error when a static function conflicts // with an inherited instance member of the same name. diff --git a/tests/language_2/method/override8_test.dart b/tests/language_2/method/override8_test.dart index 677952d05c1..e67065af5bc 100644 --- a/tests/language_2/method/override8_test.dart +++ b/tests/language_2/method/override8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we report a compile-time error when an instance method conflicts // with an inherited instance field or getter of the same name. diff --git a/tests/language_2/method/override_test.dart b/tests/language_2/method/override_test.dart index 1a094551947..898a2761c0d 100644 --- a/tests/language_2/method/override_test.dart +++ b/tests/language_2/method/override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Checks that a method with an instantiated return type can override a method diff --git a/tests/language_2/mixin/abstract_getter_test.dart b/tests/language_2/mixin/abstract_getter_test.dart index 7fe7bd92363..55c4d039e71 100644 --- a/tests/language_2/mixin/abstract_getter_test.dart +++ b/tests/language_2/mixin/abstract_getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; abstract class B { diff --git a/tests/language_2/mixin/accessor_test.dart b/tests/language_2/mixin/accessor_test.dart index bb346e8d876..ddad1fbf301 100644 --- a/tests/language_2/mixin/accessor_test.dart +++ b/tests/language_2/mixin/accessor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test case for DDC bug where if a getter/setter is mixed in // without a corresponding getter/setter, DDC fails to install a the // corresponding getter/setter that calls super. diff --git a/tests/language_2/mixin/and_extension_member_test.dart b/tests/language_2/mixin/and_extension_member_test.dart index 3f96a4a6d7a..e8d29f16f5b 100644 --- a/tests/language_2/mixin/and_extension_member_test.dart +++ b/tests/language_2/mixin/and_extension_member_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/mixin/black_listed_test.dart b/tests/language_2/mixin/black_listed_test.dart index 08ff386d3e2..47a79992810 100644 --- a/tests/language_2/mixin/black_listed_test.dart +++ b/tests/language_2/mixin/black_listed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check mixin of black-listed types. import 'package:expect/expect.dart'; diff --git a/tests/language_2/mixin/bound_test.dart b/tests/language_2/mixin/bound_test.dart index 23b4e29ab0f..aeb5fdad2cf 100644 --- a/tests/language_2/mixin/bound_test.dart +++ b/tests/language_2/mixin/bound_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // library abstract_expressions; diff --git a/tests/language_2/mixin/class_from_core_library_test.dart b/tests/language_2/mixin/class_from_core_library_test.dart index 300e0303e4e..713649309be 100644 --- a/tests/language_2/mixin/class_from_core_library_test.dart +++ b/tests/language_2/mixin/class_from_core_library_test.dart @@ -1,6 +1,8 @@ // 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. + +// @dart = 2.9 import 'dart:collection'; class MyList extends Object with ListMixin { diff --git a/tests/language_2/mixin/cyclic_runtime_test.dart b/tests/language_2/mixin/cyclic_runtime_test.dart index 2217ac172f4..886299b822e 100644 --- a/tests/language_2/mixin/cyclic_runtime_test.dart +++ b/tests/language_2/mixin/cyclic_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/mixin/cyclic_test.dart b/tests/language_2/mixin/cyclic_test.dart index 4e129a67c37..7111fb18777 100644 --- a/tests/language_2/mixin/cyclic_test.dart +++ b/tests/language_2/mixin/cyclic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for cyclicity check on named mixin applications. class A {} diff --git a/tests/language_2/mixin/deduplication_test.dart b/tests/language_2/mixin/deduplication_test.dart index f401bf1377a..3510f9e1e0f 100644 --- a/tests/language_2/mixin/deduplication_test.dart +++ b/tests/language_2/mixin/deduplication_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test mixin de-duplication with new mixin syntax. import 'package:expect/expect.dart'; diff --git a/tests/language_2/mixin/extends_field_test.dart b/tests/language_2/mixin/extends_field_test.dart index 778a2421397..0f7aff6123b 100644 --- a/tests/language_2/mixin/extends_field_test.dart +++ b/tests/language_2/mixin/extends_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class S { diff --git a/tests/language_2/mixin/extends_is_test.dart b/tests/language_2/mixin/extends_is_test.dart index 5c3a1c310e2..1c3b99be5b9 100644 --- a/tests/language_2/mixin/extends_is_test.dart +++ b/tests/language_2/mixin/extends_is_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class S {} diff --git a/tests/language_2/mixin/extends_method_test.dart b/tests/language_2/mixin/extends_method_test.dart index cee3d657e03..cafe5529836 100644 --- a/tests/language_2/mixin/extends_method_test.dart +++ b/tests/language_2/mixin/extends_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class S { diff --git a/tests/language_2/mixin/factory_constructor_test.dart b/tests/language_2/mixin/factory_constructor_test.dart index ac0e22762d5..2dd5f8bb2e8 100644 --- a/tests/language_2/mixin/factory_constructor_test.dart +++ b/tests/language_2/mixin/factory_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Base { diff --git a/tests/language_2/mixin/field_initializer_test.dart b/tests/language_2/mixin/field_initializer_test.dart index e2855fe746f..46364cd91dc 100644 --- a/tests/language_2/mixin/field_initializer_test.dart +++ b/tests/language_2/mixin/field_initializer_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing throw statement +// @dart = 2.9 + import 'package:expect/expect.dart'; class S { diff --git a/tests/language_2/mixin/field_test.dart b/tests/language_2/mixin/field_test.dart index bd821ce54a3..c4a3fd888ee 100644 --- a/tests/language_2/mixin/field_test.dart +++ b/tests/language_2/mixin/field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class S { diff --git a/tests/language_2/mixin/forwarding_constructor1_test.dart b/tests/language_2/mixin/forwarding_constructor1_test.dart index b0e97ab7af2..f4a6d37dff3 100644 --- a/tests/language_2/mixin/forwarding_constructor1_test.dart +++ b/tests/language_2/mixin/forwarding_constructor1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class Mixin1 { diff --git a/tests/language_2/mixin/forwarding_constructor2_test.dart b/tests/language_2/mixin/forwarding_constructor2_test.dart index 0c512765037..262c3fba7c6 100644 --- a/tests/language_2/mixin/forwarding_constructor2_test.dart +++ b/tests/language_2/mixin/forwarding_constructor2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class Mixin1 { diff --git a/tests/language_2/mixin/forwarding_constructor3_test.dart b/tests/language_2/mixin/forwarding_constructor3_test.dart index 1d2f5dc694e..b9e36190d4f 100644 --- a/tests/language_2/mixin/forwarding_constructor3_test.dart +++ b/tests/language_2/mixin/forwarding_constructor3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that a named mixin constructor forwards to the corresponding named // base class constructor. diff --git a/tests/language_2/mixin/forwarding_constructor4_test.dart b/tests/language_2/mixin/forwarding_constructor4_test.dart index ece8c133183..ded2752938e 100644 --- a/tests/language_2/mixin/forwarding_constructor4_test.dart +++ b/tests/language_2/mixin/forwarding_constructor4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that a forwarding constructor is generated even when there is an // optional parameter. diff --git a/tests/language_2/mixin/generic_test.dart b/tests/language_2/mixin/generic_test.dart index eb785f8203a..42fd4f229c3 100644 --- a/tests/language_2/mixin/generic_test.dart +++ b/tests/language_2/mixin/generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class S { diff --git a/tests/language_2/mixin/getter_regression_test.dart b/tests/language_2/mixin/getter_regression_test.dart index f3a7bcd177d..0e2dd1cf20a 100644 --- a/tests/language_2/mixin/getter_regression_test.dart +++ b/tests/language_2/mixin/getter_regression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test case for dart2js bug where the getter for y wasn't // properly mixed in. diff --git a/tests/language_2/mixin/illegal_constructor_runtime_test.dart b/tests/language_2/mixin/illegal_constructor_runtime_test.dart index da8e268089c..2ef9ac3c010 100644 --- a/tests/language_2/mixin/illegal_constructor_runtime_test.dart +++ b/tests/language_2/mixin/illegal_constructor_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/mixin/illegal_constructor_test.dart b/tests/language_2/mixin/illegal_constructor_test.dart index ea13e2a337b..b402b1c45db 100644 --- a/tests/language_2/mixin/illegal_constructor_test.dart +++ b/tests/language_2/mixin/illegal_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class M0 { factory M0(a, b, c) => null; factory M0.named() => null; diff --git a/tests/language_2/mixin/illegal_cycles_runtime_test.dart b/tests/language_2/mixin/illegal_cycles_runtime_test.dart index cd5bbfe9582..de5a401d217 100644 --- a/tests/language_2/mixin/illegal_cycles_runtime_test.dart +++ b/tests/language_2/mixin/illegal_cycles_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/mixin/illegal_cycles_test.dart b/tests/language_2/mixin/illegal_cycles_test.dart index 3db5716de20..cae2fba35f6 100644 --- a/tests/language_2/mixin/illegal_cycles_test.dart +++ b/tests/language_2/mixin/illegal_cycles_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class M {} class M0 extends Object with M0 { } // ^^ diff --git a/tests/language_2/mixin/illegal_object_runtime_test.dart b/tests/language_2/mixin/illegal_object_runtime_test.dart index 9f8bf276174..62afbd1a8c2 100644 --- a/tests/language_2/mixin/illegal_object_runtime_test.dart +++ b/tests/language_2/mixin/illegal_object_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/mixin/illegal_object_test.dart b/tests/language_2/mixin/illegal_object_test.dart index ddd27f236f9..fffc7aa3870 100644 --- a/tests/language_2/mixin/illegal_object_test.dart +++ b/tests/language_2/mixin/illegal_object_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Object has a non-trivial constructor and hence cannot be used as mixin. class S {} diff --git a/tests/language_2/mixin/illegal_static_access_runtime_test.dart b/tests/language_2/mixin/illegal_static_access_runtime_test.dart index edf6b9ac565..93f145ea31b 100644 --- a/tests/language_2/mixin/illegal_static_access_runtime_test.dart +++ b/tests/language_2/mixin/illegal_static_access_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/mixin/illegal_static_access_test.dart b/tests/language_2/mixin/illegal_static_access_test.dart index 8cd792de5a6..9d19c14f892 100644 --- a/tests/language_2/mixin/illegal_static_access_test.dart +++ b/tests/language_2/mixin/illegal_static_access_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class S { diff --git a/tests/language_2/mixin/illegal_super_use_runtime_test.dart b/tests/language_2/mixin/illegal_super_use_runtime_test.dart index 86ecb63a1f2..4b681b43d26 100644 --- a/tests/language_2/mixin/illegal_super_use_runtime_test.dart +++ b/tests/language_2/mixin/illegal_super_use_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/mixin/illegal_super_use_test.dart b/tests/language_2/mixin/illegal_super_use_test.dart index 17e4fad47cd..7ea789486e2 100644 --- a/tests/language_2/mixin/illegal_super_use_test.dart +++ b/tests/language_2/mixin/illegal_super_use_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class M {} diff --git a/tests/language_2/mixin/illegal_superclass_runtime_test.dart b/tests/language_2/mixin/illegal_superclass_runtime_test.dart index 303ca9bde2c..265822db26a 100644 --- a/tests/language_2/mixin/illegal_superclass_runtime_test.dart +++ b/tests/language_2/mixin/illegal_superclass_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/mixin/illegal_superclass_test.dart b/tests/language_2/mixin/illegal_superclass_test.dart index c1e1e0c2adf..56427b5ef2c 100644 --- a/tests/language_2/mixin/illegal_superclass_test.dart +++ b/tests/language_2/mixin/illegal_superclass_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class S0 {} class S1 extends Object {} diff --git a/tests/language_2/mixin/illegal_syntax_test.dart b/tests/language_2/mixin/illegal_syntax_test.dart index 27a695c61e6..25802e9bdff 100644 --- a/tests/language_2/mixin/illegal_syntax_test.dart +++ b/tests/language_2/mixin/illegal_syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class S { } class G { } class M { } diff --git a/tests/language_2/mixin/implements2_test.dart b/tests/language_2/mixin/implements2_test.dart index 37c0446529d..5362059a4cc 100644 --- a/tests/language_2/mixin/implements2_test.dart +++ b/tests/language_2/mixin/implements2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for named mixin applications with implements clause. class A {} diff --git a/tests/language_2/mixin/implements_test.dart b/tests/language_2/mixin/implements_test.dart index 1845773145b..16f54ca1e86 100644 --- a/tests/language_2/mixin/implements_test.dart +++ b/tests/language_2/mixin/implements_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class I0 { diff --git a/tests/language_2/mixin/implicit_covariance_test.dart b/tests/language_2/mixin/implicit_covariance_test.dart index 87d3ddd6420..223cf7f3456 100644 --- a/tests/language_2/mixin/implicit_covariance_test.dart +++ b/tests/language_2/mixin/implicit_covariance_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; abstract class A { diff --git a/tests/language_2/mixin/inference_mixin_field_test.dart b/tests/language_2/mixin/inference_mixin_field_test.dart index 96698466c8c..dd593d17598 100644 --- a/tests/language_2/mixin/inference_mixin_field_test.dart +++ b/tests/language_2/mixin/inference_mixin_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Mixin { diff --git a/tests/language_2/mixin/interface_check_runtime_test.dart b/tests/language_2/mixin/interface_check_runtime_test.dart index 6a652ab9d37..b0f38bea915 100644 --- a/tests/language_2/mixin/interface_check_runtime_test.dart +++ b/tests/language_2/mixin/interface_check_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/mixin/interface_check_test.dart b/tests/language_2/mixin/interface_check_test.dart index 9884d1b61cb..136ea4f6322 100644 --- a/tests/language_2/mixin/interface_check_test.dart +++ b/tests/language_2/mixin/interface_check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Thing {} class SubThing extends Thing { diff --git a/tests/language_2/mixin/invalid_bound2_test.dart b/tests/language_2/mixin/invalid_bound2_test.dart index b53f4dcb57b..b7eaf6456d6 100644 --- a/tests/language_2/mixin/invalid_bound2_test.dart +++ b/tests/language_2/mixin/invalid_bound2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class S0 {} class S extends S0 {} diff --git a/tests/language_2/mixin/invalid_bound_test.dart b/tests/language_2/mixin/invalid_bound_test.dart index 7f855331955..c7103def614 100644 --- a/tests/language_2/mixin/invalid_bound_test.dart +++ b/tests/language_2/mixin/invalid_bound_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class S0 {} class S extends S0 {} diff --git a/tests/language_2/mixin/invalid_inheritance1_test.dart b/tests/language_2/mixin/invalid_inheritance1_test.dart index 23c689a706b..dfead53c1b8 100644 --- a/tests/language_2/mixin/invalid_inheritance1_test.dart +++ b/tests/language_2/mixin/invalid_inheritance1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C extends Object with Malformed // //# 01: compile-time error with T // //# 02: compile-time error diff --git a/tests/language_2/mixin/invalid_inheritance2_test.dart b/tests/language_2/mixin/invalid_inheritance2_test.dart index fd2ce5b714a..5dca5b5b2d8 100644 --- a/tests/language_2/mixin/invalid_inheritance2_test.dart +++ b/tests/language_2/mixin/invalid_inheritance2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C = Object with Malformed; // //# 01: compile-time error class C = Object with T; // //# 02: compile-time error class C = OBject with T; // //# 03: compile-time error diff --git a/tests/language_2/mixin/invalid_override_in_mixin_runtime_test.dart b/tests/language_2/mixin/invalid_override_in_mixin_runtime_test.dart index 7584e4a136e..cca7cdf7ef8 100644 --- a/tests/language_2/mixin/invalid_override_in_mixin_runtime_test.dart +++ b/tests/language_2/mixin/invalid_override_in_mixin_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/mixin/invalid_override_in_mixin_test.dart b/tests/language_2/mixin/invalid_override_in_mixin_test.dart index de7b18cfa8c..815910b6b2e 100644 --- a/tests/language_2/mixin/invalid_override_in_mixin_test.dart +++ b/tests/language_2/mixin/invalid_override_in_mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class A { diff --git a/tests/language_2/mixin/is_test.dart b/tests/language_2/mixin/is_test.dart index 89b5464aa5e..31b55156f03 100644 --- a/tests/language_2/mixin/is_test.dart +++ b/tests/language_2/mixin/is_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class S {} diff --git a/tests/language_2/mixin/issue10216_2_test.dart b/tests/language_2/mixin/issue10216_2_test.dart index d48fd69fcf9..db268f7ab12 100644 --- a/tests/language_2/mixin/issue10216_2_test.dart +++ b/tests/language_2/mixin/issue10216_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class M1 = Object with M0; diff --git a/tests/language_2/mixin/issue10216_test.dart b/tests/language_2/mixin/issue10216_test.dart index b62c63c8e1e..1a7874ae8b5 100644 --- a/tests/language_2/mixin/issue10216_test.dart +++ b/tests/language_2/mixin/issue10216_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/mixin/lib_extends_field_lib.dart b/tests/language_2/mixin/lib_extends_field_lib.dart index 97a31be09cd..68318fd9427 100644 --- a/tests/language_2/mixin/lib_extends_field_lib.dart +++ b/tests/language_2/mixin/lib_extends_field_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library mixin_lib_extends_field_lib; class M1 { diff --git a/tests/language_2/mixin/lib_extends_field_test.dart b/tests/language_2/mixin/lib_extends_field_test.dart index e509a940cb9..1e42915d366 100644 --- a/tests/language_2/mixin/lib_extends_field_test.dart +++ b/tests/language_2/mixin/lib_extends_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library mixin_lib_extends_field_test; import 'package:expect/expect.dart'; diff --git a/tests/language_2/mixin/lib_extends_method_lib.dart b/tests/language_2/mixin/lib_extends_method_lib.dart index b548c5827de..9743324b366 100644 --- a/tests/language_2/mixin/lib_extends_method_lib.dart +++ b/tests/language_2/mixin/lib_extends_method_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library mixin_lib_extends_method_lib; class M1 { diff --git a/tests/language_2/mixin/lib_extends_method_test.dart b/tests/language_2/mixin/lib_extends_method_test.dart index 59ae2caec27..1a5c7059a86 100644 --- a/tests/language_2/mixin/lib_extends_method_test.dart +++ b/tests/language_2/mixin/lib_extends_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library mixin_lib_extends_method_test; import "package:expect/expect.dart"; diff --git a/tests/language_2/mixin/method_override_runtime_test.dart b/tests/language_2/mixin/method_override_runtime_test.dart index d6f2d767d69..c5711edcef7 100644 --- a/tests/language_2/mixin/method_override_runtime_test.dart +++ b/tests/language_2/mixin/method_override_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/mixin/method_override_test.dart b/tests/language_2/mixin/method_override_test.dart index 54844a9f503..89023aa5466 100644 --- a/tests/language_2/mixin/method_override_test.dart +++ b/tests/language_2/mixin/method_override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Signature conformance test. abstract class CII { int id(int x); diff --git a/tests/language_2/mixin/method_test.dart b/tests/language_2/mixin/method_test.dart index 20ef4648636..f6787dad2eb 100644 --- a/tests/language_2/mixin/method_test.dart +++ b/tests/language_2/mixin/method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class S { diff --git a/tests/language_2/mixin/mixin2_test.dart b/tests/language_2/mixin/mixin2_test.dart index b9da5794c9b..ae37057cc82 100644 --- a/tests/language_2/mixin/mixin2_test.dart +++ b/tests/language_2/mixin/mixin2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class M { diff --git a/tests/language_2/mixin/mixin3_test.dart b/tests/language_2/mixin/mixin3_test.dart index ecdb2bd0d58..13b9d0495d7 100644 --- a/tests/language_2/mixin/mixin3_test.dart +++ b/tests/language_2/mixin/mixin3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class M { diff --git a/tests/language_2/mixin/mixin4_test.dart b/tests/language_2/mixin/mixin4_test.dart index a982532f936..d0c61b3c054 100644 --- a/tests/language_2/mixin/mixin4_test.dart +++ b/tests/language_2/mixin/mixin4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin/mixin5_test.dart b/tests/language_2/mixin/mixin5_test.dart index 064f53b7374..4497cc42730 100644 --- a/tests/language_2/mixin/mixin5_test.dart +++ b/tests/language_2/mixin/mixin5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin/mixin6_test.dart b/tests/language_2/mixin/mixin6_test.dart index eb2cadc9b55..cd8c8be9a60 100644 --- a/tests/language_2/mixin/mixin6_test.dart +++ b/tests/language_2/mixin/mixin6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin/mixin7_test.dart b/tests/language_2/mixin/mixin7_test.dart index 3c5c28232d8..d6b484f0f92 100644 --- a/tests/language_2/mixin/mixin7_test.dart +++ b/tests/language_2/mixin/mixin7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin/mixin_bound2_test.dart b/tests/language_2/mixin/mixin_bound2_test.dart index 76da3a9d77f..524aa6e530e 100644 --- a/tests/language_2/mixin/mixin_bound2_test.dart +++ b/tests/language_2/mixin/mixin_bound2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin/mixin_bound_test.dart b/tests/language_2/mixin/mixin_bound_test.dart index dfa62738ce3..764fc2670ea 100644 --- a/tests/language_2/mixin/mixin_bound_test.dart +++ b/tests/language_2/mixin/mixin_bound_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin/mixin_test.dart b/tests/language_2/mixin/mixin_test.dart index 8f32aba8708..76fab896fd6 100644 --- a/tests/language_2/mixin/mixin_test.dart +++ b/tests/language_2/mixin/mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class M1 { diff --git a/tests/language_2/mixin/mixin_type_arguments_test.dart b/tests/language_2/mixin/mixin_type_arguments_test.dart index 08a3d9c562f..4730c648789 100644 --- a/tests/language_2/mixin/mixin_type_arguments_test.dart +++ b/tests/language_2/mixin/mixin_type_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart' show Expect; @pragma("vm:entry-point") // Prevent obfuscation diff --git a/tests/language_2/mixin/named_constructor_test.dart b/tests/language_2/mixin/named_constructor_test.dart index 081af92f4f1..f8cb8f97ad5 100644 --- a/tests/language_2/mixin/named_constructor_test.dart +++ b/tests/language_2/mixin/named_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var calls = []; diff --git a/tests/language_2/mixin/naming_test.dart b/tests/language_2/mixin/naming_test.dart index a4c267aeeb0..4ad1455dc71 100644 --- a/tests/language_2/mixin/naming_test.dart +++ b/tests/language_2/mixin/naming_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class S {} diff --git a/tests/language_2/mixin/only_for_rti_test.dart b/tests/language_2/mixin/only_for_rti_test.dart index d401e85b375..501e94731b1 100644 --- a/tests/language_2/mixin/only_for_rti_test.dart +++ b/tests/language_2/mixin/only_for_rti_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Tester { diff --git a/tests/language_2/mixin/override_regression_test.dart b/tests/language_2/mixin/override_regression_test.dart index cb032e0b4fd..08b95b271c9 100644 --- a/tests/language_2/mixin/override_regression_test.dart +++ b/tests/language_2/mixin/override_regression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C0 { diff --git a/tests/language_2/mixin/prefix_lib.dart b/tests/language_2/mixin/prefix_lib.dart index 031c0408153..25894fcb2e5 100644 --- a/tests/language_2/mixin/prefix_lib.dart +++ b/tests/language_2/mixin/prefix_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library mixin_prefix_lib; import "dart:convert"; diff --git a/tests/language_2/mixin/prefix_test.dart b/tests/language_2/mixin/prefix_test.dart index 59eb4427904..0572b8f8a5d 100644 --- a/tests/language_2/mixin/prefix_test.dart +++ b/tests/language_2/mixin/prefix_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 11891. import "package:expect/expect.dart"; diff --git a/tests/language_2/mixin/proto_test.dart b/tests/language_2/mixin/proto_test.dart index b8b19f184e0..5291acf707e 100644 --- a/tests/language_2/mixin/proto_test.dart +++ b/tests/language_2/mixin/proto_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that a program in csp mode doesn't access the prototype chain // on platforms that don't support direct access to __proto__. // This test is most useful with --csp and on a platform that doesn't support diff --git a/tests/language_2/mixin/recursive_mixin_test.dart b/tests/language_2/mixin/recursive_mixin_test.dart index a961ea91a2e..446af199793 100644 --- a/tests/language_2/mixin/recursive_mixin_test.dart +++ b/tests/language_2/mixin/recursive_mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/mixin/regress_11398_test.dart b/tests/language_2/mixin/regress_11398_test.dart index 31fe089d16b..f5f5c4772bd 100644 --- a/tests/language_2/mixin/regress_11398_test.dart +++ b/tests/language_2/mixin/regress_11398_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/mixin/regress_13688_test.dart b/tests/language_2/mixin/regress_13688_test.dart index 0c01537298e..ed86fc9d85d 100644 --- a/tests/language_2/mixin/regress_13688_test.dart +++ b/tests/language_2/mixin/regress_13688_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class ComparableMixin { diff --git a/tests/language_2/mixin/regress_flutter_55345_const_test.dart b/tests/language_2/mixin/regress_flutter_55345_const_test.dart index 9c9551d3579..797aacad5cc 100644 --- a/tests/language_2/mixin/regress_flutter_55345_const_test.dart +++ b/tests/language_2/mixin/regress_flutter_55345_const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verifies that references to deduplicated mixins are properly updated // in types which are only accessible through constants. // Regression test for https://github.com/flutter/flutter/issues/55345. diff --git a/tests/language_2/mixin/regress_flutter_55345_test.dart b/tests/language_2/mixin/regress_flutter_55345_test.dart index 0cb04416ff5..e9612ca9e0d 100644 --- a/tests/language_2/mixin/regress_flutter_55345_test.dart +++ b/tests/language_2/mixin/regress_flutter_55345_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verifies that references to deduplicated mixins are properly updated. // Regression test for https://github.com/flutter/flutter/issues/55345. diff --git a/tests/language_2/mixin/regress_flutter_66859_1_test.dart b/tests/language_2/mixin/regress_flutter_66859_1_test.dart index 544da533a82..1f4b34d1788 100644 --- a/tests/language_2/mixin/regress_flutter_66859_1_test.dart +++ b/tests/language_2/mixin/regress_flutter_66859_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verifies that mixin supertypes are properly maintained even if marked as // deferred (e.g., in a circular hierarchy). // Regression test for: https://github.com/flutter/flutter/issues/66859 diff --git a/tests/language_2/mixin/regress_flutter_66859_2_test.dart b/tests/language_2/mixin/regress_flutter_66859_2_test.dart index 7a3ee642568..d0d735c55e9 100644 --- a/tests/language_2/mixin/regress_flutter_66859_2_test.dart +++ b/tests/language_2/mixin/regress_flutter_66859_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verifies that mixin supertypes are properly maintained even if marked as // deferred (e.g., in a circular hierarchy). // Regression test for: https://github.com/flutter/flutter/issues/66859 diff --git a/tests/language_2/mixin/substitution_test.dart b/tests/language_2/mixin/substitution_test.dart index d6121db7129..1c26b889db6 100644 --- a/tests/language_2/mixin/substitution_test.dart +++ b/tests/language_2/mixin/substitution_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that mixins don't interfere with type variable substitution. import '../dynamic_type_helper.dart'; diff --git a/tests/language_2/mixin/super_2_test.dart b/tests/language_2/mixin/super_2_test.dart index aac47ff41f4..bcb922d37b3 100644 --- a/tests/language_2/mixin/super_2_test.dart +++ b/tests/language_2/mixin/super_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class B { diff --git a/tests/language_2/mixin/super_bound_runtime_test.dart b/tests/language_2/mixin/super_bound_runtime_test.dart index 62149788666..0823a5f2cd4 100644 --- a/tests/language_2/mixin/super_bound_runtime_test.dart +++ b/tests/language_2/mixin/super_bound_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/mixin/super_bound_test.dart b/tests/language_2/mixin/super_bound_test.dart index 634c83885ac..3b3eaf16e6b 100644 --- a/tests/language_2/mixin/super_bound_test.dart +++ b/tests/language_2/mixin/super_bound_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class M {} class N {} diff --git a/tests/language_2/mixin/super_constructor2_test.dart b/tests/language_2/mixin/super_constructor2_test.dart index bb3b60efe6e..ecf8f0f6a74 100644 --- a/tests/language_2/mixin/super_constructor2_test.dart +++ b/tests/language_2/mixin/super_constructor2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Base { diff --git a/tests/language_2/mixin/super_constructor_default_test.dart b/tests/language_2/mixin/super_constructor_default_test.dart index 81f2bfc01f1..4c65c8141e1 100644 --- a/tests/language_2/mixin/super_constructor_default_test.dart +++ b/tests/language_2/mixin/super_constructor_default_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Base { diff --git a/tests/language_2/mixin/super_constructor_multiple_test.dart b/tests/language_2/mixin/super_constructor_multiple_test.dart index 5201be3ddf8..0fb5208b3b9 100644 --- a/tests/language_2/mixin/super_constructor_multiple_test.dart +++ b/tests/language_2/mixin/super_constructor_multiple_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class S { diff --git a/tests/language_2/mixin/super_constructor_named_test.dart b/tests/language_2/mixin/super_constructor_named_test.dart index 0f93c37f6d7..057b3ae154f 100644 --- a/tests/language_2/mixin/super_constructor_named_test.dart +++ b/tests/language_2/mixin/super_constructor_named_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Base { diff --git a/tests/language_2/mixin/super_constructor_positionals_test.dart b/tests/language_2/mixin/super_constructor_positionals_test.dart index 68fd9eb9e86..a2ba5510ba8 100644 --- a/tests/language_2/mixin/super_constructor_positionals_test.dart +++ b/tests/language_2/mixin/super_constructor_positionals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Base { diff --git a/tests/language_2/mixin/super_constructor_test.dart b/tests/language_2/mixin/super_constructor_test.dart index f342fe88f4d..9246e1dbd15 100644 --- a/tests/language_2/mixin/super_constructor_test.dart +++ b/tests/language_2/mixin/super_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Base { diff --git a/tests/language_2/mixin/super_test.dart b/tests/language_2/mixin/super_test.dart index 77f72d640ca..e55fd8a7a78 100644 --- a/tests/language_2/mixin/super_test.dart +++ b/tests/language_2/mixin/super_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class MS { diff --git a/tests/language_2/mixin/super_use_test.dart b/tests/language_2/mixin/super_use_test.dart index f0fc1524545..6dff263a69d 100644 --- a/tests/language_2/mixin/super_use_test.dart +++ b/tests/language_2/mixin/super_use_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class M {} diff --git a/tests/language_2/mixin/superclass_runtime_test.dart b/tests/language_2/mixin/superclass_runtime_test.dart index eeb1b9ca1a0..7db5d288832 100644 --- a/tests/language_2/mixin/superclass_runtime_test.dart +++ b/tests/language_2/mixin/superclass_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/mixin/superclass_test.dart b/tests/language_2/mixin/superclass_test.dart index 5b9a8ee7427..1c81a63d896 100644 --- a/tests/language_2/mixin/superclass_test.dart +++ b/tests/language_2/mixin/superclass_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class S0 {} class S1 extends Object {} diff --git a/tests/language_2/mixin/supertype_subclass2_test.dart b/tests/language_2/mixin/supertype_subclass2_test.dart index 0bafafc296d..8114eb699d5 100644 --- a/tests/language_2/mixin/supertype_subclass2_test.dart +++ b/tests/language_2/mixin/supertype_subclass2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class B {} class C {} diff --git a/tests/language_2/mixin/supertype_subclass_test.dart b/tests/language_2/mixin/supertype_subclass_test.dart index 1e2c7cac014..e7c4cad1f84 100644 --- a/tests/language_2/mixin/supertype_subclass_test.dart +++ b/tests/language_2/mixin/supertype_subclass_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class B {} class C {} diff --git a/tests/language_2/mixin/this_use_test.dart b/tests/language_2/mixin/this_use_test.dart index 23d2e994f07..7d2f99ddd19 100644 --- a/tests/language_2/mixin/this_use_test.dart +++ b/tests/language_2/mixin/this_use_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that [:this:] in a class A used as a mixin in class D knows it can be an // instance of D. diff --git a/tests/language_2/mixin/type_parameter1_test.dart b/tests/language_2/mixin/type_parameter1_test.dart index 1928ec47bb6..d7cf77371f0 100644 --- a/tests/language_2/mixin/type_parameter1_test.dart +++ b/tests/language_2/mixin/type_parameter1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class Mixin1 {} diff --git a/tests/language_2/mixin/type_parameter2_test.dart b/tests/language_2/mixin/type_parameter2_test.dart index 129fdf172f6..27ab6391cdd 100644 --- a/tests/language_2/mixin/type_parameter2_test.dart +++ b/tests/language_2/mixin/type_parameter2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class Mixin1 {} diff --git a/tests/language_2/mixin/type_parameter3_test.dart b/tests/language_2/mixin/type_parameter3_test.dart index 51164d9935b..36591665d15 100644 --- a/tests/language_2/mixin/type_parameter3_test.dart +++ b/tests/language_2/mixin/type_parameter3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class Mixin1 {} diff --git a/tests/language_2/mixin/type_parameter4_test.dart b/tests/language_2/mixin/type_parameter4_test.dart index d309b7f3264..87cb7605e63 100644 --- a/tests/language_2/mixin/type_parameter4_test.dart +++ b/tests/language_2/mixin/type_parameter4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class R {} diff --git a/tests/language_2/mixin/type_parameter5_test.dart b/tests/language_2/mixin/type_parameter5_test.dart index ce6bad05bcf..f93a9ba4d9c 100644 --- a/tests/language_2/mixin/type_parameter5_test.dart +++ b/tests/language_2/mixin/type_parameter5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class MixinA { T intField; } diff --git a/tests/language_2/mixin/type_parameter6_test.dart b/tests/language_2/mixin/type_parameter6_test.dart index 401a1a5fb65..6aec9de42a3 100644 --- a/tests/language_2/mixin/type_parameter6_test.dart +++ b/tests/language_2/mixin/type_parameter6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A {} class B { diff --git a/tests/language_2/mixin/type_parameter_inference_error_test.dart b/tests/language_2/mixin/type_parameter_inference_error_test.dart index c720e4949b7..7d09d22e265 100644 --- a/tests/language_2/mixin/type_parameter_inference_error_test.dart +++ b/tests/language_2/mixin/type_parameter_inference_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class A {} class B {} diff --git a/tests/language_2/mixin/type_parameter_inference_previous_mixin_test.dart b/tests/language_2/mixin/type_parameter_inference_previous_mixin_test.dart index a3d9ce53a1d..191e77b1b7a 100644 --- a/tests/language_2/mixin/type_parameter_inference_previous_mixin_test.dart +++ b/tests/language_2/mixin/type_parameter_inference_previous_mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class A { diff --git a/tests/language_2/mixin/type_parameter_inference_test.dart b/tests/language_2/mixin/type_parameter_inference_test.dart index 8d5f336a0af..b3cf4bf3833 100644 --- a/tests/language_2/mixin/type_parameter_inference_test.dart +++ b/tests/language_2/mixin/type_parameter_inference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class A { diff --git a/tests/language_2/mixin/type_parameters_errors_runtime_test.dart b/tests/language_2/mixin/type_parameters_errors_runtime_test.dart index ee3b7ca6abd..e7829d1922d 100644 --- a/tests/language_2/mixin/type_parameters_errors_runtime_test.dart +++ b/tests/language_2/mixin/type_parameters_errors_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/mixin/type_parameters_errors_test.dart b/tests/language_2/mixin/type_parameters_errors_test.dart index 25e99b6d77a..a995ab4ba21 100644 --- a/tests/language_2/mixin/type_parameters_errors_test.dart +++ b/tests/language_2/mixin/type_parameters_errors_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class S {} class M {} diff --git a/tests/language_2/mixin/type_parameters_mixin_extends_test.dart b/tests/language_2/mixin/type_parameters_mixin_extends_test.dart index 69f3bbf7b0c..2f86d0add5e 100644 --- a/tests/language_2/mixin/type_parameters_mixin_extends_test.dart +++ b/tests/language_2/mixin/type_parameters_mixin_extends_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class M { diff --git a/tests/language_2/mixin/type_parameters_mixin_test.dart b/tests/language_2/mixin/type_parameters_mixin_test.dart index 8a6e569bb36..58fdfc25973 100644 --- a/tests/language_2/mixin/type_parameters_mixin_test.dart +++ b/tests/language_2/mixin/type_parameters_mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class M { diff --git a/tests/language_2/mixin/type_parameters_simple_test.dart b/tests/language_2/mixin/type_parameters_simple_test.dart index 8721735f73c..81964ca5ca5 100644 --- a/tests/language_2/mixin/type_parameters_simple_test.dart +++ b/tests/language_2/mixin/type_parameters_simple_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class S {} diff --git a/tests/language_2/mixin/type_parameters_super_extends_test.dart b/tests/language_2/mixin/type_parameters_super_extends_test.dart index a21e2c3f849..267489930ba 100644 --- a/tests/language_2/mixin/type_parameters_super_extends_test.dart +++ b/tests/language_2/mixin/type_parameters_super_extends_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class S { diff --git a/tests/language_2/mixin/type_parameters_super_test.dart b/tests/language_2/mixin/type_parameters_super_test.dart index b4c1ee27c29..ede714277bc 100644 --- a/tests/language_2/mixin/type_parameters_super_test.dart +++ b/tests/language_2/mixin/type_parameters_super_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class S { diff --git a/tests/language_2/mixin/type_variable_test.dart b/tests/language_2/mixin/type_variable_test.dart index 0cd503dada4..65ef6beb5a8 100644 --- a/tests/language_2/mixin/type_variable_test.dart +++ b/tests/language_2/mixin/type_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for generic mixin fields. class A { diff --git a/tests/language_2/mixin/typedef_constructor_test.dart b/tests/language_2/mixin/typedef_constructor_test.dart index a73fea1116f..e04daa5c30a 100644 --- a/tests/language_2/mixin/typedef_constructor_test.dart +++ b/tests/language_2/mixin/typedef_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/mixin/with_named_import_test.dart b/tests/language_2/mixin/with_named_import_test.dart index 0af06a8ac42..962055519c8 100644 --- a/tests/language_2/mixin/with_named_import_test.dart +++ b/tests/language_2/mixin/with_named_import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection' as collection; class Foo extends Object with collection.ListMixin { diff --git a/tests/language_2/mixin/with_two_implicit_constructors_test.dart b/tests/language_2/mixin/with_two_implicit_constructors_test.dart index 198461b9185..99ec9256deb 100644 --- a/tests/language_2/mixin/with_two_implicit_constructors_test.dart +++ b/tests/language_2/mixin/with_two_implicit_constructors_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/mixin_constructor_forwarding/const_constructor_test.dart b/tests/language_2/mixin_constructor_forwarding/const_constructor_test.dart index ba57bdf6edb..53e38c63311 100644 --- a/tests/language_2/mixin_constructor_forwarding/const_constructor_test.dart +++ b/tests/language_2/mixin_constructor_forwarding/const_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class Mixin { diff --git a/tests/language_2/mixin_constructor_forwarding/const_constructor_with_field_test.dart b/tests/language_2/mixin_constructor_forwarding/const_constructor_with_field_test.dart index e22be63f488..a9dc56b9702 100644 --- a/tests/language_2/mixin_constructor_forwarding/const_constructor_with_field_test.dart +++ b/tests/language_2/mixin_constructor_forwarding/const_constructor_with_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class Mixin { diff --git a/tests/language_2/mixin_constructor_forwarding/mixin_constructor_parameter_forwarding_helper.dart b/tests/language_2/mixin_constructor_forwarding/mixin_constructor_parameter_forwarding_helper.dart index 58d2081a3e0..73094d5704d 100644 --- a/tests/language_2/mixin_constructor_forwarding/mixin_constructor_parameter_forwarding_helper.dart +++ b/tests/language_2/mixin_constructor_forwarding/mixin_constructor_parameter_forwarding_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "mixin_constructor_parameter_forwarding_test.dart"; // A private class that the mixin application cannot access syntactically, diff --git a/tests/language_2/mixin_constructor_forwarding/mixin_constructor_parameter_forwarding_test.dart b/tests/language_2/mixin_constructor_forwarding/mixin_constructor_parameter_forwarding_test.dart index 0aba8b9ec79..00c923eaed2 100644 --- a/tests/language_2/mixin_constructor_forwarding/mixin_constructor_parameter_forwarding_test.dart +++ b/tests/language_2/mixin_constructor_forwarding/mixin_constructor_parameter_forwarding_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that mixin application forwarding constructors correctly forward // optional parameter default values. diff --git a/tests/language_2/mixin_constructor_forwarding/optional_named_parameters_test.dart b/tests/language_2/mixin_constructor_forwarding/optional_named_parameters_test.dart index 8cab4c51a84..8b40cb7af26 100644 --- a/tests/language_2/mixin_constructor_forwarding/optional_named_parameters_test.dart +++ b/tests/language_2/mixin_constructor_forwarding/optional_named_parameters_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class Mixin { diff --git a/tests/language_2/mixin_constructor_forwarding/optional_positional_parameters_test.dart b/tests/language_2/mixin_constructor_forwarding/optional_positional_parameters_test.dart index 1411223e4cf..e5e1b4954b2 100644 --- a/tests/language_2/mixin_constructor_forwarding/optional_positional_parameters_test.dart +++ b/tests/language_2/mixin_constructor_forwarding/optional_positional_parameters_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class Mixin { diff --git a/tests/language_2/mixin_declaration/mixin_declaration_factory_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_factory_test.dart index ee8a96c6681..9388a3b17b7 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_factory_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_factory_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A mixin declaration cannot declare any (factory) constructors. class A {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_00_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_00_test.dart index 5d99d2f5c24..c9c7c6b657f 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_00_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_00_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I {} mixin M0 on I {} @@ -13,4 +15,4 @@ mixin M0 on I {} // Error since class hierarchy is inconsistent class A00 extends I with M0 {} /*@compile-error=unspecified*/ -void main() {} \ No newline at end of file +void main() {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_01_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_01_test.dart index 749d8134628..5d6479f1e6e 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_01_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_01_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I {} mixin M0 on I {} @@ -15,4 +17,4 @@ mixin M1 on I {} // Error since class hierarchy is inconsistent class A00 extends I with M0, M1 {} /*@compile-error=unspecified*/ -void main() {} \ No newline at end of file +void main() {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_02_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_02_test.dart index 01ae1ae6688..db71dbd64f2 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_02_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_02_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I {} mixin M0 implements I {} @@ -15,4 +17,4 @@ mixin M1 on I {} // Error since class hierarchy is inconsistent class A00 with M0, M1 {} /*@compile-error=unspecified*/ -void main() {} \ No newline at end of file +void main() {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_03_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_03_test.dart index 574170024c8..cd7b086868b 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_03_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_03_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I {} mixin M0 implements I {} @@ -13,4 +15,4 @@ mixin M0 implements I {} // Error since class hierarchy is inconsistent class A00 extends Object with M0 implements I {} /*@compile-error=unspecified*/ -void main() {} \ No newline at end of file +void main() {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_04_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_04_test.dart index 50d017b9e03..55e952384fe 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_04_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_04_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I {} mixin M0 implements I {} @@ -13,4 +15,4 @@ mixin M0 implements I {} // Error since class hierarchy is inconsistent class A00 with M0 implements I {} /*@compile-error=unspecified*/ -void main() {} \ No newline at end of file +void main() {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_05_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_05_test.dart index 38e681e561b..e41b8f7e26e 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_05_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_05_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I {} mixin M0 implements I {} @@ -15,4 +17,4 @@ mixin M1 implements I {} // Error since class hierarchy is inconsistent class A00 extends I with M0, M1 {} /*@compile-error=unspecified*/ -void main() {} \ No newline at end of file +void main() {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_06_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_06_test.dart index 14c2416d92f..a3a2934eade 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_06_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_06_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I {} class J {} @@ -20,4 +22,4 @@ class A01 extends J with M1 {} // Error since class hierarchy is inconsistent class A02 extends A00 implements A01 {} /*@compile-error=unspecified*/ -void main() {} \ No newline at end of file +void main() {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_07_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_07_test.dart index 9b16c66ad89..956f20d35fa 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_07_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_07_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I {} mixin M0> on I {} @@ -16,4 +18,4 @@ class M1 implements I {} // Error since super-bounded type not allowed class A extends M1 with M0 {} /*@compile-error=unspecified*/ -void main() {} \ No newline at end of file +void main() {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_08_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_08_test.dart index 23da50d3057..c49d34164ea 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_08_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_08_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I {} mixin M0 implements I {} @@ -18,4 +20,4 @@ mixin M1 implements I {} // M1 inferred as M1 class A with M0, M1 {} /*@compile-error=unspecified*/ -void main() {} \ No newline at end of file +void main() {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_09_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_09_test.dart index 0ebdf97cd4a..245644009a1 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_09_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_09_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I {} mixin M0 implements I> {} @@ -20,4 +22,4 @@ mixin M1 implements I, T> {} // which has no finite solution class A with M0, M1 {} /*@compile-error=unspecified*/ -void main() {} \ No newline at end of file +void main() {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_10_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_10_test.dart index 00563ef385f..d76c854a95d 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_10_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I {} class J {} mixin M0 implements I, J {} @@ -12,4 +14,4 @@ mixin M0 implements I, J {} class A with I, J, M0 {} /*@compile-error=unspecified*/ -void main() {} \ No newline at end of file +void main() {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_11_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_11_test.dart index c7de81ee83c..eca6a978730 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_11_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_invalid_11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I {} mixin M1 on I {} @@ -12,4 +14,4 @@ mixin M1 on I {} mixin A00Mixin on I, M1 {} /*@compile-error=unspecified*/ -void main() {} \ No newline at end of file +void main() {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A00_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A00_test.dart index 02e8ccd417e..4bbfab6c893 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A00_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A00_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A01_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A01_test.dart index bdf8286e5f1..f3f487d4f8d 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A01_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A01_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A02_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A02_test.dart index b32cc46f969..828e4c61a3e 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A02_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A02_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A10_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A10_test.dart index c9b9d574aa1..9ee967e97e4 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A10_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A11_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A11_test.dart index 4df81956c75..f3417a21eef 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A11_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A12_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A12_test.dart index c480f8442c3..aaf8a21998c 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A12_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A12_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A20_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A20_test.dart index fc69345e3d4..d03358811bc 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A20_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A20_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A21_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A21_test.dart index bba17a38044..e3d4e40960b 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A21_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A21_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A22_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A22_test.dart index 83ef40ce871..a543c73c563 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A22_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A22_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A23_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A23_test.dart index 1d19eefa3fa..1bd13eeea1d 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A23_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A23_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A30_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A30_test.dart index 71337c7e46f..48027c91d0f 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A30_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A30_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A31_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A31_test.dart index b0da8e92f86..88dfa7e2537 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A31_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A31_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A42_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A42_test.dart index 01ab1ca6250..30e4c4ab62d 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A42_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_A42_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B00_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B00_test.dart index 74e7d84352c..13d41f7546e 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B00_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B00_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B01_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B01_test.dart index b0435a2cd38..b75bc8507d5 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B01_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B01_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B02_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B02_test.dart index 0c61e49c36b..c7d7f1ef2c0 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B02_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B02_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B03_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B03_test.dart index 2f80e0f4a87..02bce346461 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B03_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B03_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B10_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B10_test.dart index 8485a59ef4e..15c356421ad 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B10_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B11_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B11_test.dart index adf1151a717..d7592d79cd3 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B11_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B12_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B12_test.dart index fc9e6130f8e..2cd0960cb58 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B12_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B12_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B13_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B13_test.dart index d8bbf4358fa..a3254218fb8 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B13_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_B13_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C00_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C00_test.dart index 7db4c89f7e5..2f5bc276dc9 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C00_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C00_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C01_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C01_test.dart index d8607843306..922530c8e3a 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C01_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C01_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C02_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C02_test.dart index 56c6ab0b2d5..0f7b8897d59 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C02_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C02_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C03_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C03_test.dart index c98a810df32..8f1d4b76752 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C03_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C03_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C10_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C10_test.dart index 71c1f340b4c..1672941569c 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C10_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C11_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C11_test.dart index de1126cf779..ee45f72c4f8 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C11_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C12_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C12_test.dart index 85dbebdbb45..5af11e5f7b2 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C12_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C12_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C13_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C13_test.dart index 433ce47941c..1343291639e 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C13_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_C13_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I {} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_mixin_applications_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_mixin_applications_test.dart index 8c4e363289e..1a9d410bca8 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_mixin_applications_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_inference_valid_mixin_applications_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; /////////////////////////////////////////////////////// @@ -443,4 +445,4 @@ void main() { Expect.type>(new A31()..check()); Expect.type>>(new A42()..check()); -} \ No newline at end of file +} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_invalid_application_supertype_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_invalid_application_supertype_test.dart index 08e33a66dba..be90fa8e591 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_invalid_application_supertype_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_invalid_application_supertype_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test various invalid mixin applications where the supertype doesn't diff --git a/tests/language_2/mixin_declaration/mixin_declaration_invalid_override_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_invalid_override_test.dart index be0ace3bb72..89e13bb1ac4 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_invalid_override_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_invalid_override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test various invalid super-constraints for mixin declarations. @@ -63,4 +65,4 @@ class A5FooConcrete = A5Foo with C5Bar; main() { Expect.equals(42, A5FooConcrete().baz(42)); -} \ No newline at end of file +} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_invalid_superinvocation_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_invalid_superinvocation_test.dart index 500ec141c6a..8926165a56b 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_invalid_superinvocation_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_invalid_superinvocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test various invalid super-invocations for mixin declarations. abstract class UnaryInt { diff --git a/tests/language_2/mixin_declaration/mixin_declaration_invalid_syntax_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_invalid_syntax_test.dart index 0ff26d6002c..eb14237c581 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_invalid_syntax_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_invalid_syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test various invalid syntax combinations. @@ -61,4 +63,4 @@ class B {} main() { new C(); -} \ No newline at end of file +} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_invalid_type_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_invalid_type_test.dart index 0fad558482d..219555a3a0e 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_invalid_type_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_invalid_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test various invalid type-declaration combinations. diff --git a/tests/language_2/mixin_declaration/mixin_declaration_invalid_usage_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_invalid_usage_test.dart index 83e50b4d297..cc41d723608 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_invalid_usage_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_invalid_usage_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + mixin Mixin // cannot `extend` anything. extends M //# 01: compile-time error extends Object //# 02: compile-time error @@ -16,4 +18,4 @@ void main() { // Cannot instantiate a mixin. new Mixin(); //# 04: compile-time error new Class(); -} \ No newline at end of file +} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_nsm_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_nsm_test.dart index ccfde7b5dfa..c65688a9503 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_nsm_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_nsm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class Bar { @@ -36,4 +38,4 @@ main() { Expect.equals("M:bar", A2().bar()); Expect.equals("D:foo", A3().foo()); Expect.equals("D:bar", A3().bar()); -} \ No newline at end of file +} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_on_keyword_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_on_keyword_test.dart index f4cc1f11aff..6d22a067c21 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_on_keyword_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_on_keyword_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // The `on` word is not a reserved word or built-in identifier. @@ -24,4 +26,4 @@ main() { Expect.type(B()); Expect.type(C()); Expect.type(D()); -} \ No newline at end of file +} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_static_scope_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_static_scope_test.dart index 79450cd40c2..a5bfdb8254b 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_static_scope_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_static_scope_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // A mixin declaration introduces a static scope. diff --git a/tests/language_2/mixin_declaration/mixin_declaration_subtype_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_subtype_test.dart index 172bb23d497..94ebca65f0b 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_subtype_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_subtype_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // A mixin declaration introduces a type. @@ -48,4 +50,4 @@ main() { Expect.subtype, GC>(); Expect.notSubtype, GC>(); Expect.notSubtype, GM>(); -} \ No newline at end of file +} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_superinvocation_application_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_superinvocation_application_test.dart index 4cbf973e99c..b4665a06dab 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_superinvocation_application_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_superinvocation_application_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test various invalid mixin applications due to insufficient super-invoked // methods. @@ -74,4 +76,4 @@ main() { A1().bar(); //# 06: continued A1().bar(); //# 07: continued A2().bar(); //# 08: continued -} \ No newline at end of file +} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_supertype_compatible_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_supertype_compatible_test.dart index 53079790bab..6aa894f9323 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_supertype_compatible_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_supertype_compatible_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test various invalid super-constraints for mixin declarations. @@ -70,4 +72,4 @@ class A1 = C1 with M1; main() { Expect.equals(42.0, A1().bar()); -} \ No newline at end of file +} diff --git a/tests/language_2/mixin_declaration/mixin_declaration_syntax_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_syntax_test.dart index aba464029ac..0fb96be503f 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_syntax_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test various combinations of valid mixin declarations. diff --git a/tests/language_2/new/create_unresolved_type_runtime_test.dart b/tests/language_2/new/create_unresolved_type_runtime_test.dart index 13d07d82ee8..d1f3a29115a 100644 --- a/tests/language_2/new/create_unresolved_type_runtime_test.dart +++ b/tests/language_2/new/create_unresolved_type_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/new/create_unresolved_type_test.dart b/tests/language_2/new/create_unresolved_type_test.dart index 16fb7a6c8ad..e5e0bc7c06d 100644 --- a/tests/language_2/new/create_unresolved_type_test.dart +++ b/tests/language_2/new/create_unresolved_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { new F(); // ^ diff --git a/tests/language_2/new/expression1_test.dart b/tests/language_2/new/expression1_test.dart index b06ff2ae982..1706b069c9f 100644 --- a/tests/language_2/new/expression1_test.dart +++ b/tests/language_2/new/expression1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C {} main() { diff --git a/tests/language_2/new/expression2_test.dart b/tests/language_2/new/expression2_test.dart index 6695b3bb653..54a17fd3c5b 100644 --- a/tests/language_2/new/expression2_test.dart +++ b/tests/language_2/new/expression2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C {} main() { diff --git a/tests/language_2/new/expression3_test.dart b/tests/language_2/new/expression3_test.dart index ee1edffe87a..06cd1bd17d2 100644 --- a/tests/language_2/new/expression3_test.dart +++ b/tests/language_2/new/expression3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C {} main() { diff --git a/tests/language_2/new/expression_type_args_runtime_test.dart b/tests/language_2/new/expression_type_args_runtime_test.dart index 96f8c18f3b4..0546fe870d0 100644 --- a/tests/language_2/new/expression_type_args_runtime_test.dart +++ b/tests/language_2/new/expression_type_args_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/new/expression_type_args_test.dart b/tests/language_2/new/expression_type_args_test.dart index da303e32098..5d2cee2b48c 100644 --- a/tests/language_2/new/expression_type_args_test.dart +++ b/tests/language_2/new/expression_type_args_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests showing errors using type-arguments in new expressions: class A { // Can't instantiate type parameter (within static or instance method). diff --git a/tests/language_2/new/prefix_runtime_test.dart b/tests/language_2/new/prefix_runtime_test.dart index 1a7288b14dd..5e63fdfbeb6 100644 --- a/tests/language_2/new/prefix_runtime_test.dart +++ b/tests/language_2/new/prefix_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/new/prefix_test.dart b/tests/language_2/new/prefix_test.dart index 8e5c7bca1e1..d0672d39411 100644 --- a/tests/language_2/new/prefix_test.dart +++ b/tests/language_2/new/prefix_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:core' as prefix; main() { diff --git a/tests/language_2/new/statement_test.dart b/tests/language_2/new/statement_test.dart index 62fe4352830..4d29c8678ea 100644 --- a/tests/language_2/new/statement_test.dart +++ b/tests/language_2/new/statement_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test a new statement by itself. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/no_such_method/dispatcher_test.dart b/tests/language_2/no_such_method/dispatcher_test.dart index d0042dc9975..7de405efa7b 100644 --- a/tests/language_2/no_such_method/dispatcher_test.dart +++ b/tests/language_2/no_such_method/dispatcher_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test that noSuchMethod dispatching and auto-closurization work correctly. diff --git a/tests/language_2/no_such_method/empty_selector_test.dart b/tests/language_2/no_such_method/empty_selector_test.dart index 447cba1f176..3c4d015d071 100644 --- a/tests/language_2/no_such_method/empty_selector_test.dart +++ b/tests/language_2/no_such_method/empty_selector_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/no_such_method/many_overridden_test.dart b/tests/language_2/no_such_method/many_overridden_test.dart index 77750d3c3a3..ba10f50a55e 100644 --- a/tests/language_2/no_such_method/many_overridden_test.dart +++ b/tests/language_2/no_such_method/many_overridden_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + library OverriddenNoSuchMethodTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/no_such_method/megamorphic_test.dart b/tests/language_2/no_such_method/megamorphic_test.dart index bbae61ad3a4..8bf3edb0d5f 100644 --- a/tests/language_2/no_such_method/megamorphic_test.dart +++ b/tests/language_2/no_such_method/megamorphic_test.dart @@ -4,6 +4,8 @@ // Test program for correct optimizations related to types fo allocated lists. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; // Classes to induce polymorphism of degree 10. diff --git a/tests/language_2/no_such_method/mock_test.dart b/tests/language_2/no_such_method/mock_test.dart index 62f83bf0dbf..85d920f639f 100644 --- a/tests/language_2/no_such_method/mock_test.dart +++ b/tests/language_2/no_such_method/mock_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing that NoSuchMethod is properly called. +// @dart = 2.9 + import "package:expect/expect.dart"; class Cat { diff --git a/tests/language_2/no_such_method/native_test.dart b/tests/language_2/no_such_method/native_test.dart index acf30854df3..35ffccc3cf3 100644 --- a/tests/language_2/no_such_method/native_test.dart +++ b/tests/language_2/no_such_method/native_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing that NoSuchMethod is properly called. +// @dart = 2.9 + import "package:expect/expect.dart"; Invocation invocation; diff --git a/tests/language_2/no_such_method/no_such_method2_test.dart b/tests/language_2/no_such_method/no_such_method2_test.dart index 707f73a1f52..2528d632b00 100644 --- a/tests/language_2/no_such_method/no_such_method2_test.dart +++ b/tests/language_2/no_such_method/no_such_method2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for https://code.google.com/p/dart/issues/detail?id=7697. diff --git a/tests/language_2/no_such_method/no_such_method3_test.dart b/tests/language_2/no_such_method/no_such_method3_test.dart index ba0d0ca24d8..acc09517ec9 100644 --- a/tests/language_2/no_such_method/no_such_method3_test.dart +++ b/tests/language_2/no_such_method/no_such_method3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a static type inferrer takes [noSuchMethod] into account. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation diff --git a/tests/language_2/no_such_method/no_such_method4_test.dart b/tests/language_2/no_such_method/no_such_method4_test.dart index 23b2febc90b..e0c7722b906 100644 --- a/tests/language_2/no_such_method/no_such_method4_test.dart +++ b/tests/language_2/no_such_method/no_such_method4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class NoSuchMethodNegativeTest { diff --git a/tests/language_2/no_such_method/no_such_method_private_setter_lib.dart b/tests/language_2/no_such_method/no_such_method_private_setter_lib.dart index ea3bc745047..ffb9f4966a8 100644 --- a/tests/language_2/no_such_method/no_such_method_private_setter_lib.dart +++ b/tests/language_2/no_such_method/no_such_method_private_setter_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Bar { int _x; } diff --git a/tests/language_2/no_such_method/no_such_method_test.dart b/tests/language_2/no_such_method/no_such_method_test.dart index f38285a2487..37e3b6ff025 100644 --- a/tests/language_2/no_such_method/no_such_method_test.dart +++ b/tests/language_2/no_such_method/no_such_method_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing that NoSuchMethod is properly called. +// @dart = 2.9 + import "package:expect/expect.dart"; class NoSuchMethodTest { diff --git a/tests/language_2/no_such_method/nsm4_test.dart b/tests/language_2/no_such_method/nsm4_test.dart index 3ff05c0a14a..c58455c7de2 100644 --- a/tests/language_2/no_such_method/nsm4_test.dart +++ b/tests/language_2/no_such_method/nsm4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for compile-time errors for member access on classes that inherit a // user defined noSuchMethod. diff --git a/tests/language_2/no_such_method/nsm5_test.dart b/tests/language_2/no_such_method/nsm5_test.dart index b8ddb774348..d372da79236 100644 --- a/tests/language_2/no_such_method/nsm5_test.dart +++ b/tests/language_2/no_such_method/nsm5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for compile-time errors for member access on classes that inherit a // user defined noSuchMethod, even if it is abstract. diff --git a/tests/language_2/no_such_method/overridden.dart b/tests/language_2/no_such_method/overridden.dart index 9e866726d1e..baa817efd42 100644 --- a/tests/language_2/no_such_method/overridden.dart +++ b/tests/language_2/no_such_method/overridden.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing overridden messageNotUnderstood. +// @dart = 2.9 + part of OverriddenNoSuchMethodTest.dart; class OverriddenNoSuchMethod { diff --git a/tests/language_2/no_such_method/overridden_no_such_method_test.dart b/tests/language_2/no_such_method/overridden_no_such_method_test.dart index 598ffb17732..26c8a480a6e 100644 --- a/tests/language_2/no_such_method/overridden_no_such_method_test.dart +++ b/tests/language_2/no_such_method/overridden_no_such_method_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing overridden messageNotUnderstood. +// @dart = 2.9 + library OverriddenNoSuchMethodTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/no_such_method/private_setter_test.dart b/tests/language_2/no_such_method/private_setter_test.dart index 0f110bb9d2a..e495a15a8d2 100644 --- a/tests/language_2/no_such_method/private_setter_test.dart +++ b/tests/language_2/no_such_method/private_setter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'no_such_method_private_setter_lib.dart'; class Foo implements Bar {} diff --git a/tests/language_2/no_such_method/simple_type_arguments_test.dart b/tests/language_2/no_such_method/simple_type_arguments_test.dart index 7375f4a1640..81a8a94f8e9 100644 --- a/tests/language_2/no_such_method/simple_type_arguments_test.dart +++ b/tests/language_2/no_such_method/simple_type_arguments_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // dart2jsOptions=--disable-rti-optimization +// @dart = 2.9 + // Dart test program testing that type arguments are captured by the Invocation // passed to noSuchMethod from a dynamic call. diff --git a/tests/language_2/no_such_method/subtype_test.dart b/tests/language_2/no_such_method/subtype_test.dart index a843c91eaa6..bf408f651a7 100644 --- a/tests/language_2/no_such_method/subtype_test.dart +++ b/tests/language_2/no_such_method/subtype_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/no_such_method/tearoff_fta_test.dart b/tests/language_2/no_such_method/tearoff_fta_test.dart index 163dc7e23ae..eb6d6101003 100644 --- a/tests/language_2/no_such_method/tearoff_fta_test.dart +++ b/tests/language_2/no_such_method/tearoff_fta_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void foo() {} diff --git a/tests/language_2/nosuchmethod_forwarding/abstract_override_with_different_type.dart b/tests/language_2/nosuchmethod_forwarding/abstract_override_with_different_type.dart index 9a1aa2d041d..5de6e925e8b 100644 --- a/tests/language_2/nosuchmethod_forwarding/abstract_override_with_different_type.dart +++ b/tests/language_2/nosuchmethod_forwarding/abstract_override_with_different_type.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This is a regression test for http://dartbug.com/40248. import "package:expect/expect.dart"; diff --git a/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_arguments_test.dart b/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_arguments_test.dart index 3e42573fa60..37fa52fbc10 100644 --- a/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_arguments_test.dart +++ b/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing that `noSuchMethod` forwarding properly handles optional, named and // type parameters, and result type checking. diff --git a/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_partial_instantiation_test.dart b/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_partial_instantiation_test.dart index 69a554fa7d2..25df5f6f0b5 100644 --- a/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_partial_instantiation_test.dart +++ b/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_partial_instantiation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing that `noSuchMethod` forwarders can be partially instantiated, and // that their delayed type arguments are transparently passed to `noSuchMethod`. diff --git a/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_test.dart b/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_test.dart index d54a7846bb6..4d29890e80b 100644 --- a/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_test.dart +++ b/tests/language_2/nosuchmethod_forwarding/nosuchmethod_forwarding_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing that `noSuchMethod` appears to use implicit forwarders (we don't // care how it's actually implemented, but it should look like that). diff --git a/tests/language_2/null/access_error_test.dart b/tests/language_2/null/access_error_test.dart index d909e636c3b..75808fd15b7 100644 --- a/tests/language_2/null/access_error_test.dart +++ b/tests/language_2/null/access_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class NullAccessTest { diff --git a/tests/language_2/null/checked_null_test.dart b/tests/language_2/null/checked_null_test.dart index f33227b4416..f13f61430d9 100644 --- a/tests/language_2/null/checked_null_test.dart +++ b/tests/language_2/null/checked_null_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/null/checked_runtime_test.dart b/tests/language_2/null/checked_runtime_test.dart index bc644d9c8f3..20b088a8ef4 100644 --- a/tests/language_2/null/checked_runtime_test.dart +++ b/tests/language_2/null/checked_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null/inline_test.dart b/tests/language_2/null/inline_test.dart index 265eff50ab6..c62383d62f9 100644 --- a/tests/language_2/null/inline_test.dart +++ b/tests/language_2/null/inline_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that inlining takes null into account. import "package:expect/expect.dart"; diff --git a/tests/language_2/null/is2_test.dart b/tests/language_2/null/is2_test.dart index 1edf139a786..e8fc8e1709f 100644 --- a/tests/language_2/null/is2_test.dart +++ b/tests/language_2/null/is2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Test { diff --git a/tests/language_2/null/is_test.dart b/tests/language_2/null/is_test.dart index e7a1383de27..32478fdd8e6 100644 --- a/tests/language_2/null/is_test.dart +++ b/tests/language_2/null/is_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/null/method_test.dart b/tests/language_2/null/method_test.dart index bf5b51f42e3..d8f331e7e8a 100644 --- a/tests/language_2/null/method_test.dart +++ b/tests/language_2/null/method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to not compile null methods // in the presence of typed selectors. diff --git a/tests/language_2/null/no_such_method_test.dart b/tests/language_2/null/no_such_method_test.dart index 299ba2d662e..4f8bba66f66 100644 --- a/tests/language_2/null/no_such_method_test.dart +++ b/tests/language_2/null/no_such_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/null/null2_test.dart b/tests/language_2/null/null2_test.dart index 3357043e3a3..cb7a9b410ab 100644 --- a/tests/language_2/null/null2_test.dart +++ b/tests/language_2/null/null2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Second dart test program. +// @dart = 2.9 + import "package:expect/expect.dart"; // Magic incantation to avoid the compiler recognizing the constant values diff --git a/tests/language_2/null/null_test.dart b/tests/language_2/null/null_test.dart index 19f85f09469..b69918f8536 100644 --- a/tests/language_2/null/null_test.dart +++ b/tests/language_2/null/null_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Second dart test program. +// @dart = 2.9 + // VMOptions=--optimization-counter-threshold=5 import "package:expect/expect.dart"; diff --git a/tests/language_2/null/to_string2_test.dart b/tests/language_2/null/to_string2_test.dart index a56e705b3f5..26a40db59b7 100644 --- a/tests/language_2/null/to_string2_test.dart +++ b/tests/language_2/null/to_string2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test correct handling of NULL object in invocation and implicit closures. +// @dart = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/null/to_string_test.dart b/tests/language_2/null/to_string_test.dart index 08bb56a6536..08a865b8e5c 100644 --- a/tests/language_2/null/to_string_test.dart +++ b/tests/language_2/null/to_string_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test correct handling of NULL object in invocation and implicit closures. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/null_aware/access_runtime_1_test.dart b/tests/language_2/null_aware/access_runtime_1_test.dart index a779325cc65..8cb0707c7cf 100644 --- a/tests/language_2/null_aware/access_runtime_1_test.dart +++ b/tests/language_2/null_aware/access_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/access_runtime_2_test.dart b/tests/language_2/null_aware/access_runtime_2_test.dart index eb812b6e75f..fd00d2b599e 100644 --- a/tests/language_2/null_aware/access_runtime_2_test.dart +++ b/tests/language_2/null_aware/access_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/access_runtime_3_test.dart b/tests/language_2/null_aware/access_runtime_3_test.dart index 7be7987a5f9..0db61029952 100644 --- a/tests/language_2/null_aware/access_runtime_3_test.dart +++ b/tests/language_2/null_aware/access_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/access_runtime_4_test.dart b/tests/language_2/null_aware/access_runtime_4_test.dart index a10d1718a75..8e664c95bdf 100644 --- a/tests/language_2/null_aware/access_runtime_4_test.dart +++ b/tests/language_2/null_aware/access_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/access_runtime_5_test.dart b/tests/language_2/null_aware/access_runtime_5_test.dart index 73df91b5ff8..065ced133b9 100644 --- a/tests/language_2/null_aware/access_runtime_5_test.dart +++ b/tests/language_2/null_aware/access_runtime_5_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/access_runtime_6_test.dart b/tests/language_2/null_aware/access_runtime_6_test.dart index 39e966a7b49..73fb9f1aa38 100644 --- a/tests/language_2/null_aware/access_runtime_6_test.dart +++ b/tests/language_2/null_aware/access_runtime_6_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/access_runtime_7_test.dart b/tests/language_2/null_aware/access_runtime_7_test.dart index 2cd7a6a87e6..2c17b29b8f6 100644 --- a/tests/language_2/null_aware/access_runtime_7_test.dart +++ b/tests/language_2/null_aware/access_runtime_7_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/access_runtime_test.dart b/tests/language_2/null_aware/access_runtime_test.dart index 14553890014..f28fcc40db8 100644 --- a/tests/language_2/null_aware/access_runtime_test.dart +++ b/tests/language_2/null_aware/access_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/access_test.dart b/tests/language_2/null_aware/access_test.dart index 7a216c954d7..be94ddc75c4 100644 --- a/tests/language_2/null_aware/access_test.dart +++ b/tests/language_2/null_aware/access_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify semantics of the ?. operator when it does not appear on the LHS of an // assignment. diff --git a/tests/language_2/null_aware/assignment_runtime_10_test.dart b/tests/language_2/null_aware/assignment_runtime_10_test.dart index ee7de0a7590..038604b12c9 100644 --- a/tests/language_2/null_aware/assignment_runtime_10_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_10_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_runtime_11_test.dart b/tests/language_2/null_aware/assignment_runtime_11_test.dart index 75b08207da3..d7e0c81dee7 100644 --- a/tests/language_2/null_aware/assignment_runtime_11_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_11_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_runtime_12_test.dart b/tests/language_2/null_aware/assignment_runtime_12_test.dart index e22b2c3720c..18a228a1a65 100644 --- a/tests/language_2/null_aware/assignment_runtime_12_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_12_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_runtime_13_test.dart b/tests/language_2/null_aware/assignment_runtime_13_test.dart index 78c5fe03a84..bcb1be37e9d 100644 --- a/tests/language_2/null_aware/assignment_runtime_13_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_13_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_runtime_1_test.dart b/tests/language_2/null_aware/assignment_runtime_1_test.dart index fb9ee932557..2f114730189 100644 --- a/tests/language_2/null_aware/assignment_runtime_1_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_runtime_2_test.dart b/tests/language_2/null_aware/assignment_runtime_2_test.dart index 6a692082c2c..d286599c0a4 100644 --- a/tests/language_2/null_aware/assignment_runtime_2_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_runtime_3_test.dart b/tests/language_2/null_aware/assignment_runtime_3_test.dart index 62edd741a5a..4f10b56ba04 100644 --- a/tests/language_2/null_aware/assignment_runtime_3_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_runtime_4_test.dart b/tests/language_2/null_aware/assignment_runtime_4_test.dart index c9dc84e1a1a..ce893457755 100644 --- a/tests/language_2/null_aware/assignment_runtime_4_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_runtime_5_test.dart b/tests/language_2/null_aware/assignment_runtime_5_test.dart index 6f03af5c8ff..6d2e41ebb48 100644 --- a/tests/language_2/null_aware/assignment_runtime_5_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_5_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_runtime_6_test.dart b/tests/language_2/null_aware/assignment_runtime_6_test.dart index 8cf0a479d87..915a914f684 100644 --- a/tests/language_2/null_aware/assignment_runtime_6_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_6_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_runtime_7_test.dart b/tests/language_2/null_aware/assignment_runtime_7_test.dart index 09baf2df1d4..a75fcaf9a7d 100644 --- a/tests/language_2/null_aware/assignment_runtime_7_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_7_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_runtime_8_test.dart b/tests/language_2/null_aware/assignment_runtime_8_test.dart index 4725be7d230..84767100408 100644 --- a/tests/language_2/null_aware/assignment_runtime_8_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_8_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_runtime_9_test.dart b/tests/language_2/null_aware/assignment_runtime_9_test.dart index 0bc41ffc749..7664f449cbd 100644 --- a/tests/language_2/null_aware/assignment_runtime_9_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_9_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_runtime_test.dart b/tests/language_2/null_aware/assignment_runtime_test.dart index 0cbd5976cce..bc52d425abf 100644 --- a/tests/language_2/null_aware/assignment_runtime_test.dart +++ b/tests/language_2/null_aware/assignment_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/assignment_test.dart b/tests/language_2/null_aware/assignment_test.dart index 22bde4f5a93..ef7693d9d88 100644 --- a/tests/language_2/null_aware/assignment_test.dart +++ b/tests/language_2/null_aware/assignment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify semantics of the ?. operator when it appears on the LHS of an // assignment. diff --git a/tests/language_2/null_aware/conditional_access_helper.dart b/tests/language_2/null_aware/conditional_access_helper.dart index 530615d8b4e..82e21a06b42 100644 --- a/tests/language_2/null_aware/conditional_access_helper.dart +++ b/tests/language_2/null_aware/conditional_access_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Library used by conditional_property_assignment_test.dart, // conditional_property_access_test.dart, and // conditional_method_invocation_test.dart, all of which import it using the diff --git a/tests/language_2/null_aware/dynamic_test.dart b/tests/language_2/null_aware/dynamic_test.dart index 36dfc10f6d7..ce76d1a8ddc 100644 --- a/tests/language_2/null_aware/dynamic_test.dart +++ b/tests/language_2/null_aware/dynamic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void main() { diff --git a/tests/language_2/null_aware/increment_decrement_runtime_10_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_10_test.dart index 8be2ec6e201..c1431f55a1d 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_10_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_10_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_11_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_11_test.dart index 1047e8b57e9..adf946081b9 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_11_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_11_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_12_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_12_test.dart index bb84f7591d9..7d176e3a391 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_12_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_12_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_13_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_13_test.dart index 7b4118f401b..46d5e481803 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_13_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_13_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_14_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_14_test.dart index f712892a1bb..d07a250b2ae 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_14_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_14_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_15_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_15_test.dart index 864e758b402..bd88fdd0596 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_15_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_15_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_16_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_16_test.dart index 2ab109cb8e6..b51bf10ca3d 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_16_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_16_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_17_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_17_test.dart index f56c3aac147..571d2ca1470 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_17_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_17_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_18_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_18_test.dart index c11e88d8fa5..088ef8ea4b0 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_18_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_18_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_19_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_19_test.dart index 8d796b8446c..8306967bdc7 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_19_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_19_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_1_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_1_test.dart index 3b825fbf71a..64576987410 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_1_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_20_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_20_test.dart index da8284ea536..5e1f48bee92 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_20_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_20_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_21_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_21_test.dart index 109dc57a4a5..3ee89828297 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_21_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_21_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_22_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_22_test.dart index 154228ae8c2..fda1113f9a3 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_22_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_22_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_23_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_23_test.dart index 8cad501dc11..ec140f0a76d 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_23_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_23_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_24_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_24_test.dart index a76bd1517f9..1d0d057e1f2 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_24_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_24_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_25_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_25_test.dart index 0ae8ae2444b..54b419417b8 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_25_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_25_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_26_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_26_test.dart index 47bbd46d6b6..95582eb9290 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_26_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_26_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_27_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_27_test.dart index 1bf4b88ac93..14489c25667 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_27_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_27_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_28_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_28_test.dart index b62e19c2db0..aee46fe5937 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_28_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_28_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_2_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_2_test.dart index eb07c4ffd31..fffdcd9bca3 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_2_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_3_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_3_test.dart index ce732e7bfd0..5cf0193d110 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_3_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_4_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_4_test.dart index c6d35627350..3d736295799 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_4_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_5_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_5_test.dart index 6b24eccf5e1..5c56056232a 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_5_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_5_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_6_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_6_test.dart index 3bf81f43e60..823cd5e2585 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_6_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_6_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_7_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_7_test.dart index c5676589b81..627a4782f51 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_7_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_7_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_8_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_8_test.dart index b9a6a1d4dc9..1b75510094a 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_8_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_8_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_9_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_9_test.dart index af4176651bc..7afd7dc338c 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_9_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_9_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_runtime_test.dart b/tests/language_2/null_aware/increment_decrement_runtime_test.dart index e1ef6299443..8671ce70f03 100644 --- a/tests/language_2/null_aware/increment_decrement_runtime_test.dart +++ b/tests/language_2/null_aware/increment_decrement_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/increment_decrement_test.dart b/tests/language_2/null_aware/increment_decrement_test.dart index 4e7796ef95c..1b688ee1463 100644 --- a/tests/language_2/null_aware/increment_decrement_test.dart +++ b/tests/language_2/null_aware/increment_decrement_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify semantics of the ?. operator when it appears in a postincrement or // preincrement expression (or a postdecrement or predecrement expression). diff --git a/tests/language_2/null_aware/index_this_null_aware_equals_test.dart b/tests/language_2/null_aware/index_this_null_aware_equals_test.dart index fc2ccc99fc5..5b3a2e52b6b 100644 --- a/tests/language_2/null_aware/index_this_null_aware_equals_test.dart +++ b/tests/language_2/null_aware/index_this_null_aware_equals_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 class C { static final Expando _debugIds = new Expando(); diff --git a/tests/language_2/null_aware/invocation_runtime_1_test.dart b/tests/language_2/null_aware/invocation_runtime_1_test.dart index 9722db01e1a..75b37def509 100644 --- a/tests/language_2/null_aware/invocation_runtime_1_test.dart +++ b/tests/language_2/null_aware/invocation_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/invocation_runtime_2_test.dart b/tests/language_2/null_aware/invocation_runtime_2_test.dart index b4502845ad2..6bebd419b40 100644 --- a/tests/language_2/null_aware/invocation_runtime_2_test.dart +++ b/tests/language_2/null_aware/invocation_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/invocation_runtime_3_test.dart b/tests/language_2/null_aware/invocation_runtime_3_test.dart index 0c96523e459..de66b3ee7b1 100644 --- a/tests/language_2/null_aware/invocation_runtime_3_test.dart +++ b/tests/language_2/null_aware/invocation_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/invocation_runtime_4_test.dart b/tests/language_2/null_aware/invocation_runtime_4_test.dart index c830c7864da..e4456877654 100644 --- a/tests/language_2/null_aware/invocation_runtime_4_test.dart +++ b/tests/language_2/null_aware/invocation_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/invocation_runtime_5_test.dart b/tests/language_2/null_aware/invocation_runtime_5_test.dart index ee15500c20a..9733964709c 100644 --- a/tests/language_2/null_aware/invocation_runtime_5_test.dart +++ b/tests/language_2/null_aware/invocation_runtime_5_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/invocation_runtime_6_test.dart b/tests/language_2/null_aware/invocation_runtime_6_test.dart index 6242c720120..ce4ace509c2 100644 --- a/tests/language_2/null_aware/invocation_runtime_6_test.dart +++ b/tests/language_2/null_aware/invocation_runtime_6_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/invocation_runtime_7_test.dart b/tests/language_2/null_aware/invocation_runtime_7_test.dart index 4ea694d3379..006886fb2cf 100644 --- a/tests/language_2/null_aware/invocation_runtime_7_test.dart +++ b/tests/language_2/null_aware/invocation_runtime_7_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/invocation_runtime_8_test.dart b/tests/language_2/null_aware/invocation_runtime_8_test.dart index 4d37e3c052d..3ee9a207bca 100644 --- a/tests/language_2/null_aware/invocation_runtime_8_test.dart +++ b/tests/language_2/null_aware/invocation_runtime_8_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/invocation_runtime_test.dart b/tests/language_2/null_aware/invocation_runtime_test.dart index b4c821757e8..90456375d51 100644 --- a/tests/language_2/null_aware/invocation_runtime_test.dart +++ b/tests/language_2/null_aware/invocation_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/null_aware/invocation_test.dart b/tests/language_2/null_aware/invocation_test.dart index e8823535938..eae3b763dea 100644 --- a/tests/language_2/null_aware/invocation_test.dart +++ b/tests/language_2/null_aware/invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify semantics of the ?. operator when it is used to invoke a method. import "package:expect/expect.dart"; diff --git a/tests/language_2/null_aware/opt_test.dart b/tests/language_2/null_aware/opt_test.dart index 4236ee9a2ff..9993c040783 100644 --- a/tests/language_2/null_aware/opt_test.dart +++ b/tests/language_2/null_aware/opt_test.dart @@ -6,6 +6,8 @@ // // Basic null-aware operator test that invokes the optimizing compiler. +// @dart = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/number/constant_folding1_test.dart b/tests/language_2/number/constant_folding1_test.dart index 8ee351ca69a..4af9bdca8bd 100644 --- a/tests/language_2/number/constant_folding1_test.dart +++ b/tests/language_2/number/constant_folding1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // On frogsh constant folded hex literals of large magnitude were truncated on diff --git a/tests/language_2/number/identifier_runtime_test.dart b/tests/language_2/number/identifier_runtime_test.dart index 3450bd196cf..8e81d21940b 100644 --- a/tests/language_2/number/identifier_runtime_test.dart +++ b/tests/language_2/number/identifier_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/identifier_test.dart b/tests/language_2/number/identifier_test.dart index d66bf6b31a0..d6ae7a44b29 100644 --- a/tests/language_2/number/identifier_test.dart +++ b/tests/language_2/number/identifier_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/number/identity2_test.dart b/tests/language_2/number/identity2_test.dart index 5dde8ee839a..2b8115884df 100644 --- a/tests/language_2/number/identity2_test.dart +++ b/tests/language_2/number/identity2_test.dart @@ -7,6 +7,8 @@ // 'number_identity_test.dart' once fixed. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; import 'dart:typed_data'; diff --git a/tests/language_2/number/identity_test.dart b/tests/language_2/number/identity_test.dart index a4eb7a5d0a6..a8486701a6e 100644 --- a/tests/language_2/number/identity_test.dart +++ b/tests/language_2/number/identity_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing params. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/number/infinity_test.dart b/tests/language_2/number/infinity_test.dart index 8d3a8d61315..6c0a20c3660 100644 --- a/tests/language_2/number/infinity_test.dart +++ b/tests/language_2/number/infinity_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int inscrutable(int x) => x == 0 ? 0 : x | inscrutable(x & (x - 1)); diff --git a/tests/language_2/number/int2_test.dart b/tests/language_2/number/int2_test.dart index d15fed9ac6b..3cf6e3d978d 100644 --- a/tests/language_2/number/int2_test.dart +++ b/tests/language_2/number/int2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to throw NoSuchMethod if an // int did not fit in the SMI range. diff --git a/tests/language_2/number/int64_literal_runtime_10_test.dart b/tests/language_2/number/int64_literal_runtime_10_test.dart index 6391a0f379c..7e5ddd0528b 100644 --- a/tests/language_2/number/int64_literal_runtime_10_test.dart +++ b/tests/language_2/number/int64_literal_runtime_10_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/int64_literal_runtime_11_test.dart b/tests/language_2/number/int64_literal_runtime_11_test.dart index 02ae918f5e2..d57af66e309 100644 --- a/tests/language_2/number/int64_literal_runtime_11_test.dart +++ b/tests/language_2/number/int64_literal_runtime_11_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/int64_literal_runtime_1_test.dart b/tests/language_2/number/int64_literal_runtime_1_test.dart index 3b23e7fc4a1..8e6c83b331c 100644 --- a/tests/language_2/number/int64_literal_runtime_1_test.dart +++ b/tests/language_2/number/int64_literal_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/int64_literal_runtime_2_test.dart b/tests/language_2/number/int64_literal_runtime_2_test.dart index 6664a7dd5a8..d4c17e9fda9 100644 --- a/tests/language_2/number/int64_literal_runtime_2_test.dart +++ b/tests/language_2/number/int64_literal_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/int64_literal_runtime_3_test.dart b/tests/language_2/number/int64_literal_runtime_3_test.dart index 6a474c99912..5766d276922 100644 --- a/tests/language_2/number/int64_literal_runtime_3_test.dart +++ b/tests/language_2/number/int64_literal_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/int64_literal_runtime_4_test.dart b/tests/language_2/number/int64_literal_runtime_4_test.dart index e40dd6b2a8b..258e07027a4 100644 --- a/tests/language_2/number/int64_literal_runtime_4_test.dart +++ b/tests/language_2/number/int64_literal_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/int64_literal_runtime_5_test.dart b/tests/language_2/number/int64_literal_runtime_5_test.dart index d9f1aac3704..0bf8cdb47c8 100644 --- a/tests/language_2/number/int64_literal_runtime_5_test.dart +++ b/tests/language_2/number/int64_literal_runtime_5_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/int64_literal_runtime_6_test.dart b/tests/language_2/number/int64_literal_runtime_6_test.dart index fefa1f354df..4b2d69888ba 100644 --- a/tests/language_2/number/int64_literal_runtime_6_test.dart +++ b/tests/language_2/number/int64_literal_runtime_6_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/int64_literal_runtime_7_test.dart b/tests/language_2/number/int64_literal_runtime_7_test.dart index 227ea41a7aa..4c17a63c8c4 100644 --- a/tests/language_2/number/int64_literal_runtime_7_test.dart +++ b/tests/language_2/number/int64_literal_runtime_7_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/int64_literal_runtime_8_test.dart b/tests/language_2/number/int64_literal_runtime_8_test.dart index 07ba1747c09..d1179a6c43d 100644 --- a/tests/language_2/number/int64_literal_runtime_8_test.dart +++ b/tests/language_2/number/int64_literal_runtime_8_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/int64_literal_runtime_9_test.dart b/tests/language_2/number/int64_literal_runtime_9_test.dart index 7aabfc29b77..17f73b78aa0 100644 --- a/tests/language_2/number/int64_literal_runtime_9_test.dart +++ b/tests/language_2/number/int64_literal_runtime_9_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/int64_literal_runtime_test.dart b/tests/language_2/number/int64_literal_runtime_test.dart index d135bb170d5..8518390ed86 100644 --- a/tests/language_2/number/int64_literal_runtime_test.dart +++ b/tests/language_2/number/int64_literal_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/int64_literal_test.dart b/tests/language_2/number/int64_literal_test.dart index edce72eea44..fb7dcb64512 100644 --- a/tests/language_2/number/int64_literal_test.dart +++ b/tests/language_2/number/int64_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; const String realMaxInt64Value = '9223372036854775807'; diff --git a/tests/language_2/number/int_test.dart b/tests/language_2/number/int_test.dart index c1d084c27ae..8184eb34ba3 100644 --- a/tests/language_2/number/int_test.dart +++ b/tests/language_2/number/int_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test basic integer operations. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/number/numbers_test.dart b/tests/language_2/number/numbers_test.dart index e7c8a75bf40..f10554076b2 100644 --- a/tests/language_2/number/numbers_test.dart +++ b/tests/language_2/number/numbers_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test number types. +// @dart = 2.9 + library NumbersTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/number/syntax_test.dart b/tests/language_2/number/syntax_test.dart index 94e689017bc..42115c77bdc 100644 --- a/tests/language_2/number/syntax_test.dart +++ b/tests/language_2/number/syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class NumberSyntaxTest { diff --git a/tests/language_2/number/web_int_literals_runtime_test.dart b/tests/language_2/number/web_int_literals_runtime_test.dart index dfbcf567862..03414166033 100644 --- a/tests/language_2/number/web_int_literals_runtime_test.dart +++ b/tests/language_2/number/web_int_literals_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/number/web_int_literals_test.dart b/tests/language_2/number/web_int_literals_test.dart index 094b739f9b6..ae3735199cf 100644 --- a/tests/language_2/number/web_int_literals_test.dart +++ b/tests/language_2/number/web_int_literals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/operator/and_operation_on_non_integer_operand_test.dart b/tests/language_2/operator/and_operation_on_non_integer_operand_test.dart index 36b4a046a6f..9ceea3250e4 100644 --- a/tests/language_2/operator/and_operation_on_non_integer_operand_test.dart +++ b/tests/language_2/operator/and_operation_on_non_integer_operand_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to miscompile boolean add operations // if one of the operands was an int and the other was not (issue 22427). diff --git a/tests/language_2/operator/arithmetic_canonicalization_test.dart b/tests/language_2/operator/arithmetic_canonicalization_test.dart index 2447fa40889..b1a40a728a5 100644 --- a/tests/language_2/operator/arithmetic_canonicalization_test.dart +++ b/tests/language_2/operator/arithmetic_canonicalization_test.dart @@ -4,6 +4,8 @@ // Test canonicalization of simple arithmetic equivalences. // VMOptions=--optimization-counter-threshold=20 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/operator/arithmetic_int64_test.dart b/tests/language_2/operator/arithmetic_int64_test.dart index 6354af06748..eeee2a5de44 100644 --- a/tests/language_2/operator/arithmetic_int64_test.dart +++ b/tests/language_2/operator/arithmetic_int64_test.dart @@ -4,6 +4,8 @@ // Dart test program to test arithmetic operations. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + library arithmetic_test; import "package:expect/expect.dart"; diff --git a/tests/language_2/operator/arithmetic_smi_overflow_test.dart b/tests/language_2/operator/arithmetic_smi_overflow_test.dart index 1a4eec14fda..6362c6a786c 100644 --- a/tests/language_2/operator/arithmetic_smi_overflow_test.dart +++ b/tests/language_2/operator/arithmetic_smi_overflow_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// @dart = 2.9 + // VMOptions=--optimization_counter_threshold=5 --no-background_compilation import "package:expect/expect.dart"; diff --git a/tests/language_2/operator/arithmetic_test.dart b/tests/language_2/operator/arithmetic_test.dart index 7784f3563e1..966570a0e19 100644 --- a/tests/language_2/operator/arithmetic_test.dart +++ b/tests/language_2/operator/arithmetic_test.dart @@ -4,6 +4,8 @@ // Dart test program to test arithmetic operations. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + library arithmetic_test; import "package:expect/expect.dart"; diff --git a/tests/language_2/operator/bit_operations_test.dart b/tests/language_2/operator/bit_operations_test.dart index c6fd13c3c5f..979492e9597 100644 --- a/tests/language_2/operator/bit_operations_test.dart +++ b/tests/language_2/operator/bit_operations_test.dart @@ -4,6 +4,8 @@ // Dart test for testing bitwise operations. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/operator/bit_shift_test.dart b/tests/language_2/operator/bit_shift_test.dart index 1f0042387c1..efe2d291b11 100644 --- a/tests/language_2/operator/bit_shift_test.dart +++ b/tests/language_2/operator/bit_shift_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; constants() { diff --git a/tests/language_2/operator/comparison_test.dart b/tests/language_2/operator/comparison_test.dart index 59d700563d9..11dcd6c9980 100644 --- a/tests/language_2/operator/comparison_test.dart +++ b/tests/language_2/operator/comparison_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing comparison operators. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/operator/compound_assignment_test.dart b/tests/language_2/operator/compound_assignment_test.dart index 1b507c9b4d0..03b60449c12 100644 --- a/tests/language_2/operator/compound_assignment_test.dart +++ b/tests/language_2/operator/compound_assignment_test.dart @@ -4,6 +4,8 @@ // Tests that lhs of a compound assignment is executed only once. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; class Indexed { diff --git a/tests/language_2/operator/cond_expr_test.dart b/tests/language_2/operator/cond_expr_test.dart index 7bcc477e66d..b76a10e8b0c 100644 --- a/tests/language_2/operator/cond_expr_test.dart +++ b/tests/language_2/operator/cond_expr_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check that conditional expressions can contain assignment expressions. +// @dart = 2.9 + import "package:expect/expect.dart"; var e1, e2; diff --git a/tests/language_2/operator/div_by_zero_test.dart b/tests/language_2/operator/div_by_zero_test.dart index cb67d688dd7..4339aaf3e95 100644 --- a/tests/language_2/operator/div_by_zero_test.dart +++ b/tests/language_2/operator/div_by_zero_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test integer div by zero. +// @dart = 2.9 + import "package:expect/expect.dart"; class DivByZeroTest { diff --git a/tests/language_2/operator/div_with_power_of_two2_test.dart b/tests/language_2/operator/div_with_power_of_two2_test.dart index c8e3bdbfb51..fdbf57135d2 100644 --- a/tests/language_2/operator/div_with_power_of_two2_test.dart +++ b/tests/language_2/operator/div_with_power_of_two2_test.dart @@ -5,6 +5,8 @@ // Test that results before and after optimization are the same. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; // [function, [list of tuples argument/result]]. diff --git a/tests/language_2/operator/div_with_power_of_two_test.dart b/tests/language_2/operator/div_with_power_of_two_test.dart index 3372bceb4f1..987b4676bff 100644 --- a/tests/language_2/operator/div_with_power_of_two_test.dart +++ b/tests/language_2/operator/div_with_power_of_two_test.dart @@ -5,6 +5,8 @@ // Test that results before and after optimization are the same. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; // [function, [list of tuples argument/result]]. diff --git a/tests/language_2/operator/equality_test.dart b/tests/language_2/operator/equality_test.dart index 69d8572c7c8..ddab2c46f92 100644 --- a/tests/language_2/operator/equality_test.dart +++ b/tests/language_2/operator/equality_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/operator/equals_test.dart b/tests/language_2/operator/equals_test.dart index 109c7c6dc3a..a87b4d1bd1d 100644 --- a/tests/language_2/operator/equals_test.dart +++ b/tests/language_2/operator/equals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to infer [:super == null:] // always returns an int. diff --git a/tests/language_2/operator/incr_op_test.dart b/tests/language_2/operator/incr_op_test.dart index 9050a4129bd..8284a3edec2 100644 --- a/tests/language_2/operator/incr_op_test.dart +++ b/tests/language_2/operator/incr_op_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing increment operator. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/operator/index_evaluation_order_test.dart b/tests/language_2/operator/index_evaluation_order_test.dart index 023d02786f8..4fcb832161d 100644 --- a/tests/language_2/operator/index_evaluation_order_test.dart +++ b/tests/language_2/operator/index_evaluation_order_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class B { diff --git a/tests/language_2/operator/index_test.dart b/tests/language_2/operator/index_test.dart index bf9ab92d245..ec542e081ff 100644 --- a/tests/language_2/operator/index_test.dart +++ b/tests/language_2/operator/index_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing index operators. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/operator/integer_division_by_zero_test.dart b/tests/language_2/operator/integer_division_by_zero_test.dart index 03cd66101cd..3ba518acc66 100644 --- a/tests/language_2/operator/integer_division_by_zero_test.dart +++ b/tests/language_2/operator/integer_division_by_zero_test.dart @@ -5,6 +5,8 @@ // Test that results before and after optimization are the same. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; divBy0(a) => a ~/ 0; diff --git a/tests/language_2/operator/invalid_assignment_to_postfix_increment_runtime_test.dart b/tests/language_2/operator/invalid_assignment_to_postfix_increment_runtime_test.dart index 69983673fd5..eff83d4a9d7 100644 --- a/tests/language_2/operator/invalid_assignment_to_postfix_increment_runtime_test.dart +++ b/tests/language_2/operator/invalid_assignment_to_postfix_increment_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/operator/invalid_assignment_to_postfix_increment_test.dart b/tests/language_2/operator/invalid_assignment_to_postfix_increment_test.dart index fcae91f638c..62d8eb06fa5 100644 --- a/tests/language_2/operator/invalid_assignment_to_postfix_increment_test.dart +++ b/tests/language_2/operator/invalid_assignment_to_postfix_increment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void f(int x, int y) { x++ = y; //^^^ diff --git a/tests/language_2/operator/invalid_operators_test.dart b/tests/language_2/operator/invalid_operators_test.dart index 7efa98b15e2..977c644b553 100644 --- a/tests/language_2/operator/invalid_operators_test.dart +++ b/tests/language_2/operator/invalid_operators_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Operators1 { operator ==() => true; // ^^ diff --git a/tests/language_2/operator/left_shift_test.dart b/tests/language_2/operator/left_shift_test.dart index 7f151b10ffd..303747a776f 100644 --- a/tests/language_2/operator/left_shift_test.dart +++ b/tests/language_2/operator/left_shift_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/operator/literal_unary_plus_test.dart b/tests/language_2/operator/literal_unary_plus_test.dart index 8a2530dbd53..0ce8094db02 100644 --- a/tests/language_2/operator/literal_unary_plus_test.dart +++ b/tests/language_2/operator/literal_unary_plus_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // There is no unary plus operator in Dart. main() { diff --git a/tests/language_2/operator/logical_expression2_test.dart b/tests/language_2/operator/logical_expression2_test.dart index 04a05e94356..d1f25cd0db7 100644 --- a/tests/language_2/operator/logical_expression2_test.dart +++ b/tests/language_2/operator/logical_expression2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for issue 17149. diff --git a/tests/language_2/operator/logical_expression3_test.dart b/tests/language_2/operator/logical_expression3_test.dart index 9d6efa98aaa..ca7197da854 100644 --- a/tests/language_2/operator/logical_expression3_test.dart +++ b/tests/language_2/operator/logical_expression3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; bool nonInlinedNumTypeCheck(Object object) { diff --git a/tests/language_2/operator/logical_expression4_test.dart b/tests/language_2/operator/logical_expression4_test.dart index 1442434f70d..5009722be40 100644 --- a/tests/language_2/operator/logical_expression4_test.dart +++ b/tests/language_2/operator/logical_expression4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; bool nonInlinedNumTypeCheck(Object object) { diff --git a/tests/language_2/operator/logical_expression5_test.dart b/tests/language_2/operator/logical_expression5_test.dart index f918604fa01..a3ab83b9bb5 100644 --- a/tests/language_2/operator/logical_expression5_test.dart +++ b/tests/language_2/operator/logical_expression5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; bool nonInlinedNumTypeCheck(Object object) { diff --git a/tests/language_2/operator/logical_expression_test.dart b/tests/language_2/operator/logical_expression_test.dart index e3dd1952ea7..0eceb92ba2c 100644 --- a/tests/language_2/operator/logical_expression_test.dart +++ b/tests/language_2/operator/logical_expression_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing if statement. +// @dart = 2.9 + import "package:expect/expect.dart"; // For logical-or conditions dart2js sometimes inlined expressions, leading to diff --git a/tests/language_2/operator/mint_arithmetic_test.dart b/tests/language_2/operator/mint_arithmetic_test.dart index ee298586e0d..424f1394397 100644 --- a/tests/language_2/operator/mint_arithmetic_test.dart +++ b/tests/language_2/operator/mint_arithmetic_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; // Test arithmetic on 64-bit integers. diff --git a/tests/language_2/operator/modulo_test.dart b/tests/language_2/operator/modulo_test.dart index ae556267524..6e38c09e99f 100644 --- a/tests/language_2/operator/modulo_test.dart +++ b/tests/language_2/operator/modulo_test.dart @@ -4,6 +4,8 @@ // Dart test optimization of modulo operator on Smi. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/operator/mul_recipr_test.dart b/tests/language_2/operator/mul_recipr_test.dart index a79be783cfb..516797cc0de 100644 --- a/tests/language_2/operator/mul_recipr_test.dart +++ b/tests/language_2/operator/mul_recipr_test.dart @@ -7,6 +7,8 @@ // // VMOptions=--optimization-counter-threshold=8 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; var xx = 23.0; diff --git a/tests/language_2/operator/multi_assign_test.dart b/tests/language_2/operator/multi_assign_test.dart index d88a63aa583..d3eee4a4fe4 100644 --- a/tests/language_2/operator/multi_assign_test.dart +++ b/tests/language_2/operator/multi_assign_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing multiple assignment. +// @dart = 2.9 + import "package:expect/expect.dart"; class MultiAssignTest { diff --git a/tests/language_2/operator/negate_and_method_negate_test.dart b/tests/language_2/operator/negate_and_method_negate_test.dart index 98a0063bf69..2248dc35276 100644 --- a/tests/language_2/operator/negate_and_method_negate_test.dart +++ b/tests/language_2/operator/negate_and_method_negate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // This checks that it is possible to have a method named negate as diff --git a/tests/language_2/operator/operations_on_non_num_operand_test.dart b/tests/language_2/operator/operations_on_non_num_operand_test.dart index 8a98bb39346..4b90d419e4b 100644 --- a/tests/language_2/operator/operations_on_non_num_operand_test.dart +++ b/tests/language_2/operator/operations_on_non_num_operand_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Regression test for dart2js that used to miscompile boolean and operations /// if one of the operands was an int and the other was not (issue 22427). /// diff --git a/tests/language_2/operator/operator1_test.dart b/tests/language_2/operator/operator1_test.dart index 5ba6722e684..d25f9340138 100644 --- a/tests/language_2/operator/operator1_test.dart +++ b/tests/language_2/operator/operator1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Operator functions cannot be static. class C { diff --git a/tests/language_2/operator/operator2_test.dart b/tests/language_2/operator/operator2_test.dart index 17f1fd8f0fd..8b0dcb5b707 100644 --- a/tests/language_2/operator/operator2_test.dart +++ b/tests/language_2/operator/operator2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Operator dart test program. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/operator/operator3_test.dart b/tests/language_2/operator/operator3_test.dart index 98e9571e127..19eb77b2b0a 100644 --- a/tests/language_2/operator/operator3_test.dart +++ b/tests/language_2/operator/operator3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/operator/operator4_test.dart b/tests/language_2/operator/operator4_test.dart index e203a166e44..9cbe5235e67 100644 --- a/tests/language_2/operator/operator4_test.dart +++ b/tests/language_2/operator/operator4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/operator/operator5_test.dart b/tests/language_2/operator/operator5_test.dart index a6d177df570..c892ca27079 100644 --- a/tests/language_2/operator/operator5_test.dart +++ b/tests/language_2/operator/operator5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/operator/operator6_test.dart b/tests/language_2/operator/operator6_test.dart index 87fae7d9aa3..53b570dc546 100644 --- a/tests/language_2/operator/operator6_test.dart +++ b/tests/language_2/operator/operator6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class OperatorTest { diff --git a/tests/language_2/operator/operator7_test.dart b/tests/language_2/operator/operator7_test.dart index ff43b64c522..2d6ab19adba 100644 --- a/tests/language_2/operator/operator7_test.dart +++ b/tests/language_2/operator/operator7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// No "===" operator. class C { diff --git a/tests/language_2/operator/operator_test.dart b/tests/language_2/operator/operator_test.dart index db41d029fa2..9763a582b7f 100644 --- a/tests/language_2/operator/operator_test.dart +++ b/tests/language_2/operator/operator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class OperatorTest { diff --git a/tests/language_2/operator/positive_bit_operations_test.dart b/tests/language_2/operator/positive_bit_operations_test.dart index 396360c532b..7133f843118 100644 --- a/tests/language_2/operator/positive_bit_operations_test.dart +++ b/tests/language_2/operator/positive_bit_operations_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; constants() { diff --git a/tests/language_2/operator/precedence_test.dart b/tests/language_2/operator/precedence_test.dart index d22ca89da1f..4db2b54f40d 100644 --- a/tests/language_2/operator/precedence_test.dart +++ b/tests/language_2/operator/precedence_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test operation precedence. +// @dart = 2.9 + library precedence_test; import "package:expect/expect.dart"; diff --git a/tests/language_2/operator/round_test.dart b/tests/language_2/operator/round_test.dart index e1b3c3ebf9d..8f6025a144d 100644 --- a/tests/language_2/operator/round_test.dart +++ b/tests/language_2/operator/round_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test of a common rounding bug. /// /// This bug is common in JavaScript implementations because the ECMA-262 diff --git a/tests/language_2/operator/smi_type_test.dart b/tests/language_2/operator/smi_type_test.dart index dddfdbef23c..02cb4a457fa 100644 --- a/tests/language_2/operator/smi_type_test.dart +++ b/tests/language_2/operator/smi_type_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=8 +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/operator/ternary_test.dart b/tests/language_2/operator/ternary_test.dart index 240034db562..628ec570eed 100644 --- a/tests/language_2/operator/ternary_test.dart +++ b/tests/language_2/operator/ternary_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing the ternary operator. +// @dart = 2.9 + import "package:expect/expect.dart"; class TernaryTest { diff --git a/tests/language_2/operator/truncdiv_test.dart b/tests/language_2/operator/truncdiv_test.dart index bd043d10966..b3f3cbd9335 100644 --- a/tests/language_2/operator/truncdiv_test.dart +++ b/tests/language_2/operator/truncdiv_test.dart @@ -4,6 +4,8 @@ // Dart test optimization of modulo operator on Smi. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/operator/truncdiv_uint32_test.dart b/tests/language_2/operator/truncdiv_uint32_test.dart index 46930a4c2dd..3ca40be2dca 100644 --- a/tests/language_2/operator/truncdiv_uint32_test.dart +++ b/tests/language_2/operator/truncdiv_uint32_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + var a = [0xFFFFFFFF]; main() { diff --git a/tests/language_2/operator/truncdiv_zero_test.dart b/tests/language_2/operator/truncdiv_zero_test.dart index 34cecc384ab..ed410907c11 100644 --- a/tests/language_2/operator/truncdiv_zero_test.dart +++ b/tests/language_2/operator/truncdiv_zero_test.dart @@ -4,6 +4,8 @@ // Dart test optimization of modulo operator on Smi. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; import "truncdiv_test.dart" as truncdiv_test show foo, foo2; diff --git a/tests/language_2/operator/unary2_test.dart b/tests/language_2/operator/unary2_test.dart index a79933996d0..87fe30b4d21 100644 --- a/tests/language_2/operator/unary2_test.dart +++ b/tests/language_2/operator/unary2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing binary operations. +// @dart = 2.9 + import "package:expect/expect.dart"; class UnaryTest { diff --git a/tests/language_2/operator/unary_plus_test.dart b/tests/language_2/operator/unary_plus_test.dart index ac6e9cee2ff..279dbdac348 100644 --- a/tests/language_2/operator/unary_plus_test.dart +++ b/tests/language_2/operator/unary_plus_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// There is no unary plus operator in Dart. main() { diff --git a/tests/language_2/operator/unary_test.dart b/tests/language_2/operator/unary_test.dart index d2421c044f3..469925dc9cf 100644 --- a/tests/language_2/operator/unary_test.dart +++ b/tests/language_2/operator/unary_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test for testing binary operations. diff --git a/tests/language_2/operator/unsigned_right_shift_test.dart b/tests/language_2/operator/unsigned_right_shift_test.dart deleted file mode 100644 index 8a2723f0748..00000000000 --- a/tests/language_2/operator/unsigned_right_shift_test.dart +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright (c) 2019, 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. - -// SharedOptions=--enable-experiment=triple-shift - -import "package:expect/expect.dart"; -import "package:async_helper/async_helper.dart"; - -// The >>> operator is (again) supported by Dart -// (This test does not test int.operator>>>, such a test belongs in the corelib -// test collection. Const uses of int.operator>>> is tested elsewhere as well). - -/// Syntactically tricky coincidences containing >>> and >>>=. -/// DO NOT FORMAT THIS FILE. There should not be a space between >>> and =. -typedef F3>>= T Function(); -typedef F4>>>= T Function(); -typedef F5>>>>= T Function(); -typedef F6>>>>>= T Function(); -class E3>> {} -class E4>>> {} -class E5>>>> {} -class E6>>>>> {} - -main() { - // >>> is an overridable operator. - const c1 = C(1); - const c2 = C(2); - Expect.identical(c2, c1 >>> c2); - - /// It combines to an assignment operator. - C c = c1; - c >>>= c2; - Expect.identical(c2, c); - - // Operand needs to have correct type for typed invocation. - c1 // - >>> 4 //# 01: compile-time error - >>> "string" //# 02: compile-time error - ; - c // - >>>= 4 //# 03: compile-time error - ; - - // Dynamic invocations are allowed, and check types at run-time. - dynamic d = c1; - Expect.identical(c2, d >>> c2); - Expect.throws(() => d >>> 4); - - // There is a symbol for >>>, both as constructed and literal. - Expect.identical(const Symbol(">>>"), #>>>); - - // No such method can catch dynamic invocations of >>>: - dynamic nsm = NSM(); - Invocation invocation = nsm >>> c2; - Expect.isTrue(invocation.isMethod); - Expect.isFalse(invocation.isAccessor); - Expect.equals(#>>>, invocation.memberName); - Expect.equals(1, invocation.positionalArguments.length); - Expect.identical(c2, invocation.positionalArguments[0]); - Expect.equals(0, invocation.namedArguments.length); - - invocation = (nsm >>>= c2); - Expect.isTrue(invocation.isMethod); - Expect.isFalse(invocation.isAccessor); - Expect.equals(#>>>, invocation.memberName); - Expect.equals(1, invocation.positionalArguments.length); - Expect.identical(c2, invocation.positionalArguments[0]); - Expect.equals(0, invocation.namedArguments.length); - - // And unimplemented interface methods. - ShiftNSM shnsm = ShiftNSM(); - invocation = shnsm >>> c2; - Expect.isTrue(invocation.isMethod); - Expect.isFalse(invocation.isAccessor); - Expect.equals(#>>>, invocation.memberName); - Expect.equals(1, invocation.positionalArguments.length); - Expect.identical(c2, invocation.positionalArguments[0]); - Expect.equals(0, invocation.namedArguments.length); - - // If there is an interface, we must match it, even if the call - // otherwise goes to noSuchMethod. - shnsm // - >>> 4 //# 04: compile-time error - ; - - /// A type error in the nSM return value is caught. - dynamic badNSM = BadNSM(); - Expect.throws(() => badNSM >>> "not an int", (e) => e != "Unreachable"); - Expect.throws(() => badNSM >>> 4, (e) => e != "Unreachable"); - - asyncStart(); - () async { - // Operands can be asynchronous. - var fc1 = Future.value(c1); - var fc2 = Future.value(c2); - Expect.identical(c2, (await fc1) >>> (await fc2)); - /// The operator itself can be async. - var async = Async(); - Expect.identical(c1, await (async >>> c1)); - - var asyncStar = AsyncStar(); - int count = 0; - await for (var v in asyncStar >>> c1) { - count++; - Expect.identical(c1, v); - } - Expect.equals(1, count); - asyncEnd(); - }(); - - { - var syncStar = SyncStar(); - int count = 0; - for (var v in syncStar >>> c1) { - count++; - Expect.identical(c1, v); - } - Expect.equals(1, count); - } - - // >>> has same precedence as >> (and <<), is left associative. - // Binds weaker than addition/multiplication, stronger than other bitwise - // operators and comparisons. - final a = Assoc("*"); - Expect.equals("((~*)>>>(~*))", "${~a >>> ~a}"); - Expect.equals("((*+*)>>>(*+*))", "${a + a >>> a + a}"); - Expect.equals("((*/*)>>>(*/*))", "${a / a >>> a / a}"); - Expect.equals("(((*>>*)>>>*)>>*)", "${a >> a >>> a >> a}"); - Expect.equals("((*&(*>>>*))&*)", "${a & a >>> a & a}"); - Expect.equals("((*|(*>>>*))|*)", "${a | a >>> a | a}"); - Expect.equals("((*^(*>>>*))^*)", "${a ^ a >>> a ^ a}"); - Expect.equals("(*<(*>>>*))", "${a < a >>> a}"); - Expect.equals("((*>>>*)<*)", "${a >>> a < a}"); - - var res = a; - res >>>= a; - res >>>= a; - Expect.equals("((*>>>*)>>>*)", "$res"); - - // Exercise the type declarations below. - E3>>(); - E4>>>(); - E5>>>>(); - E6>>>>>(); - Expect.type>(() => null); - Expect.type>(() => null); - Expect.type>(() => null); - Expect.type>(() => null); -} - -/// Class with a simple overridden `operator>>>`. -class C { - final int id; - const C(this. id); - C operator >>>(C other) => other; - String toString() => "C($id)"; -} - -/// Invalid declarations of `>>>` operator. -class Invalid { - // Overridable operator must have exactly one required parameter. - Object operator>>>() => null; //# arg0: compile-time error - Object operator>>>(v1, v2) => null; //# arg2: compile-time error - Object operator>>>([v1]) => null; //# argOpt: compile-time error - Object operator>>>({v1}) => null; //# argNam: compile-time error -} - -/// Class with noSuchMethod and no `>>>` operator. -class NSM { - dynamic noSuchMethod(Invocation invocation) { - return invocation; - } -} - -/// Class with nSM and abstract `>>>` (implicit typed forwarder). -class ShiftNSM extends NSM { - dynamic operator>>>(C o); -} - -/// Class with nSM and abstract `>>>` where nSM returns wrong type. -class BadNSM { - int operator>>>(int n); - dynamic noSuchMethod(Invocation i) { - if (i.memberName == #>>>) { - if (i.positionalArguments.first is! int) throw "Unreachable"; - return "notAnInt"; - } - return super.noSuchMethod(i); - } -} - -/// Class with an `async` implementation of `operator >>>` -class Async { - Future operator >>>(C value) async => value; -} - -/// Class with an `async*` implementation of `operator >>>` -class AsyncStar { - Stream operator >>>(C value) async* { - yield value; - } -} - -/// Class with a `sync*` implementation of `operator >>>` -class SyncStar { - Iterable operator >>>(C value) sync* { - yield value; - } -} - -/// Helper class to record precedence and associativity of operators. -class Assoc { - final String ops; - Assoc(this.ops); - Assoc operator ~() => Assoc("(~${this})"); - Assoc operator +(Assoc other) => Assoc("(${this}+$other)"); - Assoc operator /(Assoc other) => Assoc("(${this}/$other)"); - Assoc operator &(Assoc other) => Assoc("(${this}&$other)"); - Assoc operator |(Assoc other) => Assoc("(${this}|$other)"); - Assoc operator ^(Assoc other) => Assoc("(${this}^$other)"); - Assoc operator >(Assoc other) => Assoc("(${this}>$other)"); - Assoc operator >>(Assoc other) => Assoc("(${this}>>$other)"); - Assoc operator >>>(Assoc other) => Assoc("(${this}>>>$other)"); - Assoc operator <(Assoc other) => Assoc("(${this}<$other)"); - Assoc operator >=(Assoc other) => Assoc("(${this}>=$other)"); - Assoc operator <=(Assoc other) => Assoc("(${this}<=$other)"); - String toString() => ops; -} diff --git a/tests/language_2/operator/unsupported_runtime_test.dart b/tests/language_2/operator/unsupported_runtime_test.dart index 57eb8b8a86a..a1bf3d71095 100644 --- a/tests/language_2/operator/unsupported_runtime_test.dart +++ b/tests/language_2/operator/unsupported_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/operator/unsupported_test.dart b/tests/language_2/operator/unsupported_test.dart index 56492609d71..7ead00a760a 100644 --- a/tests/language_2/operator/unsupported_test.dart +++ b/tests/language_2/operator/unsupported_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test handling of unsupported operators. library unsupported_operators; diff --git a/tests/language_2/optimize/allocation_sinking_inlining_test.dart b/tests/language_2/optimize/allocation_sinking_inlining_test.dart index 6ed55015a90..8ca3c16564d 100644 --- a/tests/language_2/optimize/allocation_sinking_inlining_test.dart +++ b/tests/language_2/optimize/allocation_sinking_inlining_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + // Test allocation sinking with polymorphic inlining. import "package:expect/expect.dart"; diff --git a/tests/language_2/optimize/bailout2_test.dart b/tests/language_2/optimize/bailout2_test.dart index 8a0dd87d964..e594c99f0e0 100644 --- a/tests/language_2/optimize/bailout2_test.dart +++ b/tests/language_2/optimize/bailout2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var a; diff --git a/tests/language_2/optimize/bailout3_test.dart b/tests/language_2/optimize/bailout3_test.dart index 6fc0923edf9..2a74b057d42 100644 --- a/tests/language_2/optimize/bailout3_test.dart +++ b/tests/language_2/optimize/bailout3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that the return type of a method is being registered for both diff --git a/tests/language_2/optimize/bailout4_test.dart b/tests/language_2/optimize/bailout4_test.dart index 73970533df8..99fa2a847a4 100644 --- a/tests/language_2/optimize/bailout4_test.dart +++ b/tests/language_2/optimize/bailout4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that dart2s computes the right bailout environment in presence diff --git a/tests/language_2/optimize/bailout5_test.dart b/tests/language_2/optimize/bailout5_test.dart index 1d9c233916b..bbf7da6f25b 100644 --- a/tests/language_2/optimize/bailout5_test.dart +++ b/tests/language_2/optimize/bailout5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test to make sure the bailout environment in dart2js is correct. diff --git a/tests/language_2/optimize/bailout6_test.dart b/tests/language_2/optimize/bailout6_test.dart index 38b84db5467..bd22f36500a 100644 --- a/tests/language_2/optimize/bailout6_test.dart +++ b/tests/language_2/optimize/bailout6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test for dart2js to make sure the computed bailout environment is diff --git a/tests/language_2/optimize/bailout7_test.dart b/tests/language_2/optimize/bailout7_test.dart index b71fe726d88..7d02e92d5b9 100644 --- a/tests/language_2/optimize/bailout7_test.dart +++ b/tests/language_2/optimize/bailout7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test to make sure the do/while loop exit condition is generated. diff --git a/tests/language_2/optimize/bailout_container_type_test.dart b/tests/language_2/optimize/bailout_container_type_test.dart index 7b58f69af36..ab8442c5463 100644 --- a/tests/language_2/optimize/bailout_container_type_test.dart +++ b/tests/language_2/optimize/bailout_container_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to generate bad code for the // non-bailout version of [main]. diff --git a/tests/language_2/optimize/bailout_test.dart b/tests/language_2/optimize/bailout_test.dart index a88780d108b..42ddf807dda 100644 --- a/tests/language_2/optimize/bailout_test.dart +++ b/tests/language_2/optimize/bailout_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that a call to a bailout method in dart2js resolves to the diff --git a/tests/language_2/optimize/cha_deopt1_deferred_lib.dart b/tests/language_2/optimize/cha_deopt1_deferred_lib.dart index 7add3ed4012..25c46967863 100644 --- a/tests/language_2/optimize/cha_deopt1_deferred_lib.dart +++ b/tests/language_2/optimize/cha_deopt1_deferred_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "cha_deopt1_lib.dart"; class U extends T { diff --git a/tests/language_2/optimize/cha_deopt1_lib.dart b/tests/language_2/optimize/cha_deopt1_lib.dart index 72a86f399b8..d5760bbea0f 100644 --- a/tests/language_2/optimize/cha_deopt1_lib.dart +++ b/tests/language_2/optimize/cha_deopt1_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library mylib; class T { diff --git a/tests/language_2/optimize/cha_deopt1_test.dart b/tests/language_2/optimize/cha_deopt1_test.dart index 7cb2a8807ee..e128ba30794 100644 --- a/tests/language_2/optimize/cha_deopt1_test.dart +++ b/tests/language_2/optimize/cha_deopt1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=100 --no-background-compilation +// @dart = 2.9 + // Test lazy deoptimization at field guards with deferred loading. import "package:expect/expect.dart"; diff --git a/tests/language_2/optimize/cha_deopt2_deferred_lib.dart b/tests/language_2/optimize/cha_deopt2_deferred_lib.dart index 53bf9a8a455..59ec9f80b32 100644 --- a/tests/language_2/optimize/cha_deopt2_deferred_lib.dart +++ b/tests/language_2/optimize/cha_deopt2_deferred_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "cha_deopt2_lib.dart"; class U extends T {} diff --git a/tests/language_2/optimize/cha_deopt2_lib.dart b/tests/language_2/optimize/cha_deopt2_lib.dart index 922cf9a1750..20231d9c6a5 100644 --- a/tests/language_2/optimize/cha_deopt2_lib.dart +++ b/tests/language_2/optimize/cha_deopt2_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library mylib; class A {} diff --git a/tests/language_2/optimize/cha_deopt2_test.dart b/tests/language_2/optimize/cha_deopt2_test.dart index 7372f5e514b..15b486d0e0c 100644 --- a/tests/language_2/optimize/cha_deopt2_test.dart +++ b/tests/language_2/optimize/cha_deopt2_test.dart @@ -4,6 +4,8 @@ // VMOptions=--optimization-counter-threshold=100 --no-background-compilation // VMOptions=--optimization-counter-threshold=100 --no-background-compilation --no-use-field-guards +// @dart = 2.9 + // Test lazy deoptimization at type checks with deferred loading. import "package:expect/expect.dart"; diff --git a/tests/language_2/optimize/cha_deopt3_deferred_lib.dart b/tests/language_2/optimize/cha_deopt3_deferred_lib.dart index 31ad3d2fdbf..62e9bedb82d 100644 --- a/tests/language_2/optimize/cha_deopt3_deferred_lib.dart +++ b/tests/language_2/optimize/cha_deopt3_deferred_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "cha_deopt3_lib.dart"; class U implements T {} diff --git a/tests/language_2/optimize/cha_deopt3_lib.dart b/tests/language_2/optimize/cha_deopt3_lib.dart index 922cf9a1750..20231d9c6a5 100644 --- a/tests/language_2/optimize/cha_deopt3_lib.dart +++ b/tests/language_2/optimize/cha_deopt3_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library mylib; class A {} diff --git a/tests/language_2/optimize/cha_deopt3_test.dart b/tests/language_2/optimize/cha_deopt3_test.dart index dfcd7af9617..6bb78fb9f3d 100644 --- a/tests/language_2/optimize/cha_deopt3_test.dart +++ b/tests/language_2/optimize/cha_deopt3_test.dart @@ -4,6 +4,8 @@ // VMOptions=--optimization-counter-threshold=100 --no-background-compilation // VMOptions=--optimization-counter-threshold=100 --no-background-compilation --no-use-field-guards +// @dart = 2.9 + // Test lazy deoptimization at type checks with interface implementation. import "package:expect/expect.dart"; diff --git a/tests/language_2/optimize/code_motion_crash_test.dart b/tests/language_2/optimize/code_motion_crash_test.dart index f0d30b8d2ad..06f81a73209 100644 --- a/tests/language_2/optimize/code_motion_crash_test.dart +++ b/tests/language_2/optimize/code_motion_crash_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to crash during the // [SsaCodeMotion] phase on this code. diff --git a/tests/language_2/optimize/constant_array_string_access_test.dart b/tests/language_2/optimize/constant_array_string_access_test.dart index 35b72795377..2fc2b3ff11b 100644 --- a/tests/language_2/optimize/constant_array_string_access_test.dart +++ b/tests/language_2/optimize/constant_array_string_access_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; // Test optimized constant string and constant array access. diff --git a/tests/language_2/optimize/constant_fold_equals_test.dart b/tests/language_2/optimize/constant_fold_equals_test.dart index 2db1966c49d..21705d039d0 100644 --- a/tests/language_2/optimize/constant_fold_equals_test.dart +++ b/tests/language_2/optimize/constant_fold_equals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/optimize/constant_propagation_phis_test.dart b/tests/language_2/optimize/constant_propagation_phis_test.dart index 0ba7d725382..2428d0a013c 100644 --- a/tests/language_2/optimize/constant_propagation_phis_test.dart +++ b/tests/language_2/optimize/constant_propagation_phis_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test that constant propagation correctly updates phis when predecessor's diff --git a/tests/language_2/optimize/critical_edge2_test.dart b/tests/language_2/optimize/critical_edge2_test.dart index 75e3f13cd0f..3f3c81d8944 100644 --- a/tests/language_2/optimize/critical_edge2_test.dart +++ b/tests/language_2/optimize/critical_edge2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test broke dart2js. // A compiler must not construct a critical edge on this program. // diff --git a/tests/language_2/optimize/critical_edge_test.dart b/tests/language_2/optimize/critical_edge_test.dart index 28c7fd48812..9226b206b6c 100644 --- a/tests/language_2/optimize/critical_edge_test.dart +++ b/tests/language_2/optimize/critical_edge_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test broke dart2js. // A compiler must not construct a critical edge on this program. // diff --git a/tests/language_2/optimize/dead_field_access_test.dart b/tests/language_2/optimize/dead_field_access_test.dart index cacaa3458cd..361e2742c57 100644 --- a/tests/language_2/optimize/dead_field_access_test.dart +++ b/tests/language_2/optimize/dead_field_access_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class Foo { diff --git a/tests/language_2/optimize/deopt_inlined_function_lazy_test.dart b/tests/language_2/optimize/deopt_inlined_function_lazy_test.dart index d82788407b7..feda11769dd 100644 --- a/tests/language_2/optimize/deopt_inlined_function_lazy_test.dart +++ b/tests/language_2/optimize/deopt_inlined_function_lazy_test.dart @@ -4,6 +4,8 @@ // Test lazy deoptimization from within an inlined function. // VMOptions=--deoptimize_alot --optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; call_native(x) { diff --git a/tests/language_2/optimize/deopt_inlined_function_test.dart b/tests/language_2/optimize/deopt_inlined_function_test.dart index e9158ef601f..ad2760015c2 100644 --- a/tests/language_2/optimize/deopt_inlined_function_test.dart +++ b/tests/language_2/optimize/deopt_inlined_function_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test deoptimization from within an inlined function. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/optimize/deopt_lazy_finalization_test.dart b/tests/language_2/optimize/deopt_lazy_finalization_test.dart index 43c70cfffc3..7ed8cce73f6 100644 --- a/tests/language_2/optimize/deopt_lazy_finalization_test.dart +++ b/tests/language_2/optimize/deopt_lazy_finalization_test.dart @@ -4,6 +4,8 @@ // Test deoptimziation caused by lazy finalization. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/optimize/deopt_no_feedback_test.dart b/tests/language_2/optimize/deopt_no_feedback_test.dart index 38c60541326..62c28c6dfee 100644 --- a/tests/language_2/optimize/deopt_no_feedback_test.dart +++ b/tests/language_2/optimize/deopt_no_feedback_test.dart @@ -5,6 +5,8 @@ // feedback before. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; testStoreIndexed() { diff --git a/tests/language_2/optimize/deopt_smi_op_test.dart b/tests/language_2/optimize/deopt_smi_op_test.dart index 30e9fd2f795..851a334aa44 100644 --- a/tests/language_2/optimize/deopt_smi_op_test.dart +++ b/tests/language_2/optimize/deopt_smi_op_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; // Test hoisted (loop-invariant) smi operations with deoptimization. diff --git a/tests/language_2/optimize/deoptimized_function_on_stack_test.dart b/tests/language_2/optimize/deoptimized_function_on_stack_test.dart index d0df4600c7d..a1ab683ce9d 100644 --- a/tests/language_2/optimize/deoptimized_function_on_stack_test.dart +++ b/tests/language_2/optimize/deoptimized_function_on_stack_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; // This is a test for deoptimization infrastructure and to reproduce the diff --git a/tests/language_2/optimize/hoisting_checked_mode_assert_test.dart b/tests/language_2/optimize/hoisting_checked_mode_assert_test.dart index ac45ebfc972..12e1c71e81e 100644 --- a/tests/language_2/optimize/hoisting_checked_mode_assert_test.dart +++ b/tests/language_2/optimize/hoisting_checked_mode_assert_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; // Test checked mode assertions inside loops. diff --git a/tests/language_2/optimize/inferrer_closure_test.dart b/tests/language_2/optimize/inferrer_closure_test.dart index 6841bb4efc1..2eaa3027a44 100644 --- a/tests/language_2/optimize/inferrer_closure_test.dart +++ b/tests/language_2/optimize/inferrer_closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to not see a closure could be // invoked through a getter access followed by an invocation. diff --git a/tests/language_2/optimize/inferrer_constructor2_test.dart b/tests/language_2/optimize/inferrer_constructor2_test.dart index 58da3ada16f..3b8d02636a2 100644 --- a/tests/language_2/optimize/inferrer_constructor2_test.dart +++ b/tests/language_2/optimize/inferrer_constructor2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to optimistically infer the // wrong types for fields because of generative constructors being // inlined. diff --git a/tests/language_2/optimize/inferrer_constructor3_test.dart b/tests/language_2/optimize/inferrer_constructor3_test.dart index f40676d91da..ab89c9d28eb 100644 --- a/tests/language_2/optimize/inferrer_constructor3_test.dart +++ b/tests/language_2/optimize/inferrer_constructor3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to optimistically infer the // wrong types for fields because of generative constructors being // inlined. diff --git a/tests/language_2/optimize/inferrer_constructor4_test.dart b/tests/language_2/optimize/inferrer_constructor4_test.dart index bf9e40dd417..223ac4a8b05 100644 --- a/tests/language_2/optimize/inferrer_constructor4_test.dart +++ b/tests/language_2/optimize/inferrer_constructor4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; escape(object) { diff --git a/tests/language_2/optimize/inferrer_constructor5_runtime_test.dart b/tests/language_2/optimize/inferrer_constructor5_runtime_test.dart index eec6a134f29..85b718a65b7 100644 --- a/tests/language_2/optimize/inferrer_constructor5_runtime_test.dart +++ b/tests/language_2/optimize/inferrer_constructor5_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/optimize/inferrer_constructor5_test.dart b/tests/language_2/optimize/inferrer_constructor5_test.dart index 186b3c9c353..6ba164bcf3f 100644 --- a/tests/language_2/optimize/inferrer_constructor5_test.dart +++ b/tests/language_2/optimize/inferrer_constructor5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/optimize/inferrer_constructor_test.dart b/tests/language_2/optimize/inferrer_constructor_test.dart index 482ef3c75cb..980a9473850 100644 --- a/tests/language_2/optimize/inferrer_constructor_test.dart +++ b/tests/language_2/optimize/inferrer_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that dart2js type inferrer detects dead code. import "package:expect/expect.dart"; diff --git a/tests/language_2/optimize/inferrer_named_parameter_test.dart b/tests/language_2/optimize/inferrer_named_parameter_test.dart index a6655b4fb00..a2edd32cb49 100644 --- a/tests/language_2/optimize/inferrer_named_parameter_test.dart +++ b/tests/language_2/optimize/inferrer_named_parameter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js's type inferrer, that used to not // correctly infer optional named parameters. diff --git a/tests/language_2/optimize/inferrer_synthesized_constructor_test.dart b/tests/language_2/optimize/inferrer_synthesized_constructor_test.dart index ca695c3b560..876befd8446 100644 --- a/tests/language_2/optimize/inferrer_synthesized_constructor_test.dart +++ b/tests/language_2/optimize/inferrer_synthesized_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js's type inferrer that used to not // propagate default types in synthesized calls. diff --git a/tests/language_2/optimize/inferrer_synthesized_super_constructor2_test.dart b/tests/language_2/optimize/inferrer_synthesized_super_constructor2_test.dart index bb183afe01a..7b7bc356099 100644 --- a/tests/language_2/optimize/inferrer_synthesized_super_constructor2_test.dart +++ b/tests/language_2/optimize/inferrer_synthesized_super_constructor2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + bool inConstructor = false; class A { diff --git a/tests/language_2/optimize/inferrer_synthesized_super_constructor_test.dart b/tests/language_2/optimize/inferrer_synthesized_super_constructor_test.dart index 1a7284bd02c..07db1d23ccc 100644 --- a/tests/language_2/optimize/inferrer_synthesized_super_constructor_test.dart +++ b/tests/language_2/optimize/inferrer_synthesized_super_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import '../compiler_annotations.dart'; class A { diff --git a/tests/language_2/optimize/inferrer_this_access_test.dart b/tests/language_2/optimize/inferrer_this_access_test.dart index 4d1b5fcc70f..2c9c1317fec 100644 --- a/tests/language_2/optimize/inferrer_this_access_test.dart +++ b/tests/language_2/optimize/inferrer_this_access_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/optimize/inline_add_constants_to_initial_env_test.dart b/tests/language_2/optimize/inline_add_constants_to_initial_env_test.dart index cd64f44af2a..04e90c6b593 100644 --- a/tests/language_2/optimize/inline_add_constants_to_initial_env_test.dart +++ b/tests/language_2/optimize/inline_add_constants_to_initial_env_test.dart @@ -5,6 +5,8 @@ // constants to original environment. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + h(x, y) => x == y; g(y, [x0 = 0, x1 = 1, x2 = 2, x3 = 3]) => y + x0 + x1 + x2 + x3; diff --git a/tests/language_2/optimize/inline_argument_test.dart b/tests/language_2/optimize/inline_argument_test.dart index 61761c5fb9a..9ef9919e705 100644 --- a/tests/language_2/optimize/inline_argument_test.dart +++ b/tests/language_2/optimize/inline_argument_test.dart @@ -4,6 +4,8 @@ // Test that when inlining A.foo, we're not evaluating the argument // twice. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/optimize/inline_closure_with_constant_arguments_test.dart b/tests/language_2/optimize/inline_closure_with_constant_arguments_test.dart index 1b33e01f8db..c72511d7a68 100644 --- a/tests/language_2/optimize/inline_closure_with_constant_arguments_test.dart +++ b/tests/language_2/optimize/inline_closure_with_constant_arguments_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test inlining of a closure call with constant propagation. diff --git a/tests/language_2/optimize/inline_conditional_test.dart b/tests/language_2/optimize/inline_conditional_test.dart index ab3e85c494d..00766fd34f1 100644 --- a/tests/language_2/optimize/inline_conditional_test.dart +++ b/tests/language_2/optimize/inline_conditional_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js. There was a bug in the variable // allocator when a pure (side-effect free) instruction stand // in-between an inlined `if` and its inlined expression. diff --git a/tests/language_2/optimize/inline_effect_context_test.dart b/tests/language_2/optimize/inline_effect_context_test.dart index 7e83f37007e..df085faf77f 100644 --- a/tests/language_2/optimize/inline_effect_context_test.dart +++ b/tests/language_2/optimize/inline_effect_context_test.dart @@ -6,6 +6,8 @@ // with instance of B and cause deoptimization. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/optimize/inline_getter_test.dart b/tests/language_2/optimize/inline_getter_test.dart index 0384b39ee17..a46d36139ec 100644 --- a/tests/language_2/optimize/inline_getter_test.dart +++ b/tests/language_2/optimize/inline_getter_test.dart @@ -6,6 +6,8 @@ // getter for classes 'A' and 'B'. Call later via 'C' and cause deoptimization. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/optimize/inline_in_for_initializer_and_bailout_test.dart b/tests/language_2/optimize/inline_in_for_initializer_and_bailout_test.dart index fb97c62f014..21f86833b73 100644 --- a/tests/language_2/optimize/inline_in_for_initializer_and_bailout_test.dart +++ b/tests/language_2/optimize/inline_in_for_initializer_and_bailout_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; dynamic a = 42; diff --git a/tests/language_2/optimize/inline_super_field_lib.dart b/tests/language_2/optimize/inline_super_field_lib.dart index dbc3ea67641..d3f232aa89e 100644 --- a/tests/language_2/optimize/inline_super_field_lib.dart +++ b/tests/language_2/optimize/inline_super_field_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library inline_super_field_lib; // The comment is inserted to ensure that the offset of [bar] is not within diff --git a/tests/language_2/optimize/inline_super_field_test.dart b/tests/language_2/optimize/inline_super_field_test.dart index b3316f93724..3b4d8f32ec5 100644 --- a/tests/language_2/optimize/inline_super_field_test.dart +++ b/tests/language_2/optimize/inline_super_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that source maps use the correct compilation unit when super class // fields from another compilation unit are inlined. diff --git a/tests/language_2/optimize/inline_super_part.dart b/tests/language_2/optimize/inline_super_part.dart index 914ff4da135..9708bb7abdd 100644 --- a/tests/language_2/optimize/inline_super_part.dart +++ b/tests/language_2/optimize/inline_super_part.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of inline_super_test; class Player extends LivingActor { diff --git a/tests/language_2/optimize/inline_super_test.dart b/tests/language_2/optimize/inline_super_test.dart index beffdaa3de0..876fee41b20 100644 --- a/tests/language_2/optimize/inline_super_test.dart +++ b/tests/language_2/optimize/inline_super_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js issue 6639. library inline_super_test; diff --git a/tests/language_2/optimize/inline_test.dart b/tests/language_2/optimize/inline_test.dart index 0458c6fd790..8420bc3ecdc 100644 --- a/tests/language_2/optimize/inline_test.dart +++ b/tests/language_2/optimize/inline_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to produce a non-valid SSA // graph when inlining within a loop. diff --git a/tests/language_2/optimize/inline_test_context_test.dart b/tests/language_2/optimize/inline_test_context_test.dart index 42ad2bf531d..2c111836e83 100644 --- a/tests/language_2/optimize/inline_test_context_test.dart +++ b/tests/language_2/optimize/inline_test_context_test.dart @@ -6,6 +6,8 @@ // with instance of B and cause deoptimization. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/optimize/inline_throw_test.dart b/tests/language_2/optimize/inline_throw_test.dart index 52f3ef493b3..e20101ff742 100644 --- a/tests/language_2/optimize/inline_throw_test.dart +++ b/tests/language_2/optimize/inline_throw_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test program to test check that we don't fail to compile when an // inlinable method contains a throw. diff --git a/tests/language_2/optimize/inline_value_context_test.dart b/tests/language_2/optimize/inline_value_context_test.dart index 5bdd909a70d..b876bfb7b6e 100644 --- a/tests/language_2/optimize/inline_value_context_test.dart +++ b/tests/language_2/optimize/inline_value_context_test.dart @@ -6,6 +6,8 @@ // with instance of B and cause deoptimization. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/optimize/isempty_test.dart b/tests/language_2/optimize/isempty_test.dart index 7b8e77cfe5c..08ad4d383f7 100644 --- a/tests/language_2/optimize/isempty_test.dart +++ b/tests/language_2/optimize/isempty_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + // Test optimization and polymorphic inlining of String.isEmpty. import "package:expect/expect.dart"; diff --git a/tests/language_2/optimize/licm2_test.dart b/tests/language_2/optimize/licm2_test.dart index 9e829490684..4ad53930811 100644 --- a/tests/language_2/optimize/licm2_test.dart +++ b/tests/language_2/optimize/licm2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a loop invariant code motion optimization does not try to // hoist instructions that may throw. diff --git a/tests/language_2/optimize/licm3_test.dart b/tests/language_2/optimize/licm3_test.dart index c10a4939494..15f916cfbd2 100644 --- a/tests/language_2/optimize/licm3_test.dart +++ b/tests/language_2/optimize/licm3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a loop invariant code motion optimization correctly hoists // instructions that may cause deoptimization. diff --git a/tests/language_2/optimize/licm_test.dart b/tests/language_2/optimize/licm_test.dart index 002c5d9b058..3be61450ac1 100644 --- a/tests/language_2/optimize/licm_test.dart +++ b/tests/language_2/optimize/licm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var sum = 0; diff --git a/tests/language_2/optimize/lists_test.dart b/tests/language_2/optimize/lists_test.dart index 4d5b91fb84c..105145f3107 100644 --- a/tests/language_2/optimize/lists_test.dart +++ b/tests/language_2/optimize/lists_test.dart @@ -4,6 +4,8 @@ // Test program for correct optimizations related to types fo allocated lists. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/optimize/osr_test.dart b/tests/language_2/optimize/osr_test.dart index 43866483542..34a55bf6ad4 100644 --- a/tests/language_2/optimize/osr_test.dart +++ b/tests/language_2/optimize/osr_test.dart @@ -4,6 +4,8 @@ // VMOptions=--optimization-counter-threshold=5 --no-background-compilation // Test correct OSR (issue 16151). +// @dart = 2.9 + import "dart:collection"; import "package:expect/expect.dart"; diff --git a/tests/language_2/optimize/phi_merge_test.dart b/tests/language_2/optimize/phi_merge_test.dart index ab8059c0465..4f0ac2635a3 100644 --- a/tests/language_2/optimize/phi_merge_test.dart +++ b/tests/language_2/optimize/phi_merge_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to crash on this code. class A { diff --git a/tests/language_2/optimize/pure_function2_test.dart b/tests/language_2/optimize/pure_function2_test.dart index 61b218e245b..fb593cf56d3 100644 --- a/tests/language_2/optimize/pure_function2_test.dart +++ b/tests/language_2/optimize/pure_function2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for issue 17483. diff --git a/tests/language_2/optimize/pure_function_test.dart b/tests/language_2/optimize/pure_function_test.dart index 4bd36bea171..9d555d2b47b 100644 --- a/tests/language_2/optimize/pure_function_test.dart +++ b/tests/language_2/optimize/pure_function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for issue 17483. diff --git a/tests/language_2/optimize/redundant_array_load_test.dart b/tests/language_2/optimize/redundant_array_load_test.dart index 44256c79442..eb89df61d16 100644 --- a/tests/language_2/optimize/redundant_array_load_test.dart +++ b/tests/language_2/optimize/redundant_array_load_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; // Test optimization of redundant array loads. diff --git a/tests/language_2/optimize/setter_test.dart b/tests/language_2/optimize/setter_test.dart index 60cf4070d1e..682dab8d143 100644 --- a/tests/language_2/optimize/setter_test.dart +++ b/tests/language_2/optimize/setter_test.dart @@ -4,6 +4,8 @@ // Test various setter situations, testing special cases in optimizing compiler. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/optimize/string_charat_test.dart b/tests/language_2/optimize/string_charat_test.dart index f3368fe53bf..fd26f796292 100644 --- a/tests/language_2/optimize/string_charat_test.dart +++ b/tests/language_2/optimize/string_charat_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test optimized [] on strings. diff --git a/tests/language_2/optimize/string_charcodeat_test.dart b/tests/language_2/optimize/string_charcodeat_test.dart index 149069cd085..e4205a8cb1c 100644 --- a/tests/language_2/optimize/string_charcodeat_test.dart +++ b/tests/language_2/optimize/string_charcodeat_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + // Test optimized CodeUnitAt and array access. import "package:expect/expect.dart"; diff --git a/tests/language_2/override/const_field_test.dart b/tests/language_2/override/const_field_test.dart index 8018296706c..f988ee0283c 100644 --- a/tests/language_2/override/const_field_test.dart +++ b/tests/language_2/override/const_field_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test checking that static/instance field shadowing do not conflict. +// @dart = 2.9 + import 'package:expect/expect.dart'; class A { diff --git a/tests/language_2/override/field_method1_test.dart b/tests/language_2/override/field_method1_test.dart index bee58696b39..bb0cd319bd2 100644 --- a/tests/language_2/override/field_method1_test.dart +++ b/tests/language_2/override/field_method1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Overriding field with method. class A { diff --git a/tests/language_2/override/field_method2_test.dart b/tests/language_2/override/field_method2_test.dart index 0b5e4b3d6c0..6a51724fd0f 100644 --- a/tests/language_2/override/field_method2_test.dart +++ b/tests/language_2/override/field_method2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Overriding getter with method. class A { diff --git a/tests/language_2/override/field_method3_test.dart b/tests/language_2/override/field_method3_test.dart index dbd5cfe6440..9c9a5dca0f6 100644 --- a/tests/language_2/override/field_method3_test.dart +++ b/tests/language_2/override/field_method3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Overriding method with field. class A { diff --git a/tests/language_2/override/field_method4_test.dart b/tests/language_2/override/field_method4_test.dart index eecea072f8a..57510ff0cd5 100644 --- a/tests/language_2/override/field_method4_test.dart +++ b/tests/language_2/override/field_method4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Overriding method with getter. class A { diff --git a/tests/language_2/override/field_test.dart b/tests/language_2/override/field_test.dart index 4d7a05005ca..c1657a217ad 100644 --- a/tests/language_2/override/field_test.dart +++ b/tests/language_2/override/field_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test checking that static/instance field shadowing do not conflict. +// @dart = 2.9 + class A { int instanceFieldInA; static int staticFieldInA; diff --git a/tests/language_2/override/inheritance_abstract_runtime_1_test.dart b/tests/language_2/override/inheritance_abstract_runtime_1_test.dart index 97b00578a3d..7fc7af01326 100644 --- a/tests/language_2/override/inheritance_abstract_runtime_1_test.dart +++ b/tests/language_2/override/inheritance_abstract_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/override/inheritance_abstract_runtime_2_test.dart b/tests/language_2/override/inheritance_abstract_runtime_2_test.dart index 2b15235d9ac..4bada81ecb9 100644 --- a/tests/language_2/override/inheritance_abstract_runtime_2_test.dart +++ b/tests/language_2/override/inheritance_abstract_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/override/inheritance_abstract_runtime_3_test.dart b/tests/language_2/override/inheritance_abstract_runtime_3_test.dart index c54794a41ec..becf2221229 100644 --- a/tests/language_2/override/inheritance_abstract_runtime_3_test.dart +++ b/tests/language_2/override/inheritance_abstract_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/override/inheritance_abstract_runtime_4_test.dart b/tests/language_2/override/inheritance_abstract_runtime_4_test.dart index ddfba631c91..9a05e06d1df 100644 --- a/tests/language_2/override/inheritance_abstract_runtime_4_test.dart +++ b/tests/language_2/override/inheritance_abstract_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/override/inheritance_abstract_runtime_5_test.dart b/tests/language_2/override/inheritance_abstract_runtime_5_test.dart index 48a350d1d64..42fd0ae2c3b 100644 --- a/tests/language_2/override/inheritance_abstract_runtime_5_test.dart +++ b/tests/language_2/override/inheritance_abstract_runtime_5_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/override/inheritance_abstract_runtime_6_test.dart b/tests/language_2/override/inheritance_abstract_runtime_6_test.dart index e8b112397c5..644ab0daf90 100644 --- a/tests/language_2/override/inheritance_abstract_runtime_6_test.dart +++ b/tests/language_2/override/inheritance_abstract_runtime_6_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/override/inheritance_abstract_runtime_7_test.dart b/tests/language_2/override/inheritance_abstract_runtime_7_test.dart index e1d3cabd90c..878d9b007f9 100644 --- a/tests/language_2/override/inheritance_abstract_runtime_7_test.dart +++ b/tests/language_2/override/inheritance_abstract_runtime_7_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/override/inheritance_abstract_runtime_test.dart b/tests/language_2/override/inheritance_abstract_runtime_test.dart index 40685ca4fe1..a1113886a68 100644 --- a/tests/language_2/override/inheritance_abstract_runtime_test.dart +++ b/tests/language_2/override/inheritance_abstract_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/override/inheritance_abstract_test.dart b/tests/language_2/override/inheritance_abstract_test.dart index 5808673ec9f..858cb0ab8a3 100644 --- a/tests/language_2/override/inheritance_abstract_test.dart +++ b/tests/language_2/override/inheritance_abstract_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class A { method1(); method5(); diff --git a/tests/language_2/override/inheritance_field_test.dart b/tests/language_2/override/inheritance_field_test.dart index 82ee9a9529c..456a54726f1 100644 --- a/tests/language_2/override/inheritance_field_test.dart +++ b/tests/language_2/override/inheritance_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { get getter1 => null; //# 01: ok num get getter2 => null; //# 02: ok diff --git a/tests/language_2/override/inheritance_generic_test.dart b/tests/language_2/override/inheritance_generic_test.dart index 6256bc897ef..43d6e9d4947 100644 --- a/tests/language_2/override/inheritance_generic_test.dart +++ b/tests/language_2/override/inheritance_generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { void method1(T t) => null; //# 01: ok void method2(T t) => null; //# 02: compile-time error diff --git a/tests/language_2/override/inheritance_method2_test.dart b/tests/language_2/override/inheritance_method2_test.dart index e22571f3e9b..1dfad11e31f 100644 --- a/tests/language_2/override/inheritance_method2_test.dart +++ b/tests/language_2/override/inheritance_method2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { new C(); } diff --git a/tests/language_2/override/inheritance_method_test.dart b/tests/language_2/override/inheritance_method_test.dart index 724ac24953a..3b32e9d0fa3 100644 --- a/tests/language_2/override/inheritance_method_test.dart +++ b/tests/language_2/override/inheritance_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test static warnings for method overrides. class A { diff --git a/tests/language_2/override/inheritance_mixed_test.dart b/tests/language_2/override/inheritance_mixed_test.dart index d4218d658bb..bd82c291a5a 100644 --- a/tests/language_2/override/inheritance_mixed_test.dart +++ b/tests/language_2/override/inheritance_mixed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { var member1; //# 01: compile-time error member2() {} //# 02: compile-time error diff --git a/tests/language_2/override/inheritance_no_such_method_test.dart b/tests/language_2/override/inheritance_no_such_method_test.dart index 535f5a4f688..0a60b22c6be 100644 --- a/tests/language_2/override/inheritance_no_such_method_test.dart +++ b/tests/language_2/override/inheritance_no_such_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test use of noSuchMethod in relation to abstract methods in // concrete classes. diff --git a/tests/language_2/override/inheritance_setter_test.dart b/tests/language_2/override/inheritance_setter_test.dart index f709c7558d1..a3c7a03052c 100644 --- a/tests/language_2/override/inheritance_setter_test.dart +++ b/tests/language_2/override/inheritance_setter_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 main() { new C(); } diff --git a/tests/language_2/override/method_with_field_runtime_test.dart b/tests/language_2/override/method_with_field_runtime_test.dart index c18d588c7f5..62056187af5 100644 --- a/tests/language_2/override/method_with_field_runtime_test.dart +++ b/tests/language_2/override/method_with_field_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/override/method_with_field_test.dart b/tests/language_2/override/method_with_field_test.dart index 7d31ba2f4aa..169e4111841 100644 --- a/tests/language_2/override/method_with_field_test.dart +++ b/tests/language_2/override/method_with_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test overriding a method with a field. diff --git a/tests/language_2/parameter/bad_named2_runtime_test.dart b/tests/language_2/parameter/bad_named2_runtime_test.dart index 5e30826ea4b..22780ef14dc 100644 --- a/tests/language_2/parameter/bad_named2_runtime_test.dart +++ b/tests/language_2/parameter/bad_named2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/parameter/bad_named2_test.dart b/tests/language_2/parameter/bad_named2_test.dart index 131909b66c6..7198a8a262d 100644 --- a/tests/language_2/parameter/bad_named2_test.dart +++ b/tests/language_2/parameter/bad_named2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing bad named parameters. +// @dart = 2.9 + class BadNamedParameters2Test { int foo(int a) { // Although no optional named parameters are declared, we must check that diff --git a/tests/language_2/parameter/bad_named_parameters_test.dart b/tests/language_2/parameter/bad_named_parameters_test.dart index aa36c1324e1..94e841bcadd 100644 --- a/tests/language_2/parameter/bad_named_parameters_test.dart +++ b/tests/language_2/parameter/bad_named_parameters_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing bad named parameters. +// @dart = 2.9 + import "package:expect/expect.dart"; class BadNamedParametersTest { diff --git a/tests/language_2/parameter/bad_named_runtime_test.dart b/tests/language_2/parameter/bad_named_runtime_test.dart index 66e75ee5cf5..0eaedcdd555 100644 --- a/tests/language_2/parameter/bad_named_runtime_test.dart +++ b/tests/language_2/parameter/bad_named_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/parameter/default_test.dart b/tests/language_2/parameter/default_test.dart index 3e5b9907ba7..4dad097fad9 100644 --- a/tests/language_2/parameter/default_test.dart +++ b/tests/language_2/parameter/default_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { foo(a : 1 // //# 01: syntax error diff --git a/tests/language_2/parameter/initializer1_test.dart b/tests/language_2/parameter/initializer1_test.dart index 34465a4c44d..ee2d304552f 100644 --- a/tests/language_2/parameter/initializer1_test.dart +++ b/tests/language_2/parameter/initializer1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Fails because this.x parameter is used in a function. class Foo { diff --git a/tests/language_2/parameter/initializer2_test.dart b/tests/language_2/parameter/initializer2_test.dart index ac5e0ce1172..53941bf69e9 100644 --- a/tests/language_2/parameter/initializer2_test.dart +++ b/tests/language_2/parameter/initializer2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test Parameter Intializer. diff --git a/tests/language_2/parameter/initializer3_test.dart b/tests/language_2/parameter/initializer3_test.dart index bf81a6d0544..22db7071787 100644 --- a/tests/language_2/parameter/initializer3_test.dart +++ b/tests/language_2/parameter/initializer3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Fails because this.x parameter is used in a factory. class Foo { diff --git a/tests/language_2/parameter/initializer4_test.dart b/tests/language_2/parameter/initializer4_test.dart index 49cf633223d..ff49426b87b 100644 --- a/tests/language_2/parameter/initializer4_test.dart +++ b/tests/language_2/parameter/initializer4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Fails because this.x parameter is used in a static function. class Foo { diff --git a/tests/language_2/parameter/initializer5_test.dart b/tests/language_2/parameter/initializer5_test.dart index 8bdd9683b7b..d0d500b30d2 100644 --- a/tests/language_2/parameter/initializer5_test.dart +++ b/tests/language_2/parameter/initializer5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Use the this.x parameter in an initializer expression. class Foo { diff --git a/tests/language_2/parameter/initializer6_test.dart b/tests/language_2/parameter/initializer6_test.dart index 117a0c3af5a..0f3812b5d38 100644 --- a/tests/language_2/parameter/initializer6_test.dart +++ b/tests/language_2/parameter/initializer6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; /// It is a compile-time error if a named formal parameter begins with an '_'. diff --git a/tests/language_2/parameter/initializer7_test.dart b/tests/language_2/parameter/initializer7_test.dart index b1bca78b8d3..ee253d1f907 100644 --- a/tests/language_2/parameter/initializer7_test.dart +++ b/tests/language_2/parameter/initializer7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Fails because this.x parameter is used in a setter. class Foo { diff --git a/tests/language_2/parameter/initializer_test.dart b/tests/language_2/parameter/initializer_test.dart index 16967039b92..3a558e30c49 100644 --- a/tests/language_2/parameter/initializer_test.dart +++ b/tests/language_2/parameter/initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class ParameterInitializerTest { diff --git a/tests/language_2/parameter/metadata_test.dart b/tests/language_2/parameter/metadata_test.dart index 706ff112d87..8ad871bec58 100644 --- a/tests/language_2/parameter/metadata_test.dart +++ b/tests/language_2/parameter/metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that metadata annotations can be handled on nested parameters. test( diff --git a/tests/language_2/parameter/name_conflict_test.dart b/tests/language_2/parameter/name_conflict_test.dart index 3f238dab1f9..8e5764f7486 100644 --- a/tests/language_2/parameter/name_conflict_test.dart +++ b/tests/language_2/parameter/name_conflict_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; foo(t0) { diff --git a/tests/language_2/parameter/named2_test.dart b/tests/language_2/parameter/named2_test.dart index 8465782388a..de1413ccba2 100644 --- a/tests/language_2/parameter/named2_test.dart +++ b/tests/language_2/parameter/named2_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing named parameters. // You may not provide the same parameter as both a positional and a named argument. +// @dart = 2.9 + int test(int a, [int b]) { return a; } diff --git a/tests/language_2/parameter/named3_test.dart b/tests/language_2/parameter/named3_test.dart index 42ab0dc8f1d..fcd8a239bb4 100644 --- a/tests/language_2/parameter/named3_test.dart +++ b/tests/language_2/parameter/named3_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing named parameters. // Specifying named argument for not existing named parameter is run time error. +// @dart = 2.9 + int test(int a, [int b]) { return a; } diff --git a/tests/language_2/parameter/named4_test.dart b/tests/language_2/parameter/named4_test.dart index 57017583eaf..509b86d9572 100644 --- a/tests/language_2/parameter/named4_test.dart +++ b/tests/language_2/parameter/named4_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing named parameters. // Specifying named argument for not existing named parameter is run time error. +// @dart = 2.9 + // This test is very similar to NamedParameters3Test, but exercises a // different corner case in the frog compiler. frog wasn't detecting unused // named arguments when no other arguments were expected. So, this test diff --git a/tests/language_2/parameter/named_aggregated_runtime_test.dart b/tests/language_2/parameter/named_aggregated_runtime_test.dart index eaf37fbef83..8c7110527fc 100644 --- a/tests/language_2/parameter/named_aggregated_runtime_test.dart +++ b/tests/language_2/parameter/named_aggregated_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/parameter/named_aggregated_test.dart b/tests/language_2/parameter/named_aggregated_test.dart index 9c2cd707946..485af9b78ea 100644 --- a/tests/language_2/parameter/named_aggregated_test.dart +++ b/tests/language_2/parameter/named_aggregated_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing named parameters. +// @dart = 2.9 + class TypeTester {} // Expect compile-time error as no default values are allowed diff --git a/tests/language_2/parameter/named_clash_test.dart b/tests/language_2/parameter/named_clash_test.dart index aefcbf81539..2ec239909a4 100644 --- a/tests/language_2/parameter/named_clash_test.dart +++ b/tests/language_2/parameter/named_clash_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class Foo { diff --git a/tests/language_2/parameter/named_count_test.dart b/tests/language_2/parameter/named_count_test.dart index 80f9e3894df..0000fc1d229 100644 --- a/tests/language_2/parameter/named_count_test.dart +++ b/tests/language_2/parameter/named_count_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test for named parameter called 'count'. diff --git a/tests/language_2/parameter/named_default_eq_runtime_test.dart b/tests/language_2/parameter/named_default_eq_runtime_test.dart index 66bf165a2e7..a78cae63c21 100644 --- a/tests/language_2/parameter/named_default_eq_runtime_test.dart +++ b/tests/language_2/parameter/named_default_eq_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // Copyright (c) 2016, 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. diff --git a/tests/language_2/parameter/named_default_eq_test.dart b/tests/language_2/parameter/named_default_eq_test.dart index 4e991c8d9e4..48846667714 100644 --- a/tests/language_2/parameter/named_default_eq_test.dart +++ b/tests/language_2/parameter/named_default_eq_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that both `=` and `:` are allowed for named parameters. import "package:expect/expect.dart"; diff --git a/tests/language_2/parameter/named_parameters_test.dart b/tests/language_2/parameter/named_parameters_test.dart index 3f1ee9c4e1a..7f75468f0ec 100644 --- a/tests/language_2/parameter/named_parameters_test.dart +++ b/tests/language_2/parameter/named_parameters_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing named parameters. +// @dart = 2.9 + import "package:expect/expect.dart"; class NamedParametersTest { diff --git a/tests/language_2/parameter/named_passing_false_test.dart b/tests/language_2/parameter/named_passing_false_test.dart index 048711b1c0c..75c79bd42bb 100644 --- a/tests/language_2/parameter/named_passing_false_test.dart +++ b/tests/language_2/parameter/named_passing_false_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for testing named parameters with 'false' passed as an diff --git a/tests/language_2/parameter/named_passing_falsy_test.dart b/tests/language_2/parameter/named_passing_falsy_test.dart index e17b75a1977..7644fff2c3a 100644 --- a/tests/language_2/parameter/named_passing_falsy_test.dart +++ b/tests/language_2/parameter/named_passing_falsy_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for testing named parameters with various values that might diff --git a/tests/language_2/parameter/named_passing_null_test.dart b/tests/language_2/parameter/named_passing_null_test.dart index ce7573deca3..d6ab9f22796 100644 --- a/tests/language_2/parameter/named_passing_null_test.dart +++ b/tests/language_2/parameter/named_passing_null_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for testing named parameters with 'null' passed as an diff --git a/tests/language_2/parameter/named_passing_zero_test.dart b/tests/language_2/parameter/named_passing_zero_test.dart index 02afcfe0401..6a9b8263495 100644 --- a/tests/language_2/parameter/named_passing_zero_test.dart +++ b/tests/language_2/parameter/named_passing_zero_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for testing named parameters with zero passed as an diff --git a/tests/language_2/parameter/named_regression_test.dart b/tests/language_2/parameter/named_regression_test.dart index a702464981a..82581a738c2 100644 --- a/tests/language_2/parameter/named_regression_test.dart +++ b/tests/language_2/parameter/named_regression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A regression test for dart2js bug 6015. class Fisk { diff --git a/tests/language_2/parameter/named_runtime_test.dart b/tests/language_2/parameter/named_runtime_test.dart index ace45eff649..dc581352ed5 100644 --- a/tests/language_2/parameter/named_runtime_test.dart +++ b/tests/language_2/parameter/named_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/parameter/named_type_runtime_test.dart b/tests/language_2/parameter/named_type_runtime_test.dart index a3a8ff197e0..a9ee03a4d72 100644 --- a/tests/language_2/parameter/named_type_runtime_test.dart +++ b/tests/language_2/parameter/named_type_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/parameter/named_type_test.dart b/tests/language_2/parameter/named_type_test.dart index 7cb2cdff29a..34dbf291987 100644 --- a/tests/language_2/parameter/named_type_test.dart +++ b/tests/language_2/parameter/named_type_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing optional named parameters in type tests. +// @dart = 2.9 + main() { Function anyFunction; void acceptFunNumOptBool(void funNumOptBool(num n, {bool b})) {} diff --git a/tests/language_2/parameter/named_with_conversions_test.dart b/tests/language_2/parameter/named_with_conversions_test.dart index 5b949e633bd..0e640dc76cb 100644 --- a/tests/language_2/parameter/named_with_conversions_test.dart +++ b/tests/language_2/parameter/named_with_conversions_test.dart @@ -6,6 +6,8 @@ // method is called via function call syntax or method call syntax. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; Validate(tag, a, b) { diff --git a/tests/language_2/parameter/named_with_dollars_test.dart b/tests/language_2/parameter/named_with_dollars_test.dart index 9088af43ed1..644771f30e8 100644 --- a/tests/language_2/parameter/named_with_dollars_test.dart +++ b/tests/language_2/parameter/named_with_dollars_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test to stress Frog's named parameter scheme. diff --git a/tests/language_2/parameter/named_with_object_property_names_test.dart b/tests/language_2/parameter/named_with_object_property_names_test.dart index e4005b69a51..b448f2097eb 100644 --- a/tests/language_2/parameter/named_with_object_property_names_test.dart +++ b/tests/language_2/parameter/named_with_object_property_names_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test for named parameter with the name of a JavaScript property found on diff --git a/tests/language_2/parameter/optional_named_runtime_test.dart b/tests/language_2/parameter/optional_named_runtime_test.dart index f02243af2b3..2809398dc3d 100644 --- a/tests/language_2/parameter/optional_named_runtime_test.dart +++ b/tests/language_2/parameter/optional_named_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/parameter/optional_named_test.dart b/tests/language_2/parameter/optional_named_test.dart index ba2af7dfca1..17a32922c8e 100644 --- a/tests/language_2/parameter/optional_named_test.dart +++ b/tests/language_2/parameter/optional_named_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing optional named parameters. +// @dart = 2.9 + import "package:expect/expect.dart"; class OptionalNamedParametersTest { diff --git a/tests/language_2/parameter/param_test.dart b/tests/language_2/parameter/param_test.dart index b0be01dd719..579bf6edadb 100644 --- a/tests/language_2/parameter/param_test.dart +++ b/tests/language_2/parameter/param_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing params. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/parameter/parameter1_test.dart b/tests/language_2/parameter/parameter1_test.dart index 4c8c0a08d69..67de1cb7b9e 100644 --- a/tests/language_2/parameter/parameter1_test.dart +++ b/tests/language_2/parameter/parameter1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing params. +// @dart = 2.9 + class Param1Test { // TODO(asiva): Should we try to interpret 1 above as an int? In order to // avoid a type error with --enable_type_checks, the type of i below is diff --git a/tests/language_2/parameter/parameter2_test.dart b/tests/language_2/parameter/parameter2_test.dart index 2f075a107fd..67ae462dde0 100644 --- a/tests/language_2/parameter/parameter2_test.dart +++ b/tests/language_2/parameter/parameter2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing function type parameters. +// @dart = 2.9 + import "package:expect/expect.dart"; class Param2Test { diff --git a/tests/language_2/parameter/positional_type_runtime_test.dart b/tests/language_2/parameter/positional_type_runtime_test.dart index 87d15163533..50901a37127 100644 --- a/tests/language_2/parameter/positional_type_runtime_test.dart +++ b/tests/language_2/parameter/positional_type_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/parameter/positional_type_test.dart b/tests/language_2/parameter/positional_type_test.dart index 4bb4aa1b7c1..8e96699f8b9 100644 --- a/tests/language_2/parameter/positional_type_test.dart +++ b/tests/language_2/parameter/positional_type_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing optional positional parameters in type tests. +// @dart = 2.9 + main() { Function anyFunction; void acceptFunNumOptBool(void funNumOptBool(num n, [bool b])) {} diff --git a/tests/language_2/parameter/types_specialization_test.dart b/tests/language_2/parameter/types_specialization_test.dart index 532a7a75509..5dae22ef3d7 100644 --- a/tests/language_2/parameter/types_specialization_test.dart +++ b/tests/language_2/parameter/types_specialization_test.dart @@ -4,6 +4,8 @@ // Test that we invalidate parameter type optimization in the presence // of optional parameters. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/part/missing_part_of_tag_part.dart b/tests/language_2/part/missing_part_of_tag_part.dart index c4618bc60b6..479f0d492f9 100644 --- a/tests/language_2/part/missing_part_of_tag_part.dart +++ b/tests/language_2/part/missing_part_of_tag_part.dart @@ -1,3 +1,5 @@ // 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. + +// @dart = 2.9 diff --git a/tests/language_2/part/missing_part_of_tag_test.dart b/tests/language_2/part/missing_part_of_tag_test.dart index ea91f42a18b..5ac9b502b01 100644 --- a/tests/language_2/part/missing_part_of_tag_test.dart +++ b/tests/language_2/part/missing_part_of_tag_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for missing part-of tag. library lib; diff --git a/tests/language_2/part/of_multiple_libs_lib.dart b/tests/language_2/part/of_multiple_libs_lib.dart index e1d530658f0..9eebf167d41 100644 --- a/tests/language_2/part/of_multiple_libs_lib.dart +++ b/tests/language_2/part/of_multiple_libs_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library ambiguous_lib; part "of_multiple_libs_part.dart"; diff --git a/tests/language_2/part/of_multiple_libs_part.dart b/tests/language_2/part/of_multiple_libs_part.dart index 4ac530be5be..023bab5ba09 100644 --- a/tests/language_2/part/of_multiple_libs_part.dart +++ b/tests/language_2/part/of_multiple_libs_part.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of ambiguous_lib; bar() {} diff --git a/tests/language_2/part/of_multiple_libs_runtime_test.dart b/tests/language_2/part/of_multiple_libs_runtime_test.dart index 31b3e8d8a74..96cfb95578d 100644 --- a/tests/language_2/part/of_multiple_libs_runtime_test.dart +++ b/tests/language_2/part/of_multiple_libs_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/part/of_multiple_libs_test.dart b/tests/language_2/part/of_multiple_libs_test.dart index 811617b493f..3fa76ca9d33 100644 --- a/tests/language_2/part/of_multiple_libs_test.dart +++ b/tests/language_2/part/of_multiple_libs_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library ambiguous_lib; import 'of_multiple_libs_lib.dart'; diff --git a/tests/language_2/part/of_uri2_part.dart b/tests/language_2/part/of_uri2_part.dart index 2893a74e0fe..11ee3f446a9 100644 --- a/tests/language_2/part/of_uri2_part.dart +++ b/tests/language_2/part/of_uri2_part.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of "of_uri2_test.dart"; // Refer to declaration in library and other part. diff --git a/tests/language_2/part/of_uri2_part2.dart b/tests/language_2/part/of_uri2_part2.dart index 0b049fbea66..bb093eb1c62 100644 --- a/tests/language_2/part/of_uri2_part2.dart +++ b/tests/language_2/part/of_uri2_part2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of part_of_uri2; // Refer to declaration in library and other part. diff --git a/tests/language_2/part/of_uri2_test.dart b/tests/language_2/part/of_uri2_test.dart index ae0a12d086f..1b63b563b1e 100644 --- a/tests/language_2/part/of_uri2_test.dart +++ b/tests/language_2/part/of_uri2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library part_of_uri2; part "of_uri2_part.dart"; // declares bar1, baz1, uses URI. diff --git a/tests/language_2/part/of_uri_part.dart b/tests/language_2/part/of_uri_part.dart index 65e9fd70b00..6c9c1005244 100644 --- a/tests/language_2/part/of_uri_part.dart +++ b/tests/language_2/part/of_uri_part.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of "of_uri_test.dart"; // Refer to declaration in library and other part. diff --git a/tests/language_2/part/of_uri_part2.dart b/tests/language_2/part/of_uri_part2.dart index 9facbf491ca..ec19b10834f 100644 --- a/tests/language_2/part/of_uri_part2.dart +++ b/tests/language_2/part/of_uri_part2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of "of_uri_test.dart"; // Refer to declaration in library and other part. diff --git a/tests/language_2/part/of_uri_test.dart b/tests/language_2/part/of_uri_test.dart index acb568d5303..a1cef5633ff 100644 --- a/tests/language_2/part/of_uri_test.dart +++ b/tests/language_2/part/of_uri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // No library declaration part "of_uri_part.dart"; // declares bar1, baz1 part "of_uri_part2.dart"; // declares bar2, baz2 diff --git a/tests/language_2/part/part.dart b/tests/language_2/part/part.dart index 6c255db1676..3e283596f3c 100644 --- a/tests/language_2/part/part.dart +++ b/tests/language_2/part/part.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of org.dartlang.test.part_test; const foo = 'foo'; diff --git a/tests/language_2/part/part2_test.dart b/tests/language_2/part/part2_test.dart index 706bc1f99b5..dd92d83133e 100644 --- a/tests/language_2/part/part2_test.dart +++ b/tests/language_2/part/part2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library org.dartlang.test.part2_test; part "part.dart"; //# 01: compile-time error diff --git a/tests/language_2/part/part_test.dart b/tests/language_2/part/part_test.dart index cc6cd77525a..f4829e7eeda 100644 --- a/tests/language_2/part/part_test.dart +++ b/tests/language_2/part/part_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library org.dartlang.test.part_test; part "part.dart"; diff --git a/tests/language_2/part/refers_to_core_library_runtime_test.dart b/tests/language_2/part/refers_to_core_library_runtime_test.dart index e9abfec39b8..9b10a6c4558 100644 --- a/tests/language_2/part/refers_to_core_library_runtime_test.dart +++ b/tests/language_2/part/refers_to_core_library_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/part/refers_to_core_library_test.dart b/tests/language_2/part/refers_to_core_library_test.dart deleted file mode 100644 index 4eb8dc70594..00000000000 --- a/tests/language_2/part/refers_to_core_library_test.dart +++ /dev/null @@ -1,15 +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. - -// This test reproduces https://github.com/dart-lang/sdk/issues/29709. - -library dart.async; - -part 'dart:async/future.dart'; -// ^ -// [cfe] Can't use 'org-dartlang-untranslatable-uri:dart%3Aasync%2Ffuture.dart' as a part, because it has no 'part of' declaration. -// ^ -// [cfe] Not found: 'dart:async/future.dart' - -main() {} diff --git a/tests/language_2/part/self_test.dart b/tests/language_2/part/self_test.dart index cc3e7774a42..8298f3cb21f 100644 --- a/tests/language_2/part/self_test.dart +++ b/tests/language_2/part/self_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part "self_test.dart"; // ^^^^^^^^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.PART_OF_NON_PART diff --git a/tests/language_2/prefix/assignment_runtime_test.dart b/tests/language_2/prefix/assignment_runtime_test.dart index c33c8f5b1e5..de7ec2b5c4a 100644 --- a/tests/language_2/prefix/assignment_runtime_test.dart +++ b/tests/language_2/prefix/assignment_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/prefix/assignment_test.dart b/tests/language_2/prefix/assignment_test.dart index 5a32011e7d3..bed611979ce 100644 --- a/tests/language_2/prefix/assignment_test.dart +++ b/tests/language_2/prefix/assignment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Validate that assignment to a prefix is handled consistently with the // following spec text from section 16.19 (Assignment): // Evaluation of an assignment a of the form v = e proceeds as follows: diff --git a/tests/language_2/prefix/empty_library.dart b/tests/language_2/prefix/empty_library.dart index fe101dc999a..073586f598d 100644 --- a/tests/language_2/prefix/empty_library.dart +++ b/tests/language_2/prefix/empty_library.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + library empty_library; diff --git a/tests/language_2/prefix/identifier_reference_test.dart b/tests/language_2/prefix/identifier_reference_test.dart index e59b6fea630..6dcb682899e 100644 --- a/tests/language_2/prefix/identifier_reference_test.dart +++ b/tests/language_2/prefix/identifier_reference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Validate the following spec text from section 16.32 (Identifier Reference): // Evaluation of an identifier expression e of the form id proceeds as // follows: diff --git a/tests/language_2/prefix/import_collision_runtime_test.dart b/tests/language_2/prefix/import_collision_runtime_test.dart index e0dc3c08e7e..219a701096e 100644 --- a/tests/language_2/prefix/import_collision_runtime_test.dart +++ b/tests/language_2/prefix/import_collision_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/prefix/import_collision_test.dart b/tests/language_2/prefix/import_collision_test.dart index 0f561f85be7..c97ff674f0b 100644 --- a/tests/language_2/prefix/import_collision_test.dart +++ b/tests/language_2/prefix/import_collision_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Using the same prefix name while importing two different libraries is // not an error but both library1.dart and library2.dart define 'foo' which // results in a duplicate definition error. diff --git a/tests/language_2/prefix/invalid_name_runtime_test.dart b/tests/language_2/prefix/invalid_name_runtime_test.dart index a2a71f1c3f6..a88c4d0bd07 100644 --- a/tests/language_2/prefix/invalid_name_runtime_test.dart +++ b/tests/language_2/prefix/invalid_name_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/prefix/invalid_name_test.dart b/tests/language_2/prefix/invalid_name_test.dart index 7ee08b17fe3..b513fad54f1 100644 --- a/tests/language_2/prefix/invalid_name_test.dart +++ b/tests/language_2/prefix/invalid_name_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Prefix must be a valid identifier. import "../library1.dart" as lib1.invalid diff --git a/tests/language_2/prefix/new_test.dart b/tests/language_2/prefix/new_test.dart index 23c78345306..a056bdf5765 100644 --- a/tests/language_2/prefix/new_test.dart +++ b/tests/language_2/prefix/new_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library PrefixTest; import "package:expect/expect.dart"; diff --git a/tests/language_2/prefix/new_test1.dart b/tests/language_2/prefix/new_test1.dart index 106de8037e4..98c0e768f40 100644 --- a/tests/language_2/prefix/new_test1.dart +++ b/tests/language_2/prefix/new_test1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library PrefixTest1; import "test2.dart" as test2; diff --git a/tests/language_2/prefix/new_test2.dart b/tests/language_2/prefix/new_test2.dart index 75a5c6e2241..c23f84dda04 100644 --- a/tests/language_2/prefix/new_test2.dart +++ b/tests/language_2/prefix/new_test2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library PrefixNewTest2; class Prefix { diff --git a/tests/language_2/prefix/prefix101_test.dart b/tests/language_2/prefix/prefix101_test.dart index b479e6d7788..cc2570f7b8b 100644 --- a/tests/language_2/prefix/prefix101_test.dart +++ b/tests/language_2/prefix/prefix101_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test to check if we are able to import multiple libraries using the // same prefix. diff --git a/tests/language_2/prefix/prefix10_test.dart b/tests/language_2/prefix/prefix10_test.dart index 3e0853cc329..dbcd3fd1c1f 100644 --- a/tests/language_2/prefix/prefix10_test.dart +++ b/tests/language_2/prefix/prefix10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library Prefix10Test.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/prefix/prefix11_test.dart b/tests/language_2/prefix/prefix11_test.dart index ec09c332dde..b621f9e0640 100644 --- a/tests/language_2/prefix/prefix11_test.dart +++ b/tests/language_2/prefix/prefix11_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library Prefix11Test.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/prefix/prefix12_test.dart b/tests/language_2/prefix/prefix12_test.dart index 5ce98bdb956..eeca2863b2c 100644 --- a/tests/language_2/prefix/prefix12_test.dart +++ b/tests/language_2/prefix/prefix12_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + library Prefix12Test.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/prefix/prefix14_test.dart b/tests/language_2/prefix/prefix14_test.dart index f9d5c684ad5..a72ae2d7c68 100644 --- a/tests/language_2/prefix/prefix14_test.dart +++ b/tests/language_2/prefix/prefix14_test.dart @@ -4,6 +4,8 @@ // // Use qualified symbols at various places. +// @dart = 2.9 + library Prefix14Test.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/prefix/prefix15_test.dart b/tests/language_2/prefix/prefix15_test.dart index 123ae997530..85e6f16f495 100644 --- a/tests/language_2/prefix/prefix15_test.dart +++ b/tests/language_2/prefix/prefix15_test.dart @@ -4,6 +4,8 @@ // // Use qualified symbols with generics at various places. +// @dart = 2.9 + library Prefix15Test.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/prefix/prefix16_runtime_test.dart b/tests/language_2/prefix/prefix16_runtime_test.dart index 718777fe386..465bc059f18 100644 --- a/tests/language_2/prefix/prefix16_runtime_test.dart +++ b/tests/language_2/prefix/prefix16_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/prefix/prefix16_test.dart b/tests/language_2/prefix/prefix16_test.dart index 874b910bf2f..e3f4ad9fb2b 100644 --- a/tests/language_2/prefix/prefix16_test.dart +++ b/tests/language_2/prefix/prefix16_test.dart @@ -6,6 +6,8 @@ // In this test, the function myFunc contains malformed types because // lib12.Library13 is not resolved. +// @dart = 2.9 + import "package:expect/expect.dart"; import "../library12.dart" as lib12; diff --git a/tests/language_2/prefix/prefix17_test.dart b/tests/language_2/prefix/prefix17_test.dart index 4af6f9649ed..1bbadd85b5f 100644 --- a/tests/language_2/prefix/prefix17_test.dart +++ b/tests/language_2/prefix/prefix17_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library Prefix17Test.dart; import "../library12.dart" as lib12; diff --git a/tests/language_2/prefix/prefix21_bad_lib.dart b/tests/language_2/prefix/prefix21_bad_lib.dart index 1869a7f2f1e..4bd7201d388 100644 --- a/tests/language_2/prefix/prefix21_bad_lib.dart +++ b/tests/language_2/prefix/prefix21_bad_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library Prefix21Bad; int badFunction(int x) { diff --git a/tests/language_2/prefix/prefix21_good_lib.dart b/tests/language_2/prefix/prefix21_good_lib.dart index 2557726a199..1f1b3e3e733 100644 --- a/tests/language_2/prefix/prefix21_good_lib.dart +++ b/tests/language_2/prefix/prefix21_good_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library Prefix21Good; int goodFunction(int x) { diff --git a/tests/language_2/prefix/prefix21_test.dart b/tests/language_2/prefix/prefix21_test.dart index bcaebd11a9e..1c1121e9026 100644 --- a/tests/language_2/prefix/prefix21_test.dart +++ b/tests/language_2/prefix/prefix21_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library Prefix21; import "package:expect/expect.dart"; diff --git a/tests/language_2/prefix/prefix22_runtime_test.dart b/tests/language_2/prefix/prefix22_runtime_test.dart index 286256af2cd..178ab0dd577 100644 --- a/tests/language_2/prefix/prefix22_runtime_test.dart +++ b/tests/language_2/prefix/prefix22_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/prefix/prefix22_test.dart b/tests/language_2/prefix/prefix22_test.dart index e28423d4c0b..95d0827689a 100644 --- a/tests/language_2/prefix/prefix22_test.dart +++ b/tests/language_2/prefix/prefix22_test.dart @@ -5,6 +5,8 @@ // Unresolved symbols should be reported as static type warnings. // This should not prevent execution. +// @dart = 2.9 + library Prefix21NegativeTest.dart; import "../library12.dart" as lib12; diff --git a/tests/language_2/prefix/prefix23_runtime_test.dart b/tests/language_2/prefix/prefix23_runtime_test.dart index 6ab1736b594..6d59d60d300 100644 --- a/tests/language_2/prefix/prefix23_runtime_test.dart +++ b/tests/language_2/prefix/prefix23_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/prefix/prefix23_test.dart b/tests/language_2/prefix/prefix23_test.dart index ef85f1f7bab..a5c7b9485dc 100644 --- a/tests/language_2/prefix/prefix23_test.dart +++ b/tests/language_2/prefix/prefix23_test.dart @@ -5,6 +5,8 @@ // Unresolved symbols should be reported as an static type warnings. // This should not prevent execution. +// @dart = 2.9 + library Prefix23Test.dart; import "../library12.dart" as lib12; diff --git a/tests/language_2/prefix/prefix24_lib1.dart b/tests/language_2/prefix/prefix24_lib1.dart index 557ed8452c8..aca4e95c1e0 100644 --- a/tests/language_2/prefix/prefix24_lib1.dart +++ b/tests/language_2/prefix/prefix24_lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library prefix24_lib1; import "prefix24_lib2.dart" as X; diff --git a/tests/language_2/prefix/prefix24_lib2.dart b/tests/language_2/prefix/prefix24_lib2.dart index d4dd5926cda..1a9356700ae 100644 --- a/tests/language_2/prefix/prefix24_lib2.dart +++ b/tests/language_2/prefix/prefix24_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library prefix24_lib2; bar() => "prefix24_lib2_bar"; diff --git a/tests/language_2/prefix/prefix24_lib3.dart b/tests/language_2/prefix/prefix24_lib3.dart index 4490f9b597b..5a41739a8ee 100644 --- a/tests/language_2/prefix/prefix24_lib3.dart +++ b/tests/language_2/prefix/prefix24_lib3.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library prefix24_lib3; class X { diff --git a/tests/language_2/prefix/prefix24_test.dart b/tests/language_2/prefix/prefix24_test.dart index 1e2f4e6cea4..da8f1f3698e 100644 --- a/tests/language_2/prefix/prefix24_test.dart +++ b/tests/language_2/prefix/prefix24_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library prefix24_test; import "package:expect/expect.dart"; diff --git a/tests/language_2/prefix/prefix_test.dart b/tests/language_2/prefix/prefix_test.dart index bcecae73b8f..a5341d68e7f 100644 --- a/tests/language_2/prefix/prefix_test.dart +++ b/tests/language_2/prefix/prefix_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library PrefixTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/prefix/shadow_runtime_test.dart b/tests/language_2/prefix/shadow_runtime_test.dart index dc83ce3251d..abab315a9ac 100644 --- a/tests/language_2/prefix/shadow_runtime_test.dart +++ b/tests/language_2/prefix/shadow_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/prefix/shadow_test.dart b/tests/language_2/prefix/shadow_test.dart index 1af4c58c56b..ef228258727 100644 --- a/tests/language_2/prefix/shadow_test.dart +++ b/tests/language_2/prefix/shadow_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Type parameters can shadow a library prefix. import "package:expect/expect.dart"; diff --git a/tests/language_2/prefix/test1.dart b/tests/language_2/prefix/test1.dart index a9c546c6ed6..62e6567d615 100644 --- a/tests/language_2/prefix/test1.dart +++ b/tests/language_2/prefix/test1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library PrefixTest1.dart; import "test2.dart" as prefix; diff --git a/tests/language_2/prefix/test2.dart b/tests/language_2/prefix/test2.dart index 8538ca38616..4042663a8fc 100644 --- a/tests/language_2/prefix/test2.dart +++ b/tests/language_2/prefix/test2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library PrefixTest2.dart; class Prefix { diff --git a/tests/language_2/prefix/transitive_import_prefix_runtime_test.dart b/tests/language_2/prefix/transitive_import_prefix_runtime_test.dart index 7b016cc6381..78a0ece700d 100644 --- a/tests/language_2/prefix/transitive_import_prefix_runtime_test.dart +++ b/tests/language_2/prefix/transitive_import_prefix_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/prefix/transitive_import_prefix_test.dart b/tests/language_2/prefix/transitive_import_prefix_test.dart index 3365f2f6ce1..b9e526cb892 100644 --- a/tests/language_2/prefix/transitive_import_prefix_test.dart +++ b/tests/language_2/prefix/transitive_import_prefix_test.dart @@ -1,6 +1,8 @@ // 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 = 2.9 import "../library10.dart"; main() { diff --git a/tests/language_2/prefix/transitive_import_runtime_test.dart b/tests/language_2/prefix/transitive_import_runtime_test.dart index 6c130f676fe..b098e604996 100644 --- a/tests/language_2/prefix/transitive_import_runtime_test.dart +++ b/tests/language_2/prefix/transitive_import_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/prefix/transitive_import_test.dart b/tests/language_2/prefix/transitive_import_test.dart index ef53584d86d..65b7b944dd9 100644 --- a/tests/language_2/prefix/transitive_import_test.dart +++ b/tests/language_2/prefix/transitive_import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Symbols in libraries imported by the prefixed library should not be visible. import "../library12.dart" as lib12; diff --git a/tests/language_2/prefix/unqualified_invocation_runtime_test.dart b/tests/language_2/prefix/unqualified_invocation_runtime_test.dart index 0841ed0ee10..b74d67167a7 100644 --- a/tests/language_2/prefix/unqualified_invocation_runtime_test.dart +++ b/tests/language_2/prefix/unqualified_invocation_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/prefix/unqualified_invocation_test.dart b/tests/language_2/prefix/unqualified_invocation_test.dart index decb2098d0a..8294dfbdaed 100644 --- a/tests/language_2/prefix/unqualified_invocation_test.dart +++ b/tests/language_2/prefix/unqualified_invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Validate the following spec text from section 16.14.3 (Unqualified // invocation): // An unqualifiedfunction invocation i has the form diff --git a/tests/language_2/prefix/unresolved_class_runtime_test.dart b/tests/language_2/prefix/unresolved_class_runtime_test.dart index 17442cc4ca9..32efe0bc60d 100644 --- a/tests/language_2/prefix/unresolved_class_runtime_test.dart +++ b/tests/language_2/prefix/unresolved_class_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/prefix/unresolved_class_test.dart b/tests/language_2/prefix/unresolved_class_test.dart index dd46a620ffe..a0e532dd98a 100644 --- a/tests/language_2/prefix/unresolved_class_test.dart +++ b/tests/language_2/prefix/unresolved_class_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Unresolved symbols should be reported as an error. import "../library12.dart" as lib12; diff --git a/tests/language_2/prefix/variable_collision_runtime_test.dart b/tests/language_2/prefix/variable_collision_runtime_test.dart index 87082c0cdc8..f702e99fe4b 100644 --- a/tests/language_2/prefix/variable_collision_runtime_test.dart +++ b/tests/language_2/prefix/variable_collision_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/prefix/variable_collision_test.dart b/tests/language_2/prefix/variable_collision_test.dart index 64dfa3c9bc0..6668d452a5b 100644 --- a/tests/language_2/prefix/variable_collision_test.dart +++ b/tests/language_2/prefix/variable_collision_test.dart @@ -1,6 +1,8 @@ // 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 = 2.9 import "../library10.dart" as lib10; // ^ // [cfe] 'lib10' is already declared in this scope. diff --git a/tests/language_2/private/access_lib.dart b/tests/language_2/private/access_lib.dart index 1ffa1270107..3e6ef90d38b 100644 --- a/tests/language_2/private/access_lib.dart +++ b/tests/language_2/private/access_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library private; _function() {} diff --git a/tests/language_2/private/access_runtime_test.dart b/tests/language_2/private/access_runtime_test.dart index f314be74d91..5b90337302b 100644 --- a/tests/language_2/private/access_runtime_test.dart +++ b/tests/language_2/private/access_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/private/access_test.dart b/tests/language_2/private/access_test.dart index 6e10558cd3e..eae947b188b 100644 --- a/tests/language_2/private/access_test.dart +++ b/tests/language_2/private/access_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'access_lib.dart'; diff --git a/tests/language_2/private/clash_lib.dart b/tests/language_2/private/clash_lib.dart index 40dbc02922a..720336abed7 100644 --- a/tests/language_2/private/clash_lib.dart +++ b/tests/language_2/private/clash_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library a$_b; class B { diff --git a/tests/language_2/private/clash_test.dart b/tests/language_2/private/clash_test.dart index dffbc265079..8c719a9501d 100644 --- a/tests/language_2/private/clash_test.dart +++ b/tests/language_2/private/clash_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library a; import 'clash_lib.dart' as lib; diff --git a/tests/language_2/private/lib.dart b/tests/language_2/private/lib.dart index f0cac6aad32..3c9c5ec5518 100644 --- a/tests/language_2/private/lib.dart +++ b/tests/language_2/private/lib.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing access to private fields. +// @dart = 2.9 + library PrivateLib; class PrivateLib { diff --git a/tests/language_2/private/main.dart b/tests/language_2/private/main.dart index 51eb3d88351..6bf7927de64 100644 --- a/tests/language_2/private/main.dart +++ b/tests/language_2/private/main.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing access to private fields. +// @dart = 2.9 + part of Private3Test.dart; main() { diff --git a/tests/language_2/private/member1_lib.dart b/tests/language_2/private/member1_lib.dart index 62b00c50320..55b4f73eee7 100644 --- a/tests/language_2/private/member1_lib.dart +++ b/tests/language_2/private/member1_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'member1_test.dart'; class B extends A { diff --git a/tests/language_2/private/member1_test.dart b/tests/language_2/private/member1_test.dart index 415bd254bc1..acd7259f263 100644 --- a/tests/language_2/private/member1_test.dart +++ b/tests/language_2/private/member1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'member1_lib.dart'; class A {} diff --git a/tests/language_2/private/member2_lib.dart b/tests/language_2/private/member2_lib.dart index cba58117ee4..68acc8d0403 100644 --- a/tests/language_2/private/member2_lib.dart +++ b/tests/language_2/private/member2_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'member2_test.dart'; class B extends A { diff --git a/tests/language_2/private/member2_test.dart b/tests/language_2/private/member2_test.dart index 6851ad720a5..8b7fff5e428 100644 --- a/tests/language_2/private/member2_test.dart +++ b/tests/language_2/private/member2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'member2_lib.dart'; class A {} diff --git a/tests/language_2/private/member3_lib.dart b/tests/language_2/private/member3_lib.dart index c51338aeb16..7d25d0ce2de 100644 --- a/tests/language_2/private/member3_lib.dart +++ b/tests/language_2/private/member3_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'member3_test.dart'; class B extends A { diff --git a/tests/language_2/private/member3_test.dart b/tests/language_2/private/member3_test.dart index 557a9e6ca2d..fd6e0a0b858 100644 --- a/tests/language_2/private/member3_test.dart +++ b/tests/language_2/private/member3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'member3_lib.dart'; class A {} diff --git a/tests/language_2/private/member_lib_b.dart b/tests/language_2/private/member_lib_b.dart index dfc3931e8ed..7442b13fd13 100644 --- a/tests/language_2/private/member_lib_b.dart +++ b/tests/language_2/private/member_lib_b.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library PrivateMemberLibB; import 'member_test.dart'; diff --git a/tests/language_2/private/member_test.dart b/tests/language_2/private/member_test.dart index 5c8c3ec6541..1ea7adce48a 100644 --- a/tests/language_2/private/member_test.dart +++ b/tests/language_2/private/member_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library PrivateMemberLibA; import 'member_lib_b.dart'; diff --git a/tests/language_2/private/method_tearoff_lib.dart b/tests/language_2/private/method_tearoff_lib.dart index 344a3c6caed..ecbbc4bbd11 100644 --- a/tests/language_2/private/method_tearoff_lib.dart +++ b/tests/language_2/private/method_tearoff_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Companion library for private_method_tearoff_test.dart. class Bar { diff --git a/tests/language_2/private/method_tearoff_test.dart b/tests/language_2/private/method_tearoff_test.dart index 84f6bd78a0b..9978b55d8a5 100644 --- a/tests/language_2/private/method_tearoff_test.dart +++ b/tests/language_2/private/method_tearoff_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'method_tearoff_lib.dart'; diff --git a/tests/language_2/private/mixin2_test.dart b/tests/language_2/private/mixin2_test.dart index 848f8389195..041c79fd36d 100644 --- a/tests/language_2/private/mixin2_test.dart +++ b/tests/language_2/private/mixin2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for testing access to private fields on mixins. library private_mixin2; diff --git a/tests/language_2/private/mixin_exception_throw_test.dart b/tests/language_2/private/mixin_exception_throw_test.dart index 96570d7d6c6..ade4f0462d1 100644 --- a/tests/language_2/private/mixin_exception_throw_test.dart +++ b/tests/language_2/private/mixin_exception_throw_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for http://dartbug.com/11637 class _C {} diff --git a/tests/language_2/private/other.dart b/tests/language_2/private/other.dart index 88c3e28fead..6f288821a28 100644 --- a/tests/language_2/private/other.dart +++ b/tests/language_2/private/other.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing access to private fields. +// @dart = 2.9 + part of Private3Test.dart; class PrivateOther { diff --git a/tests/language_2/private/other_lib.dart b/tests/language_2/private/other_lib.dart index 0bcbb41e3dd..df83627506c 100644 --- a/tests/language_2/private/other_lib.dart +++ b/tests/language_2/private/other_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for testing access to private fields. library PrivateOther; diff --git a/tests/language_2/private/other_library.dart b/tests/language_2/private/other_library.dart index f83146260b3..83466b2cadf 100644 --- a/tests/language_2/private/other_library.dart +++ b/tests/language_2/private/other_library.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that inlining in the compiler works with privacy. library other_library; diff --git a/tests/language_2/private/other_mixin2.dart b/tests/language_2/private/other_mixin2.dart index a2632794ed5..31aa24de1bd 100644 --- a/tests/language_2/private/other_mixin2.dart +++ b/tests/language_2/private/other_mixin2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for testing access to private fields on mixins. library private_mixin2_other; diff --git a/tests/language_2/private/private1.dart b/tests/language_2/private/private1.dart index 7bf3de39a85..e78ddcdac9d 100644 --- a/tests/language_2/private/private1.dart +++ b/tests/language_2/private/private1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for testing access to private fields. part of PrivateTest.dart; diff --git a/tests/language_2/private/private2.dart b/tests/language_2/private/private2.dart index 0dd65ac3226..252babd302b 100644 --- a/tests/language_2/private/private2.dart +++ b/tests/language_2/private/private2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for testing access to private fields. part of PrivateTest.dart; diff --git a/tests/language_2/private/private2_lib.dart b/tests/language_2/private/private2_lib.dart index 4e1fceebc86..46cffbdd572 100644 --- a/tests/language_2/private/private2_lib.dart +++ b/tests/language_2/private/private2_lib.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing access to private fields across class hierarchies. +// @dart = 2.9 + library Private2Lib; import "private2_test.dart"; diff --git a/tests/language_2/private/private2_main.dart b/tests/language_2/private/private2_main.dart index d074dad270a..852462e5a48 100644 --- a/tests/language_2/private/private2_main.dart +++ b/tests/language_2/private/private2_main.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing access to private fields across class hierarchies. +// @dart = 2.9 + part of Private2Test; class A { diff --git a/tests/language_2/private/private2_test.dart b/tests/language_2/private/private2_test.dart index 368cb424aea..b2d091561c0 100644 --- a/tests/language_2/private/private2_test.dart +++ b/tests/language_2/private/private2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing access to private fields across class hierarchies. +// @dart = 2.9 + library Private2Test; import "private2_lib.dart"; diff --git a/tests/language_2/private/private3_test.dart b/tests/language_2/private/private3_test.dart index d0e0c78058b..b83b7aedd8e 100644 --- a/tests/language_2/private/private3_test.dart +++ b/tests/language_2/private/private3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing access to private fields. +// @dart = 2.9 + library Private3Test.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/private/private4_test.dart b/tests/language_2/private/private4_test.dart index ff5aec68e6e..b282b7caf0d 100644 --- a/tests/language_2/private/private4_test.dart +++ b/tests/language_2/private/private4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that inlining in the compiler works with privacy. library private4_test; diff --git a/tests/language_2/private/private_test.dart b/tests/language_2/private/private_test.dart index e6ff096093a..d8f3ba5af3a 100644 --- a/tests/language_2/private/private_test.dart +++ b/tests/language_2/private/private_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for testing access to private fields. library PrivateTest.dart; diff --git a/tests/language_2/private/selector_lib.dart b/tests/language_2/private/selector_lib.dart index 0ca9560a0f3..a0900a7a439 100644 --- a/tests/language_2/private/selector_lib.dart +++ b/tests/language_2/private/selector_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library private_selector_lib; import 'selector_test.dart'; diff --git a/tests/language_2/private/selector_test.dart b/tests/language_2/private/selector_test.dart index 8855f23410c..d0d36d8b6c0 100644 --- a/tests/language_2/private/selector_test.dart +++ b/tests/language_2/private/selector_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library private_selector_test; import "package:expect/expect.dart"; diff --git a/tests/language_2/private/super_constructor_lib.dart b/tests/language_2/private/super_constructor_lib.dart index 04b73d374cf..5da18fa9786 100644 --- a/tests/language_2/private/super_constructor_lib.dart +++ b/tests/language_2/private/super_constructor_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library private_super_constructor_lib; class B { diff --git a/tests/language_2/private/super_constructor_runtime_test.dart b/tests/language_2/private/super_constructor_runtime_test.dart index 3b82c7d9c91..ddba3380352 100644 --- a/tests/language_2/private/super_constructor_runtime_test.dart +++ b/tests/language_2/private/super_constructor_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/private/super_constructor_test.dart b/tests/language_2/private/super_constructor_test.dart index 03ad4f3c89c..68905a60b79 100644 --- a/tests/language_2/private/super_constructor_test.dart +++ b/tests/language_2/private/super_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library private_super_constructor_test; import 'super_constructor_lib.dart'; diff --git a/tests/language_2/propagate/argument_type_check_test.dart b/tests/language_2/propagate/argument_type_check_test.dart index 8962cb41ff2..beaf22d668f 100644 --- a/tests/language_2/propagate/argument_type_check_test.dart +++ b/tests/language_2/propagate/argument_type_check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/propagate/assert_assignable_test.dart b/tests/language_2/propagate/assert_assignable_test.dart index 1e3411960fe..58adf6487b1 100644 --- a/tests/language_2/propagate/assert_assignable_test.dart +++ b/tests/language_2/propagate/assert_assignable_test.dart @@ -4,6 +4,8 @@ // Check that type of the AssertAssignable is recomputed correctly. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/propagate/in_for_update_test.dart b/tests/language_2/propagate/in_for_update_test.dart index 058518e37e4..e72058d8118 100644 --- a/tests/language_2/propagate/in_for_update_test.dart +++ b/tests/language_2/propagate/in_for_update_test.dart @@ -4,6 +4,8 @@ // Check that phi type computation in the Dart2Js compiler does the // correct thing. +// @dart = 2.9 + import "package:expect/expect.dart"; bar() => 'foo'; diff --git a/tests/language_2/propagate/past_constant_test.dart b/tests/language_2/propagate/past_constant_test.dart index 095e7060291..9e1f7f7a168 100644 --- a/tests/language_2/propagate/past_constant_test.dart +++ b/tests/language_2/propagate/past_constant_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; foo(x) => x; diff --git a/tests/language_2/propagate/phi_test.dart b/tests/language_2/propagate/phi_test.dart index 4c8e3e222ca..c49c6d2f7ee 100644 --- a/tests/language_2/propagate/phi_test.dart +++ b/tests/language_2/propagate/phi_test.dart @@ -4,6 +4,8 @@ // Check that phi type computation in the Dart2Js compiler does the // correct thing. +// @dart = 2.9 + import "package:expect/expect.dart"; bar() => 490; diff --git a/tests/language_2/propagate/propagate2_test.dart b/tests/language_2/propagate/propagate2_test.dart index a09041b9317..5c17bd3c215 100644 --- a/tests/language_2/propagate/propagate2_test.dart +++ b/tests/language_2/propagate/propagate2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to infinite loop on // speculatively propagating types. diff --git a/tests/language_2/propagate/propagate3_test.dart b/tests/language_2/propagate/propagate3_test.dart index 2848f9b5434..d2fa1f2a3c6 100644 --- a/tests/language_2/propagate/propagate3_test.dart +++ b/tests/language_2/propagate/propagate3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to generate wrong code for // it. The bug happened in the SSA type propagation. diff --git a/tests/language_2/propagate/type_propagation_test.dart b/tests/language_2/propagate/type_propagation_test.dart index 53501f14ee3..0b22d9a3c3f 100644 --- a/tests/language_2/propagate/type_propagation_test.dart +++ b/tests/language_2/propagate/type_propagation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // dart2js used to have an infinite loop in its type propagation // algorithm due to types becoming broader instead of narrower. diff --git a/tests/language_2/redirecting/constructor_initializer_test.dart b/tests/language_2/redirecting/constructor_initializer_test.dart index 6a2f4512a1e..851f3241e0f 100644 --- a/tests/language_2/redirecting/constructor_initializer_test.dart +++ b/tests/language_2/redirecting/constructor_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var string = ''; diff --git a/tests/language_2/redirecting/factory_bounds_test.dart b/tests/language_2/redirecting/factory_bounds_test.dart index e8dbabfd373..9fec8bd6768 100644 --- a/tests/language_2/redirecting/factory_bounds_test.dart +++ b/tests/language_2/redirecting/factory_bounds_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Bounds checking on redirecting factories. class Foo {} diff --git a/tests/language_2/redirecting/factory_default_values_runtime_test.dart b/tests/language_2/redirecting/factory_default_values_runtime_test.dart index a17a7d6e5e5..3120a387764 100644 --- a/tests/language_2/redirecting/factory_default_values_runtime_test.dart +++ b/tests/language_2/redirecting/factory_default_values_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/redirecting/factory_default_values_test.dart b/tests/language_2/redirecting/factory_default_values_test.dart index 23a0e3c8973..d4709b92e9f 100644 --- a/tests/language_2/redirecting/factory_default_values_test.dart +++ b/tests/language_2/redirecting/factory_default_values_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that parameter default values are disallowed in a redirecting factory. import "package:expect/expect.dart"; diff --git a/tests/language_2/redirecting/factory_incompatible_signature_runtime_test.dart b/tests/language_2/redirecting/factory_incompatible_signature_runtime_test.dart index b565714efc7..04743063ffb 100644 --- a/tests/language_2/redirecting/factory_incompatible_signature_runtime_test.dart +++ b/tests/language_2/redirecting/factory_incompatible_signature_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/redirecting/factory_incompatible_signature_test.dart b/tests/language_2/redirecting/factory_incompatible_signature_test.dart index 7c0253ac835..aef50104be3 100644 --- a/tests/language_2/redirecting/factory_incompatible_signature_test.dart +++ b/tests/language_2/redirecting/factory_incompatible_signature_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that incompatible signatures in a forwarding factory // constructor leads to a compile-time error. diff --git a/tests/language_2/redirecting/factory_infinite_steps_test.dart b/tests/language_2/redirecting/factory_infinite_steps_test.dart index d70a86f7bc1..8cc9443b976 100644 --- a/tests/language_2/redirecting/factory_infinite_steps_test.dart +++ b/tests/language_2/redirecting/factory_infinite_steps_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // From Dart Language Specification, 0.12 M1, "7.6.2 Factories": It is // a compile-time error if a redirecting factory constructor does not // redirect to a non-redirecting factory constructor or to a diff --git a/tests/language_2/redirecting/factory_long_test.dart b/tests/language_2/redirecting/factory_long_test.dart index 5066dc7e1cb..e1486cd28d2 100644 --- a/tests/language_2/redirecting/factory_long_test.dart +++ b/tests/language_2/redirecting/factory_long_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test long substitution of long redirection chains. import 'package:expect/expect.dart'; diff --git a/tests/language_2/redirecting/factory_malbounded_runtime_test.dart b/tests/language_2/redirecting/factory_malbounded_runtime_test.dart index 8cfc36ba861..78c6f990d0e 100644 --- a/tests/language_2/redirecting/factory_malbounded_runtime_test.dart +++ b/tests/language_2/redirecting/factory_malbounded_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/redirecting/factory_malbounded_test.dart b/tests/language_2/redirecting/factory_malbounded_test.dart index 29dd27875eb..d22972f75f0 100644 --- a/tests/language_2/redirecting/factory_malbounded_test.dart +++ b/tests/language_2/redirecting/factory_malbounded_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Foo { factory Foo() = Bar; // ^ diff --git a/tests/language_2/redirecting/factory_upcast_test.dart b/tests/language_2/redirecting/factory_upcast_test.dart index ff3ad11d242..a91daeacb65 100644 --- a/tests/language_2/redirecting/factory_upcast_test.dart +++ b/tests/language_2/redirecting/factory_upcast_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A implements B { var x; A(Object this.x); diff --git a/tests/language_2/reg_exp/reg_exp2_test.dart b/tests/language_2/reg_exp/reg_exp2_test.dart index 20fe43b9bec..50f061d93e6 100644 --- a/tests/language_2/reg_exp/reg_exp2_test.dart +++ b/tests/language_2/reg_exp/reg_exp2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing regular expressions in Dart. +// @dart = 2.9 + import "package:expect/expect.dart"; class RegExp2Test { diff --git a/tests/language_2/reg_exp/reg_exp3_test.dart b/tests/language_2/reg_exp/reg_exp3_test.dart index cb375a5bcf1..d39faae22f5 100644 --- a/tests/language_2/reg_exp/reg_exp3_test.dart +++ b/tests/language_2/reg_exp/reg_exp3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing regular expressions in Dart. +// @dart = 2.9 + import "package:expect/expect.dart"; class RegExp3Test { diff --git a/tests/language_2/reg_exp/reg_exp4_test.dart b/tests/language_2/reg_exp/reg_exp4_test.dart index 6e323f38f5a..941118cf4a3 100644 --- a/tests/language_2/reg_exp/reg_exp4_test.dart +++ b/tests/language_2/reg_exp/reg_exp4_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing regular expressions in Dart. +// @dart = 2.9 + class RegEx2Test { static void testMain() { final helloPattern = new RegExp("with (hello)"); diff --git a/tests/language_2/reg_exp/reg_exp_test.dart b/tests/language_2/reg_exp/reg_exp_test.dart index 82f459525a3..d83588de6d9 100644 --- a/tests/language_2/reg_exp/reg_exp_test.dart +++ b/tests/language_2/reg_exp/reg_exp_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing regular expressions in Dart. +// @dart = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/regress/r24720_test.dart b/tests/language_2/regress/r24720_test.dart index 4f24001e9b2..c5fd87cfa9a 100644 --- a/tests/language_2/regress/r24720_test.dart +++ b/tests/language_2/regress/r24720_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for r24720. import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress10204_test.dart b/tests/language_2/regress/regress10204_test.dart index 1f1619e6539..734ca2762c5 100644 --- a/tests/language_2/regress/regress10204_test.dart +++ b/tests/language_2/regress/regress10204_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to miscompile // [A.visitInvokeDynamicMethod]. diff --git a/tests/language_2/regress/regress10321_test.dart b/tests/language_2/regress/regress10321_test.dart index fb35dcd1ff8..7632b8da191 100644 --- a/tests/language_2/regress/regress10321_test.dart +++ b/tests/language_2/regress/regress10321_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for dart2js that used to miscompile [A.foo]. diff --git a/tests/language_2/regress/regress10561_test.dart b/tests/language_2/regress/regress10561_test.dart index 16e0cca67f5..0961a2e7f7e 100644 --- a/tests/language_2/regress/regress10561_test.dart +++ b/tests/language_2/regress/regress10561_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to miscompile classes // extending HashMap, because HashMap is patched. diff --git a/tests/language_2/regress/regress10581_test.dart b/tests/language_2/regress/regress10581_test.dart index 00fe0c126da..21eefee32cc 100644 --- a/tests/language_2/regress/regress10581_test.dart +++ b/tests/language_2/regress/regress10581_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for https://code.google.com/p/dart/issues/detail?id=10581. import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress10721_test.dart b/tests/language_2/regress/regress10721_test.dart index 4bad7a06ae1..cca6c9291b6 100644 --- a/tests/language_2/regress/regress10721_test.dart +++ b/tests/language_2/regress/regress10721_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/regress/regress10747_test.dart b/tests/language_2/regress/regress10747_test.dart index 46fb8bd09af..38f6406be9e 100644 --- a/tests/language_2/regress/regress10747_test.dart +++ b/tests/language_2/regress/regress10747_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class B {} diff --git a/tests/language_2/regress/regress10783_test.dart b/tests/language_2/regress/regress10783_test.dart index 1d0b66fa614..7a5ca314e48 100644 --- a/tests/language_2/regress/regress10783_test.dart +++ b/tests/language_2/regress/regress10783_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/regress/regress10996_lib.dart b/tests/language_2/regress/regress10996_lib.dart index 77071a2e89c..4dd4507c55e 100644 --- a/tests/language_2/regress/regress10996_lib.dart +++ b/tests/language_2/regress/regress10996_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_10996_lib; var a = 3; diff --git a/tests/language_2/regress/regress10996_test.dart b/tests/language_2/regress/regress10996_test.dart index eee00956c64..d6f07be8172 100644 --- a/tests/language_2/regress/regress10996_test.dart +++ b/tests/language_2/regress/regress10996_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "regress10996_lib.dart" as lib; diff --git a/tests/language_2/regress/regress11010_test.dart b/tests/language_2/regress/regress11010_test.dart index 12f660988d3..203bdd81b4d 100644 --- a/tests/language_2/regress/regress11010_test.dart +++ b/tests/language_2/regress/regress11010_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // We used to have an issue in dart2js where calling a top-level or // static field wouldn't register the 'call' selector correctly. var caller = new Caller(); diff --git a/tests/language_2/regress/regress11724_runtime_test.dart b/tests/language_2/regress/regress11724_runtime_test.dart index 6cf180dc396..e4057ceaf5f 100644 --- a/tests/language_2/regress/regress11724_runtime_test.dart +++ b/tests/language_2/regress/regress11724_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress11724_test.dart b/tests/language_2/regress/regress11724_test.dart index a408da1dfd2..f0394528af8 100644 --- a/tests/language_2/regress/regress11724_test.dart +++ b/tests/language_2/regress/regress11724_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/regress/regress11793_test.dart b/tests/language_2/regress/regress11793_test.dart index 566a6718476..00700d73121 100644 --- a/tests/language_2/regress/regress11793_test.dart +++ b/tests/language_2/regress/regress11793_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js, whose value range analysis phase // assumed loop phis that were integer necessarily had integer inputs. diff --git a/tests/language_2/regress/regress11800_test.dart b/tests/language_2/regress/regress11800_test.dart index 14c8a6f899f..7acb6866b43 100644 --- a/tests/language_2/regress/regress11800_test.dart +++ b/tests/language_2/regress/regress11800_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; // Test correct register allocation with a value used twice at the same diff --git a/tests/language_2/regress/regress12023_test.dart b/tests/language_2/regress/regress12023_test.dart index 5e1a936b76e..c8dc06de17c 100644 --- a/tests/language_2/regress/regress12023_test.dart +++ b/tests/language_2/regress/regress12023_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/regress/regress12118_test.dart b/tests/language_2/regress/regress12118_test.dart index fea6996b338..ec4652b129c 100644 --- a/tests/language_2/regress/regress12118_test.dart +++ b/tests/language_2/regress/regress12118_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 12118 which caused a crash in dart2js. const X = 42; diff --git a/tests/language_2/regress/regress12284_test.dart b/tests/language_2/regress/regress12284_test.dart index d8f8f06bd11..25a91f1b6b1 100644 --- a/tests/language_2/regress/regress12284_test.dart +++ b/tests/language_2/regress/regress12284_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "../compiler_annotations.dart"; diff --git a/tests/language_2/regress/regress12288_test.dart b/tests/language_2/regress/regress12288_test.dart index bbe6b924a71..9227ae57057 100644 --- a/tests/language_2/regress/regress12288_test.dart +++ b/tests/language_2/regress/regress12288_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { var parent = new Element(null); var child = new Element(parent); diff --git a/tests/language_2/regress/regress12336_test.dart b/tests/language_2/regress/regress12336_test.dart index 029c3f1c3f3..9c62ae0fd9b 100644 --- a/tests/language_2/regress/regress12336_test.dart +++ b/tests/language_2/regress/regress12336_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to generate wrong code for // [foo]. diff --git a/tests/language_2/regress/regress124683_test.dart b/tests/language_2/regress/regress124683_test.dart index d3059032871..3da3ec970d1 100644 --- a/tests/language_2/regress/regress124683_test.dart +++ b/tests/language_2/regress/regress124683_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for ddc failure triggered by // https://dart-review.googlesource.com/c/sdk/+/124683 diff --git a/tests/language_2/regress/regress12561_test.dart b/tests/language_2/regress/regress12561_test.dart index 12acf0eb4b0..2edf2a10891 100644 --- a/tests/language_2/regress/regress12561_test.dart +++ b/tests/language_2/regress/regress12561_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/regress/regress12615_test.dart b/tests/language_2/regress/regress12615_test.dart index 02511c9af38..0e5a4f9cfb0 100644 --- a/tests/language_2/regress/regress12615_test.dart +++ b/tests/language_2/regress/regress12615_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that try-catch works properly in the VM. main() { diff --git a/tests/language_2/regress/regress13179_test.dart b/tests/language_2/regress/regress13179_test.dart index d1492b4e27e..f8ac487d83e 100644 --- a/tests/language_2/regress/regress13179_test.dart +++ b/tests/language_2/regress/regress13179_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int count = 0; diff --git a/tests/language_2/regress/regress13494_test.dart b/tests/language_2/regress/regress13494_test.dart index 9e239c61222..39b383f10c3 100644 --- a/tests/language_2/regress/regress13494_test.dart +++ b/tests/language_2/regress/regress13494_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js. Test that the argument to an unresolved static // getter is only evaluated once. diff --git a/tests/language_2/regress/regress13556_test.dart b/tests/language_2/regress/regress13556_test.dart index b9388d6feeb..14119d6c38c 100644 --- a/tests/language_2/regress/regress13556_test.dart +++ b/tests/language_2/regress/regress13556_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to crash when resolving the // @B() annotation. diff --git a/tests/language_2/regress/regress1363_lib.dart b/tests/language_2/regress/regress1363_lib.dart index fdbbba6f979..1706957248d 100644 --- a/tests/language_2/regress/regress1363_lib.dart +++ b/tests/language_2/regress/regress1363_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library Issue1363; class C {} diff --git a/tests/language_2/regress/regress1363_runtime_test.dart b/tests/language_2/regress/regress1363_runtime_test.dart index f3f5eb1c58c..bb28153c977 100644 --- a/tests/language_2/regress/regress1363_runtime_test.dart +++ b/tests/language_2/regress/regress1363_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress1363_test.dart b/tests/language_2/regress/regress1363_test.dart index 27f02c25fcf..71fc5fb026d 100644 --- a/tests/language_2/regress/regress1363_test.dart +++ b/tests/language_2/regress/regress1363_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--enable_type_checks +// @dart = 2.9 + library Issue1363Test.dart; import 'regress1363_lib.dart' as lib; diff --git a/tests/language_2/regress/regress13673_test.dart b/tests/language_2/regress/regress13673_test.dart index b510c6163eb..56631aae3d5 100644 --- a/tests/language_2/regress/regress13673_test.dart +++ b/tests/language_2/regress/regress13673_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Bar { diff --git a/tests/language_2/regress/regress14014_2_test.dart b/tests/language_2/regress/regress14014_2_test.dart index 536361982d0..15436736a4c 100644 --- a/tests/language_2/regress/regress14014_2_test.dart +++ b/tests/language_2/regress/regress14014_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a type variable used in a parameter of a constructor that // has a closure in its initializer list does not lead to a crash in // dart2js. diff --git a/tests/language_2/regress/regress14014_3_test.dart b/tests/language_2/regress/regress14014_3_test.dart index 58957fb7121..8bdd11b16ad 100644 --- a/tests/language_2/regress/regress14014_3_test.dart +++ b/tests/language_2/regress/regress14014_3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that an is check on a function type involving type parameters // does not crash dart2js, when the is test is in the initializer list // of a constructor. diff --git a/tests/language_2/regress/regress14014_test.dart b/tests/language_2/regress/regress14014_test.dart index c887a331219..ab0dd892c1b 100644 --- a/tests/language_2/regress/regress14014_test.dart +++ b/tests/language_2/regress/regress14014_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { A(f); } diff --git a/tests/language_2/regress/regress14105_test.dart b/tests/language_2/regress/regress14105_test.dart index 8051513b36a..1ec2d0c58aa 100644 --- a/tests/language_2/regress/regress14105_test.dart +++ b/tests/language_2/regress/regress14105_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for Issue 14105. typedef UsedAsFieldType(); diff --git a/tests/language_2/regress/regress14242_test.dart b/tests/language_2/regress/regress14242_test.dart index 118a8e00207..57cf5505f8b 100644 --- a/tests/language_2/regress/regress14242_test.dart +++ b/tests/language_2/regress/regress14242_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to crash on type literals // used in a cascade send. diff --git a/tests/language_2/regress/regress14348_test.dart b/tests/language_2/regress/regress14348_test.dart index 96ac17d11cd..100eafafe08 100644 --- a/tests/language_2/regress/regress14348_test.dart +++ b/tests/language_2/regress/regress14348_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 14348. import "package:collection/equality.dart"; diff --git a/tests/language_2/regress/regress15606_runtime_test.dart b/tests/language_2/regress/regress15606_runtime_test.dart index 539a0d7d8f4..ddcd5792f39 100644 --- a/tests/language_2/regress/regress15606_runtime_test.dart +++ b/tests/language_2/regress/regress15606_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress15606_test.dart b/tests/language_2/regress/regress15606_test.dart index f367e9e4a70..24604f8f82d 100644 --- a/tests/language_2/regress/regress15606_test.dart +++ b/tests/language_2/regress/regress15606_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Foo {} var a = [new Object(), 42]; diff --git a/tests/language_2/regress/regress15702_test.dart b/tests/language_2/regress/regress15702_test.dart index 072182d1211..13fbb67ae5e 100644 --- a/tests/language_2/regress/regress15702_test.dart +++ b/tests/language_2/regress/regress15702_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { Amount stake = new Amount(2.5); if ((stake.value * 10).toInt() != 25) { diff --git a/tests/language_2/regress/regress15720_test.dart b/tests/language_2/regress/regress15720_test.dart index 638fc981cf5..f07405e73e3 100644 --- a/tests/language_2/regress/regress15720_test.dart +++ b/tests/language_2/regress/regress15720_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js, issue 15720. class B {} diff --git a/tests/language_2/regress/regress1578_test.dart b/tests/language_2/regress/regress1578_test.dart index ad355ae1f2f..d899ca861ef 100644 --- a/tests/language_2/regress/regress1578_test.dart +++ b/tests/language_2/regress/regress1578_test.dart @@ -2,13 +2,15 @@ // 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 = 2.9 + // Regression test for issue 1578. ]~<)$ -// [error line 7, column 1, length 1] +// [error line 9, column 1, length 1] // [analyzer] SYNTACTIC_ERROR.EXPECTED_EXECUTABLE // [cfe] Expected a declaration, but got ']'. -// [error line 7, column 2, length 1] +// [error line 9, column 2, length 1] // [analyzer] SYNTACTIC_ERROR.EXPECTED_EXECUTABLE // [cfe] Expected a declaration, but got '~'. //^ @@ -19,7 +21,6 @@ // [cfe] Expected a declaration, but got ')'. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN -// [cfe] Expected ';' after this. -// ^ // [analyzer] SYNTACTIC_ERROR.MISSING_CONST_FINAL_VAR_OR_TYPE +// [cfe] Expected ';' after this. // [cfe] Variables must be declared using the keywords 'const', 'final', 'var' or a type name. diff --git a/tests/language_2/regress/regress16640_test.dart b/tests/language_2/regress/regress16640_test.dart index 8fe8399feae..299442d6abf 100644 --- a/tests/language_2/regress/regress16640_test.dart +++ b/tests/language_2/regress/regress16640_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 16640. class Segment extends SegmentGen {} diff --git a/tests/language_2/regress/regress17382_test.dart b/tests/language_2/regress/regress17382_test.dart index 275c1b8df9d..fa72d34eaa2 100644 --- a/tests/language_2/regress/regress17382_test.dart +++ b/tests/language_2/regress/regress17382_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 17382. import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress1751477_lib1.dart b/tests/language_2/regress/regress1751477_lib1.dart index b0398a193ba..10ce32d7e39 100644 --- a/tests/language_2/regress/regress1751477_lib1.dart +++ b/tests/language_2/regress/regress1751477_lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib1; import 'regress1751477_lib2.dart'; diff --git a/tests/language_2/regress/regress1751477_lib11.dart b/tests/language_2/regress/regress1751477_lib11.dart index 8b736284f8b..f0c4e0dd3fa 100644 --- a/tests/language_2/regress/regress1751477_lib11.dart +++ b/tests/language_2/regress/regress1751477_lib11.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib11; import 'regress1751477_lib1.dart'; diff --git a/tests/language_2/regress/regress1751477_lib2.dart b/tests/language_2/regress/regress1751477_lib2.dart index 61c075617af..63a3216d51d 100644 --- a/tests/language_2/regress/regress1751477_lib2.dart +++ b/tests/language_2/regress/regress1751477_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib2; import 'regress1751477_lib1.dart'; diff --git a/tests/language_2/regress/regress1751477_lib21.dart b/tests/language_2/regress/regress1751477_lib21.dart index d3a85467d27..24b9aeea1bd 100644 --- a/tests/language_2/regress/regress1751477_lib21.dart +++ b/tests/language_2/regress/regress1751477_lib21.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib21; import 'regress1751477_lib1.dart'; diff --git a/tests/language_2/regress/regress1751477_lib3.dart b/tests/language_2/regress/regress1751477_lib3.dart index caec885c552..c6518372f82 100644 --- a/tests/language_2/regress/regress1751477_lib3.dart +++ b/tests/language_2/regress/regress1751477_lib3.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib3; import 'regress1751477_lib2.dart'; diff --git a/tests/language_2/regress/regress1751477_lib31.dart b/tests/language_2/regress/regress1751477_lib31.dart index 93412ad2319..e27d72c7deb 100644 --- a/tests/language_2/regress/regress1751477_lib31.dart +++ b/tests/language_2/regress/regress1751477_lib31.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib31; import 'regress1751477_lib1.dart'; diff --git a/tests/language_2/regress/regress1751477_lib4.dart b/tests/language_2/regress/regress1751477_lib4.dart index e12cb886242..db6297c8aa8 100644 --- a/tests/language_2/regress/regress1751477_lib4.dart +++ b/tests/language_2/regress/regress1751477_lib4.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib4; import 'regress1751477_lib2.dart'; diff --git a/tests/language_2/regress/regress1751477_lib41.dart b/tests/language_2/regress/regress1751477_lib41.dart index a4c5536b0ee..0fb044e4f98 100644 --- a/tests/language_2/regress/regress1751477_lib41.dart +++ b/tests/language_2/regress/regress1751477_lib41.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib41; import 'regress1751477_lib1.dart'; diff --git a/tests/language_2/regress/regress1751477_lib5.dart b/tests/language_2/regress/regress1751477_lib5.dart index 2049e2866e2..6a2ec5b3a2d 100644 --- a/tests/language_2/regress/regress1751477_lib5.dart +++ b/tests/language_2/regress/regress1751477_lib5.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib5; import 'regress1751477_lib2.dart'; diff --git a/tests/language_2/regress/regress1751477_lib51.dart b/tests/language_2/regress/regress1751477_lib51.dart index 31bff9fbb84..e50b83e42d6 100644 --- a/tests/language_2/regress/regress1751477_lib51.dart +++ b/tests/language_2/regress/regress1751477_lib51.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib51; import 'regress1751477_lib1.dart'; diff --git a/tests/language_2/regress/regress1751477_lib6.dart b/tests/language_2/regress/regress1751477_lib6.dart index 9255cfde4b5..d9fd9ae4b44 100644 --- a/tests/language_2/regress/regress1751477_lib6.dart +++ b/tests/language_2/regress/regress1751477_lib6.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib6; import 'regress1751477_lib2.dart'; diff --git a/tests/language_2/regress/regress1751477_lib61.dart b/tests/language_2/regress/regress1751477_lib61.dart index 93a4ac37b4a..c624ca517e0 100644 --- a/tests/language_2/regress/regress1751477_lib61.dart +++ b/tests/language_2/regress/regress1751477_lib61.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib61; import 'regress1751477_lib1.dart'; diff --git a/tests/language_2/regress/regress1751477_lib7.dart b/tests/language_2/regress/regress1751477_lib7.dart index 35fe1d138e5..736473cc9b0 100644 --- a/tests/language_2/regress/regress1751477_lib7.dart +++ b/tests/language_2/regress/regress1751477_lib7.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib7; import 'regress1751477_lib2.dart'; diff --git a/tests/language_2/regress/regress1751477_lib71.dart b/tests/language_2/regress/regress1751477_lib71.dart index e80f0c5ada0..735e989115c 100644 --- a/tests/language_2/regress/regress1751477_lib71.dart +++ b/tests/language_2/regress/regress1751477_lib71.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib71; import 'regress1751477_lib1.dart'; diff --git a/tests/language_2/regress/regress1751477_lib8.dart b/tests/language_2/regress/regress1751477_lib8.dart index e4240a04274..98a13b67eb6 100644 --- a/tests/language_2/regress/regress1751477_lib8.dart +++ b/tests/language_2/regress/regress1751477_lib8.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib8; import 'regress1751477_lib2.dart'; diff --git a/tests/language_2/regress/regress1751477_lib81.dart b/tests/language_2/regress/regress1751477_lib81.dart index 050e005bf1f..d4ad07a46d0 100644 --- a/tests/language_2/regress/regress1751477_lib81.dart +++ b/tests/language_2/regress/regress1751477_lib81.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib81; import 'regress1751477_lib1.dart'; diff --git a/tests/language_2/regress/regress1751477_lib9.dart b/tests/language_2/regress/regress1751477_lib9.dart index fea7a64cb25..6355f021b41 100644 --- a/tests/language_2/regress/regress1751477_lib9.dart +++ b/tests/language_2/regress/regress1751477_lib9.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib9; import 'regress1751477_lib2.dart'; diff --git a/tests/language_2/regress/regress1751477_lib91.dart b/tests/language_2/regress/regress1751477_lib91.dart index d1221254933..dc3a0c97a6f 100644 --- a/tests/language_2/regress/regress1751477_lib91.dart +++ b/tests/language_2/regress/regress1751477_lib91.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib91; import 'regress1751477_lib1.dart'; diff --git a/tests/language_2/regress/regress1751477_test.dart b/tests/language_2/regress/regress1751477_test.dart index 647fa90ca25..5647ac9c5f6 100644 --- a/tests/language_2/regress/regress1751477_test.dart +++ b/tests/language_2/regress/regress1751477_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'regress1751477_lib1.dart' deferred as lib1; import 'regress1751477_lib2.dart' deferred as lib2; import 'regress1751477_lib3.dart' deferred as lib3; diff --git a/tests/language_2/regress/regress18435_test.dart b/tests/language_2/regress/regress18435_test.dart index 267562f0d4e..599b21f16ed 100644 --- a/tests/language_2/regress/regress18435_test.dart +++ b/tests/language_2/regress/regress18435_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 18435. import "package:expect/expect.dart"; diff --git a/tests/language_2/regress/regress18628_1_runtime_test.dart b/tests/language_2/regress/regress18628_1_runtime_test.dart index 56d73779772..8f996add9fd 100644 --- a/tests/language_2/regress/regress18628_1_runtime_test.dart +++ b/tests/language_2/regress/regress18628_1_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress18628_1_test.dart b/tests/language_2/regress/regress18628_1_test.dart index 214f9aab6c3..ba8e67c46a6 100644 --- a/tests/language_2/regress/regress18628_1_test.dart +++ b/tests/language_2/regress/regress18628_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test checks for a regression found in Dart Editor: the // analyzer was treating [Type] as more specific than any type // variable (generic parameter). diff --git a/tests/language_2/regress/regress18628_2_runtime_test.dart b/tests/language_2/regress/regress18628_2_runtime_test.dart index d604adb9a57..ebfb189d74c 100644 --- a/tests/language_2/regress/regress18628_2_runtime_test.dart +++ b/tests/language_2/regress/regress18628_2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress18628_2_test.dart b/tests/language_2/regress/regress18628_2_test.dart index 622b7248ad1..85d59cae7c4 100644 --- a/tests/language_2/regress/regress18628_2_test.dart +++ b/tests/language_2/regress/regress18628_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test checks for a regression found in Dart Editor: the // analyzer was treating [Type] as more specific than any type // variable (generic parameter). diff --git a/tests/language_2/regress/regress18713_test.dart b/tests/language_2/regress/regress18713_test.dart index 01f51d8af60..08a03b2b6a1 100644 --- a/tests/language_2/regress/regress18713_test.dart +++ b/tests/language_2/regress/regress18713_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class T { diff --git a/tests/language_2/regress/regress18865_test.dart b/tests/language_2/regress/regress18865_test.dart index 8727bb39dd4..ca7cec2c006 100644 --- a/tests/language_2/regress/regress18865_test.dart +++ b/tests/language_2/regress/regress18865_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 18865. class B {} diff --git a/tests/language_2/regress/regress19413_bar.dart b/tests/language_2/regress/regress19413_bar.dart index 98ef508a72c..681826b06c8 100644 --- a/tests/language_2/regress/regress19413_bar.dart +++ b/tests/language_2/regress/regress19413_bar.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library bar; f() { diff --git a/tests/language_2/regress/regress19413_foo.dart b/tests/language_2/regress/regress19413_foo.dart index b7e9a199fb7..5165bbab347 100644 --- a/tests/language_2/regress/regress19413_foo.dart +++ b/tests/language_2/regress/regress19413_foo.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library foo; f() { diff --git a/tests/language_2/regress/regress19413_test.dart b/tests/language_2/regress/regress19413_test.dart index eb0e2ad6297..9f6f5ebf41e 100644 --- a/tests/language_2/regress/regress19413_test.dart +++ b/tests/language_2/regress/regress19413_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 19413. import 'regress19413_foo.dart' as foo; diff --git a/tests/language_2/regress/regress19728_test.dart b/tests/language_2/regress/regress19728_test.dart index 1253aab3f11..6af7cfdb8e6 100644 --- a/tests/language_2/regress/regress19728_test.dart +++ b/tests/language_2/regress/regress19728_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 19728. class C { diff --git a/tests/language_2/regress/regress20074_test.dart b/tests/language_2/regress/regress20074_test.dart index 77623e125f2..6b80c20f6f8 100644 --- a/tests/language_2/regress/regress20074_test.dart +++ b/tests/language_2/regress/regress20074_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 20074. Check that a parameter is not declared // in the same scope as its function declaration. diff --git a/tests/language_2/regress/regress20394_lib.dart b/tests/language_2/regress/regress20394_lib.dart index ab5154b27ba..e4f39ebbe0f 100644 --- a/tests/language_2/regress/regress20394_lib.dart +++ b/tests/language_2/regress/regress20394_lib.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library lib; class Super { diff --git a/tests/language_2/regress/regress20394_runtime_test.dart b/tests/language_2/regress/regress20394_runtime_test.dart index 80da6baa862..e6458f84259 100644 --- a/tests/language_2/regress/regress20394_runtime_test.dart +++ b/tests/language_2/regress/regress20394_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + import 'regress20394_lib.dart'; class M {} diff --git a/tests/language_2/regress/regress20394_test.dart b/tests/language_2/regress/regress20394_test.dart index daff29b0fd7..a09869bc126 100644 --- a/tests/language_2/regress/regress20394_test.dart +++ b/tests/language_2/regress/regress20394_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'regress20394_lib.dart'; class M {} diff --git a/tests/language_2/regress/regress20476_test.dart b/tests/language_2/regress/regress20476_test.dart index f0202be6010..5b4c9e8f4dd 100644 --- a/tests/language_2/regress/regress20476_test.dart +++ b/tests/language_2/regress/regress20476_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; foo() { diff --git a/tests/language_2/regress/regress20840_test.dart b/tests/language_2/regress/regress20840_test.dart index c9cf4453b32..792376442fe 100644 --- a/tests/language_2/regress/regress20840_test.dart +++ b/tests/language_2/regress/regress20840_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 20840. class SomeClass { diff --git a/tests/language_2/regress/regress21016_test.dart b/tests/language_2/regress/regress21016_test.dart index a8ca2d9d172..a98a85b291e 100644 --- a/tests/language_2/regress/regress21016_test.dart +++ b/tests/language_2/regress/regress21016_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we give up on tracing a function if one of its closurizations // escapes tracing. diff --git a/tests/language_2/regress/regress21793_runtime_test.dart b/tests/language_2/regress/regress21793_runtime_test.dart index 4bdd03bb39f..f7bc9da2ab6 100644 --- a/tests/language_2/regress/regress21793_runtime_test.dart +++ b/tests/language_2/regress/regress21793_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress21793_test.dart b/tests/language_2/regress/regress21793_test.dart index e4fec2e67f4..2928280f97b 100644 --- a/tests/language_2/regress/regress21793_test.dart +++ b/tests/language_2/regress/regress21793_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 21793. import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress21795_test.dart b/tests/language_2/regress/regress21795_test.dart index 2ca18a3349b..bc0d46e73bb 100644 --- a/tests/language_2/regress/regress21795_test.dart +++ b/tests/language_2/regress/regress21795_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 21795. @pragma("vm:entry-point") // Prevent obfuscation diff --git a/tests/language_2/regress/regress21912_runtime_test.dart b/tests/language_2/regress/regress21912_runtime_test.dart index e44b17fd1d4..5d98f6db03d 100644 --- a/tests/language_2/regress/regress21912_runtime_test.dart +++ b/tests/language_2/regress/regress21912_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress21912_test.dart b/tests/language_2/regress/regress21912_test.dart index eaacaad81e3..d103a787088 100644 --- a/tests/language_2/regress/regress21912_test.dart +++ b/tests/language_2/regress/regress21912_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 21912. class A {} diff --git a/tests/language_2/regress/regress21957_double_test.dart b/tests/language_2/regress/regress21957_double_test.dart index d2920a4a5c8..097f11d6deb 100644 --- a/tests/language_2/regress/regress21957_double_test.dart +++ b/tests/language_2/regress/regress21957_double_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check slow path for PotentialUnboxedStore. // VMOptions=--optimization_counter_threshold=-1 diff --git a/tests/language_2/regress/regress21957_float32x4_test.dart b/tests/language_2/regress/regress21957_float32x4_test.dart index f3642619a6d..d668029aedf 100644 --- a/tests/language_2/regress/regress21957_float32x4_test.dart +++ b/tests/language_2/regress/regress21957_float32x4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check slow path for PotentialUnboxedStore. // VMOptions=--optimization_counter_threshold=-1 diff --git a/tests/language_2/regress/regress21957_float64x2_test.dart b/tests/language_2/regress/regress21957_float64x2_test.dart index 5b517221332..9b9890c2f41 100644 --- a/tests/language_2/regress/regress21957_float64x2_test.dart +++ b/tests/language_2/regress/regress21957_float64x2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check slow path for PotentialUnboxedStore. // VMOptions=--optimization_counter_threshold=-1 diff --git a/tests/language_2/regress/regress21998_1_test.dart b/tests/language_2/regress/regress21998_1_test.dart index 132877e9d2d..8f12a0b9c75 100644 --- a/tests/language_2/regress/regress21998_1_test.dart +++ b/tests/language_2/regress/regress21998_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:math' as Math; import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress21998_2_test.dart b/tests/language_2/regress/regress21998_2_test.dart index 9214d6bbf76..83cdd76a644 100644 --- a/tests/language_2/regress/regress21998_2_test.dart +++ b/tests/language_2/regress/regress21998_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:math' as Math; import 'package:expect/expect.dart'; import 'regress21998_lib1.dart' as lib1; diff --git a/tests/language_2/regress/regress21998_3_test.dart b/tests/language_2/regress/regress21998_3_test.dart index ebd3782cdb0..970f31983bb 100644 --- a/tests/language_2/regress/regress21998_3_test.dart +++ b/tests/language_2/regress/regress21998_3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:math' as Math; import 'package:expect/expect.dart'; import 'regress21998_lib1.dart' as lib1; diff --git a/tests/language_2/regress/regress21998_4_test.dart b/tests/language_2/regress/regress21998_4_test.dart index 6bc8c038203..c1f6a0cb828 100644 --- a/tests/language_2/regress/regress21998_4_test.dart +++ b/tests/language_2/regress/regress21998_4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:math' as Math; import 'package:expect/expect.dart'; import 'regress21998_lib1.dart' as lib1; diff --git a/tests/language_2/regress/regress21998_lib1.dart b/tests/language_2/regress/regress21998_lib1.dart index 29750b68714..2e3912cfdb2 100644 --- a/tests/language_2/regress/regress21998_lib1.dart +++ b/tests/language_2/regress/regress21998_lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_21998_lib1; String max(String a, String b, String c) => '$a$b$c'; diff --git a/tests/language_2/regress/regress21998_lib2.dart b/tests/language_2/regress/regress21998_lib2.dart index 83117f968cc..8cbff7c7a54 100644 --- a/tests/language_2/regress/regress21998_lib2.dart +++ b/tests/language_2/regress/regress21998_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_21998_lib2; import 'dart:math'; diff --git a/tests/language_2/regress/regress21998_lib3.dart b/tests/language_2/regress/regress21998_lib3.dart index 33ea88ff6d7..3e355e5bb48 100644 --- a/tests/language_2/regress/regress21998_lib3.dart +++ b/tests/language_2/regress/regress21998_lib3.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_21998_lib3; import 'dart:math' as math; diff --git a/tests/language_2/regress/regress22438_test.dart b/tests/language_2/regress/regress22438_test.dart index 32132b2cfc8..c16312df79e 100644 --- a/tests/language_2/regress/regress22438_test.dart +++ b/tests/language_2/regress/regress22438_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/language_2/regress/regress22443_lib.dart b/tests/language_2/regress/regress22443_lib.dart index 879d5f7f215..cc7c6d5cc1e 100644 --- a/tests/language_2/regress/regress22443_lib.dart +++ b/tests/language_2/regress/regress22443_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_22443; class LazyClass {} diff --git a/tests/language_2/regress/regress22443_test.dart b/tests/language_2/regress/regress22443_test.dart index 81a1e5d311d..c3272411c32 100644 --- a/tests/language_2/regress/regress22443_test.dart +++ b/tests/language_2/regress/regress22443_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'regress22443_lib.dart' deferred as D; import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress22445_test.dart b/tests/language_2/regress/regress22445_test.dart index 10f238c5ece..fc569aba475 100644 --- a/tests/language_2/regress/regress22445_test.dart +++ b/tests/language_2/regress/regress22445_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/language_2/regress/regress22579_test.dart b/tests/language_2/regress/regress22579_test.dart index 1077e853646..600006c1145 100644 --- a/tests/language_2/regress/regress22579_test.dart +++ b/tests/language_2/regress/regress22579_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/language_2/regress/regress22666_test.dart b/tests/language_2/regress/regress22666_test.dart index 432ec7c85e3..fd89422439d 100644 --- a/tests/language_2/regress/regress22666_test.dart +++ b/tests/language_2/regress/regress22666_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; class A extends Object with LinkedListEntry {} diff --git a/tests/language_2/regress/regress22700_test.dart b/tests/language_2/regress/regress22700_test.dart index 0be42f37b55..844c381b46f 100644 --- a/tests/language_2/regress/regress22700_test.dart +++ b/tests/language_2/regress/regress22700_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class WrapT { diff --git a/tests/language_2/regress/regress22719_test.dart b/tests/language_2/regress/regress22719_test.dart index 13310ef649a..01be222a0a1 100644 --- a/tests/language_2/regress/regress22719_test.dart +++ b/tests/language_2/regress/regress22719_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress22728_test.dart b/tests/language_2/regress/regress22728_test.dart index b4f32c5b3c2..0e0aea6b6e6 100644 --- a/tests/language_2/regress/regress22728_test.dart +++ b/tests/language_2/regress/regress22728_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; bool assertsChecked() { diff --git a/tests/language_2/regress/regress22777_test.dart b/tests/language_2/regress/regress22777_test.dart index 38bc24b3d70..99fbdb23a80 100644 --- a/tests/language_2/regress/regress22777_test.dart +++ b/tests/language_2/regress/regress22777_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:async_helper/async_helper.dart"; import "package:expect/expect.dart"; diff --git a/tests/language_2/regress/regress22780_test.dart b/tests/language_2/regress/regress22780_test.dart index 34dabd6ed5e..d90a9459e39 100644 --- a/tests/language_2/regress/regress22780_test.dart +++ b/tests/language_2/regress/regress22780_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { f() => "Oh, the joy of ${f()}"; print(f()); //# 01: runtime error } diff --git a/tests/language_2/regress/regress22800_test.dart b/tests/language_2/regress/regress22800_test.dart index 36b69787435..929bb9deb64 100644 --- a/tests/language_2/regress/regress22800_test.dart +++ b/tests/language_2/regress/regress22800_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check proper exception handler finalization, even for unreachable handlers. void main() { diff --git a/tests/language_2/regress/regress22822_test.dart b/tests/language_2/regress/regress22822_test.dart index ad990c725c5..8a5e0ce0652 100644 --- a/tests/language_2/regress/regress22822_test.dart +++ b/tests/language_2/regress/regress22822_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 22822. The assignment in the finally block // used to crash because it was executed at context level 1 instead of // context level 2. diff --git a/tests/language_2/regress/regress22858_test.dart b/tests/language_2/regress/regress22858_test.dart index d685ce20ee0..fbc26cce4c8 100644 --- a/tests/language_2/regress/regress22858_test.dart +++ b/tests/language_2/regress/regress22858_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/language_2/regress/regress22936_test.dart b/tests/language_2/regress/regress22936_test.dart index 878e7c41913..4852e1b9bd4 100644 --- a/tests/language_2/regress/regress22936_test.dart +++ b/tests/language_2/regress/regress22936_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 22936. import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress22976_test.dart b/tests/language_2/regress/regress22976_test.dart index de83e9b2170..4a954e6977a 100644 --- a/tests/language_2/regress/regress22976_test.dart +++ b/tests/language_2/regress/regress22976_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 22976. class A {} @@ -9,7 +11,7 @@ class A {} class B implements A {} class C implements B, A {} -// [error line 11, column 1, length 38] +// [error line 13, column 1, length 38] // [analyzer] COMPILE_TIME_ERROR.CONFLICTING_GENERIC_INTERFACES // ^ // [cfe] 'C' can't implement both 'A' and 'A' @@ -21,6 +23,5 @@ main() { A a1 = c2; // ^^ // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // ^ // [cfe] A value of type 'C' can't be assigned to a variable of type 'A'. } diff --git a/tests/language_2/regress/regress23038_runtime_test.dart b/tests/language_2/regress/regress23038_runtime_test.dart index fb22db1a146..1e69c04072b 100644 --- a/tests/language_2/regress/regress23038_runtime_test.dart +++ b/tests/language_2/regress/regress23038_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress23038_test.dart b/tests/language_2/regress/regress23038_test.dart index 09670982162..0b861e11da7 100644 --- a/tests/language_2/regress/regress23038_test.dart +++ b/tests/language_2/regress/regress23038_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { const factory diff --git a/tests/language_2/regress/regress23046_test.dart b/tests/language_2/regress/regress23046_test.dart index e5dcdc480a2..83ab215039d 100644 --- a/tests/language_2/regress/regress23046_test.dart +++ b/tests/language_2/regress/regress23046_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Make sure the logic for skipping the initial quotes in a string isn't diff --git a/tests/language_2/regress/regress23051_test.dart b/tests/language_2/regress/regress23051_test.dart index f9837de151d..7aee0bf7078 100644 --- a/tests/language_2/regress/regress23051_test.dart +++ b/tests/language_2/regress/regress23051_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 23051. main() { diff --git a/tests/language_2/regress/regress23089_test.dart b/tests/language_2/regress/regress23089_test.dart index 2718475177d..a139f26d351 100644 --- a/tests/language_2/regress/regress23089_test.dart +++ b/tests/language_2/regress/regress23089_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test doesn't cover http://dartbug.com/23089 anymore. // Generic bounds now must be fully instantiated. This means that the // cycle is not possible anymore. diff --git a/tests/language_2/regress/regress23244_test.dart b/tests/language_2/regress/regress23244_test.dart index c955874310c..87e244d4591 100644 --- a/tests/language_2/regress/regress23244_test.dart +++ b/tests/language_2/regress/regress23244_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/language_2/regress/regress23408_lib.dart b/tests/language_2/regress/regress23408_lib.dart index 564c2eb62a3..2ff9cedff8c 100644 --- a/tests/language_2/regress/regress23408_lib.dart +++ b/tests/language_2/regress/regress23408_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_23408_lib; import "regress23408_test.dart" as main; diff --git a/tests/language_2/regress/regress23408_test.dart b/tests/language_2/regress/regress23408_test.dart index 1ad8c552b6f..2a153c2572f 100644 --- a/tests/language_2/regress/regress23408_test.dart +++ b/tests/language_2/regress/regress23408_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_23408_test; import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress23408a_test.dart b/tests/language_2/regress/regress23408a_test.dart index 453d161222b..8c417d84fa4 100644 --- a/tests/language_2/regress/regress23408a_test.dart +++ b/tests/language_2/regress/regress23408a_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_23408a_test; import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress23498_test.dart b/tests/language_2/regress/regress23498_test.dart index eb48049b0a7..e6db4929709 100644 --- a/tests/language_2/regress/regress23498_test.dart +++ b/tests/language_2/regress/regress23498_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/language_2/regress/regress23500_test.dart b/tests/language_2/regress/regress23500_test.dart index cce070c33c9..931e57f4281 100644 --- a/tests/language_2/regress/regress23500_test.dart +++ b/tests/language_2/regress/regress23500_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/language_2/regress/regress23537_test.dart b/tests/language_2/regress/regress23537_test.dart index c8c66675761..78cf2196d54 100644 --- a/tests/language_2/regress/regress23537_test.dart +++ b/tests/language_2/regress/regress23537_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; var d; diff --git a/tests/language_2/regress/regress23650_test.dart b/tests/language_2/regress/regress23650_test.dart index 16847361e97..036e689a8ca 100644 --- a/tests/language_2/regress/regress23650_test.dart +++ b/tests/language_2/regress/regress23650_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that type variables in try-catch work. import "package:expect/expect.dart"; diff --git a/tests/language_2/regress/regress23914_test.dart b/tests/language_2/regress/regress23914_test.dart index 5ba0335af98..f40c5d2d38b 100644 --- a/tests/language_2/regress/regress23914_test.dart +++ b/tests/language_2/regress/regress23914_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; class C extends LinkedListEntry {} diff --git a/tests/language_2/regress/regress23996_test.dart b/tests/language_2/regress/regress23996_test.dart index 4401a468d4e..7551471a21b 100644 --- a/tests/language_2/regress/regress23996_test.dart +++ b/tests/language_2/regress/regress23996_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/regress/regress24283_test.dart b/tests/language_2/regress/regress24283_test.dart index 056bfd8a41d..28568871be7 100644 --- a/tests/language_2/regress/regress24283_test.dart +++ b/tests/language_2/regress/regress24283_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/regress/regress24567_test.dart b/tests/language_2/regress/regress24567_test.dart index 8010da7a9d1..e49fbfa6235 100644 --- a/tests/language_2/regress/regress24567_test.dart +++ b/tests/language_2/regress/regress24567_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:math' as math; diff --git a/tests/language_2/regress/regress24935_test.dart b/tests/language_2/regress/regress24935_test.dart index 430629f7434..b225938da4d 100644 --- a/tests/language_2/regress/regress24935_test.dart +++ b/tests/language_2/regress/regress24935_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; S() => new Stream.fromIterable([1]); diff --git a/tests/language_2/regress/regress25122_test.dart b/tests/language_2/regress/regress25122_test.dart index b7d4068feeb..c3cad4fa666 100644 --- a/tests/language_2/regress/regress25122_test.dart +++ b/tests/language_2/regress/regress25122_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() {} class AbstractListMember> {} diff --git a/tests/language_2/regress/regress25246_1_test.dart b/tests/language_2/regress/regress25246_1_test.dart index 65101deaab8..722245c1607 100644 --- a/tests/language_2/regress/regress25246_1_test.dart +++ b/tests/language_2/regress/regress25246_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'regress25246_2.dart'; class ConcreteClass extends Object with MixIn {} diff --git a/tests/language_2/regress/regress25246_2.dart b/tests/language_2/regress/regress25246_2.dart index 3c91e73708b..438b9c3cee9 100644 --- a/tests/language_2/regress/regress25246_2.dart +++ b/tests/language_2/regress/regress25246_2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'regress25246_3.dart'; class MixIn { diff --git a/tests/language_2/regress/regress25246_3.dart b/tests/language_2/regress/regress25246_3.dart index ce61a2eaca9..fb781b29410 100644 --- a/tests/language_2/regress/regress25246_3.dart +++ b/tests/language_2/regress/regress25246_3.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Test3 { final fn; Test3(this.fn); diff --git a/tests/language_2/regress/regress25389_part.dart b/tests/language_2/regress/regress25389_part.dart index 254c87baca7..0117fa01eed 100644 --- a/tests/language_2/regress/regress25389_part.dart +++ b/tests/language_2/regress/regress25389_part.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of regress_25389; abstract class ComponentState> {} diff --git a/tests/language_2/regress/regress25389_test.dart b/tests/language_2/regress/regress25389_test.dart index 8a4b8827d4c..546350bbf3f 100644 --- a/tests/language_2/regress/regress25389_test.dart +++ b/tests/language_2/regress/regress25389_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_25389; part 'regress25389_part.dart'; diff --git a/tests/language_2/regress/regress25550_test.dart b/tests/language_2/regress/regress25550_test.dart index 4a8a7c5954d..d679f363430 100644 --- a/tests/language_2/regress/regress25550_test.dart +++ b/tests/language_2/regress/regress25550_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + typedef int Adder(int a, int b); class Mock { diff --git a/tests/language_2/regress/regress25568_test.dart b/tests/language_2/regress/regress25568_test.dart index 14d498672ab..7f756efee12 100644 --- a/tests/language_2/regress/regress25568_test.dart +++ b/tests/language_2/regress/regress25568_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { var c1 = new BacklogListEditorState(); var c2 = new BacklogsState(); diff --git a/tests/language_2/regress/regress25609_lib1.dart b/tests/language_2/regress/regress25609_lib1.dart index 1e9c88655a8..ae8cbfc4b31 100644 --- a/tests/language_2/regress/regress25609_lib1.dart +++ b/tests/language_2/regress/regress25609_lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_25609_lib1; import 'regress25609_lib2.dart'; diff --git a/tests/language_2/regress/regress25609_lib2.dart b/tests/language_2/regress/regress25609_lib2.dart index d51c0614cb6..bfbb2f972e9 100644 --- a/tests/language_2/regress/regress25609_lib2.dart +++ b/tests/language_2/regress/regress25609_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_25609_lib2; typedef void Bar(double x); diff --git a/tests/language_2/regress/regress25609_test.dart b/tests/language_2/regress/regress25609_test.dart index 074eca6c41b..18884dfc0f4 100644 --- a/tests/language_2/regress/regress25609_test.dart +++ b/tests/language_2/regress/regress25609_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'regress25609_lib1.dart'; Foo baz() => null; diff --git a/tests/language_2/regress/regress25620_test.dart b/tests/language_2/regress/regress25620_test.dart index ed47189c1d5..bde71a25d86 100644 --- a/tests/language_2/regress/regress25620_test.dart +++ b/tests/language_2/regress/regress25620_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; typedef Future SyncedExecutionFn(Future fn()); diff --git a/tests/language_2/regress/regress25935_test.dart b/tests/language_2/regress/regress25935_test.dart index 5b2e4e140bf..de84161a0ae 100644 --- a/tests/language_2/regress/regress25935_test.dart +++ b/tests/language_2/regress/regress25935_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { AddIssueSourceMember2 m = new AddIssueSourceMember2(); } diff --git a/tests/language_2/regress/regress26133_test.dart b/tests/language_2/regress/regress26133_test.dart index 7c657a1d573..f1d3326eff7 100644 --- a/tests/language_2/regress/regress26133_test.dart +++ b/tests/language_2/regress/regress26133_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; var x = 'a'; diff --git a/tests/language_2/regress/regress26175_test.dart b/tests/language_2/regress/regress26175_test.dart index dd7ac2a46f9..8e2dd0884b9 100644 --- a/tests/language_2/regress/regress26175_test.dart +++ b/tests/language_2/regress/regress26175_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import "package:expect/expect.dart"; diff --git a/tests/language_2/regress/regress26230_test.dart b/tests/language_2/regress/regress26230_test.dart index 77792bc4eb5..31b645d9945 100644 --- a/tests/language_2/regress/regress26230_test.dart +++ b/tests/language_2/regress/regress26230_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class _RenderTabBar extends RenderBox with ContainerRenderObjectMixin, diff --git a/tests/language_2/regress/regress26453_test.dart b/tests/language_2/regress/regress26453_test.dart index 32d6f599234..fc7b61266e3 100644 --- a/tests/language_2/regress/regress26453_test.dart +++ b/tests/language_2/regress/regress26453_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // The program crashed with segfault because we when we first compile foo // and bar we allocate all four variables (a, b, c and d) to the context. // When we compile foo the second time (with optimizations) we allocate diff --git a/tests/language_2/regress/regress26530_test.dart b/tests/language_2/regress/regress26530_test.dart index ab22638fb97..881dc049966 100644 --- a/tests/language_2/regress/regress26530_test.dart +++ b/tests/language_2/regress/regress26530_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var trace = ""; diff --git a/tests/language_2/regress/regress26543_1_test.dart b/tests/language_2/regress/regress26543_1_test.dart index 39305f67cdb..1939171f5fc 100644 --- a/tests/language_2/regress/regress26543_1_test.dart +++ b/tests/language_2/regress/regress26543_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 26543 class C { diff --git a/tests/language_2/regress/regress26543_2_test.dart b/tests/language_2/regress/regress26543_2_test.dart index ac7b5f5cc3a..ba569b201d0 100644 --- a/tests/language_2/regress/regress26543_2_test.dart +++ b/tests/language_2/regress/regress26543_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 26543 class C { diff --git a/tests/language_2/regress/regress26543_3_test.dart b/tests/language_2/regress/regress26543_3_test.dart index 91bbfa4dcfb..5ed39d20f76 100644 --- a/tests/language_2/regress/regress26543_3_test.dart +++ b/tests/language_2/regress/regress26543_3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 26543 class C { diff --git a/tests/language_2/regress/regress26668_test.dart b/tests/language_2/regress/regress26668_test.dart index 4a2945873bd..9b4b998d83f 100644 --- a/tests/language_2/regress/regress26668_test.dart +++ b/tests/language_2/regress/regress26668_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; main() async { diff --git a/tests/language_2/regress/regress26855_runtime_test.dart b/tests/language_2/regress/regress26855_runtime_test.dart index a5cc1756d44..9802c5c6742 100644 --- a/tests/language_2/regress/regress26855_runtime_test.dart +++ b/tests/language_2/regress/regress26855_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // Copyright (c) 2016, 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. diff --git a/tests/language_2/regress/regress26855_test.dart b/tests/language_2/regress/regress26855_test.dart index 889d1eeb6d3..c34f2640e18 100644 --- a/tests/language_2/regress/regress26855_test.dart +++ b/tests/language_2/regress/regress26855_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void f0(this.x) {} // ^^^^^^ // [analyzer] COMPILE_TIME_ERROR.FIELD_INITIALIZER_OUTSIDE_CONSTRUCTOR diff --git a/tests/language_2/regress/regress26948_test.dart b/tests/language_2/regress/regress26948_test.dart index c37d3f74b22..7dbd0db31c6 100644 --- a/tests/language_2/regress/regress26948_test.dart +++ b/tests/language_2/regress/regress26948_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import 'dart:async'; import "package:expect/expect.dart"; diff --git a/tests/language_2/regress/regress27164_test.dart b/tests/language_2/regress/regress27164_test.dart index a71873cc987..7b6766bd79c 100644 --- a/tests/language_2/regress/regress27164_test.dart +++ b/tests/language_2/regress/regress27164_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 27164. import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress27572_test.dart b/tests/language_2/regress/regress27572_test.dart index 398fdb9af59..9f9b037e353 100644 --- a/tests/language_2/regress/regress27572_test.dart +++ b/tests/language_2/regress/regress27572_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test has been modified and doesn't test http://dartbug.com/275272 anymore. // Static unresolved calls are not allowed anymore. diff --git a/tests/language_2/regress/regress27617_runtime_test.dart b/tests/language_2/regress/regress27617_runtime_test.dart index e75bc217962..3a1dca64b78 100644 --- a/tests/language_2/regress/regress27617_runtime_test.dart +++ b/tests/language_2/regress/regress27617_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // Copyright (c) 2016, 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. diff --git a/tests/language_2/regress/regress27617_test.dart b/tests/language_2/regress/regress27617_test.dart index fbd06e4fe47..1645a7cbfd6 100644 --- a/tests/language_2/regress/regress27617_test.dart +++ b/tests/language_2/regress/regress27617_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Foo { final String greeting; Foo._(this.greeting) {} diff --git a/tests/language_2/regress/regress27659_test.dart b/tests/language_2/regress/regress27659_test.dart index e40a8866991..06b5ac37b6f 100644 --- a/tests/language_2/regress/regress27659_test.dart +++ b/tests/language_2/regress/regress27659_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + const String lineLength = '120'; foo({lineLength: lineLength}) { diff --git a/tests/language_2/regress/regress27700_test.dart b/tests/language_2/regress/regress27700_test.dart index c5bacecdfc0..2054f700bc8 100644 --- a/tests/language_2/regress/regress27700_test.dart +++ b/tests/language_2/regress/regress27700_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 27700. main() { diff --git a/tests/language_2/regress/regress27957_lib1.dart b/tests/language_2/regress/regress27957_lib1.dart index 7a06ff38f06..e8a16e8de05 100644 --- a/tests/language_2/regress/regress27957_lib1.dart +++ b/tests/language_2/regress/regress27957_lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_27957_lib1; class Superclass { diff --git a/tests/language_2/regress/regress27957_lib2.dart b/tests/language_2/regress/regress27957_lib2.dart index 24097d09f8a..babe611831b 100644 --- a/tests/language_2/regress/regress27957_lib2.dart +++ b/tests/language_2/regress/regress27957_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_27957_lib2; class Superclass { diff --git a/tests/language_2/regress/regress27957_test.dart b/tests/language_2/regress/regress27957_test.dart index 1c5dbcdbf43..fa3fa743a98 100644 --- a/tests/language_2/regress/regress27957_test.dart +++ b/tests/language_2/regress/regress27957_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'regress27957_lib1.dart' as s1; import 'regress27957_lib2.dart' as s2; diff --git a/tests/language_2/regress/regress28217_test.dart b/tests/language_2/regress/regress28217_test.dart index a49876fad33..06fc8da727d 100644 --- a/tests/language_2/regress/regress28217_test.dart +++ b/tests/language_2/regress/regress28217_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test non-existing redirecting constructor and // redirecting to a factory constructor. diff --git a/tests/language_2/regress/regress28268_test.dart b/tests/language_2/regress/regress28268_test.dart index a2a0bd510dd..591fa94081c 100644 --- a/tests/language_2/regress/regress28268_test.dart +++ b/tests/language_2/regress/regress28268_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class E { diff --git a/tests/language_2/regress/regress28278_lib.dart b/tests/language_2/regress/regress28278_lib.dart index 0bc67f1e3b3..510109a6b72 100644 --- a/tests/language_2/regress/regress28278_lib.dart +++ b/tests/language_2/regress/regress28278_lib.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + foo(x) => x + "Hello"; diff --git a/tests/language_2/regress/regress28278_test.dart b/tests/language_2/regress/regress28278_test.dart index aaeed57c32d..0f2004fe458 100644 --- a/tests/language_2/regress/regress28278_test.dart +++ b/tests/language_2/regress/regress28278_test.dart @@ -4,6 +4,8 @@ // VMOptions=--load-deferred-eagerly // VMOptions= +// @dart = 2.9 + import "package:expect/expect.dart"; import "regress28278_lib.dart" deferred as def; diff --git a/tests/language_2/regress/regress28341_test.dart b/tests/language_2/regress/regress28341_test.dart index c43d594ca69..c15df1cce38 100644 --- a/tests/language_2/regress/regress28341_test.dart +++ b/tests/language_2/regress/regress28341_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; enum E { A } diff --git a/tests/language_2/regress/regress28498_test.dart b/tests/language_2/regress/regress28498_test.dart index 664d33b16f7..9251f025e8e 100644 --- a/tests/language_2/regress/regress28498_test.dart +++ b/tests/language_2/regress/regress28498_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // The Kernel async transformer should not skip assert statements. import 'dart:async'; diff --git a/tests/language_2/regress/regress28610_test.dart b/tests/language_2/regress/regress28610_test.dart index adefd32dcbb..b8b3755912d 100644 --- a/tests/language_2/regress/regress28610_test.dart +++ b/tests/language_2/regress/regress28610_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/regress/regress29025_test.dart b/tests/language_2/regress/regress29025_test.dart index 867d738d2dd..f9a6b8c86ba 100644 --- a/tests/language_2/regress/regress29025_test.dart +++ b/tests/language_2/regress/regress29025_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class F { T foo(T t); } diff --git a/tests/language_2/regress/regress29243_test.dart b/tests/language_2/regress/regress29243_test.dart index 60b0cb7c4ec..108ce422080 100644 --- a/tests/language_2/regress/regress29243_test.dart +++ b/tests/language_2/regress/regress29243_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int Function() x = () => 42; diff --git a/tests/language_2/regress/regress29349_test.dart b/tests/language_2/regress/regress29349_test.dart index ea91b79bd2c..d91e6befc07 100644 --- a/tests/language_2/regress/regress29349_test.dart +++ b/tests/language_2/regress/regress29349_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + List get(T item) => [item]; List get2(T item) => [item]; diff --git a/tests/language_2/regress/regress29357_test.dart b/tests/language_2/regress/regress29357_test.dart index 3777e3cc223..34efe1543fd 100644 --- a/tests/language_2/regress/regress29357_test.dart +++ b/tests/language_2/regress/regress29357_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class A> {} abstract class B> {} diff --git a/tests/language_2/regress/regress29784_runtime_test.dart b/tests/language_2/regress/regress29784_runtime_test.dart index f145ed4a04d..aa53e1657b6 100644 --- a/tests/language_2/regress/regress29784_runtime_test.dart +++ b/tests/language_2/regress/regress29784_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress29784_test.dart b/tests/language_2/regress/regress29784_test.dart index 37db686c662..4bef070fedf 100644 --- a/tests/language_2/regress/regress29784_test.dart +++ b/tests/language_2/regress/regress29784_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable_asserts // Verify that only static members can be accessed in initializers, and this diff --git a/tests/language_2/regress/regress29949_test.dart b/tests/language_2/regress/regress29949_test.dart index 8685fae643c..b3d00ca5d57 100644 --- a/tests/language_2/regress/regress29949_test.dart +++ b/tests/language_2/regress/regress29949_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class S {} abstract class M {} diff --git a/tests/language_2/regress/regress30092_test.dart b/tests/language_2/regress/regress30092_test.dart index 46ff3cdf48d..1196edbe53e 100644 --- a/tests/language_2/regress/regress30092_test.dart +++ b/tests/language_2/regress/regress30092_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class BigInt {} main() { diff --git a/tests/language_2/regress/regress30121_test.dart b/tests/language_2/regress/regress30121_test.dart index 99451f5eb0f..835ad83fda3 100644 --- a/tests/language_2/regress/regress30121_test.dart +++ b/tests/language_2/regress/regress30121_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Mock { noSuchMethod(i) {} } diff --git a/tests/language_2/regress/regress30339_test.dart b/tests/language_2/regress/regress30339_test.dart index c3a6861b0a3..a7ea7db936a 100644 --- a/tests/language_2/regress/regress30339_test.dart +++ b/tests/language_2/regress/regress30339_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress30516_test.dart b/tests/language_2/regress/regress30516_test.dart index d62e4d6ec8d..424fdd4d417 100644 --- a/tests/language_2/regress/regress30516_test.dart +++ b/tests/language_2/regress/regress30516_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + typedef void RecognizerCallback(); typedef void GestureTapCancelCallback(); GestureTapCancelCallback onTapCancel; diff --git a/tests/language_2/regress/regress30669_test.dart b/tests/language_2/regress/regress30669_test.dart index 967ee54972e..24f1ce70d1f 100644 --- a/tests/language_2/regress/regress30669_test.dart +++ b/tests/language_2/regress/regress30669_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class M { diff --git a/tests/language_2/regress/regress30927_test.dart b/tests/language_2/regress/regress30927_test.dart index dc3c9aa0d28..5cd4490e2d9 100644 --- a/tests/language_2/regress/regress30927_test.dart +++ b/tests/language_2/regress/regress30927_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class B { diff --git a/tests/language_2/regress/regress31057_test.dart b/tests/language_2/regress/regress31057_test.dart index aa443ef798a..b205976a38d 100644 --- a/tests/language_2/regress/regress31057_test.dart +++ b/tests/language_2/regress/regress31057_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--reify-generic-functions import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress31066_test.dart b/tests/language_2/regress/regress31066_test.dart index fa33f1983e7..312fd0bdeac 100644 --- a/tests/language_2/regress/regress31066_test.dart +++ b/tests/language_2/regress/regress31066_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; typedef Bar = int Function(int); diff --git a/tests/language_2/regress/regress31106_test.dart b/tests/language_2/regress/regress31106_test.dart index aa2cb71f3c3..3e431f73806 100644 --- a/tests/language_2/regress/regress31106_test.dart +++ b/tests/language_2/regress/regress31106_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void main() { diff --git a/tests/language_2/regress/regress31279_test.dart b/tests/language_2/regress/regress31279_test.dart index 57b0914378b..398a04822d7 100644 --- a/tests/language_2/regress/regress31279_test.dart +++ b/tests/language_2/regress/regress31279_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class Base { void update(void Function(Iterable) updates); void update2(void updates(Iterable iterable)); diff --git a/tests/language_2/regress/regress31436_test.dart b/tests/language_2/regress/regress31436_test.dart index eace48ff884..f151b6cc7a8 100644 --- a/tests/language_2/regress/regress31436_test.dart +++ b/tests/language_2/regress/regress31436_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void block_test() { diff --git a/tests/language_2/regress/regress31591_test.dart b/tests/language_2/regress/regress31591_test.dart index 7b09643bd5a..95564f4adc7 100644 --- a/tests/language_2/regress/regress31591_test.dart +++ b/tests/language_2/regress/regress31591_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization-counter-threshold=5 import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress31596_covariant_declaration_test.dart b/tests/language_2/regress/regress31596_covariant_declaration_test.dart index c9c9053b469..6c6297e8860 100644 --- a/tests/language_2/regress/regress31596_covariant_declaration_test.dart +++ b/tests/language_2/regress/regress31596_covariant_declaration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I0 {} class A {} diff --git a/tests/language_2/regress/regress31596_override_test.dart b/tests/language_2/regress/regress31596_override_test.dart index 592ae440957..57f9e7be935 100644 --- a/tests/language_2/regress/regress31596_override_test.dart +++ b/tests/language_2/regress/regress31596_override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I0 {} class A {} diff --git a/tests/language_2/regress/regress31596_runtime_test.dart b/tests/language_2/regress/regress31596_runtime_test.dart index c4dd7f0db19..c5d6223070e 100644 --- a/tests/language_2/regress/regress31596_runtime_test.dart +++ b/tests/language_2/regress/regress31596_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress31596_super_runtime_1_test.dart b/tests/language_2/regress/regress31596_super_runtime_1_test.dart index b3cc5e1bc5d..70d96a5ee4c 100644 --- a/tests/language_2/regress/regress31596_super_runtime_1_test.dart +++ b/tests/language_2/regress/regress31596_super_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress31596_super_runtime_2_test.dart b/tests/language_2/regress/regress31596_super_runtime_2_test.dart index ba37a8c47e0..1be51486ffb 100644 --- a/tests/language_2/regress/regress31596_super_runtime_2_test.dart +++ b/tests/language_2/regress/regress31596_super_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress31596_super_runtime_3_test.dart b/tests/language_2/regress/regress31596_super_runtime_3_test.dart index 98e9f6ecc6d..d30aa103b7b 100644 --- a/tests/language_2/regress/regress31596_super_runtime_3_test.dart +++ b/tests/language_2/regress/regress31596_super_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress31596_super_runtime_test.dart b/tests/language_2/regress/regress31596_super_runtime_test.dart index d65653ab524..f3d843432c6 100644 --- a/tests/language_2/regress/regress31596_super_runtime_test.dart +++ b/tests/language_2/regress/regress31596_super_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress31596_super_test.dart b/tests/language_2/regress/regress31596_super_test.dart index edf7e934ed3..faa166856b5 100644 --- a/tests/language_2/regress/regress31596_super_test.dart +++ b/tests/language_2/regress/regress31596_super_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class I0 {} diff --git a/tests/language_2/regress/regress31596_tearoff_test.dart b/tests/language_2/regress/regress31596_tearoff_test.dart index 035a7c7dac6..7b3a9a58b97 100644 --- a/tests/language_2/regress/regress31596_tearoff_test.dart +++ b/tests/language_2/regress/regress31596_tearoff_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/regress/regress31596_test.dart b/tests/language_2/regress/regress31596_test.dart index b70f62a1f2b..df94d093ed0 100644 --- a/tests/language_2/regress/regress31596_test.dart +++ b/tests/language_2/regress/regress31596_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/regress/regress32012_test.dart b/tests/language_2/regress/regress32012_test.dart index 3e384191c52..1cc5cc264cd 100644 --- a/tests/language_2/regress/regress32012_test.dart +++ b/tests/language_2/regress/regress32012_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class C { diff --git a/tests/language_2/regress/regress32267_test.dart b/tests/language_2/regress/regress32267_test.dart index 5180b6256b0..67f95ff4b8f 100644 --- a/tests/language_2/regress/regress32267_test.dart +++ b/tests/language_2/regress/regress32267_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // There was a bug in the Kernel mixin transformation: it copied factory // constructors from the mixin into the mixin application class. This could be // observed as an unbound type parameter which led to a crash. diff --git a/tests/language_2/regress/regress32305_test.dart b/tests/language_2/regress/regress32305_test.dart index 5943764bcd0..f86ad2c181a 100644 --- a/tests/language_2/regress/regress32305_test.dart +++ b/tests/language_2/regress/regress32305_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { int Function(int) f; diff --git a/tests/language_2/regress/regress32353_2_test.dart b/tests/language_2/regress/regress32353_2_test.dart index 19aff610c31..f4ff9308354 100644 --- a/tests/language_2/regress/regress32353_2_test.dart +++ b/tests/language_2/regress/regress32353_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // The following compile-time error is expected: // // Error: 'D' can't implement both '#lib1::B<#lib1::D::X, #lib1::D::Y>' and diff --git a/tests/language_2/regress/regress32353_test.dart b/tests/language_2/regress/regress32353_test.dart index 080d46d4b88..2b109619a2e 100644 --- a/tests/language_2/regress/regress32353_test.dart +++ b/tests/language_2/regress/regress32353_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class io_FileSystemEntity {} diff --git a/tests/language_2/regress/regress32372_test.dart b/tests/language_2/regress/regress32372_test.dart index 2ce2b424a73..89c32c36a45 100644 --- a/tests/language_2/regress/regress32372_test.dart +++ b/tests/language_2/regress/regress32372_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A extends Object with B, C {} diff --git a/tests/language_2/regress/regress32425_test.dart b/tests/language_2/regress/regress32425_test.dart index fe1993726aa..56ce6b90f1f 100644 --- a/tests/language_2/regress/regress32425_test.dart +++ b/tests/language_2/regress/regress32425_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class A {} diff --git a/tests/language_2/regress/regress32660_test.dart b/tests/language_2/regress/regress32660_test.dart index eab8d803c94..090af81ca74 100644 --- a/tests/language_2/regress/regress32660_test.dart +++ b/tests/language_2/regress/regress32660_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // noSuchMethod does not overwrite actual implementations, so if an // implemetation of a member exists that doesn't fulfill the interface it's // an error. diff --git a/tests/language_2/regress/regress33009_lib.dart b/tests/language_2/regress/regress33009_lib.dart index 28afdbbe0c9..dd695fb2576 100644 --- a/tests/language_2/regress/regress33009_lib.dart +++ b/tests/language_2/regress/regress33009_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class I { T get foo => _foo; T _foo = null; diff --git a/tests/language_2/regress/regress33009_test.dart b/tests/language_2/regress/regress33009_test.dart index f951245d57b..247fdb879c5 100644 --- a/tests/language_2/regress/regress33009_test.dart +++ b/tests/language_2/regress/regress33009_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'regress33009_lib.dart'; class A implements I { diff --git a/tests/language_2/regress/regress33235_01_runtime_test.dart b/tests/language_2/regress/regress33235_01_runtime_test.dart index 7ca47d73e65..691e16cab23 100644 --- a/tests/language_2/regress/regress33235_01_runtime_test.dart +++ b/tests/language_2/regress/regress33235_01_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_01_test.dart b/tests/language_2/regress/regress33235_01_test.dart index 29367820649..867104671af 100644 --- a/tests/language_2/regress/regress33235_01_test.dart +++ b/tests/language_2/regress/regress33235_01_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_02_runtime_test.dart b/tests/language_2/regress/regress33235_02_runtime_test.dart index 8694344fc4f..9e469cb1c3a 100644 --- a/tests/language_2/regress/regress33235_02_runtime_test.dart +++ b/tests/language_2/regress/regress33235_02_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_02_test.dart b/tests/language_2/regress/regress33235_02_test.dart index 5d9156bf65d..ea9d171ba53 100644 --- a/tests/language_2/regress/regress33235_02_test.dart +++ b/tests/language_2/regress/regress33235_02_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_03_runtime_test.dart b/tests/language_2/regress/regress33235_03_runtime_test.dart index 01801f6ac86..694f8fd7996 100644 --- a/tests/language_2/regress/regress33235_03_runtime_test.dart +++ b/tests/language_2/regress/regress33235_03_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_03_test.dart b/tests/language_2/regress/regress33235_03_test.dart index c47118d74fa..47454b6a85c 100644 --- a/tests/language_2/regress/regress33235_03_test.dart +++ b/tests/language_2/regress/regress33235_03_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_04_runtime_test.dart b/tests/language_2/regress/regress33235_04_runtime_test.dart index 56e2636545b..f49fb7029d0 100644 --- a/tests/language_2/regress/regress33235_04_runtime_test.dart +++ b/tests/language_2/regress/regress33235_04_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_04_test.dart b/tests/language_2/regress/regress33235_04_test.dart index 2214c0a4652..0e0be397c4a 100644 --- a/tests/language_2/regress/regress33235_04_test.dart +++ b/tests/language_2/regress/regress33235_04_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_05_runtime_test.dart b/tests/language_2/regress/regress33235_05_runtime_test.dart index d2d1f9dcb1a..dca942659ad 100644 --- a/tests/language_2/regress/regress33235_05_runtime_test.dart +++ b/tests/language_2/regress/regress33235_05_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_05_test.dart b/tests/language_2/regress/regress33235_05_test.dart index fa22f82d37b..b3f6068bc1f 100644 --- a/tests/language_2/regress/regress33235_05_test.dart +++ b/tests/language_2/regress/regress33235_05_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_06_runtime_test.dart b/tests/language_2/regress/regress33235_06_runtime_test.dart index 4d9123d3bdd..4dd087bb1ed 100644 --- a/tests/language_2/regress/regress33235_06_runtime_test.dart +++ b/tests/language_2/regress/regress33235_06_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_06_test.dart b/tests/language_2/regress/regress33235_06_test.dart index 3e362519af4..7df4b8a27bc 100644 --- a/tests/language_2/regress/regress33235_06_test.dart +++ b/tests/language_2/regress/regress33235_06_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_07_runtime_test.dart b/tests/language_2/regress/regress33235_07_runtime_test.dart index 1100c433adc..8effc2deb79 100644 --- a/tests/language_2/regress/regress33235_07_runtime_test.dart +++ b/tests/language_2/regress/regress33235_07_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_07_test.dart b/tests/language_2/regress/regress33235_07_test.dart index 9912e7c0606..04c9846f5aa 100644 --- a/tests/language_2/regress/regress33235_07_test.dart +++ b/tests/language_2/regress/regress33235_07_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_08_runtime_test.dart b/tests/language_2/regress/regress33235_08_runtime_test.dart index d2d1f9dcb1a..dca942659ad 100644 --- a/tests/language_2/regress/regress33235_08_runtime_test.dart +++ b/tests/language_2/regress/regress33235_08_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_08_test.dart b/tests/language_2/regress/regress33235_08_test.dart index 26aa4570fda..616cbf849dc 100644 --- a/tests/language_2/regress/regress33235_08_test.dart +++ b/tests/language_2/regress/regress33235_08_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_09_runtime_test.dart b/tests/language_2/regress/regress33235_09_runtime_test.dart index 4d9123d3bdd..4dd087bb1ed 100644 --- a/tests/language_2/regress/regress33235_09_runtime_test.dart +++ b/tests/language_2/regress/regress33235_09_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_09_test.dart b/tests/language_2/regress/regress33235_09_test.dart index 4e17aa0b771..ebb2e9aea11 100644 --- a/tests/language_2/regress/regress33235_09_test.dart +++ b/tests/language_2/regress/regress33235_09_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_10_runtime_test.dart b/tests/language_2/regress/regress33235_10_runtime_test.dart index 1100c433adc..8effc2deb79 100644 --- a/tests/language_2/regress/regress33235_10_runtime_test.dart +++ b/tests/language_2/regress/regress33235_10_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_10_test.dart b/tests/language_2/regress/regress33235_10_test.dart index cdb84e5cc74..0ee2435453f 100644 --- a/tests/language_2/regress/regress33235_10_test.dart +++ b/tests/language_2/regress/regress33235_10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_11_runtime_test.dart b/tests/language_2/regress/regress33235_11_runtime_test.dart index 56e2636545b..f49fb7029d0 100644 --- a/tests/language_2/regress/regress33235_11_runtime_test.dart +++ b/tests/language_2/regress/regress33235_11_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_11_test.dart b/tests/language_2/regress/regress33235_11_test.dart index ab32f57693f..d5cc87ad37f 100644 --- a/tests/language_2/regress/regress33235_11_test.dart +++ b/tests/language_2/regress/regress33235_11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_12_runtime_test.dart b/tests/language_2/regress/regress33235_12_runtime_test.dart index 777a91267a9..4e4ff54aaa7 100644 --- a/tests/language_2/regress/regress33235_12_runtime_test.dart +++ b/tests/language_2/regress/regress33235_12_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_12_test.dart b/tests/language_2/regress/regress33235_12_test.dart index c867285100b..2ce15bcc406 100644 --- a/tests/language_2/regress/regress33235_12_test.dart +++ b/tests/language_2/regress/regress33235_12_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_13_runtime_test.dart b/tests/language_2/regress/regress33235_13_runtime_test.dart index d5bd0716a65..a186a468c7f 100644 --- a/tests/language_2/regress/regress33235_13_runtime_test.dart +++ b/tests/language_2/regress/regress33235_13_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_13_test.dart b/tests/language_2/regress/regress33235_13_test.dart index 9369c012725..072cc273d19 100644 --- a/tests/language_2/regress/regress33235_13_test.dart +++ b/tests/language_2/regress/regress33235_13_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_14_runtime_test.dart b/tests/language_2/regress/regress33235_14_runtime_test.dart index 587deceb497..89bd3c14250 100644 --- a/tests/language_2/regress/regress33235_14_runtime_test.dart +++ b/tests/language_2/regress/regress33235_14_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_14_test.dart b/tests/language_2/regress/regress33235_14_test.dart index 0e9595e9bdf..91c5a864f63 100644 --- a/tests/language_2/regress/regress33235_14_test.dart +++ b/tests/language_2/regress/regress33235_14_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_15_runtime_test.dart b/tests/language_2/regress/regress33235_15_runtime_test.dart index 4d9123d3bdd..4dd087bb1ed 100644 --- a/tests/language_2/regress/regress33235_15_runtime_test.dart +++ b/tests/language_2/regress/regress33235_15_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_15_test.dart b/tests/language_2/regress/regress33235_15_test.dart index 0e4eb859689..01283cb770a 100644 --- a/tests/language_2/regress/regress33235_15_test.dart +++ b/tests/language_2/regress/regress33235_15_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_16_runtime_test.dart b/tests/language_2/regress/regress33235_16_runtime_test.dart index 4d9123d3bdd..4dd087bb1ed 100644 --- a/tests/language_2/regress/regress33235_16_runtime_test.dart +++ b/tests/language_2/regress/regress33235_16_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress33235_16_test.dart b/tests/language_2/regress/regress33235_16_test.dart index cd51ee44522..0bd878cf4d9 100644 --- a/tests/language_2/regress/regress33235_16_test.dart +++ b/tests/language_2/regress/regress33235_16_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_17_test.dart b/tests/language_2/regress/regress33235_17_test.dart index 95ae7d77330..a76e2a6d88d 100644 --- a/tests/language_2/regress/regress33235_17_test.dart +++ b/tests/language_2/regress/regress33235_17_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_18_test.dart b/tests/language_2/regress/regress33235_18_test.dart index ec72cb19e35..41062ca11bd 100644 --- a/tests/language_2/regress/regress33235_18_test.dart +++ b/tests/language_2/regress/regress33235_18_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_19_test.dart b/tests/language_2/regress/regress33235_19_test.dart index 999d6617a7e..85ffd63ceb0 100644 --- a/tests/language_2/regress/regress33235_19_test.dart +++ b/tests/language_2/regress/regress33235_19_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_20_test.dart b/tests/language_2/regress/regress33235_20_test.dart index d3120261465..278f50e7703 100644 --- a/tests/language_2/regress/regress33235_20_test.dart +++ b/tests/language_2/regress/regress33235_20_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33235_21_test.dart b/tests/language_2/regress/regress33235_21_test.dart index b013bcedfd7..f99b3b81784 100644 --- a/tests/language_2/regress/regress33235_21_test.dart +++ b/tests/language_2/regress/regress33235_21_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for complience with tables at // https://github.com/dart-lang/sdk/issues/33235#issue-326617285 // Files 01 to 16 should be compile time errors, files 17 to 21 should not. diff --git a/tests/language_2/regress/regress33392_test.dart b/tests/language_2/regress/regress33392_test.dart index 18e2b735644..e25a3dec3b5 100644 --- a/tests/language_2/regress/regress33392_test.dart +++ b/tests/language_2/regress/regress33392_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress33479_runtime_test.dart b/tests/language_2/regress/regress33479_runtime_test.dart index c6f47a2861a..122be212fe6 100644 --- a/tests/language_2/regress/regress33479_runtime_test.dart +++ b/tests/language_2/regress/regress33479_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + class Hest {} typedef Fisk = void Function // don't merge lines diff --git a/tests/language_2/regress/regress33479_test.dart b/tests/language_2/regress/regress33479_test.dart index a825b940c74..3e038acfd56 100644 --- a/tests/language_2/regress/regress33479_test.dart +++ b/tests/language_2/regress/regress33479_test.dart @@ -1,11 +1,13 @@ + +// @dart = 2.9 class Hest {} -// ^^^^ -// [analyzer] COMPILE_TIME_ERROR.NOT_INSTANTIATED_BOUND // ^ // [cfe] Type variables can't have generic function types in their bounds. +// ^^^^ +// [analyzer] COMPILE_TIME_ERROR.NOT_INSTANTIATED_BOUND typedef Fisk = void Function // don't merge lines -// [error line 7, column 1, length 346] +// [error line 9, column 1, length 346] // [analyzer] COMPILE_TIME_ERROR.TYPE_ALIAS_CANNOT_REFERENCE_ITSELF // ^ // [cfe] Generic type 'Fisk' can't be used without type arguments in the bounds of its own type variables. It is referenced indirectly through 'Hest'. diff --git a/tests/language_2/regress/regress34034_test.dart b/tests/language_2/regress/regress34034_test.dart index 6dd5f714bff..4df807b0d45 100644 --- a/tests/language_2/regress/regress34034_test.dart +++ b/tests/language_2/regress/regress34034_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; dynamic bar(int Function(int) f) => f; diff --git a/tests/language_2/regress/regress34091.dart b/tests/language_2/regress/regress34091.dart index 57560246db1..7e759d51cc5 100644 --- a/tests/language_2/regress/regress34091.dart +++ b/tests/language_2/regress/regress34091.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that stack traces from data URIs don't contain the entire URI, and // instead just have the substitute file name: diff --git a/tests/language_2/regress/regress34147_test.dart b/tests/language_2/regress/regress34147_test.dart index 69ac743dde2..ba74a1ae434 100644 --- a/tests/language_2/regress/regress34147_test.dart +++ b/tests/language_2/regress/regress34147_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void main() { diff --git a/tests/language_2/regress/regress34225_test.dart b/tests/language_2/regress/regress34225_test.dart index 01176729fa5..b99d904c7c6 100644 --- a/tests/language_2/regress/regress34225_test.dart +++ b/tests/language_2/regress/regress34225_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { static set C(v) {} //# 01: compile-time error set C(v) {} //# 02: compile-time error diff --git a/tests/language_2/regress/regress34235_runtime_test.dart b/tests/language_2/regress/regress34235_runtime_test.dart index 9cedc8eed84..1f8058cb137 100644 --- a/tests/language_2/regress/regress34235_runtime_test.dart +++ b/tests/language_2/regress/regress34235_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress34235_test.dart b/tests/language_2/regress/regress34235_test.dart index 7451dc5fa4a..5c199a5401d 100644 --- a/tests/language_2/regress/regress34235_test.dart +++ b/tests/language_2/regress/regress34235_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Base { void foo() {} } diff --git a/tests/language_2/regress/regress34392_test.dart b/tests/language_2/regress/regress34392_test.dart index 286d8e13474..afdb5619149 100644 --- a/tests/language_2/regress/regress34392_test.dart +++ b/tests/language_2/regress/regress34392_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class I { foo([a]); } diff --git a/tests/language_2/regress/regress34404_flutter_modified_test.dart b/tests/language_2/regress/regress34404_flutter_modified_test.dart index b78202aa07b..82be4b106bf 100644 --- a/tests/language_2/regress/regress34404_flutter_modified_test.dart +++ b/tests/language_2/regress/regress34404_flutter_modified_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test case is a reduction of some Flutter code, modified to use the new // mixin syntax. We wish to verify that the class _DismissibleState doesn't // have any type inference errors. diff --git a/tests/language_2/regress/regress34404_flutter_test.dart b/tests/language_2/regress/regress34404_flutter_test.dart index 2e71697a48c..9539112a378 100644 --- a/tests/language_2/regress/regress34404_flutter_test.dart +++ b/tests/language_2/regress/regress34404_flutter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test case is a reduction of some Flutter code. We wish to verify that // the class _DismissibleState doesn't have any type inference errors. diff --git a/tests/language_2/regress/regress34482_test.dart b/tests/language_2/regress/regress34482_test.dart index 2390497b242..187c78b562d 100644 --- a/tests/language_2/regress/regress34482_test.dart +++ b/tests/language_2/regress/regress34482_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; main() { diff --git a/tests/language_2/regress/regress34488_runtime_test.dart b/tests/language_2/regress/regress34488_runtime_test.dart index 3c3d51c7d67..b2957dfb200 100644 --- a/tests/language_2/regress/regress34488_runtime_test.dart +++ b/tests/language_2/regress/regress34488_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress34488_test.dart b/tests/language_2/regress/regress34488_test.dart index 357087cfe88..c0e40955015 100644 --- a/tests/language_2/regress/regress34488_test.dart +++ b/tests/language_2/regress/regress34488_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + abstract class Base { void f(int i); void g([int i]); diff --git a/tests/language_2/regress/regress34489_runtime_test.dart b/tests/language_2/regress/regress34489_runtime_test.dart index 8cadeed292f..c2efabadd5f 100644 --- a/tests/language_2/regress/regress34489_runtime_test.dart +++ b/tests/language_2/regress/regress34489_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress34489_test.dart b/tests/language_2/regress/regress34489_test.dart index 7fba3cb4aa9..28141dcbbc3 100644 --- a/tests/language_2/regress/regress34489_test.dart +++ b/tests/language_2/regress/regress34489_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { var field = T; } diff --git a/tests/language_2/regress/regress34495_runtime_test.dart b/tests/language_2/regress/regress34495_runtime_test.dart index f31c56d9097..3e132311da9 100644 --- a/tests/language_2/regress/regress34495_runtime_test.dart +++ b/tests/language_2/regress/regress34495_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress34495_test.dart b/tests/language_2/regress/regress34495_test.dart index 2e69b38da87..9fa3ec88679 100644 --- a/tests/language_2/regress/regress34495_test.dart +++ b/tests/language_2/regress/regress34495_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + final foo = A.foo(); // ^ // [analyzer] COMPILE_TIME_ERROR.CREATION_WITH_NON_TYPE diff --git a/tests/language_2/regress/regress34498_test.dart b/tests/language_2/regress/regress34498_test.dart index c18ad0fa815..05b3c34dc8a 100644 --- a/tests/language_2/regress/regress34498_test.dart +++ b/tests/language_2/regress/regress34498_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:core'; import 'dart:core' as core; diff --git a/tests/language_2/regress/regress34514_test.dart b/tests/language_2/regress/regress34514_test.dart index 063c5008695..8c78daa480b 100644 --- a/tests/language_2/regress/regress34514_test.dart +++ b/tests/language_2/regress/regress34514_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Inferred type should be `int` var x = (() => 1)(); diff --git a/tests/language_2/regress/regress34532_test.dart b/tests/language_2/regress/regress34532_test.dart index da30e3b9681..92908305ae1 100644 --- a/tests/language_2/regress/regress34532_test.dart +++ b/tests/language_2/regress/regress34532_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Foo {} class Bar> {} diff --git a/tests/language_2/regress/regress34635_test.dart b/tests/language_2/regress/regress34635_test.dart index 6d1c6c8302b..597ec227ec6 100644 --- a/tests/language_2/regress/regress34635_test.dart +++ b/tests/language_2/regress/regress34635_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class /*@compile-error=unspecified*/ A {} class /*@compile-error=unspecified*/ C {} diff --git a/tests/language_2/regress/regress34636_test.dart b/tests/language_2/regress/regress34636_test.dart index 242eea0680e..fb71b45482b 100644 --- a/tests/language_2/regress/regress34636_test.dart +++ b/tests/language_2/regress/regress34636_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class /*@compile-error=unspecified*/ A {} class /*@compile-error=unspecified*/ B {} diff --git a/tests/language_2/regress/regress34870_test.dart b/tests/language_2/regress/regress34870_test.dart index 750048daf2e..04a4b042d0b 100644 --- a/tests/language_2/regress/regress34870_test.dart +++ b/tests/language_2/regress/regress34870_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test: superclass is not shadowed by class members. class A extends B { diff --git a/tests/language_2/regress/regress34877_test.dart b/tests/language_2/regress/regress34877_test.dart index 08ce3d4d2d7..02e36a15149 100644 --- a/tests/language_2/regress/regress34877_test.dart +++ b/tests/language_2/regress/regress34877_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test: ensure that async for loops remain async for loops when // mixed in. diff --git a/tests/language_2/regress/regress34896_test.dart b/tests/language_2/regress/regress34896_test.dart index d7a0ea3f18b..43f38c164d9 100644 --- a/tests/language_2/regress/regress34896_test.dart +++ b/tests/language_2/regress/regress34896_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test: verify super-signatures of super-invoked methods of a // mixin against the superclass, not signatures in the mixin. diff --git a/tests/language_2/regress/regress34907_test.dart b/tests/language_2/regress/regress34907_test.dart index 85fdf2825cd..3a646bba0e7 100644 --- a/tests/language_2/regress/regress34907_test.dart +++ b/tests/language_2/regress/regress34907_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C {} diff --git a/tests/language_2/regress/regress35043_runtime_test.dart b/tests/language_2/regress/regress35043_runtime_test.dart index f31c56d9097..3e132311da9 100644 --- a/tests/language_2/regress/regress35043_runtime_test.dart +++ b/tests/language_2/regress/regress35043_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress35043_test.dart b/tests/language_2/regress/regress35043_test.dart index d8c1b7578d8..4bb870c1129 100644 --- a/tests/language_2/regress/regress35043_test.dart +++ b/tests/language_2/regress/regress35043_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + final foo = Map(); // ^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_TYPE_ARGUMENTS diff --git a/tests/language_2/regress/regress35090_test.dart b/tests/language_2/regress/regress35090_test.dart index 3e3c5647a1a..405f7640fd9 100644 --- a/tests/language_2/regress/regress35090_test.dart +++ b/tests/language_2/regress/regress35090_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/regress/regress35258_runtime_test.dart b/tests/language_2/regress/regress35258_runtime_test.dart index 480fd21b168..62bdb49baf4 100644 --- a/tests/language_2/regress/regress35258_runtime_test.dart +++ b/tests/language_2/regress/regress35258_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress35258_test.dart b/tests/language_2/regress/regress35258_test.dart index a5707b06894..e084a5c355f 100644 --- a/tests/language_2/regress/regress35258_test.dart +++ b/tests/language_2/regress/regress35258_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { new C(42); // ^ diff --git a/tests/language_2/regress/regress35259_runtime_test.dart b/tests/language_2/regress/regress35259_runtime_test.dart index cabe50a9d60..203fbf43b5b 100644 --- a/tests/language_2/regress/regress35259_runtime_test.dart +++ b/tests/language_2/regress/regress35259_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress35259_test.dart b/tests/language_2/regress/regress35259_test.dart index eb9b24cfad0..245a0e67edb 100644 --- a/tests/language_2/regress/regress35259_test.dart +++ b/tests/language_2/regress/regress35259_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Supertype { factory Supertype() = Unresolved; // ^^^^^^^^^^ diff --git a/tests/language_2/regress/regress35260_runtime_test.dart b/tests/language_2/regress/regress35260_runtime_test.dart index c15938c1873..c620ace5ab6 100644 --- a/tests/language_2/regress/regress35260_runtime_test.dart +++ b/tests/language_2/regress/regress35260_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress35260_test.dart b/tests/language_2/regress/regress35260_test.dart index 6ac594b39f2..6b1f53f4325 100644 --- a/tests/language_2/regress/regress35260_test.dart +++ b/tests/language_2/regress/regress35260_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Supertype { factory Supertype() = X; factory Supertype() = X; diff --git a/tests/language_2/regress/regress35266_runtime_test.dart b/tests/language_2/regress/regress35266_runtime_test.dart index 00ff9ca5342..36006050ab7 100644 --- a/tests/language_2/regress/regress35266_runtime_test.dart +++ b/tests/language_2/regress/regress35266_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress35266_test.dart b/tests/language_2/regress/regress35266_test.dart index 713c32899ae..bd0dab1418e 100644 --- a/tests/language_2/regress/regress35266_test.dart +++ b/tests/language_2/regress/regress35266_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class B extends C { B(); factory B.foo() = B; diff --git a/tests/language_2/regress/regress35542_test.dart b/tests/language_2/regress/regress35542_test.dart index 9b4a217ee37..434780285ae 100644 --- a/tests/language_2/regress/regress35542_test.dart +++ b/tests/language_2/regress/regress35542_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/regress/regress36084_test.dart b/tests/language_2/regress/regress36084_test.dart index d16706ea4d0..bd033ba19e4 100644 --- a/tests/language_2/regress/regress36084_test.dart +++ b/tests/language_2/regress/regress36084_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/regress/regress3806_test.dart b/tests/language_2/regress/regress3806_test.dart index 16cfa135446..3fd3fa98d04 100644 --- a/tests/language_2/regress/regress3806_test.dart +++ b/tests/language_2/regress/regress3806_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart2js produced a statement in an expression context for this test. class A { diff --git a/tests/language_2/regress/regress38816_test.dart b/tests/language_2/regress/regress38816_test.dart index 840e082f549..663e5c5b6dd 100644 --- a/tests/language_2/regress/regress38816_test.dart +++ b/tests/language_2/regress/regress38816_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void foo(T x) {} diff --git a/tests/language_2/regress/regress40066_test.dart b/tests/language_2/regress/regress40066_test.dart index caa08a49789..8cc91285168 100644 --- a/tests/language_2/regress/regress40066_test.dart +++ b/tests/language_2/regress/regress40066_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/regress/regress40765_test.dart b/tests/language_2/regress/regress40765_test.dart index 711cf1087ae..6037c00fc2d 100644 --- a/tests/language_2/regress/regress40765_test.dart +++ b/tests/language_2/regress/regress40765_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Something { final int x; Something({this.x}); diff --git a/tests/language_2/regress/regress4157508_test.dart b/tests/language_2/regress/regress4157508_test.dart index af08c9d3359..a2bd1110795 100644 --- a/tests/language_2/regress/regress4157508_test.dart +++ b/tests/language_2/regress/regress4157508_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Issue4157508Test { Issue4157508Test(var v) { var d = new DateTime.fromMillisecondsSinceEpoch(v, isUtc: true); diff --git a/tests/language_2/regress/regress41613_test.dart b/tests/language_2/regress/regress41613_test.dart index 5c31ecbaee3..91dbfd4f0e1 100644 --- a/tests/language_2/regress/regress41613_test.dart +++ b/tests/language_2/regress/regress41613_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/regress/regress41983_test.dart b/tests/language_2/regress/regress41983_test.dart index 87f95193067..12970c96fec 100644 --- a/tests/language_2/regress/regress41983_test.dart +++ b/tests/language_2/regress/regress41983_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/regress/regress42946_test.dart b/tests/language_2/regress/regress42946_test.dart index 008793f4a80..2092115819f 100644 --- a/tests/language_2/regress/regress42946_test.dart +++ b/tests/language_2/regress/regress42946_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; /// https://github.com/dart-lang/sdk/issues/42946 diff --git a/tests/language_2/regress/regress4295001_test.dart b/tests/language_2/regress/regress4295001_test.dart index 5e42348b5c1..d8719c9752f 100644 --- a/tests/language_2/regress/regress4295001_test.dart +++ b/tests/language_2/regress/regress4295001_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Issue4295001Test { String foo; Issue4295001Test(String s) : this.foo = s { diff --git a/tests/language_2/regress/regress42954_test.dart b/tests/language_2/regress/regress42954_test.dart index 93c5d2b62ec..c201abe6039 100644 --- a/tests/language_2/regress/regress42954_test.dart +++ b/tests/language_2/regress/regress42954_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/regress/regress44136_test.dart b/tests/language_2/regress/regress44136_test.dart index 8478fc5d974..6607e6a43fc 100644 --- a/tests/language_2/regress/regress44136_test.dart +++ b/tests/language_2/regress/regress44136_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; typedef Foo = void Function(); diff --git a/tests/language_2/regress/regress45060_test.dart b/tests/language_2/regress/regress45060_test.dart index 16815800469..e1e6e322853 100644 --- a/tests/language_2/regress/regress45060_test.dart +++ b/tests/language_2/regress/regress45060_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/regress/regress4515170_test.dart b/tests/language_2/regress/regress4515170_test.dart index b187204cf2a..9b8f70c0420 100644 --- a/tests/language_2/regress/regress4515170_test.dart +++ b/tests/language_2/regress/regress4515170_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Issue4515170Test { diff --git a/tests/language_2/regress/regress45428_test.dart b/tests/language_2/regress/regress45428_test.dart index 37c1427c852..115321d9f94 100644 --- a/tests/language_2/regress/regress45428_test.dart +++ b/tests/language_2/regress/regress45428_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void something(List l) { diff --git a/tests/language_2/regress/regress45642_test.dart b/tests/language_2/regress/regress45642_test.dart index 9222e1342a2..0ca83ea2ff2 100644 --- a/tests/language_2/regress/regress45642_test.dart +++ b/tests/language_2/regress/regress45642_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Utils { static final foo = Foo(() {}); } diff --git a/tests/language_2/regress/regress65278_test.dart b/tests/language_2/regress/regress65278_test.dart index 9edf22c9b3e..71d879d538a 100644 --- a/tests/language_2/regress/regress65278_test.dart +++ b/tests/language_2/regress/regress65278_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { ContentTabsWidget(); } diff --git a/tests/language_2/regress/regress6725_part.dart b/tests/language_2/regress/regress6725_part.dart index 86878375b27..7ea55714d1e 100644 --- a/tests/language_2/regress/regress6725_part.dart +++ b/tests/language_2/regress/regress6725_part.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for a crash in dart2js. part of crash_6725; diff --git a/tests/language_2/regress/regress6725_runtime_test.dart b/tests/language_2/regress/regress6725_runtime_test.dart index 6b07ac0027e..28aa582131e 100644 --- a/tests/language_2/regress/regress6725_runtime_test.dart +++ b/tests/language_2/regress/regress6725_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/regress/regress6725_test.dart b/tests/language_2/regress/regress6725_test.dart index 96df166047b..3e2abe3049e 100644 --- a/tests/language_2/regress/regress6725_test.dart +++ b/tests/language_2/regress/regress6725_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for a crash in dart2js. library crash_6725; diff --git a/tests/language_2/regress/regress7513_test.dart b/tests/language_2/regress/regress7513_test.dart index 5df021b9dcd..bda6041a370 100644 --- a/tests/language_2/regress/regress7513_test.dart +++ b/tests/language_2/regress/regress7513_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Regression test for issue 7513. diff --git a/tests/language_2/regress/regress7525_test.dart b/tests/language_2/regress/regress7525_test.dart index c7fe3771229..8f724f05bc6 100644 --- a/tests/language_2/regress/regress7525_test.dart +++ b/tests/language_2/regress/regress7525_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Regression test for issue 7525. diff --git a/tests/language_2/regress/regress9602_other.dart b/tests/language_2/regress/regress9602_other.dart index a189b7759b4..9d5380cad3a 100644 --- a/tests/language_2/regress/regress9602_other.dart +++ b/tests/language_2/regress/regress9602_other.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test case for http://dartbug.com/9602 library issue9602_other; diff --git a/tests/language_2/regress/regress9602_test.dart b/tests/language_2/regress/regress9602_test.dart index 8900388303c..a658b686ab7 100644 --- a/tests/language_2/regress/regress9602_test.dart +++ b/tests/language_2/regress/regress9602_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test case for http://dartbug.com/9602 library issue9602; diff --git a/tests/language_2/regress/regress9664_test.dart b/tests/language_2/regress/regress9664_test.dart index b8b3c2db6b6..5265d17cb73 100644 --- a/tests/language_2/regress/regress9664_test.dart +++ b/tests/language_2/regress/regress9664_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for http://dartbug.com/9664 main() { diff --git a/tests/language_2/regress/regress9687_test.dart b/tests/language_2/regress/regress9687_test.dart index 5b08b79c51f..f79e3155e4e 100644 --- a/tests/language_2/regress/regress9687_test.dart +++ b/tests/language_2/regress/regress9687_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js code generation in checked mode. See // last part of https://code.google.com/p/dart/issues/detail?id=9687. diff --git a/tests/language_2/regress/regress9939_test.dart b/tests/language_2/regress/regress9939_test.dart index 1a3c705128d..c36b709ca1f 100644 --- a/tests/language_2/regress/regress9939_test.dart +++ b/tests/language_2/regress/regress9939_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // dart2js was generating incorrect code for the [A] constructor, by // using a temporary variable for two instructions, even though they // are both live at the same time. diff --git a/tests/language_2/regress/regress9949_test.dart b/tests/language_2/regress/regress9949_test.dart index 38ff6edb07e..0054039ee3e 100644 --- a/tests/language_2/regress/regress9949_test.dart +++ b/tests/language_2/regress/regress9949_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to crash in the presence of a // super constructor declared external. diff --git a/tests/language_2/resolution/resolution_test.dart b/tests/language_2/resolution/resolution_test.dart index e9c1dc75551..917765a06ff 100644 --- a/tests/language_2/resolution/resolution_test.dart +++ b/tests/language_2/resolution/resolution_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int get foo => 499; diff --git a/tests/language_2/resolution/resolve_test.dart b/tests/language_2/resolution/resolve_test.dart index 6cc392caaa7..e3ce6ce7f0e 100644 --- a/tests/language_2/resolution/resolve_test.dart +++ b/tests/language_2/resolution/resolve_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing resolving of dynamic and static calls. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/resolution/unqual_name_test.dart b/tests/language_2/resolution/unqual_name_test.dart index d4c8d48664e..d31af19b455 100644 --- a/tests/language_2/resolution/unqual_name_test.dart +++ b/tests/language_2/resolution/unqual_name_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to check that we can resolve unqualified identifiers +// @dart = 2.9 + import "package:expect/expect.dart"; class B { diff --git a/tests/language_2/return/in_loop_test.dart b/tests/language_2/return/in_loop_test.dart index ebf100dade5..e664dd2d806 100644 --- a/tests/language_2/return/in_loop_test.dart +++ b/tests/language_2/return/in_loop_test.dart @@ -4,6 +4,8 @@ // Test for a dart2js bug where the live environment was not computed // right. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/return/skip_expression_test.dart b/tests/language_2/return/skip_expression_test.dart index a035fdacf09..09c83cd4e8c 100644 --- a/tests/language_2/return/skip_expression_test.dart +++ b/tests/language_2/return/skip_expression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class OneArg { diff --git a/tests/language_2/return/this_type_test.dart b/tests/language_2/return/this_type_test.dart index 8187b76ea8d..95d5f0121a4 100644 --- a/tests/language_2/return/this_type_test.dart +++ b/tests/language_2/return/this_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Make sure the engine does not infer the wrong type for [:A.foo:]. import "package:expect/expect.dart"; diff --git a/tests/language_2/return/type_test.dart b/tests/language_2/return/type_test.dart index 99060b5385a..1ca6c56f5be 100644 --- a/tests/language_2/return/type_test.dart +++ b/tests/language_2/return/type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int returnString1() => 's'; /*@compile-error=unspecified*/ diff --git a/tests/language_2/rewrite/assign_test.dart b/tests/language_2/rewrite/assign_test.dart index 2a51f683f65..7d9c90f9512 100644 --- a/tests/language_2/rewrite/assign_test.dart +++ b/tests/language_2/rewrite/assign_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; bar(x, y) {} diff --git a/tests/language_2/rewrite/compound_assign_test.dart b/tests/language_2/rewrite/compound_assign_test.dart index ba4c1efad26..ca1e634e9d2 100644 --- a/tests/language_2/rewrite/compound_assign_test.dart +++ b/tests/language_2/rewrite/compound_assign_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var global = 0; diff --git a/tests/language_2/rewrite/conditional_test.dart b/tests/language_2/rewrite/conditional_test.dart index 4e984753a3f..fb5b6b1220d 100644 --- a/tests/language_2/rewrite/conditional_test.dart +++ b/tests/language_2/rewrite/conditional_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; var global = 0; diff --git a/tests/language_2/rewrite/for_update_order_test.dart b/tests/language_2/rewrite/for_update_order_test.dart index ebdbbb146ab..d6f6ffc0ed3 100644 --- a/tests/language_2/rewrite/for_update_order_test.dart +++ b/tests/language_2/rewrite/for_update_order_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var counter = 0; diff --git a/tests/language_2/rewrite/if_empty_then_test.dart b/tests/language_2/rewrite/if_empty_then_test.dart index 908b49685bb..fb7dfab3d35 100644 --- a/tests/language_2/rewrite/if_empty_then_test.dart +++ b/tests/language_2/rewrite/if_empty_then_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var global = 0; diff --git a/tests/language_2/rewrite/if_return_test.dart b/tests/language_2/rewrite/if_return_test.dart index 3c576052d91..10f3af8b838 100644 --- a/tests/language_2/rewrite/if_return_test.dart +++ b/tests/language_2/rewrite/if_return_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var global = 0; diff --git a/tests/language_2/rewrite/if_swap_test.dart b/tests/language_2/rewrite/if_swap_test.dart index fbde4926472..ad4e2cf85bf 100644 --- a/tests/language_2/rewrite/if_swap_test.dart +++ b/tests/language_2/rewrite/if_swap_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var global = 0; diff --git a/tests/language_2/rewrite/implicit_this_runtime_test.dart b/tests/language_2/rewrite/implicit_this_runtime_test.dart index 7fd2b78f594..b2afcbe925e 100644 --- a/tests/language_2/rewrite/implicit_this_runtime_test.dart +++ b/tests/language_2/rewrite/implicit_this_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/rewrite/implicit_this_test.dart b/tests/language_2/rewrite/implicit_this_test.dart index 28adbcf3843..005fe1794b8 100644 --- a/tests/language_2/rewrite/implicit_this_test.dart +++ b/tests/language_2/rewrite/implicit_this_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; String toplevel = 'A'; diff --git a/tests/language_2/rewrite/logical_test.dart b/tests/language_2/rewrite/logical_test.dart index 4fc40609e57..e423b40eb99 100644 --- a/tests/language_2/rewrite/logical_test.dart +++ b/tests/language_2/rewrite/logical_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; cneg_and(x, y) { diff --git a/tests/language_2/rewrite/nested_if1_test.dart b/tests/language_2/rewrite/nested_if1_test.dart index d86cc55bd43..8c6031e6517 100644 --- a/tests/language_2/rewrite/nested_if1_test.dart +++ b/tests/language_2/rewrite/nested_if1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; var global; diff --git a/tests/language_2/rewrite/nested_if2_test.dart b/tests/language_2/rewrite/nested_if2_test.dart index 2a71680e3ed..a91eb77d90c 100644 --- a/tests/language_2/rewrite/nested_if2_test.dart +++ b/tests/language_2/rewrite/nested_if2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; check_true_true(x, y) { diff --git a/tests/language_2/rewrite/nested_if3_test.dart b/tests/language_2/rewrite/nested_if3_test.dart index b985df8025e..f59ea1345cc 100644 --- a/tests/language_2/rewrite/nested_if3_test.dart +++ b/tests/language_2/rewrite/nested_if3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; baz() {} diff --git a/tests/language_2/rewrite/swap_test.dart b/tests/language_2/rewrite/swap_test.dart index 5c6d1159c08..133b7fb4485 100644 --- a/tests/language_2/rewrite/swap_test.dart +++ b/tests/language_2/rewrite/swap_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; swap1(x, y, b) { diff --git a/tests/language_2/rewrite/variable_initializer_test.dart b/tests/language_2/rewrite/variable_initializer_test.dart index 75de2d06ffe..d1a04a0ff56 100644 --- a/tests/language_2/rewrite/variable_initializer_test.dart +++ b/tests/language_2/rewrite/variable_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Foo { diff --git a/tests/language_2/rewrite/while_many_exits_test.dart b/tests/language_2/rewrite/while_many_exits_test.dart index f3aa5237ea9..9da72d55adb 100644 --- a/tests/language_2/rewrite/while_many_exits_test.dart +++ b/tests/language_2/rewrite/while_many_exits_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var baz_clicks = 0; diff --git a/tests/language_2/rewrite/while_test.dart b/tests/language_2/rewrite/while_test.dart index c773ee0b67d..60c2a9abe50 100644 --- a/tests/language_2/rewrite/while_test.dart +++ b/tests/language_2/rewrite/while_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; baz() {} diff --git a/tests/language_2/script/lib.dart b/tests/language_2/script/lib.dart index eafca269e63..605efd955d3 100644 --- a/tests/language_2/script/lib.dart +++ b/tests/language_2/script/lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A perfectly legal dart library for use with script and library tests. library ScriptLib; diff --git a/tests/language_2/script/script1_lib.dart b/tests/language_2/script/script1_lib.dart index 525b2cae0b8..b83de63edae 100644 --- a/tests/language_2/script/script1_lib.dart +++ b/tests/language_2/script/script1_lib.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + int ok = 1; diff --git a/tests/language_2/script/script1_part.dart b/tests/language_2/script/script1_part.dart index 15bd30db841..ee9a8f9f856 100644 --- a/tests/language_2/script/script1_part.dart +++ b/tests/language_2/script/script1_part.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of "script1_test.dart"; const int scriptPart = 1; diff --git a/tests/language_2/script/script1_test.dart b/tests/language_2/script/script1_test.dart index 8d714e97309..9c3f05bda84 100644 --- a/tests/language_2/script/script1_test.dart +++ b/tests/language_2/script/script1_test.dart @@ -2,11 +2,13 @@ // 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 = 2.9 + /// Wrong order of import and part directives. part "script1_part.dart"; import "script1_lib.dart"; -// [error line 8, column 1, length 6] +// [error line 10, column 1, length 6] // [analyzer] SYNTACTIC_ERROR.IMPORT_DIRECTIVE_AFTER_PART_DIRECTIVE // [cfe] Import directives must precede part directives. diff --git a/tests/language_2/script/script2_part.dart b/tests/language_2/script/script2_part.dart index e48f121086f..3d52c097e66 100644 --- a/tests/language_2/script/script2_part.dart +++ b/tests/language_2/script/script2_part.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library Script2Part; import "lib.dart"; diff --git a/tests/language_2/script/script2_test.dart b/tests/language_2/script/script2_test.dart index 7ab83970853..692fb351bf4 100644 --- a/tests/language_2/script/script2_test.dart +++ b/tests/language_2/script/script2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Part file has library and import directives. /*@compile-error=unspecified*/ diff --git a/tests/language_2/script/source.dart b/tests/language_2/script/source.dart index 44f0d3464fc..b9861c7d494 100644 --- a/tests/language_2/script/source.dart +++ b/tests/language_2/script/source.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A perfectly legal dart source file for use with script and library tests. const int script_source = 1; diff --git a/tests/language_2/set_literals/big_set_literal_test.dart b/tests/language_2/set_literals/big_set_literal_test.dart index e06e3571e73..e1721baf432 100644 --- a/tests/language_2/set_literals/big_set_literal_test.dart +++ b/tests/language_2/set_literals/big_set_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/set_literals/const_big_set_literal_test.dart b/tests/language_2/set_literals/const_big_set_literal_test.dart index f2cb67dc473..9a4a9b053a6 100644 --- a/tests/language_2/set_literals/const_big_set_literal_test.dart +++ b/tests/language_2/set_literals/const_big_set_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/set_literals/const_set_literal_test.dart b/tests/language_2/set_literals/const_set_literal_test.dart index 7b3cce2931e..8b1bba983de 100644 --- a/tests/language_2/set_literals/const_set_literal_test.dart +++ b/tests/language_2/set_literals/const_set_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import "package:expect/expect.dart"; diff --git a/tests/language_2/set_literals/in_annotations_test.dart b/tests/language_2/set_literals/in_annotations_test.dart index 5dca8c39071..2e1547e3e23 100644 --- a/tests/language_2/set_literals/in_annotations_test.dart +++ b/tests/language_2/set_literals/in_annotations_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @Meta({}) import 'dart:core'; diff --git a/tests/language_2/set_literals/in_initializer_test.dart b/tests/language_2/set_literals/in_initializer_test.dart index 04cc2d88388..24583158bc1 100644 --- a/tests/language_2/set_literals/in_initializer_test.dart +++ b/tests/language_2/set_literals/in_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Bag { final Set things; Bag({Set things}) : this.things = things ?? {}; diff --git a/tests/language_2/set_literals/invalid_set_literal_test.dart b/tests/language_2/set_literals/invalid_set_literal_test.dart index 5a891e080a6..54c63dc360a 100644 --- a/tests/language_2/set_literals/invalid_set_literal_test.dart +++ b/tests/language_2/set_literals/invalid_set_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection" show HashSet, LinkedHashSet; import "package:expect/expect.dart"; diff --git a/tests/language_2/set_literals/set_literal_test.dart b/tests/language_2/set_literals/set_literal_test.dart index 3cb57c01b51..c11ce5afe45 100644 --- a/tests/language_2/set_literals/set_literal_test.dart +++ b/tests/language_2/set_literals/set_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import "dart:collection" show LinkedHashSet; diff --git a/tests/language_2/setter/checked2_test.dart b/tests/language_2/setter/checked2_test.dart index 8ce8a499a32..29d91633390 100644 --- a/tests/language_2/setter/checked2_test.dart +++ b/tests/language_2/setter/checked2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that implicit setters do a type check generic types. import "package:expect/expect.dart"; diff --git a/tests/language_2/setter/checked3_test.dart b/tests/language_2/setter/checked3_test.dart index 4b3ee82f57d..37a591754db 100644 --- a/tests/language_2/setter/checked3_test.dart +++ b/tests/language_2/setter/checked3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/setter/checked_setter_test.dart b/tests/language_2/setter/checked_setter_test.dart index 6c0fefa3163..41b8b64cc77 100644 --- a/tests/language_2/setter/checked_setter_test.dart +++ b/tests/language_2/setter/checked_setter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that implicit setters do a runtime type check. import "package:expect/expect.dart"; diff --git a/tests/language_2/setter/declaration_test.dart b/tests/language_2/setter/declaration_test.dart index 84893b0a0af..10603f438fc 100644 --- a/tests/language_2/setter/declaration_test.dart +++ b/tests/language_2/setter/declaration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a setter has a single argument. import 'dart:async'; diff --git a/tests/language_2/setter/no_getter_call_runtime_test.dart b/tests/language_2/setter/no_getter_call_runtime_test.dart index d243de3dd1a..77dafc69386 100644 --- a/tests/language_2/setter/no_getter_call_runtime_test.dart +++ b/tests/language_2/setter/no_getter_call_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/setter/no_getter_call_test.dart b/tests/language_2/setter/no_getter_call_test.dart index a49d8e4c5bb..a93f33be8e5 100644 --- a/tests/language_2/setter/no_getter_call_test.dart +++ b/tests/language_2/setter/no_getter_call_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var topLevelClosure; diff --git a/tests/language_2/setter/no_getter_test.dart b/tests/language_2/setter/no_getter_test.dart index 53c8b58ba73..cf9cd233b69 100644 --- a/tests/language_2/setter/no_getter_test.dart +++ b/tests/language_2/setter/no_getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + set topLevel(var value) {} class Example { diff --git a/tests/language_2/setter/override2_test.dart b/tests/language_2/setter/override2_test.dart index 80902b745d5..78fcdddedf5 100644 --- a/tests/language_2/setter/override2_test.dart +++ b/tests/language_2/setter/override2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we do not report a compile-time error when an instance setter named // foo= is declared in a class inheriting an instance method, field, or getter // named foo, or an instance setter named foo=. diff --git a/tests/language_2/setter/override3_test.dart b/tests/language_2/setter/override3_test.dart index bb00cf63678..263c48a158d 100644 --- a/tests/language_2/setter/override3_test.dart +++ b/tests/language_2/setter/override3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that a setter in a subclass does not shadow the getter in the // superclass. import "package:expect/expect.dart"; diff --git a/tests/language_2/setter/override_test.dart b/tests/language_2/setter/override_test.dart index 88d7402e41a..8a3ad48abe3 100644 --- a/tests/language_2/setter/override_test.dart +++ b/tests/language_2/setter/override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we do not report a compile-time error when a static setter named // foo= is declared in a class inheriting an instance method or getter named // foo, and that we do report an error if an instance setter named foo= or diff --git a/tests/language_2/setter/setter0_test.dart b/tests/language_2/setter/setter0_test.dart index 5b8f4907809..63465b5a3d2 100644 --- a/tests/language_2/setter/setter0_test.dart +++ b/tests/language_2/setter/setter0_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing setting/getting of fields when // only getter/setter methods are specified. +// @dart = 2.9 + import "package:expect/expect.dart"; class First { diff --git a/tests/language_2/setter/setter1_test.dart b/tests/language_2/setter/setter1_test.dart index ffcb9e01acb..1b29c437d6b 100644 --- a/tests/language_2/setter/setter1_test.dart +++ b/tests/language_2/setter/setter1_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing setting/getting of fields when // only getter/setter methods are specified. +// @dart = 2.9 + import "package:expect/expect.dart"; class First { diff --git a/tests/language_2/setter/setter2_test.dart b/tests/language_2/setter/setter2_test.dart index aa28e87cc4d..ca3a7c92171 100644 --- a/tests/language_2/setter/setter2_test.dart +++ b/tests/language_2/setter/setter2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing use of 'this' in an instance method. +// @dart = 2.9 + import "package:expect/expect.dart"; class Nested { diff --git a/tests/language_2/setter/setter3_runtime_test.dart b/tests/language_2/setter/setter3_runtime_test.dart index 42d3d746251..6d4053cb1e0 100644 --- a/tests/language_2/setter/setter3_runtime_test.dart +++ b/tests/language_2/setter/setter3_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/setter/setter3_test.dart b/tests/language_2/setter/setter3_test.dart index 59a6a7e732e..714ecf1e802 100644 --- a/tests/language_2/setter/setter3_test.dart +++ b/tests/language_2/setter/setter3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that setters cannot have defined, non-void return types. // Note: The language specification specifies the absence of a type means // it is dynamic, however you cannot specify dynamic. diff --git a/tests/language_2/setter/setter4_test.dart b/tests/language_2/setter/setter4_test.dart index 182cd86834b..bd3a3d83d04 100644 --- a/tests/language_2/setter/setter4_test.dart +++ b/tests/language_2/setter/setter4_test.dart @@ -4,6 +4,8 @@ // Dart test to catch error reporting bugs in class fields declarations. // Should be an error because we have a setter overriding a function name. +// @dart = 2.9 + class A { int a() { return 1; diff --git a/tests/language_2/spread_collections/await_test.dart b/tests/language_2/spread_collections/await_test.dart index 866e1c4c7b0..8dfba8a04a9 100644 --- a/tests/language_2/spread_collections/await_test.dart +++ b/tests/language_2/spread_collections/await_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:async_helper/async_helper.dart"; import 'package:expect/expect.dart'; diff --git a/tests/language_2/spread_collections/bind_test.dart b/tests/language_2/spread_collections/bind_test.dart index 8619008ccc5..85b7ea682f5 100644 --- a/tests/language_2/spread_collections/bind_test.dart +++ b/tests/language_2/spread_collections/bind_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Check that spread collections can be used in combination with async/await features. /// This is a regression test for http://dartbug.com/38896 diff --git a/tests/language_2/spread_collections/const_error_test.dart b/tests/language_2/spread_collections/const_error_test.dart index e9fcfd2014d..1a0a43ed647 100644 --- a/tests/language_2/spread_collections/const_error_test.dart +++ b/tests/language_2/spread_collections/const_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import 'helper_classes.dart'; diff --git a/tests/language_2/spread_collections/const_test.dart b/tests/language_2/spread_collections/const_test.dart index a29b60746ff..4e7eb8f31aa 100644 --- a/tests/language_2/spread_collections/const_test.dart +++ b/tests/language_2/spread_collections/const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; // Typed as dynamic to also test spreading a value of type dynamic. diff --git a/tests/language_2/spread_collections/helper_classes.dart b/tests/language_2/spread_collections/helper_classes.dart index 9c35975a53b..d888fc17b57 100644 --- a/tests/language_2/spread_collections/helper_classes.dart +++ b/tests/language_2/spread_collections/helper_classes.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; class ConstIterable extends IterableBase { diff --git a/tests/language_2/spread_collections/inference_test.dart b/tests/language_2/spread_collections/inference_test.dart index c0dff363b47..53d598df2fb 100644 --- a/tests/language_2/spread_collections/inference_test.dart +++ b/tests/language_2/spread_collections/inference_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test how spread interacts with inference. import 'package:expect/expect.dart'; diff --git a/tests/language_2/spread_collections/issue_45174_error_test.dart b/tests/language_2/spread_collections/issue_45174_error_test.dart index d9a24ce1b6c..e29c3f61de0 100644 --- a/tests/language_2/spread_collections/issue_45174_error_test.dart +++ b/tests/language_2/spread_collections/issue_45174_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + f(Object objectQuestion) { return {...{}, ...objectQuestion}; // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ diff --git a/tests/language_2/spread_collections/map_set_ambiguity_error_test.dart b/tests/language_2/spread_collections/map_set_ambiguity_error_test.dart index 00f40a8656d..fa4bcac8230 100644 --- a/tests/language_2/spread_collections/map_set_ambiguity_error_test.dart +++ b/tests/language_2/spread_collections/map_set_ambiguity_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test cases where the syntax is ambiguous between maps and sets. import 'dart:collection'; diff --git a/tests/language_2/spread_collections/map_set_ambiguity_test.dart b/tests/language_2/spread_collections/map_set_ambiguity_test.dart index 11345ea1694..29b54699e71 100644 --- a/tests/language_2/spread_collections/map_set_ambiguity_test.dart +++ b/tests/language_2/spread_collections/map_set_ambiguity_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test cases where the syntax is ambiguous between maps and sets. import 'dart:collection'; diff --git a/tests/language_2/spread_collections/runtime_error_test.dart b/tests/language_2/spread_collections/runtime_error_test.dart index d133b0406d0..4f6eff30bbb 100644 --- a/tests/language_2/spread_collections/runtime_error_test.dart +++ b/tests/language_2/spread_collections/runtime_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; // Typed as dynamic to also test spreading a value of type dynamic. diff --git a/tests/language_2/spread_collections/spread_test.dart b/tests/language_2/spread_collections/spread_test.dart index 1be718596c7..ecf7bd83948 100644 --- a/tests/language_2/spread_collections/spread_test.dart +++ b/tests/language_2/spread_collections/spread_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'helper_classes.dart'; diff --git a/tests/language_2/spread_collections/syntax_error_test.dart b/tests/language_2/spread_collections/syntax_error_test.dart index 825e5dd2268..4d9e36dc169 100644 --- a/tests/language_2/spread_collections/syntax_error_test.dart +++ b/tests/language_2/spread_collections/syntax_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { // Spread nothing. var _ = [...]; //# 00: syntax error diff --git a/tests/language_2/spread_collections/syntax_test.dart b/tests/language_2/spread_collections/syntax_test.dart index 376db0d6911..94d83d205bd 100644 --- a/tests/language_2/spread_collections/syntax_test.dart +++ b/tests/language_2/spread_collections/syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests syntax edge cases. import 'package:expect/expect.dart'; diff --git a/tests/language_2/spread_collections/type_error_test.dart b/tests/language_2/spread_collections/type_error_test.dart index 05e9e5b2254..64bcb238704 100644 --- a/tests/language_2/spread_collections/type_error_test.dart +++ b/tests/language_2/spread_collections/type_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { // Spread non-iterable or non-map. var _ = [...(3)]; //# 00: compile-time error diff --git a/tests/language_2/spread_collections/unevaluated_test.dart b/tests/language_2/spread_collections/unevaluated_test.dart index 62af46ff885..3be94c49b8f 100644 --- a/tests/language_2/spread_collections/unevaluated_test.dart +++ b/tests/language_2/spread_collections/unevaluated_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that the body of an if element with unevaluated condition can // contain a spread. // Regression test for https://github.com/dart-lang/sdk/issues/36812 diff --git a/tests/language_2/stack_trace/custom_await_test.dart b/tests/language_2/stack_trace/custom_await_test.dart index 0790fb1f209..ea57a062ba4 100644 --- a/tests/language_2/stack_trace/custom_await_test.dart +++ b/tests/language_2/stack_trace/custom_await_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/language_2/stack_trace/demangle_ctors_test.dart b/tests/language_2/stack_trace/demangle_ctors_test.dart index 697ed127675..714fc095bb6 100644 --- a/tests/language_2/stack_trace/demangle_ctors_test.dart +++ b/tests/language_2/stack_trace/demangle_ctors_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that stack traces are properly demangled in constructors (#28740). import "package:expect/expect.dart"; diff --git a/tests/language_2/stack_trace/error_runtime_test.dart b/tests/language_2/stack_trace/error_runtime_test.dart index 4f6b1520a46..b91bf26a2c0 100644 --- a/tests/language_2/stack_trace/error_runtime_test.dart +++ b/tests/language_2/stack_trace/error_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/stack_trace/full1_test.dart b/tests/language_2/stack_trace/full1_test.dart index 42963f2bf0d..e00620009f1 100644 --- a/tests/language_2/stack_trace/full1_test.dart +++ b/tests/language_2/stack_trace/full1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; @pragma("vm:entry-point") // Prevents obfuscation diff --git a/tests/language_2/stack_trace/full2_test.dart b/tests/language_2/stack_trace/full2_test.dart index fc15d540260..4b1dbe30ca5 100644 --- a/tests/language_2/stack_trace/full2_test.dart +++ b/tests/language_2/stack_trace/full2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; @pragma("vm:entry-point") // Prevent obfuscation. diff --git a/tests/language_2/stack_trace/full3_test.dart b/tests/language_2/stack_trace/full3_test.dart index f6b28a3e657..ee621b2f0db 100644 --- a/tests/language_2/stack_trace/full3_test.dart +++ b/tests/language_2/stack_trace/full3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; @pragma("vm:entry-point") // Prevent obfuscation diff --git a/tests/language_2/stack_trace/rethrow_error_test.dart b/tests/language_2/stack_trace/rethrow_error_test.dart index 4cdbaa689f5..211e186aeea 100644 --- a/tests/language_2/stack_trace/rethrow_error_test.dart +++ b/tests/language_2/stack_trace/rethrow_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class SubclassOfError extends Error {} fail() => throw "Fail"; diff --git a/tests/language_2/stack_trace/rethrow_nonerror_test.dart b/tests/language_2/stack_trace/rethrow_nonerror_test.dart index 304d5912184..3ca985f04e9 100644 --- a/tests/language_2/stack_trace/rethrow_nonerror_test.dart +++ b/tests/language_2/stack_trace/rethrow_nonerror_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class NotASubclassOfError {} fail() => throw "Fail"; diff --git a/tests/language_2/stack_trace/stack_trace_test.dart b/tests/language_2/stack_trace/stack_trace_test.dart index b1e60a95d13..55797983d88 100644 --- a/tests/language_2/stack_trace/stack_trace_test.dart +++ b/tests/language_2/stack_trace/stack_trace_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing throw statement +// @dart = 2.9 + import "package:expect/expect.dart"; class MyException { diff --git a/tests/language_2/stack_trace/stacktrace_test.dart b/tests/language_2/stack_trace/stacktrace_test.dart index ecbf6d3816c..691f9688ad2 100644 --- a/tests/language_2/stack_trace/stacktrace_test.dart +++ b/tests/language_2/stack_trace/stacktrace_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a stack trace is properly terminated (issue 8850). import "package:expect/expect.dart"; diff --git a/tests/language_2/static/call_wrong_argument_count_test.dart b/tests/language_2/static/call_wrong_argument_count_test.dart index ca34e7cd1ad..4420fc9d76c 100644 --- a/tests/language_2/static/call_wrong_argument_count_test.dart +++ b/tests/language_2/static/call_wrong_argument_count_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test mismatch in argument counts. class Niesen { static int goodCall(int a, int b, int c) { diff --git a/tests/language_2/static/closure_identical_test.dart b/tests/language_2/static/closure_identical_test.dart index aa176a4b717..5505a265ab8 100644 --- a/tests/language_2/static/closure_identical_test.dart +++ b/tests/language_2/static/closure_identical_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; var foo = main; diff --git a/tests/language_2/static/const_field_reserved_name_test.dart b/tests/language_2/static/const_field_reserved_name_test.dart index 1de01683921..eb00b994f07 100644 --- a/tests/language_2/static/const_field_reserved_name_test.dart +++ b/tests/language_2/static/const_field_reserved_name_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for testing redefinition of reserved names as static const fields. // Issue https://github.com/dart-archive/dev_compiler/issues/587 diff --git a/tests/language_2/static/const_field_test.dart b/tests/language_2/static/const_field_test.dart index 2a6547e9c39..a189147464e 100644 --- a/tests/language_2/static/const_field_test.dart +++ b/tests/language_2/static/const_field_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing static const fields. +// @dart = 2.9 + import "package:expect/expect.dart"; abstract class Spain { diff --git a/tests/language_2/static/field1_runtime_test.dart b/tests/language_2/static/field1_runtime_test.dart index 6db193e03e1..c2e9e5c5303 100644 --- a/tests/language_2/static/field1_runtime_test.dart +++ b/tests/language_2/static/field1_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/static/field1_test.dart b/tests/language_2/static/field1_test.dart index 7c3c338b8ca..77f9dc31436 100644 --- a/tests/language_2/static/field1_test.dart +++ b/tests/language_2/static/field1_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test that a static field cannot be read as an instance field. +// @dart = 2.9 + class Foo { Foo() {} static var x; diff --git a/tests/language_2/static/field1a_runtime_test.dart b/tests/language_2/static/field1a_runtime_test.dart index 1f6b79869f4..b1ebe25de3c 100644 --- a/tests/language_2/static/field1a_runtime_test.dart +++ b/tests/language_2/static/field1a_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/static/field1a_test.dart b/tests/language_2/static/field1a_test.dart index 27a336d8181..363af9d5790 100644 --- a/tests/language_2/static/field1a_test.dart +++ b/tests/language_2/static/field1a_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test that a static method cannot be read as an instance field. +// @dart = 2.9 + class Foo { Foo() {} static void m() {} diff --git a/tests/language_2/static/field3_runtime_test.dart b/tests/language_2/static/field3_runtime_test.dart index d2c9f3ad7c7..15bb25b9817 100644 --- a/tests/language_2/static/field3_runtime_test.dart +++ b/tests/language_2/static/field3_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/static/field3_test.dart b/tests/language_2/static/field3_test.dart index f794e68c490..3da6963236b 100644 --- a/tests/language_2/static/field3_test.dart +++ b/tests/language_2/static/field3_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test that an instance field cannot be read as a static field. +// @dart = 2.9 + class Foo { Foo() {} var x; diff --git a/tests/language_2/static/field_override1_test.dart b/tests/language_2/static/field_override1_test.dart index a51682fb54f..46063be0c51 100644 --- a/tests/language_2/static/field_override1_test.dart +++ b/tests/language_2/static/field_override1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class Foo { diff --git a/tests/language_2/static/field_override2_test.dart b/tests/language_2/static/field_override2_test.dart index 98e8e11917e..177f033d57d 100644 --- a/tests/language_2/static/field_override2_test.dart +++ b/tests/language_2/static/field_override2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class Foo { diff --git a/tests/language_2/static/field_override3_test.dart b/tests/language_2/static/field_override3_test.dart index 44c70fdd2ac..9ba21fb62a4 100644 --- a/tests/language_2/static/field_override3_test.dart +++ b/tests/language_2/static/field_override3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class Foo { diff --git a/tests/language_2/static/field_test.dart b/tests/language_2/static/field_test.dart index ed054f67976..f21534c183d 100644 --- a/tests/language_2/static/field_test.dart +++ b/tests/language_2/static/field_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing setting/getting/initializing static fields. +// @dart = 2.9 + import "package:expect/expect.dart"; class First { diff --git a/tests/language_2/static/final_field2_runtime_test.dart b/tests/language_2/static/final_field2_runtime_test.dart index b69448d52e0..69433ba9cca 100644 --- a/tests/language_2/static/final_field2_runtime_test.dart +++ b/tests/language_2/static/final_field2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/static/final_field2_test.dart b/tests/language_2/static/final_field2_test.dart index da8ea37b4d7..04149822dc7 100644 --- a/tests/language_2/static/final_field2_test.dart +++ b/tests/language_2/static/final_field2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Disallow re-assignment of a final static variable. +// @dart = 2.9 + class A { static const x = 1; } diff --git a/tests/language_2/static/getter_no_setter1_runtime_test.dart b/tests/language_2/static/getter_no_setter1_runtime_test.dart index 13567dbc3d3..c83846de15f 100644 --- a/tests/language_2/static/getter_no_setter1_runtime_test.dart +++ b/tests/language_2/static/getter_no_setter1_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/static/getter_no_setter1_test.dart b/tests/language_2/static/getter_no_setter1_test.dart index dd307ece7ec..818cc6891f8 100644 --- a/tests/language_2/static/getter_no_setter1_test.dart +++ b/tests/language_2/static/getter_no_setter1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class Class { diff --git a/tests/language_2/static/getter_no_setter2_runtime_test.dart b/tests/language_2/static/getter_no_setter2_runtime_test.dart index 82663cb0bc4..1999fb4be41 100644 --- a/tests/language_2/static/getter_no_setter2_runtime_test.dart +++ b/tests/language_2/static/getter_no_setter2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/static/getter_no_setter2_test.dart b/tests/language_2/static/getter_no_setter2_test.dart index e84b2b852ff..4656d053eca 100644 --- a/tests/language_2/static/getter_no_setter2_test.dart +++ b/tests/language_2/static/getter_no_setter2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class Class { diff --git a/tests/language_2/static/implicit_closure_test.dart b/tests/language_2/static/implicit_closure_test.dart index 3b16a5d15cd..666a118d427 100644 --- a/tests/language_2/static/implicit_closure_test.dart +++ b/tests/language_2/static/implicit_closure_test.dart @@ -5,6 +5,8 @@ // VMOptions= // VMOptions=--use_slow_path +// @dart = 2.9 + import "package:expect/expect.dart"; class First { diff --git a/tests/language_2/static/initializer_type_error_test.dart b/tests/language_2/static/initializer_type_error_test.dart index 493e6ae7d0f..5763907ee49 100644 --- a/tests/language_2/static/initializer_type_error_test.dart +++ b/tests/language_2/static/initializer_type_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int x = "milou"; /*@compile-error=unspecified*/ diff --git a/tests/language_2/static/inline_test.dart b/tests/language_2/static/inline_test.dart index 12bfe48a6b8..37938b20081 100644 --- a/tests/language_2/static/inline_test.dart +++ b/tests/language_2/static/inline_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test inlining of assignments in parameter passing. If [StringScanner.charAt] diff --git a/tests/language_2/static/parameter_test.dart b/tests/language_2/static/parameter_test.dart index 24ccbf77160..ecd35e58258 100644 --- a/tests/language_2/static/parameter_test.dart +++ b/tests/language_2/static/parameter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + foo(x , static int y // //# 01: syntax error , final static y // //# 02: syntax error diff --git a/tests/language_2/static/postfix_operator_test.dart b/tests/language_2/static/postfix_operator_test.dart index c16817a795b..6fc9c03d432 100644 --- a/tests/language_2/static/postfix_operator_test.dart +++ b/tests/language_2/static/postfix_operator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int a = 0; diff --git a/tests/language_2/static/setter_conflicts_test.dart b/tests/language_2/static/setter_conflicts_test.dart index c8e4395a23c..7907a518d4c 100644 --- a/tests/language_2/static/setter_conflicts_test.dart +++ b/tests/language_2/static/setter_conflicts_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { static set foo(int x) {} diff --git a/tests/language_2/static/setter_get_runtime_test.dart b/tests/language_2/static/setter_get_runtime_test.dart index b04380c8d1d..9d464b330fd 100644 --- a/tests/language_2/static/setter_get_runtime_test.dart +++ b/tests/language_2/static/setter_get_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/static/setter_get_test.dart b/tests/language_2/static/setter_get_test.dart index 0a16b53285e..c9f4d25a00b 100644 --- a/tests/language_2/static/setter_get_test.dart +++ b/tests/language_2/static/setter_get_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class Class { diff --git a/tests/language_2/static/top_level_runtime_test.dart b/tests/language_2/static/top_level_runtime_test.dart index 0c0b8ce487e..215451f5e2e 100644 --- a/tests/language_2/static/top_level_runtime_test.dart +++ b/tests/language_2/static/top_level_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/static/top_level_test.dart b/tests/language_2/static/top_level_test.dart index c2f45b32cd2..d29cfd8648f 100644 --- a/tests/language_2/static/top_level_test.dart +++ b/tests/language_2/static/top_level_test.dart @@ -2,37 +2,39 @@ // 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 = 2.9 + static method() { } -// [error line 5, column 1, length 6] +// [error line 7, column 1, length 6] // [analyzer] SYNTACTIC_ERROR.EXTRANEOUS_MODIFIER // [cfe] Can't have modifier 'static' here. static var field; -// [error line 9, column 1, length 6] +// [error line 11, column 1, length 6] // [analyzer] SYNTACTIC_ERROR.EXTRANEOUS_MODIFIER // [cfe] Can't have modifier 'static' here. static const finalField = 42; -// [error line 13, column 1, length 6] +// [error line 15, column 1, length 6] // [analyzer] SYNTACTIC_ERROR.EXTRANEOUS_MODIFIER // [cfe] Can't have modifier 'static' here. static const constant = 123; -// [error line 17, column 1, length 6] +// [error line 19, column 1, length 6] // [analyzer] SYNTACTIC_ERROR.EXTRANEOUS_MODIFIER // [cfe] Can't have modifier 'static' here. static int typedMethod() => 87; -// [error line 22, column 1, length 6] +// [error line 24, column 1, length 6] // [analyzer] SYNTACTIC_ERROR.EXTRANEOUS_MODIFIER // [cfe] Can't have modifier 'static' here. static int typedField; -// [error line 26, column 1, length 6] +// [error line 28, column 1, length 6] // [analyzer] SYNTACTIC_ERROR.EXTRANEOUS_MODIFIER // [cfe] Can't have modifier 'static' here. static const int typedFinalField = 99; -// [error line 30, column 1, length 6] +// [error line 32, column 1, length 6] // [analyzer] SYNTACTIC_ERROR.EXTRANEOUS_MODIFIER // [cfe] Can't have modifier 'static' here. static const int typedConstant = 1; -// [error line 34, column 1, length 6] +// [error line 36, column 1, length 6] // [analyzer] SYNTACTIC_ERROR.EXTRANEOUS_MODIFIER // [cfe] Can't have modifier 'static' here. diff --git a/tests/language_2/string/adjacent_const_string_literals_test.dart b/tests/language_2/string/adjacent_const_string_literals_test.dart index 0af09ba311b..0416f6d9beb 100644 --- a/tests/language_2/string/adjacent_const_string_literals_test.dart +++ b/tests/language_2/string/adjacent_const_string_literals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Conster { diff --git a/tests/language_2/string/adjacent_string_literals_test.dart b/tests/language_2/string/adjacent_string_literals_test.dart index 48f8ba2bd1c..50b6c10daa8 100644 --- a/tests/language_2/string/adjacent_string_literals_test.dart +++ b/tests/language_2/string/adjacent_string_literals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/string/bad_raw_string_runtime_test.dart b/tests/language_2/string/bad_raw_string_runtime_test.dart index 4046aa54ede..873ad3eb6d2 100644 --- a/tests/language_2/string/bad_raw_string_runtime_test.dart +++ b/tests/language_2/string/bad_raw_string_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // Copyright (c) 2016, 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. diff --git a/tests/language_2/string/bad_raw_string_test.dart b/tests/language_2/string/bad_raw_string_test.dart index 7091ebae6ad..794872a4c7c 100644 --- a/tests/language_2/string/bad_raw_string_test.dart +++ b/tests/language_2/string/bad_raw_string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { // Raw String may not contain newline (may not be multi-line). String x = '' @@ -11,7 +13,7 @@ main() { // ^ // [analyzer] SYNTACTIC_ERROR.UNTERMINATED_STRING_LITERAL ' -// [error line 13, column 1, length 1] +// [error line 15, column 1, length 1] // [analyzer] SYNTACTIC_ERROR.UNTERMINATED_STRING_LITERAL // [cfe] String starting with ' must end with '. r" @@ -20,7 +22,7 @@ main() { // ^ // [analyzer] SYNTACTIC_ERROR.UNTERMINATED_STRING_LITERAL " -// [error line 22, column 1, length 1] +// [error line 24, column 1, length 1] // [analyzer] SYNTACTIC_ERROR.UNTERMINATED_STRING_LITERAL // [cfe] String starting with " must end with ". @@ -35,7 +37,7 @@ main() { // ^ // [analyzer] SYNTACTIC_ERROR.UNTERMINATED_STRING_LITERAL ' -// [error line 37, column 1, length 1] +// [error line 39, column 1, length 1] // [analyzer] SYNTACTIC_ERROR.UNTERMINATED_STRING_LITERAL // [cfe] String starting with ' must end with '. ''' diff --git a/tests/language_2/string/char_escape_test.dart b/tests/language_2/string/char_escape_test.dart index 7b87fbeeb7d..4ffc220cafa 100644 --- a/tests/language_2/string/char_escape_test.dart +++ b/tests/language_2/string/char_escape_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for reading escape sequences in string literals +// @dart = 2.9 + import "package:expect/expect.dart"; class CharEscapeTest { diff --git a/tests/language_2/string/charcode_test.dart b/tests/language_2/string/charcode_test.dart index 89061a4ffd3..f19caa96ba2 100644 --- a/tests/language_2/string/charcode_test.dart +++ b/tests/language_2/string/charcode_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/string/const_interpolation2_test.dart b/tests/language_2/string/const_interpolation2_test.dart index c9c373cb41c..363cb3ab2d9 100644 --- a/tests/language_2/string/const_interpolation2_test.dart +++ b/tests/language_2/string/const_interpolation2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for issue #24839 - http://dartbug.com/24839 diff --git a/tests/language_2/string/const_interpolation_constant_string_interpolation_test.dart b/tests/language_2/string/const_interpolation_constant_string_interpolation_test.dart index 16121c9515f..0d4970b7228 100644 --- a/tests/language_2/string/const_interpolation_constant_string_interpolation_test.dart +++ b/tests/language_2/string/const_interpolation_constant_string_interpolation_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/string/escape4_test.dart b/tests/language_2/string/escape4_test.dart index 6f4efba9469..fb83da25063 100644 --- a/tests/language_2/string/escape4_test.dart +++ b/tests/language_2/string/escape4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that newlines cannot be escaped in strings. main() { @@ -10,22 +12,22 @@ main() { // expectations in this test, you may need to do so manually. print('Hello, World!\ '); -// [error line 11, column 8, length 1] +// [error line 13, column 8, length 1] // [cfe] Can't find ')' to match '('. -// [error line 11, column 9, length 1] +// [error line 13, column 9, length 1] // [cfe] String starting with ' must end with '. -// [error line 11, column 23, length 1] +// [error line 13, column 23, length 1] // [analyzer] SYNTACTIC_ERROR.INVALID_UNICODE_ESCAPE // [cfe] An escape sequence starting with '\u' must be followed by 4 hexadecimal digits or from 1 to 6 digits between '{' and '}'. -// [error line 11, column 23, length 1] +// [error line 13, column 23, length 1] // [analyzer] SYNTACTIC_ERROR.UNTERMINATED_STRING_LITERAL -// [error line 12, column 1, length 3] +// [error line 14, column 1, length 3] // [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN // [cfe] Expected ';' after this. -// [error line 12, column 1] +// [error line 14, column 1] // [cfe] String starting with ' must end with '. -// [error line 12, column 3, length 1] +// [error line 14, column 3, length 1] // [analyzer] SYNTACTIC_ERROR.UNTERMINATED_STRING_LITERAL } -// [error line 29, column 1, length 1] +// [error line 31, column 1, length 1] // [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN diff --git a/tests/language_2/string/escapes_test.dart b/tests/language_2/string/escapes_test.dart index 78808a74eee..a0322f43a96 100644 --- a/tests/language_2/string/escapes_test.dart +++ b/tests/language_2/string/escapes_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class StringEscapesTest { diff --git a/tests/language_2/string/interpolate1_test.dart b/tests/language_2/string/interpolate1_test.dart index 12bf4afb49c..1798edb3619 100644 --- a/tests/language_2/string/interpolate1_test.dart +++ b/tests/language_2/string/interpolate1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// The interpolated identifier can't start with '$'. main() { diff --git a/tests/language_2/string/interpolate2_test.dart b/tests/language_2/string/interpolate2_test.dart index bb49ba519d5..5c5d672fa88 100644 --- a/tests/language_2/string/interpolate2_test.dart +++ b/tests/language_2/string/interpolate2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing string interpolation of expressions. +// @dart = 2.9 + import "package:expect/expect.dart"; class StringInterpolate2Test { diff --git a/tests/language_2/string/interpolate3_test.dart b/tests/language_2/string/interpolate3_test.dart index ada7879fe31..6b675340623 100644 --- a/tests/language_2/string/interpolate3_test.dart +++ b/tests/language_2/string/interpolate3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// The interpolated identifier must start with an identifier start character. main() { diff --git a/tests/language_2/string/interpolate_null_test.dart b/tests/language_2/string/interpolate_null_test.dart index a06427a7096..f8dd7b7ebc8 100644 --- a/tests/language_2/string/interpolate_null_test.dart +++ b/tests/language_2/string/interpolate_null_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing NPE within string interpolation. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/string/interpolate_test.dart b/tests/language_2/string/interpolate_test.dart index 769ee9473ed..38997dd9fd2 100644 --- a/tests/language_2/string/interpolate_test.dart +++ b/tests/language_2/string/interpolate_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing string interpolation. +// @dart = 2.9 + import "package:expect/expect.dart"; class WhatchamaCallIt { diff --git a/tests/language_2/string/interpolation1_runtime_test.dart b/tests/language_2/string/interpolation1_runtime_test.dart index 3ede1d84192..76c7b4f4a4d 100644 --- a/tests/language_2/string/interpolation1_runtime_test.dart +++ b/tests/language_2/string/interpolation1_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/interpolation1_test.dart b/tests/language_2/string/interpolation1_test.dart index 7f43236fb69..5aa1af41336 100644 --- a/tests/language_2/string/interpolation1_test.dart +++ b/tests/language_2/string/interpolation1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A dollar must be followed by a "{" or an identifier. class A { @@ -12,13 +14,12 @@ class A { class StringInterpolation1NegativeTest { // Dollar not followed by "{" or identifier. static const DOLLAR = const A("$"); - // [error line 14, column 35, length 0] + // [error line 16, column 35, length 0] // [analyzer] COMPILE_TIME_ERROR.CONST_INITIALIZED_WITH_NON_CONSTANT_VALUE - // [cfe] A '$' has special meaning inside a string, and must be followed by an identifier or an expression in curly braces ({}). - // [error line 14, column 35, length 0] // [analyzer] COMPILE_TIME_ERROR.INVALID_CONSTANT // ^ // [analyzer] SYNTACTIC_ERROR.MISSING_IDENTIFIER + // [cfe] A '$' has special meaning inside a string, and must be followed by an identifier or an expression in curly braces ({}). static testMain() { print(DOLLAR); } diff --git a/tests/language_2/string/interpolation2_runtime_test.dart b/tests/language_2/string/interpolation2_runtime_test.dart index 0b0a89f37d2..5871262d464 100644 --- a/tests/language_2/string/interpolation2_runtime_test.dart +++ b/tests/language_2/string/interpolation2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/interpolation2_test.dart b/tests/language_2/string/interpolation2_test.dart index 076fcc138b2..654e2ea3bf6 100644 --- a/tests/language_2/string/interpolation2_test.dart +++ b/tests/language_2/string/interpolation2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A dollar must be followed by a "{" or an identifier. class StringInterpolation2NegativeTest { diff --git a/tests/language_2/string/interpolation3_runtime_test.dart b/tests/language_2/string/interpolation3_runtime_test.dart index 96b92fbdc80..4e75fbced98 100644 --- a/tests/language_2/string/interpolation3_runtime_test.dart +++ b/tests/language_2/string/interpolation3_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/interpolation3_test.dart b/tests/language_2/string/interpolation3_test.dart index 0760fd9deec..15cca20f40d 100644 --- a/tests/language_2/string/interpolation3_test.dart +++ b/tests/language_2/string/interpolation3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A dollar must be followed by a "{" or an identifier. class StringInterpolation3NegativeTest { diff --git a/tests/language_2/string/interpolation4_runtime_test.dart b/tests/language_2/string/interpolation4_runtime_test.dart index e89625c0aaf..c5a23a93307 100644 --- a/tests/language_2/string/interpolation4_runtime_test.dart +++ b/tests/language_2/string/interpolation4_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/interpolation4_test.dart b/tests/language_2/string/interpolation4_test.dart index 740dc9a7373..4cf1cb7a8f1 100644 --- a/tests/language_2/string/interpolation4_test.dart +++ b/tests/language_2/string/interpolation4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A dollar must be followed by a "{" or an identifier. class StringInterpolation4NegativeTest { diff --git a/tests/language_2/string/interpolation5_runtime_test.dart b/tests/language_2/string/interpolation5_runtime_test.dart index acbec21dc6c..34262ed94a1 100644 --- a/tests/language_2/string/interpolation5_runtime_test.dart +++ b/tests/language_2/string/interpolation5_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/interpolation5_test.dart b/tests/language_2/string/interpolation5_test.dart index cd04ed3198b..de2ae86c314 100644 --- a/tests/language_2/string/interpolation5_test.dart +++ b/tests/language_2/string/interpolation5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A dollar must be followed by a "{" or an identifier. class StringInterpolation5NegativeTest { diff --git a/tests/language_2/string/interpolation6_test.dart b/tests/language_2/string/interpolation6_test.dart index 74cfbbe6f49..b92e7128977 100644 --- a/tests/language_2/string/interpolation6_test.dart +++ b/tests/language_2/string/interpolation6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A dollar must be followed by a "{" or an identifier. class StringInterpolation6NegativeTest { diff --git a/tests/language_2/string/interpolation7_test.dart b/tests/language_2/string/interpolation7_test.dart index af8e276b42a..46fb0be76cf 100644 --- a/tests/language_2/string/interpolation7_test.dart +++ b/tests/language_2/string/interpolation7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program testing string interpolation with toString on custom diff --git a/tests/language_2/string/interpolation8_test.dart b/tests/language_2/string/interpolation8_test.dart index a3c09bc5b56..0c2aabe8da6 100644 --- a/tests/language_2/string/interpolation8_test.dart +++ b/tests/language_2/string/interpolation8_test.dart @@ -4,6 +4,8 @@ // // Allow assignment of string interpolation to a static const field +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/string/interpolation9_runtime_test.dart b/tests/language_2/string/interpolation9_runtime_test.dart index 3cf2bd10bfe..0a79f762201 100644 --- a/tests/language_2/string/interpolation9_runtime_test.dart +++ b/tests/language_2/string/interpolation9_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/interpolation9_test.dart b/tests/language_2/string/interpolation9_test.dart index b3166b76b60..a6f2602ebfa 100644 --- a/tests/language_2/string/interpolation9_test.dart +++ b/tests/language_2/string/interpolation9_test.dart @@ -4,6 +4,8 @@ // // Almost valid string interpolation syntax. +// @dart = 2.9 + main() { var x; diff --git a/tests/language_2/string/interpolation_and_buffer_test.dart b/tests/language_2/string/interpolation_and_buffer_test.dart index 05bfe2d620b..da94e5639af 100644 --- a/tests/language_2/string/interpolation_and_buffer_test.dart +++ b/tests/language_2/string/interpolation_and_buffer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Interpolation calls `toString`. // The evaluation of the interpolation fails if `toString` throws or returns // null. In Dart 2, any method overriding `Object.toString` must return a diff --git a/tests/language_2/string/interpolation_newline_test.dart b/tests/language_2/string/interpolation_newline_test.dart index 91ad04f5242..b22c45f5d08 100644 --- a/tests/language_2/string/interpolation_newline_test.dart +++ b/tests/language_2/string/interpolation_newline_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test of newlines in interpolated strings. main() { diff --git a/tests/language_2/string/interpolation_runtime_test.dart b/tests/language_2/string/interpolation_runtime_test.dart index 81f4b450950..57c3372faf3 100644 --- a/tests/language_2/string/interpolation_runtime_test.dart +++ b/tests/language_2/string/interpolation_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/interpolation_test.dart b/tests/language_2/string/interpolation_test.dart index debcbf3c6c2..edfc6922675 100644 --- a/tests/language_2/string/interpolation_test.dart +++ b/tests/language_2/string/interpolation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests for string interpolation diff --git a/tests/language_2/string/intrinsics_test.dart b/tests/language_2/string/intrinsics_test.dart index ed1521cbeba..e139dd13a3e 100644 --- a/tests/language_2/string/intrinsics_test.dart +++ b/tests/language_2/string/intrinsics_test.dart @@ -5,6 +5,8 @@ // Test various String intrinsics // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/string/join_test.dart b/tests/language_2/string/join_test.dart index eb576d8c830..d82ae7ea529 100644 --- a/tests/language_2/string/join_test.dart +++ b/tests/language_2/string/join_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Regression test ensuring that only ObjectArrays are handed to the VM code. +// @dart = 2.9 + import "package:expect/expect.dart"; class StringJoinTest { diff --git a/tests/language_2/string/literals_test.dart b/tests/language_2/string/literals_test.dart index 6b4f4f50706..41d4c8df8b4 100644 --- a/tests/language_2/string/literals_test.dart +++ b/tests/language_2/string/literals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/string/multiline_newline_cr.dart b/tests/language_2/string/multiline_newline_cr.dart index 1b0627a8d50..2cea98be048 100644 --- a/tests/language_2/string/multiline_newline_cr.dart +++ b/tests/language_2/string/multiline_newline_cr.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library multiline_newline_cr; const constantMultilineString = """ diff --git a/tests/language_2/string/multiline_newline_crlf.dart b/tests/language_2/string/multiline_newline_crlf.dart index 958a82c8499..39baeffb9f5 100644 --- a/tests/language_2/string/multiline_newline_crlf.dart +++ b/tests/language_2/string/multiline_newline_crlf.dart @@ -1,28 +1,30 @@ -// 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. - -// Note: This test relies on LF line endings in the source file. -// It requires an entry in the .gitattributes file. - -library multiline_newline_crlf; - -const constantMultilineString = """ -a -b -"""; - -var nonConstantMultilineString = """ -a -b -"""; - -const constantRawMultilineString = r""" -\a -\b -"""; - -var nonConstantRawMultilineString = r""" -\a -\b -"""; \ No newline at end of file +// 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. + +// @dart = 2.9 + +// Note: This test relies on LF line endings in the source file. +// It requires an entry in the .gitattributes file. + +library multiline_newline_crlf; + +const constantMultilineString = """ +a +b +"""; + +var nonConstantMultilineString = """ +a +b +"""; + +const constantRawMultilineString = r""" +\a +\b +"""; + +var nonConstantRawMultilineString = r""" +\a +\b +"""; diff --git a/tests/language_2/string/multiline_newline_lf.dart b/tests/language_2/string/multiline_newline_lf.dart index b13fbab6a08..0cfee93ec44 100644 --- a/tests/language_2/string/multiline_newline_lf.dart +++ b/tests/language_2/string/multiline_newline_lf.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Note: This test relies on LF line endings in the source file. // It requires an entry in the .gitattributes file. diff --git a/tests/language_2/string/multiline_newline_runtime_1_test.dart b/tests/language_2/string/multiline_newline_runtime_1_test.dart index 65c906d670f..f45db797f13 100644 --- a/tests/language_2/string/multiline_newline_runtime_1_test.dart +++ b/tests/language_2/string/multiline_newline_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/multiline_newline_runtime_2_test.dart b/tests/language_2/string/multiline_newline_runtime_2_test.dart index 1c39d93c972..9e8835ef595 100644 --- a/tests/language_2/string/multiline_newline_runtime_2_test.dart +++ b/tests/language_2/string/multiline_newline_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/multiline_newline_runtime_3_test.dart b/tests/language_2/string/multiline_newline_runtime_3_test.dart index df029237a73..50624689a7d 100644 --- a/tests/language_2/string/multiline_newline_runtime_3_test.dart +++ b/tests/language_2/string/multiline_newline_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/multiline_newline_runtime_4_test.dart b/tests/language_2/string/multiline_newline_runtime_4_test.dart index 89503e4e92a..942a129e099 100644 --- a/tests/language_2/string/multiline_newline_runtime_4_test.dart +++ b/tests/language_2/string/multiline_newline_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/multiline_newline_runtime_5_test.dart b/tests/language_2/string/multiline_newline_runtime_5_test.dart index 450e6b30cc1..5a662e0916c 100644 --- a/tests/language_2/string/multiline_newline_runtime_5_test.dart +++ b/tests/language_2/string/multiline_newline_runtime_5_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/multiline_newline_runtime_6_test.dart b/tests/language_2/string/multiline_newline_runtime_6_test.dart index 4dbe7bd00c9..ffc02893b6b 100644 --- a/tests/language_2/string/multiline_newline_runtime_6_test.dart +++ b/tests/language_2/string/multiline_newline_runtime_6_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/multiline_newline_runtime_test.dart b/tests/language_2/string/multiline_newline_runtime_test.dart index 7fa95cad940..f4590777ace 100644 --- a/tests/language_2/string/multiline_newline_runtime_test.dart +++ b/tests/language_2/string/multiline_newline_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/multiline_newline_test.dart b/tests/language_2/string/multiline_newline_test.dart index 0498d0bb88c..250706efa4a 100644 --- a/tests/language_2/string/multiline_newline_test.dart +++ b/tests/language_2/string/multiline_newline_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'multiline_newline_cr.dart' as cr; import 'multiline_newline_crlf.dart' as crlf; diff --git a/tests/language_2/string/multiline_strings_test.dart b/tests/language_2/string/multiline_strings_test.dart index fa96fb1bc3c..1c253e54870 100644 --- a/tests/language_2/string/multiline_strings_test.dart +++ b/tests/language_2/string/multiline_strings_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Note: This test relies on LF line endings in the source file. import "package:expect/expect.dart"; diff --git a/tests/language_2/string/no_operator_runtime_test.dart b/tests/language_2/string/no_operator_runtime_test.dart index ebf1dc763ea..824c470f736 100644 --- a/tests/language_2/string/no_operator_runtime_test.dart +++ b/tests/language_2/string/no_operator_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/no_operator_test.dart b/tests/language_2/string/no_operator_test.dart index a7eabf71677..5b3e4aa0ce1 100644 --- a/tests/language_2/string/no_operator_test.dart +++ b/tests/language_2/string/no_operator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/language_2/string/optimizations_test.dart b/tests/language_2/string/optimizations_test.dart index a40bc0b51dc..7b8ea641d97 100644 --- a/tests/language_2/string/optimizations_test.dart +++ b/tests/language_2/string/optimizations_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js's type inferrer, that used to not // correctly infer optional named parameters. diff --git a/tests/language_2/string/overflow.dart b/tests/language_2/string/overflow.dart index 8b01e194983..ad58981811c 100644 --- a/tests/language_2/string/overflow.dart +++ b/tests/language_2/string/overflow.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test to ensure that the VM does not have an integer overflow issue // when concatenating strings. diff --git a/tests/language_2/string/raw_string_test.dart b/tests/language_2/string/raw_string_test.dart index 358f88200bb..cf9b1ce236b 100644 --- a/tests/language_2/string/raw_string_test.dart +++ b/tests/language_2/string/raw_string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Note: This test relies on LF line endings in the source file. import "package:expect/expect.dart"; diff --git a/tests/language_2/string/runtime_test.dart b/tests/language_2/string/runtime_test.dart index 612251c676c..b725dd902be 100644 --- a/tests/language_2/string/runtime_test.dart +++ b/tests/language_2/string/runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/split_test.dart b/tests/language_2/string/split_test.dart index 25172370143..6d855d069ab 100644 --- a/tests/language_2/string/split_test.dart +++ b/tests/language_2/string/split_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Issue 24043. +// @dart = 2.9 + import "package:expect/expect.dart"; class EvilMatch implements Match { diff --git a/tests/language_2/string/string_test.dart b/tests/language_2/string/string_test.dart index 68cca7583af..48c40a00817 100644 --- a/tests/language_2/string/string_test.dart +++ b/tests/language_2/string/string_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Replace with shared test once interface issues clarified. +// @dart = 2.9 + import "package:expect/expect.dart"; class StringTest { diff --git a/tests/language_2/string/substring_runtime_test.dart b/tests/language_2/string/substring_runtime_test.dart index 38007adc731..96591b15706 100644 --- a/tests/language_2/string/substring_runtime_test.dart +++ b/tests/language_2/string/substring_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/string/substring_test.dart b/tests/language_2/string/substring_test.dart index 6f33829168d..6a64de4a985 100644 --- a/tests/language_2/string/substring_test.dart +++ b/tests/language_2/string/substring_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart version of two-argument Ackermann-Peter function. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/string/supertype_checked_test.dart b/tests/language_2/string/supertype_checked_test.dart index 016c757c340..ef857a5ed6a 100644 --- a/tests/language_2/string/supertype_checked_test.dart +++ b/tests/language_2/string/supertype_checked_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // This tests a bug in dart2js which caused the compiler to emit bad diff --git a/tests/language_2/string/unicode1_test.dart b/tests/language_2/string/unicode1_test.dart index 04a9f5f2428..58b39bdc305 100644 --- a/tests/language_2/string/unicode1_test.dart +++ b/tests/language_2/string/unicode1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// (backslash) uXXXX must have exactly 4 hex digits. main() { diff --git a/tests/language_2/string/unicode2_test.dart b/tests/language_2/string/unicode2_test.dart index 4624fbd33b2..042b64209cd 100644 --- a/tests/language_2/string/unicode2_test.dart +++ b/tests/language_2/string/unicode2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// \u{X*} should have 1-6 hex digits. main() { diff --git a/tests/language_2/string/unicode3_test.dart b/tests/language_2/string/unicode3_test.dart index 3c04303b184..8431e4e4f14 100644 --- a/tests/language_2/string/unicode3_test.dart +++ b/tests/language_2/string/unicode3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Backslash xXX must have exactly 2 hex digits. main() { diff --git a/tests/language_2/string/unicode4_test.dart b/tests/language_2/string/unicode4_test.dart index 89095fab3ee..701ac3e324d 100644 --- a/tests/language_2/string/unicode4_test.dart +++ b/tests/language_2/string/unicode4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Unicode escapes must refer to valid Unicode points and not surrogate /// characters. diff --git a/tests/language_2/string/unicode_bom_middle_test.dart b/tests/language_2/string/unicode_bom_middle_test.dart index e620b2b0ec9..ed98b3b6a19 100644 --- a/tests/language_2/string/unicode_bom_middle_test.dart +++ b/tests/language_2/string/unicode_bom_middle_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int inscrutable(int x) => x == 0 ? 0 : x | inscrutable(x & (x - 1)); diff --git a/tests/language_2/string/unicode_bom_test.dart b/tests/language_2/string/unicode_bom_test.dart index 2e234458d9a..b81c494fa3f 100644 --- a/tests/language_2/string/unicode_bom_test.dart +++ b/tests/language_2/string/unicode_bom_test.dart @@ -1,7 +1,9 @@ -// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file +// 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 = 2.9 + // This file is saved with a BOM character (as first character). This character // should be ignored. // Tests that files with a BOM character are correctly handled. diff --git a/tests/language_2/string/unicode_hash_test.dart b/tests/language_2/string/unicode_hash_test.dart index 430c51ef16c..78ae63ed2cf 100644 --- a/tests/language_2/string/unicode_hash_test.dart +++ b/tests/language_2/string/unicode_hash_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/subtyping_static/future_or_subtype_test.dart b/tests/language_2/subtyping_static/future_or_subtype_test.dart index 888ab601507..611b8b01847 100644 --- a/tests/language_2/subtyping_static/future_or_subtype_test.dart +++ b/tests/language_2/subtyping_static/future_or_subtype_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/super/abstract_method_test.dart b/tests/language_2/super/abstract_method_test.dart index 19c877ab224..69fbc56b119 100644 --- a/tests/language_2/super/abstract_method_test.dart +++ b/tests/language_2/super/abstract_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a method overridden by an abstract method is called at // runtime. diff --git a/tests/language_2/super/additional_interface_adds_optional_args_supercall_test.dart b/tests/language_2/super/additional_interface_adds_optional_args_supercall_test.dart index 534a590e192..b23e835533b 100644 --- a/tests/language_2/super/additional_interface_adds_optional_args_supercall_test.dart +++ b/tests/language_2/super/additional_interface_adds_optional_args_supercall_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { void foo() {} } diff --git a/tests/language_2/super/all_named_constructor_test.dart b/tests/language_2/super/all_named_constructor_test.dart index 37b15d7363d..5040d7c127f 100644 --- a/tests/language_2/super/all_named_constructor_test.dart +++ b/tests/language_2/super/all_named_constructor_test.dart @@ -4,6 +4,8 @@ // Dart test for testing implicit invocation of super constructor with all // named parameters. +// @dart = 2.9 + import "package:expect/expect.dart"; var res = 0; diff --git a/tests/language_2/super/assign_runtime_test.dart b/tests/language_2/super/assign_runtime_test.dart index 19e4fa458e5..1cc6f77e6b9 100644 --- a/tests/language_2/super/assign_runtime_test.dart +++ b/tests/language_2/super/assign_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/super/assign_test.dart b/tests/language_2/super/assign_test.dart index 3e77ef5fda4..9143fbd70a8 100644 --- a/tests/language_2/super/assign_test.dart +++ b/tests/language_2/super/assign_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { int x; } diff --git a/tests/language_2/super/bound_closure_test.dart b/tests/language_2/super/bound_closure_test.dart index 554b0e2e232..7f99e8d9c0c 100644 --- a/tests/language_2/super/bound_closure_test.dart +++ b/tests/language_2/super/bound_closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/super/call2_test.dart b/tests/language_2/super/call2_test.dart index 156d3445e1f..8153c6243b0 100644 --- a/tests/language_2/super/call2_test.dart +++ b/tests/language_2/super/call2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regresion test for bug discovered in frog handling super calls: the test case // mixes generics, super calls, and purposely doesn't allocate the base type. // diff --git a/tests/language_2/super/call3_runtime_test.dart b/tests/language_2/super/call3_runtime_test.dart index 1df0b3c20d3..0b63e6c9ed4 100644 --- a/tests/language_2/super/call3_runtime_test.dart +++ b/tests/language_2/super/call3_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/super/call3_test.dart b/tests/language_2/super/call3_test.dart index 7c43edf25c3..eab93d94f6f 100644 --- a/tests/language_2/super/call3_test.dart +++ b/tests/language_2/super/call3_test.dart @@ -4,6 +4,8 @@ // Dart test for testing implicit super calls with bad arguments or no default // constructor in super class. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/super/call4_test.dart b/tests/language_2/super/call4_test.dart index aced9d72356..c0712366a4c 100644 --- a/tests/language_2/super/call4_test.dart +++ b/tests/language_2/super/call4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/super/call_test.dart b/tests/language_2/super/call_test.dart index 384ee61b040..bb2accafe55 100644 --- a/tests/language_2/super/call_test.dart +++ b/tests/language_2/super/call_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing super calls +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/super/closure_test.dart b/tests/language_2/super/closure_test.dart index ad159cee8a3..f58daa1de3c 100644 --- a/tests/language_2/super/closure_test.dart +++ b/tests/language_2/super/closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Dart test program for testing access to super from closure. diff --git a/tests/language_2/super/conditional_operator_runtime_test.dart b/tests/language_2/super/conditional_operator_runtime_test.dart index 25296390d89..f7fb940fceb 100644 --- a/tests/language_2/super/conditional_operator_runtime_test.dart +++ b/tests/language_2/super/conditional_operator_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/super/conditional_operator_test.dart b/tests/language_2/super/conditional_operator_test.dart index 5c41ab4bb49..de79c9296ac 100644 --- a/tests/language_2/super/conditional_operator_test.dart +++ b/tests/language_2/super/conditional_operator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that the ?. operator cannot be used with "super". class B { diff --git a/tests/language_2/super/field_2_test.dart b/tests/language_2/super/field_2_test.dart index 82b899c641e..086a4f50fa9 100644 --- a/tests/language_2/super/field_2_test.dart +++ b/tests/language_2/super/field_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/super/field_access_test.dart b/tests/language_2/super/field_access_test.dart index ffd1897ef9a..d5fcbdfe866 100644 --- a/tests/language_2/super/field_access_test.dart +++ b/tests/language_2/super/field_access_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/super/field_test.dart b/tests/language_2/super/field_test.dart index 85ae8e9a2cc..27544dcf7c4 100644 --- a/tests/language_2/super/field_test.dart +++ b/tests/language_2/super/field_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing super field access. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/super/from_constructor_test.dart b/tests/language_2/super/from_constructor_test.dart index 02e86faaf6c..9de3a0684f1 100644 --- a/tests/language_2/super/from_constructor_test.dart +++ b/tests/language_2/super/from_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; final results = []; diff --git a/tests/language_2/super/implicit_closure_test.dart b/tests/language_2/super/implicit_closure_test.dart index c94997b94f5..0e4268c5666 100644 --- a/tests/language_2/super/implicit_closure_test.dart +++ b/tests/language_2/super/implicit_closure_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing invocation of implicit closures. +// @dart = 2.9 + import "package:expect/expect.dart"; class BaseClass { diff --git a/tests/language_2/super/in_async1_test.dart b/tests/language_2/super/in_async1_test.dart index b5cb4bd6419..63b5200124a 100644 --- a/tests/language_2/super/in_async1_test.dart +++ b/tests/language_2/super/in_async1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/language_2/super/in_async2_test.dart b/tests/language_2/super/in_async2_test.dart index 70df51fb0b8..adb3f41c468 100644 --- a/tests/language_2/super/in_async2_test.dart +++ b/tests/language_2/super/in_async2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/language_2/super/in_async3_test.dart b/tests/language_2/super/in_async3_test.dart index 97980105839..e6927caa48a 100644 --- a/tests/language_2/super/in_async3_test.dart +++ b/tests/language_2/super/in_async3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/language_2/super/in_async4_test.dart b/tests/language_2/super/in_async4_test.dart index 399c8d89432..a866b5493a8 100644 --- a/tests/language_2/super/in_async4_test.dart +++ b/tests/language_2/super/in_async4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/language_2/super/in_async5_test.dart b/tests/language_2/super/in_async5_test.dart index acf6fe86eb1..344769ad163 100644 --- a/tests/language_2/super/in_async5_test.dart +++ b/tests/language_2/super/in_async5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/language_2/super/in_async6_test.dart b/tests/language_2/super/in_async6_test.dart index 3f51313c114..a610ff75767 100644 --- a/tests/language_2/super/in_async6_test.dart +++ b/tests/language_2/super/in_async6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/language_2/super/in_constructor_test.dart b/tests/language_2/super/in_constructor_test.dart index 621eee900d4..a2c4b7846c8 100644 --- a/tests/language_2/super/in_constructor_test.dart +++ b/tests/language_2/super/in_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Foo { diff --git a/tests/language_2/super/in_finally_test.dart b/tests/language_2/super/in_finally_test.dart index 41f74756df8..cbeaa2b2ee4 100644 --- a/tests/language_2/super/in_finally_test.dart +++ b/tests/language_2/super/in_finally_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/super/inferrer_test.dart b/tests/language_2/super/inferrer_test.dart index 6fcaf8e0523..56c16b61846 100644 --- a/tests/language_2/super/inferrer_test.dart +++ b/tests/language_2/super/inferrer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that dart2js's backend type inference handles super calls. import "package:expect/expect.dart"; diff --git a/tests/language_2/super/mixin_test.dart b/tests/language_2/super/mixin_test.dart index e76a2825fe5..9cccbb73ffc 100644 --- a/tests/language_2/super/mixin_test.dart +++ b/tests/language_2/super/mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart2js regression test: Test that the type mask for non-null exact Mixin is // created for Mixin.getter. diff --git a/tests/language_2/super/no_such_method1_test.dart b/tests/language_2/super/no_such_method1_test.dart index 1b990b824b3..6d61f6c073b 100644 --- a/tests/language_2/super/no_such_method1_test.dart +++ b/tests/language_2/super/no_such_method1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class A { diff --git a/tests/language_2/super/no_such_method2_test.dart b/tests/language_2/super/no_such_method2_test.dart index a85c675d4c6..a43b1a81a0b 100644 --- a/tests/language_2/super/no_such_method2_test.dart +++ b/tests/language_2/super/no_such_method2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class A { diff --git a/tests/language_2/super/no_such_method3_test.dart b/tests/language_2/super/no_such_method3_test.dart index 16433d8e36d..7a724977e2a 100644 --- a/tests/language_2/super/no_such_method3_test.dart +++ b/tests/language_2/super/no_such_method3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; var result; diff --git a/tests/language_2/super/no_such_method4_runtime_test.dart b/tests/language_2/super/no_such_method4_runtime_test.dart index f8d48804980..fff4dee2c5c 100644 --- a/tests/language_2/super/no_such_method4_runtime_test.dart +++ b/tests/language_2/super/no_such_method4_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // Copyright (c) 2016, 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. diff --git a/tests/language_2/super/no_such_method4_test.dart b/tests/language_2/super/no_such_method4_test.dart index 9e831464f07..c3bc167bfd9 100644 --- a/tests/language_2/super/no_such_method4_test.dart +++ b/tests/language_2/super/no_such_method4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class A { diff --git a/tests/language_2/super/no_such_method5_runtime_test.dart b/tests/language_2/super/no_such_method5_runtime_test.dart index 94adb2435cd..c76f43dc936 100644 --- a/tests/language_2/super/no_such_method5_runtime_test.dart +++ b/tests/language_2/super/no_such_method5_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // Copyright (c) 2016, 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. diff --git a/tests/language_2/super/no_such_method5_test.dart b/tests/language_2/super/no_such_method5_test.dart index eb923c13717..67e29b0ef97 100644 --- a/tests/language_2/super/no_such_method5_test.dart +++ b/tests/language_2/super/no_such_method5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class A { diff --git a/tests/language_2/super/non_const_test.dart b/tests/language_2/super/non_const_test.dart index 06c9f73cd0b..8ee25dcd240 100644 --- a/tests/language_2/super/non_const_test.dart +++ b/tests/language_2/super/non_const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Check fails because const class extends from non const class. class Base { diff --git a/tests/language_2/super/operator_index2_test.dart b/tests/language_2/super/operator_index2_test.dart index d17c41e19bd..1665c90b640 100644 --- a/tests/language_2/super/operator_index2_test.dart +++ b/tests/language_2/super/operator_index2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for super indexing operations. import "package:expect/expect.dart"; diff --git a/tests/language_2/super/operator_index3_test.dart b/tests/language_2/super/operator_index3_test.dart index 10edc0f0b9e..2916733d750 100644 --- a/tests/language_2/super/operator_index3_test.dart +++ b/tests/language_2/super/operator_index3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for operator[]= resolved in super class. import "package:expect/expect.dart"; diff --git a/tests/language_2/super/operator_index4_test.dart b/tests/language_2/super/operator_index4_test.dart index ea597349cf0..1ae00d797a6 100644 --- a/tests/language_2/super/operator_index4_test.dart +++ b/tests/language_2/super/operator_index4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for operator[] resolved in the super class. import "package:expect/expect.dart"; diff --git a/tests/language_2/super/operator_index5_test.dart b/tests/language_2/super/operator_index5_test.dart index 008ed7179b9..feaad2e7d96 100644 --- a/tests/language_2/super/operator_index5_test.dart +++ b/tests/language_2/super/operator_index5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for unresolved super[]=. import "package:expect/expect.dart"; diff --git a/tests/language_2/super/operator_index6_test.dart b/tests/language_2/super/operator_index6_test.dart index 41bffa48397..2b6f79c8138 100644 --- a/tests/language_2/super/operator_index6_test.dart +++ b/tests/language_2/super/operator_index6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for unresolved super[]. import "package:expect/expect.dart"; diff --git a/tests/language_2/super/operator_index7_test.dart b/tests/language_2/super/operator_index7_test.dart index b64fef6effb..c0b102e3b3c 100644 --- a/tests/language_2/super/operator_index7_test.dart +++ b/tests/language_2/super/operator_index7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for unresolved super[] and super[]=. import "package:expect/expect.dart"; diff --git a/tests/language_2/super/operator_index8_test.dart b/tests/language_2/super/operator_index8_test.dart index 558c5a4e341..d52308fab99 100644 --- a/tests/language_2/super/operator_index8_test.dart +++ b/tests/language_2/super/operator_index8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for unresolved super[] and super[]= and correct evaluation order. import "package:expect/expect.dart"; diff --git a/tests/language_2/super/operator_index_test.dart b/tests/language_2/super/operator_index_test.dart index 81dd1725176..327565fe378 100644 --- a/tests/language_2/super/operator_index_test.dart +++ b/tests/language_2/super/operator_index_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we emit errors for unresolved indexing operations on super. class A { diff --git a/tests/language_2/super/operator_test.dart b/tests/language_2/super/operator_test.dart index 5953e7acac8..e846e811a4c 100644 --- a/tests/language_2/super/operator_test.dart +++ b/tests/language_2/super/operator_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing super operator calls +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/super/setter_interceptor_test.dart b/tests/language_2/super/setter_interceptor_test.dart index 339dc6f81f5..acfd50e0522 100644 --- a/tests/language_2/super/setter_interceptor_test.dart +++ b/tests/language_2/super/setter_interceptor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we correctly intercept super getter and setter calls. import "package:expect/expect.dart"; diff --git a/tests/language_2/super/setter_test.dart b/tests/language_2/super/setter_test.dart index c2a95672166..6baaf0c72fd 100644 --- a/tests/language_2/super/setter_test.dart +++ b/tests/language_2/super/setter_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing super setters and getters. +// @dart = 2.9 + import "package:expect/expect.dart"; class Base { diff --git a/tests/language_2/super/super_test.dart b/tests/language_2/super/super_test.dart index f96f4fec957..fedc169725d 100644 --- a/tests/language_2/super/super_test.dart +++ b/tests/language_2/super/super_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int i = 0; diff --git a/tests/language_2/superinterface_variance/abstract_class_error_test.dart b/tests/language_2/superinterface_variance/abstract_class_error_test.dart index 47367d1861c..a2a5d04f728 100644 --- a/tests/language_2/superinterface_variance/abstract_class_error_test.dart +++ b/tests/language_2/superinterface_variance/abstract_class_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + typedef F1 = void Function(X); typedef F2 = X Function(X); typedef F3 = void Function(); diff --git a/tests/language_2/superinterface_variance/abstract_mixin_application_error_test.dart b/tests/language_2/superinterface_variance/abstract_mixin_application_error_test.dart index 0362eabda79..db640fb25f1 100644 --- a/tests/language_2/superinterface_variance/abstract_mixin_application_error_test.dart +++ b/tests/language_2/superinterface_variance/abstract_mixin_application_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + typedef F1 = void Function(X); typedef F2 = X Function(X); typedef F3 = void Function(); diff --git a/tests/language_2/superinterface_variance/concrete_class_error_test.dart b/tests/language_2/superinterface_variance/concrete_class_error_test.dart index 3d8ac1e3c47..f0a25e5f604 100644 --- a/tests/language_2/superinterface_variance/concrete_class_error_test.dart +++ b/tests/language_2/superinterface_variance/concrete_class_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + typedef F1 = void Function(X); typedef F2 = X Function(X); typedef F3 = void Function(); diff --git a/tests/language_2/superinterface_variance/concrete_mixin_application_error_test.dart b/tests/language_2/superinterface_variance/concrete_mixin_application_error_test.dart index b9b658d8518..51231a8c1c6 100644 --- a/tests/language_2/superinterface_variance/concrete_mixin_application_error_test.dart +++ b/tests/language_2/superinterface_variance/concrete_mixin_application_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + typedef F1 = void Function(X); typedef F2 = X Function(X); typedef F3 = void Function(); diff --git a/tests/language_2/superinterface_variance/covariance_test.dart b/tests/language_2/superinterface_variance/covariance_test.dart index 11bb1986018..8e506a177a9 100644 --- a/tests/language_2/superinterface_variance/covariance_test.dart +++ b/tests/language_2/superinterface_variance/covariance_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + typedef F = X Function(); typedef G = void Function(void Function(X)); diff --git a/tests/language_2/superinterface_variance/mixin_error_test.dart b/tests/language_2/superinterface_variance/mixin_error_test.dart index 14963f3c45c..446460864bf 100644 --- a/tests/language_2/superinterface_variance/mixin_error_test.dart +++ b/tests/language_2/superinterface_variance/mixin_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + typedef F1 = void Function(X); typedef F2 = X Function(X); typedef F3 = void Function(); diff --git a/tests/language_2/switch/aborting_switch_case_test.dart b/tests/language_2/switch/aborting_switch_case_test.dart index b8c7fe48019..881ca30e6da 100644 --- a/tests/language_2/switch/aborting_switch_case_test.dart +++ b/tests/language_2/switch/aborting_switch_case_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to be confused when inlining // method that always aborts in a switch case. diff --git a/tests/language_2/switch/bad_case_runtime_test.dart b/tests/language_2/switch/bad_case_runtime_test.dart index 0119fa51bd5..b47e5cc9571 100644 --- a/tests/language_2/switch/bad_case_runtime_test.dart +++ b/tests/language_2/switch/bad_case_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/switch/bad_case_test.dart b/tests/language_2/switch/bad_case_test.dart index 03746b16e18..3e3a34045cb 100644 --- a/tests/language_2/switch/bad_case_test.dart +++ b/tests/language_2/switch/bad_case_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test reporting a compile-time error if case expressions do not all have // the same type or are of type double. diff --git a/tests/language_2/switch/case_expression_with_assignment_runtime_test.dart b/tests/language_2/switch/case_expression_with_assignment_runtime_test.dart index 8b534c6395a..73372b7698f 100644 --- a/tests/language_2/switch/case_expression_with_assignment_runtime_test.dart +++ b/tests/language_2/switch/case_expression_with_assignment_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/switch/case_expression_with_assignment_test.dart b/tests/language_2/switch/case_expression_with_assignment_test.dart index 5ab2dbd89fb..9ba6399401c 100644 --- a/tests/language_2/switch/case_expression_with_assignment_test.dart +++ b/tests/language_2/switch/case_expression_with_assignment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for crash in VM parser (issue 29370). import "package:expect/expect.dart"; diff --git a/tests/language_2/switch/case_runtime_test.dart b/tests/language_2/switch/case_runtime_test.dart index b5a83cd06ff..f25ac4307cf 100644 --- a/tests/language_2/switch/case_runtime_test.dart +++ b/tests/language_2/switch/case_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/switch/case_static_const_test.dart b/tests/language_2/switch/case_static_const_test.dart index e15a9f46fc8..d6a0007a451 100644 --- a/tests/language_2/switch/case_static_const_test.dart +++ b/tests/language_2/switch/case_static_const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { static const S = 'A.S'; } diff --git a/tests/language_2/switch/case_test.dart b/tests/language_2/switch/case_test.dart index 105299de993..af15ac6d3e4 100644 --- a/tests/language_2/switch/case_test.dart +++ b/tests/language_2/switch/case_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/switch/case_warn_test.dart b/tests/language_2/switch/case_warn_test.dart index 541a5900e40..25b95168810 100644 --- a/tests/language_2/switch/case_warn_test.dart +++ b/tests/language_2/switch/case_warn_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test switch statement. +// @dart = 2.9 + // Tests some switch-case statements blocks that should and should not // cause static warnings. // This test is not testing runtime behavior, only static warnings. diff --git a/tests/language_2/switch/empty_block_case_test.dart b/tests/language_2/switch/empty_block_case_test.dart index 6edaff4fda3..5e9cfed5ef0 100644 --- a/tests/language_2/switch/empty_block_case_test.dart +++ b/tests/language_2/switch/empty_block_case_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that a case with an empty block does not fall through. diff --git a/tests/language_2/switch/fallthru_runtime_test.dart b/tests/language_2/switch/fallthru_runtime_test.dart index b1dd57d8115..3bcdf44c0e6 100644 --- a/tests/language_2/switch/fallthru_runtime_test.dart +++ b/tests/language_2/switch/fallthru_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/switch/fallthru_test.dart b/tests/language_2/switch/fallthru_test.dart index 16e23fe9c66..9ca493de5bc 100644 --- a/tests/language_2/switch/fallthru_test.dart +++ b/tests/language_2/switch/fallthru_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Check that FallThroughError is thrown if switch clause does not terminate. +// @dart = 2.9 + import "package:expect/expect.dart"; String test(int n) { diff --git a/tests/language_2/switch/infinite_switch_label_test.dart b/tests/language_2/switch/infinite_switch_label_test.dart index 7eec42c99c1..82de828c9d2 100644 --- a/tests/language_2/switch/infinite_switch_label_test.dart +++ b/tests/language_2/switch/infinite_switch_label_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test nested switch statement using labels. library nested_switch_label; diff --git a/tests/language_2/switch/label2_test.dart b/tests/language_2/switch/label2_test.dart index 612e6a9c637..d0186232b59 100644 --- a/tests/language_2/switch/label2_test.dart +++ b/tests/language_2/switch/label2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test switch statement using labels. import 'package:expect/expect.dart'; diff --git a/tests/language_2/switch/label_test.dart b/tests/language_2/switch/label_test.dart index 290c84fcd57..601330ff06e 100644 --- a/tests/language_2/switch/label_test.dart +++ b/tests/language_2/switch/label_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test switch statement using labels. +// @dart = 2.9 + import "package:expect/expect.dart"; class Switcher { diff --git a/tests/language_2/switch/nested_switch_label_test.dart b/tests/language_2/switch/nested_switch_label_test.dart index 49c2754549b..55b66b0818a 100644 --- a/tests/language_2/switch/nested_switch_label_test.dart +++ b/tests/language_2/switch/nested_switch_label_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test nested switch statement using labels. library nested_switch_label; diff --git a/tests/language_2/switch/scope_test.dart b/tests/language_2/switch/scope_test.dart index 938a39387c3..c1b65362ab6 100644 --- a/tests/language_2/switch/scope_test.dart +++ b/tests/language_2/switch/scope_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test that a new scope is introduced for each switch case. +// @dart = 2.9 + import "package:expect/expect.dart"; class SwitchScopeTest { diff --git a/tests/language_2/switch/switch1_test.dart b/tests/language_2/switch/switch1_test.dart index ffae0f202af..f461c0dd52b 100644 --- a/tests/language_2/switch/switch1_test.dart +++ b/tests/language_2/switch/switch1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Check that default clause must be last case. main() { diff --git a/tests/language_2/switch/switch3_test.dart b/tests/language_2/switch/switch3_test.dart index cdcbdef62b8..0b3d5bf6755 100644 --- a/tests/language_2/switch/switch3_test.dart +++ b/tests/language_2/switch/switch3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Check that 'continue' to switch statement is illegal. main() { diff --git a/tests/language_2/switch/switch4_test.dart b/tests/language_2/switch/switch4_test.dart index d90fc65955e..31a30e74236 100644 --- a/tests/language_2/switch/switch4_test.dart +++ b/tests/language_2/switch/switch4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Discover unresolved case labels. main() { diff --git a/tests/language_2/switch/switch5_test.dart b/tests/language_2/switch/switch5_test.dart index 7f23f3ffbcb..8d22193939e 100644 --- a/tests/language_2/switch/switch5_test.dart +++ b/tests/language_2/switch/switch5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Break' to case label is illegal. main() { diff --git a/tests/language_2/switch/switch6_test.dart b/tests/language_2/switch/switch6_test.dart index 43e09dc93cc..61e9196a45d 100644 --- a/tests/language_2/switch/switch6_test.dart +++ b/tests/language_2/switch/switch6_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // The break is in the right scope, http://b/3428700 was agreed upon. +// @dart = 2.9 + import "package:expect/expect.dart"; class Switch6Test { diff --git a/tests/language_2/switch/switch7_test.dart b/tests/language_2/switch/switch7_test.dart index e47d7e56db5..e4ffb710f3e 100644 --- a/tests/language_2/switch/switch7_test.dart +++ b/tests/language_2/switch/switch7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Illegal to reference a labeled case statement with break. main() { diff --git a/tests/language_2/switch/switch8_test.dart b/tests/language_2/switch/switch8_test.dart index d2f91221901..5d4384f2a00 100644 --- a/tests/language_2/switch/switch8_test.dart +++ b/tests/language_2/switch/switch8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to not generate code for // compile-time constants only seen in case expressions. diff --git a/tests/language_2/switch/switch_test.dart b/tests/language_2/switch/switch_test.dart index 0b12c0e7c91..52c131c83b7 100644 --- a/tests/language_2/switch/switch_test.dart +++ b/tests/language_2/switch/switch_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test switch statement. +// @dart = 2.9 + import "package:expect/expect.dart"; class Switcher { diff --git a/tests/language_2/switch/try_catch_test.dart b/tests/language_2/switch/try_catch_test.dart index beee717cafe..a37c890b0c7 100644 --- a/tests/language_2/switch/try_catch_test.dart +++ b/tests/language_2/switch/try_catch_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 18869: Check that try-catch is working correctly // inside switch-case clauses. diff --git a/tests/language_2/symbol/conflict_test.dart b/tests/language_2/symbol/conflict_test.dart index 9c95e0582c9..b988b43cb7e 100644 --- a/tests/language_2/symbol/conflict_test.dart +++ b/tests/language_2/symbol/conflict_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that const symbols are only equal to the symbol they represent. import 'package:expect/expect.dart'; diff --git a/tests/language_2/symbol/literal_runtime_1_test.dart b/tests/language_2/symbol/literal_runtime_1_test.dart index e574d8cd132..ff5f0cb35ed 100644 --- a/tests/language_2/symbol/literal_runtime_1_test.dart +++ b/tests/language_2/symbol/literal_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/symbol/literal_runtime_test.dart b/tests/language_2/symbol/literal_runtime_test.dart index 5bc7eed589f..945678fa1c8 100644 --- a/tests/language_2/symbol/literal_runtime_test.dart +++ b/tests/language_2/symbol/literal_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/symbol/literal_test.dart b/tests/language_2/symbol/literal_test.dart index 976158f7221..ae77cf25ae2 100644 --- a/tests/language_2/symbol/literal_test.dart +++ b/tests/language_2/symbol/literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test symbol literals. library symbol_literal_test; diff --git a/tests/language_2/sync_star/covariant_type_test.dart b/tests/language_2/sync_star/covariant_type_test.dart index efae12a3ea9..cad3f94200a 100644 --- a/tests/language_2/sync_star/covariant_type_test.dart +++ b/tests/language_2/sync_star/covariant_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that TypeErrors happen for sync* methods without creating iterator. import 'package:expect/expect.dart'; diff --git a/tests/language_2/sync_star/dcall_type_test.dart b/tests/language_2/sync_star/dcall_type_test.dart index 556141919f8..e783855efbf 100644 --- a/tests/language_2/sync_star/dcall_type_test.dart +++ b/tests/language_2/sync_star/dcall_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that TypeErrors happen for sync* methods without creating iterator. import 'package:expect/expect.dart'; diff --git a/tests/language_2/sync_star/generator1_runtime_test.dart b/tests/language_2/sync_star/generator1_runtime_test.dart index 728a800eac1..3b1faa46567 100644 --- a/tests/language_2/sync_star/generator1_runtime_test.dart +++ b/tests/language_2/sync_star/generator1_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/sync_star/generator1_test.dart b/tests/language_2/sync_star/generator1_test.dart index ef6bd9bf098..5bd8a87c02f 100644 --- a/tests/language_2/sync_star/generator1_test.dart +++ b/tests/language_2/sync_star/generator1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Simple test program for sync* generator functions. // VMOptions=--optimization_counter_threshold=10 diff --git a/tests/language_2/sync_star/generator2_test.dart b/tests/language_2/sync_star/generator2_test.dart index feaee6363ef..88406c2e22d 100644 --- a/tests/language_2/sync_star/generator2_test.dart +++ b/tests/language_2/sync_star/generator2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Simple test program for sync* generator functions. import "package:expect/expect.dart"; diff --git a/tests/language_2/sync_star/generator3_test.dart b/tests/language_2/sync_star/generator3_test.dart index d8646df9faa..15af7829966 100644 --- a/tests/language_2/sync_star/generator3_test.dart +++ b/tests/language_2/sync_star/generator3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test program for sync* generator functions and yielding in try blocks. import "package:expect/expect.dart"; diff --git a/tests/language_2/sync_star/less_than_test.dart b/tests/language_2/sync_star/less_than_test.dart index 8dd197ac64b..58cbb4c1329 100644 --- a/tests/language_2/sync_star/less_than_test.dart +++ b/tests/language_2/sync_star/less_than_test.dart @@ -2,6 +2,8 @@ // source code is governed by a BSD-style license that can be found in // the LICENSE file. +// @dart = 2.9 + import "package:expect/expect.dart"; confuse(x) => [1, 'x', true, null, x].last; diff --git a/tests/language_2/sync_star/nested_subtype_test.dart b/tests/language_2/sync_star/nested_subtype_test.dart index f5f29cade35..97614a81570 100644 --- a/tests/language_2/sync_star/nested_subtype_test.dart +++ b/tests/language_2/sync_star/nested_subtype_test.dart @@ -2,6 +2,8 @@ // source code is governed by a BSD-style license that can be found in // the LICENSE file. +// @dart = 2.9 + // Regression test for: https://github.com/dart-lang/sdk/issues/42234 Iterable f() sync* { diff --git a/tests/language_2/sync_star/sync_star_exception_nested_test.dart b/tests/language_2/sync_star/sync_star_exception_nested_test.dart index 6c8b702bbf2..0b113659e43 100644 --- a/tests/language_2/sync_star/sync_star_exception_nested_test.dart +++ b/tests/language_2/sync_star/sync_star_exception_nested_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // See: https://github.com/dart-lang/sdk/issues/42466 import 'dart:collection'; diff --git a/tests/language_2/sync_star/sync_star_exception_test.dart b/tests/language_2/sync_star/sync_star_exception_test.dart index e1db95a9cca..54eb32ec8fb 100644 --- a/tests/language_2/sync_star/sync_star_exception_test.dart +++ b/tests/language_2/sync_star/sync_star_exception_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // See: https://github.com/dart-lang/sdk/issues/42466 import 'dart:collection'; diff --git a/tests/language_2/sync_star/void_sync_star_test.dart b/tests/language_2/sync_star/void_sync_star_test.dart index 4c387f37896..1755b6a69eb 100644 --- a/tests/language_2/sync_star/void_sync_star_test.dart +++ b/tests/language_2/sync_star/void_sync_star_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // It is an error for a `sync*` function to have return type `void`. /*space*/ void f1() sync* { diff --git a/tests/language_2/sync_star/yield_star_pause_test.dart b/tests/language_2/sync_star/yield_star_pause_test.dart index 23fc133cd8c..82448f567de 100644 --- a/tests/language_2/sync_star/yield_star_pause_test.dart +++ b/tests/language_2/sync_star/yield_star_pause_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/sync_star/yield_test.dart b/tests/language_2/sync_star/yield_test.dart index 160142c9446..5484a134811 100644 --- a/tests/language_2/sync_star/yield_test.dart +++ b/tests/language_2/sync_star/yield_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // TODO(jmesserly): this is a copy of the language test of the same name, // we can remove this copy when we're running against those tests. import "package:expect/expect.dart"; diff --git a/tests/language_2/sync_star/yieldstar_test.dart b/tests/language_2/sync_star/yieldstar_test.dart index 82e7166e27a..703188a278f 100644 --- a/tests/language_2/sync_star/yieldstar_test.dart +++ b/tests/language_2/sync_star/yieldstar_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // TODO(jmesserly): this is a copy of the language test of the same name, // we can remove this copy when we're running against those tests. import "package:expect/expect.dart"; diff --git a/tests/language_2/syntax/deep_nesting_expression_test.dart b/tests/language_2/syntax/deep_nesting_expression_test.dart index 5ab1db56d52..a0fff3e6ec9 100644 --- a/tests/language_2/syntax/deep_nesting_expression_test.dart +++ b/tests/language_2/syntax/deep_nesting_expression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Deeply nested expression must not crash compiler due to stack overflow. main() { diff --git a/tests/language_2/syntax/deep_nesting_statement_test.dart b/tests/language_2/syntax/deep_nesting_statement_test.dart index bb000248ad1..883d3d4ab73 100644 --- a/tests/language_2/syntax/deep_nesting_statement_test.dart +++ b/tests/language_2/syntax/deep_nesting_statement_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Deeply nested statements must not crash compiler due to stack overflow. var x = 0; diff --git a/tests/language_2/syntax/nested_comments_test.dart b/tests/language_2/syntax/nested_comments_test.dart index 48d07ba2ee3..b3f7dcfa2f8 100644 --- a/tests/language_2/syntax/nested_comments_test.dart +++ b/tests/language_2/syntax/nested_comments_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing nested comments +// @dart = 2.9 + import "package:expect/expect.dart"; // /* nested comment */ diff --git a/tests/language_2/syntax/pre_nnbd_modifiers_test.dart b/tests/language_2/syntax/pre_nnbd_modifiers_test.dart index 80e79d787ac..ef1224dfe8e 100644 --- a/tests/language_2/syntax/pre_nnbd_modifiers_test.dart +++ b/tests/language_2/syntax/pre_nnbd_modifiers_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test ensures that the modifiers added as part of NNBD are not enabled // until NNBD is enabled by default. At that time, this test should be removed. diff --git a/tests/language_2/syntax/statement_test.dart b/tests/language_2/syntax/statement_test.dart index 37b7aa1e003..3ea3f77caa7 100644 --- a/tests/language_2/syntax/statement_test.dart +++ b/tests/language_2/syntax/statement_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests all statement types. Not an exhaustive test of all statement semantics. diff --git a/tests/language_2/syntax/syntax_test.dart b/tests/language_2/syntax/syntax_test.dart index 107e0222487..61e87630792 100644 --- a/tests/language_2/syntax/syntax_test.dart +++ b/tests/language_2/syntax/syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class SyntaxTest { // "this" cannot be used as a field name. SyntaxTest this; //# 01: syntax error diff --git a/tests/language_2/syntax/unbalanced_brace_test.dart b/tests/language_2/syntax/unbalanced_brace_test.dart index 5e889ccccae..659ecdd7a56 100644 --- a/tests/language_2/syntax/unbalanced_brace_test.dart +++ b/tests/language_2/syntax/unbalanced_brace_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test syntax errors related to unterminated braces. class A { diff --git a/tests/language_2/this/as_covariant_call_checks_test.dart b/tests/language_2/this/as_covariant_call_checks_test.dart index db61f44022c..077b53a494c 100644 --- a/tests/language_2/this/as_covariant_call_checks_test.dart +++ b/tests/language_2/this/as_covariant_call_checks_test.dart @@ -4,6 +4,8 @@ // // VMOptions=--no-background-compilation --optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/this/as_dynamic_call_checks_test.dart b/tests/language_2/this/as_dynamic_call_checks_test.dart index cb9636ce7b8..c1e34eea3fa 100644 --- a/tests/language_2/this/as_dynamic_call_checks_test.dart +++ b/tests/language_2/this/as_dynamic_call_checks_test.dart @@ -4,6 +4,8 @@ // // VMOptions=--no-background-compilation --optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/this/call_this_test.dart b/tests/language_2/this/call_this_test.dart index 55e7ccd5096..00586a7e271 100644 --- a/tests/language_2/this/call_this_test.dart +++ b/tests/language_2/this/call_this_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that dart2js treats [:this():] as a closure send. import "package:expect/expect.dart"; diff --git a/tests/language_2/this/conditional_operator_runtime_test.dart b/tests/language_2/this/conditional_operator_runtime_test.dart index eb562446e45..4db87724bf8 100644 --- a/tests/language_2/this/conditional_operator_runtime_test.dart +++ b/tests/language_2/this/conditional_operator_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/this/conditional_operator_test.dart b/tests/language_2/this/conditional_operator_test.dart index 064153afaea..98016a28c1b 100644 --- a/tests/language_2/this/conditional_operator_test.dart +++ b/tests/language_2/this/conditional_operator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that the ?. operator cannot be used for forwarding "this" // constructors. @@ -15,15 +17,13 @@ class B { : this?.namedConstructor() //^^^^ // [analyzer] COMPILE_TIME_ERROR.INVALID_REFERENCE_TO_THIS - // [cfe] Expected an assignment after the field name. - //^^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_ASSIGNMENT_IN_INITIALIZER //^^^^^^^^^^^^^^^^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.INITIALIZER_FOR_NON_EXISTENT_FIELD - // [error line 15, column 11, length 0] - // [cfe] Expected '.' before this. + // [cfe] Expected an assignment after the field name. // ^^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN + // [cfe] Expected '.' before this. // [cfe] Expected an identifier, but got ''. ; diff --git a/tests/language_2/this/implicit_runtime_test.dart b/tests/language_2/this/implicit_runtime_test.dart index 34022fd12e1..b244f612e84 100644 --- a/tests/language_2/this/implicit_runtime_test.dart +++ b/tests/language_2/this/implicit_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/this/implicit_this_test.dart b/tests/language_2/this/implicit_this_test.dart index 0cbcfa8f75d..e830d15148a 100644 --- a/tests/language_2/this/implicit_this_test.dart +++ b/tests/language_2/this/implicit_this_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; abstract class Interface { diff --git a/tests/language_2/this/in_initializer_test.dart b/tests/language_2/this/in_initializer_test.dart index bf65c179d10..a1e3ff9048c 100644 --- a/tests/language_2/this/in_initializer_test.dart +++ b/tests/language_2/this/in_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { static var s = "something"; var a = "anything"; diff --git a/tests/language_2/this/runtime_test.dart b/tests/language_2/this/runtime_test.dart index c81a1b21d3a..a377ab32b7e 100644 --- a/tests/language_2/this/runtime_test.dart +++ b/tests/language_2/this/runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/this/this_test.dart b/tests/language_2/this/this_test.dart index 8d29f8a65e6..43cf9060e67 100644 --- a/tests/language_2/this/this_test.dart +++ b/tests/language_2/this/this_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Foo { var x; f() {} diff --git a/tests/language_2/top_level/collision1_test.dart b/tests/language_2/top_level/collision1_test.dart index f8d97c4b1ea..82d8efaefaf 100644 --- a/tests/language_2/top_level/collision1_test.dart +++ b/tests/language_2/top_level/collision1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + int x = 100; get x => 200; // //# 00: compile-time error diff --git a/tests/language_2/top_level/collision2_test.dart b/tests/language_2/top_level/collision2_test.dart index 0d9734e36e6..742836cd45e 100644 --- a/tests/language_2/top_level/collision2_test.dart +++ b/tests/language_2/top_level/collision2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + get x => 200; // Ok: can have a setter named x when getter x is defined. diff --git a/tests/language_2/top_level/file1.dart b/tests/language_2/top_level/file1.dart index e0f5d98eafb..83d00f025a4 100644 --- a/tests/language_2/top_level/file1.dart +++ b/tests/language_2/top_level/file1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of TopLevelMultipleFilesTest.dart; main() { diff --git a/tests/language_2/top_level/file2.dart b/tests/language_2/top_level/file2.dart index 19ca8caa4e5..f137c3f9980 100644 --- a/tests/language_2/top_level/file2.dart +++ b/tests/language_2/top_level/file2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of TopLevelMultipleFilesTest.dart; const topLevelVar = 42; diff --git a/tests/language_2/top_level/file3.dart b/tests/language_2/top_level/file3.dart index a42c558c751..d9ffab68d9c 100644 --- a/tests/language_2/top_level/file3.dart +++ b/tests/language_2/top_level/file3.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { Expect.equals(42, prefix.topLevelVar); } diff --git a/tests/language_2/top_level/func_test.dart b/tests/language_2/top_level/func_test.dart index eb438d78cef..7aac30bcdfc 100644 --- a/tests/language_2/top_level/func_test.dart +++ b/tests/language_2/top_level/func_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing top-level variables. +// @dart = 2.9 + import "package:expect/expect.dart"; class TopLevelFuncTest { diff --git a/tests/language_2/top_level/getter_arrow_syntax_test.dart b/tests/language_2/top_level/getter_arrow_syntax_test.dart index f564a31410e..fadc883cabb 100644 --- a/tests/language_2/top_level/getter_arrow_syntax_test.dart +++ b/tests/language_2/top_level/getter_arrow_syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; get getter => 42; diff --git a/tests/language_2/top_level/getter_no_setter1_test.dart b/tests/language_2/top_level/getter_no_setter1_test.dart index ae74548aae3..65490af3395 100644 --- a/tests/language_2/top_level/getter_no_setter1_test.dart +++ b/tests/language_2/top_level/getter_no_setter1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; bool getter_visited = false; diff --git a/tests/language_2/top_level/getter_no_setter2_test.dart b/tests/language_2/top_level/getter_no_setter2_test.dart index 413c52fb722..57fefcfd90f 100644 --- a/tests/language_2/top_level/getter_no_setter2_test.dart +++ b/tests/language_2/top_level/getter_no_setter2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; bool getter_visited = false; diff --git a/tests/language_2/top_level/in_initializer_test.dart b/tests/language_2/top_level/in_initializer_test.dart index b639ca4c69b..f77d8618d48 100644 --- a/tests/language_2/top_level/in_initializer_test.dart +++ b/tests/language_2/top_level/in_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that constructor initializers can access top level elements. diff --git a/tests/language_2/top_level/method_test.dart b/tests/language_2/top_level/method_test.dart index ea3ce0f4f18..74ad48e634d 100644 --- a/tests/language_2/top_level/method_test.dart +++ b/tests/language_2/top_level/method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; untypedTopLevel() { diff --git a/tests/language_2/top_level/multiple_files_test.dart b/tests/language_2/top_level/multiple_files_test.dart index 53f578e562c..1bb3bda3b98 100644 --- a/tests/language_2/top_level/multiple_files_test.dart +++ b/tests/language_2/top_level/multiple_files_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library TopLevelMultipleFilesTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/top_level/non_prefixed_library_test.dart b/tests/language_2/top_level/non_prefixed_library_test.dart index 937170ccc1d..0e7681beb50 100644 --- a/tests/language_2/top_level/non_prefixed_library_test.dart +++ b/tests/language_2/top_level/non_prefixed_library_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library TopLevelMultipleFilesTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/top_level/prefixed_declaration_test.dart b/tests/language_2/top_level/prefixed_declaration_test.dart index 6b212740b91..5f41a73c5c2 100644 --- a/tests/language_2/top_level/prefixed_declaration_test.dart +++ b/tests/language_2/top_level/prefixed_declaration_test.dart @@ -4,6 +4,8 @@ // // Dart test for top level declarations involving an imported type. +// @dart = 2.9 + library main; import "package:expect/expect.dart"; diff --git a/tests/language_2/top_level/prefixed_library.dart b/tests/language_2/top_level/prefixed_library.dart index 6e48391456e..7f2b5432b5e 100644 --- a/tests/language_2/top_level/prefixed_library.dart +++ b/tests/language_2/top_level/prefixed_library.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library TopLevelMultipleFilesTest.dart; const topLevelVar = 42; diff --git a/tests/language_2/top_level/unresolved_method_test.dart b/tests/language_2/top_level/unresolved_method_test.dart index 1aa0503549d..d32533e4883 100644 --- a/tests/language_2/top_level/unresolved_method_test.dart +++ b/tests/language_2/top_level/unresolved_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that an unresolved method call at the top level creates a compile- // time error. diff --git a/tests/language_2/top_level/unresolved_var_test.dart b/tests/language_2/top_level/unresolved_var_test.dart index c2e5f727f1e..9f2ce17774f 100644 --- a/tests/language_2/top_level/unresolved_var_test.dart +++ b/tests/language_2/top_level/unresolved_var_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that an unresolved identifier at the top level causes a compile-time // error. diff --git a/tests/language_2/top_level/var_test.dart b/tests/language_2/top_level/var_test.dart index e7d9216c065..5537dd19828 100644 --- a/tests/language_2/top_level/var_test.dart +++ b/tests/language_2/top_level/var_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing top-level variables. +// @dart = 2.9 + import "package:expect/expect.dart"; var a, b; diff --git a/tests/language_2/type/alias_equality_test.dart b/tests/language_2/type/alias_equality_test.dart index 7ee087a68a9..0803c1cc9b8 100644 --- a/tests/language_2/type/alias_equality_test.dart +++ b/tests/language_2/type/alias_equality_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that type aliases perform equality tests according to the // underlying function type, not as if they were a distinct type // for each type alias declaration. diff --git a/tests/language_2/type/check_const_function_typedef2_test.dart b/tests/language_2/type/check_const_function_typedef2_test.dart index c3674117d14..d29555cd165 100644 --- a/tests/language_2/type/check_const_function_typedef2_test.dart +++ b/tests/language_2/type/check_const_function_typedef2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that typechecks on const objects with typedefs work. import "package:expect/expect.dart"; diff --git a/tests/language_2/type/check_const_function_typedef_test.dart b/tests/language_2/type/check_const_function_typedef_test.dart index 484c61aeef1..f88797adcd6 100644 --- a/tests/language_2/type/check_const_function_typedef_test.dart +++ b/tests/language_2/type/check_const_function_typedef_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that typechecks on const objects with typedefs work. import "package:expect/expect.dart"; diff --git a/tests/language_2/type/check_test.dart b/tests/language_2/type/check_test.dart index 20539a18c5c..798a0e94ce3 100644 --- a/tests/language_2/type/check_test.dart +++ b/tests/language_2/type/check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to remove the a B type check // after an A type check, because it thought any subtype of A had to be B. diff --git a/tests/language_2/type/checks_in_factory_method_runtime_test.dart b/tests/language_2/type/checks_in_factory_method_runtime_test.dart index 58f0c896c51..a680bb3201c 100644 --- a/tests/language_2/type/checks_in_factory_method_runtime_test.dart +++ b/tests/language_2/type/checks_in_factory_method_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type/checks_in_factory_method_test.dart b/tests/language_2/type/checks_in_factory_method_test.dart index 3be4613fbc4..a0d0c719568 100644 --- a/tests/language_2/type/checks_in_factory_method_test.dart +++ b/tests/language_2/type/checks_in_factory_method_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Tests the type checking when passing code into closure from inside a factory method +// @dart = 2.9 + import "package:expect/expect.dart"; abstract class Foo { diff --git a/tests/language_2/type/constants_test.dart b/tests/language_2/type/constants_test.dart index 560e485a08e..ded5300f4ea 100644 --- a/tests/language_2/type/constants_test.dart +++ b/tests/language_2/type/constants_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that the value of constant type literals are allowed as // constant map keys and case expressions, and the value of non-constant type // literals are not. diff --git a/tests/language_2/type/conversion_ssa_test.dart b/tests/language_2/type/conversion_ssa_test.dart index 2a721b78eb6..1e6e3318ee4 100644 --- a/tests/language_2/type/conversion_ssa_test.dart +++ b/tests/language_2/type/conversion_ssa_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js, that used to generate bad code in // checked mode. The pattern that lead to an error was: // diff --git a/tests/language_2/type/error_test.dart b/tests/language_2/type/error_test.dart index 4797b373490..0543ba3aa54 100644 --- a/tests/language_2/type/error_test.dart +++ b/tests/language_2/type/error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that various type errors produced by explicit casts don't invoke diff --git a/tests/language_2/type/guard_conversion_test.dart b/tests/language_2/type/guard_conversion_test.dart index c93110869b9..4429ff17078 100644 --- a/tests/language_2/type/guard_conversion_test.dart +++ b/tests/language_2/type/guard_conversion_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; foo() => 'bar'; diff --git a/tests/language_2/type/hoisting_test.dart b/tests/language_2/type/hoisting_test.dart index 80cd145286b..ef471285982 100644 --- a/tests/language_2/type/hoisting_test.dart +++ b/tests/language_2/type/hoisting_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2016, 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 = 2.9 import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/type/implicit_error_test.dart b/tests/language_2/type/implicit_error_test.dart index 1c428424301..815abf796ef 100644 --- a/tests/language_2/type/implicit_error_test.dart +++ b/tests/language_2/type/implicit_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that various type errors produced by implicit casts don't invoke diff --git a/tests/language_2/type/intersection_test.dart b/tests/language_2/type/intersection_test.dart index dc548b4086c..12e190265de 100644 --- a/tests/language_2/type/intersection_test.dart +++ b/tests/language_2/type/intersection_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to consider that the // intersection of [Comparable] and [num] is conflicting. diff --git a/tests/language_2/type_object/constant_type_literal_runtime_test.dart b/tests/language_2/type_object/constant_type_literal_runtime_test.dart index 30fdd50b322..3e53acdf28d 100644 --- a/tests/language_2/type_object/constant_type_literal_runtime_test.dart +++ b/tests/language_2/type_object/constant_type_literal_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_object/constant_type_literal_test.dart b/tests/language_2/type_object/constant_type_literal_test.dart index 91e07f4678d..34adaea2848 100644 --- a/tests/language_2/type_object/constant_type_literal_test.dart +++ b/tests/language_2/type_object/constant_type_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for type literals as compile-time constants. class C { diff --git a/tests/language_2/type_object/first_class_types_constants_test.dart b/tests/language_2/type_object/first_class_types_constants_test.dart index f0447f76ab4..6dfd36baade 100644 --- a/tests/language_2/type_object/first_class_types_constants_test.dart +++ b/tests/language_2/type_object/first_class_types_constants_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/type_object/first_class_types_lib1.dart b/tests/language_2/type_object/first_class_types_lib1.dart index baadc66015a..0721042d0d2 100644 --- a/tests/language_2/type_object/first_class_types_lib1.dart +++ b/tests/language_2/type_object/first_class_types_lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib1; class A {} diff --git a/tests/language_2/type_object/first_class_types_lib2.dart b/tests/language_2/type_object/first_class_types_lib2.dart index de943b7cd09..d56239faa23 100644 --- a/tests/language_2/type_object/first_class_types_lib2.dart +++ b/tests/language_2/type_object/first_class_types_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib2; class A {} diff --git a/tests/language_2/type_object/first_class_types_libraries_test.dart b/tests/language_2/type_object/first_class_types_libraries_test.dart index ad5f552d71e..eec983a3ec8 100644 --- a/tests/language_2/type_object/first_class_types_libraries_test.dart +++ b/tests/language_2/type_object/first_class_types_libraries_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library firstClassLibrariestest; import "package:expect/expect.dart"; diff --git a/tests/language_2/type_object/first_class_types_literals_runtime_1_test.dart b/tests/language_2/type_object/first_class_types_literals_runtime_1_test.dart index b415e993dd8..6a053856eac 100644 --- a/tests/language_2/type_object/first_class_types_literals_runtime_1_test.dart +++ b/tests/language_2/type_object/first_class_types_literals_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_object/first_class_types_literals_runtime_2_test.dart b/tests/language_2/type_object/first_class_types_literals_runtime_2_test.dart index e5c84423c33..7ef4771444a 100644 --- a/tests/language_2/type_object/first_class_types_literals_runtime_2_test.dart +++ b/tests/language_2/type_object/first_class_types_literals_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_object/first_class_types_literals_runtime_test.dart b/tests/language_2/type_object/first_class_types_literals_runtime_test.dart index 3df083abeb6..0b35f143f60 100644 --- a/tests/language_2/type_object/first_class_types_literals_runtime_test.dart +++ b/tests/language_2/type_object/first_class_types_literals_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_object/first_class_types_literals_test.dart b/tests/language_2/type_object/first_class_types_literals_test.dart index 6392b6dea67..edd0dc03ab9 100644 --- a/tests/language_2/type_object/first_class_types_literals_test.dart +++ b/tests/language_2/type_object/first_class_types_literals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C {} diff --git a/tests/language_2/type_object/first_class_types_test.dart b/tests/language_2/type_object/first_class_types_test.dart index 91a6b85843f..4107f0cabf5 100644 --- a/tests/language_2/type_object/first_class_types_test.dart +++ b/tests/language_2/type_object/first_class_types_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C {} diff --git a/tests/language_2/type_object/literal_canonicalization_test.dart b/tests/language_2/type_object/literal_canonicalization_test.dart index 790f1b6e966..69c95d48484 100644 --- a/tests/language_2/type_object/literal_canonicalization_test.dart +++ b/tests/language_2/type_object/literal_canonicalization_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Foo {} diff --git a/tests/language_2/type_object/literal_prefix_call_test.dart b/tests/language_2/type_object/literal_prefix_call_test.dart index 46f2562ec73..32b50bc03c4 100644 --- a/tests/language_2/type_object/literal_prefix_call_test.dart +++ b/tests/language_2/type_object/literal_prefix_call_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:core' as core; diff --git a/tests/language_2/type_object/literal_type_literal_test.dart b/tests/language_2/type_object/literal_type_literal_test.dart index 92da452aa41..81eb9e2c7b5 100644 --- a/tests/language_2/type_object/literal_type_literal_test.dart +++ b/tests/language_2/type_object/literal_type_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'literal_type_literal_test.dart' as prefix; diff --git a/tests/language_2/type_object/reify_type_variable_test.dart b/tests/language_2/type_object/reify_type_variable_test.dart index 50c5e4147da..2320966b524 100644 --- a/tests/language_2/type_object/reify_type_variable_test.dart +++ b/tests/language_2/type_object/reify_type_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Foo { diff --git a/tests/language_2/type_object/runtime_type_function_test.dart b/tests/language_2/type_object/runtime_type_function_test.dart index 1e56ee10446..dd333f2e5e6 100644 --- a/tests/language_2/type_object/runtime_type_function_test.dart +++ b/tests/language_2/type_object/runtime_type_function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; typedef String F(String returns, String arguments, [Map named]); diff --git a/tests/language_2/type_object/runtime_type_test.dart b/tests/language_2/type_object/runtime_type_test.dart index f0b66db02bd..2287d6223e3 100644 --- a/tests/language_2/type_object/runtime_type_test.dart +++ b/tests/language_2/type_object/runtime_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/type_promotion/assign_runtime_test.dart b/tests/language_2/type_promotion/assign_runtime_test.dart index 477712cefe6..e4999cdf611 100644 --- a/tests/language_2/type_promotion/assign_runtime_test.dart +++ b/tests/language_2/type_promotion/assign_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/assign_test.dart b/tests/language_2/type_promotion/assign_test.dart index 35d99d8494c..b366b2a0b02 100644 --- a/tests/language_2/type_promotion/assign_test.dart +++ b/tests/language_2/type_promotion/assign_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test type promotion of assigned locals. class A { diff --git a/tests/language_2/type_promotion/assignment_defeats_promotion_and_test.dart b/tests/language_2/type_promotion/assignment_defeats_promotion_and_test.dart index c47460bc5d8..fcee4184a61 100644 --- a/tests/language_2/type_promotion/assignment_defeats_promotion_and_test.dart +++ b/tests/language_2/type_promotion/assignment_defeats_promotion_and_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that an assignment on the right hand side of `&&` defeats promotion // after the entire `&&` expression, not just in the right hand side. diff --git a/tests/language_2/type_promotion/assignment_defeats_promotion_cascaded_test.dart b/tests/language_2/type_promotion/assignment_defeats_promotion_cascaded_test.dart index 9b65f00188e..4648a371571 100644 --- a/tests/language_2/type_promotion/assignment_defeats_promotion_cascaded_test.dart +++ b/tests/language_2/type_promotion/assignment_defeats_promotion_cascaded_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that an assignment inside a complex promotion scope defeats all pending // promotions, whether introduced directly or through LHS or RHS of a logical // and expression. diff --git a/tests/language_2/type_promotion/assignment_defeats_promotion_immediate_test.dart b/tests/language_2/type_promotion/assignment_defeats_promotion_immediate_test.dart index f128749a531..904ee16f7ca 100644 --- a/tests/language_2/type_promotion/assignment_defeats_promotion_immediate_test.dart +++ b/tests/language_2/type_promotion/assignment_defeats_promotion_immediate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that an assignment inside a promotion scope defeats the promotion, even // if the assignment fills the scope (there are no intervening syntactic // constructs). diff --git a/tests/language_2/type_promotion/assignment_defeats_promotion_lhs_and_test.dart b/tests/language_2/type_promotion/assignment_defeats_promotion_lhs_and_test.dart index f917dd46ae7..bfe5800759d 100644 --- a/tests/language_2/type_promotion/assignment_defeats_promotion_lhs_and_test.dart +++ b/tests/language_2/type_promotion/assignment_defeats_promotion_lhs_and_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that an assignment on the left hand side of `&&` defeats promotion after // the entire `&&` expression, even if the promotion is on the right hand side // of `&&`. diff --git a/tests/language_2/type_promotion/assignment_defeats_promotion_nested_other_bool_test.dart b/tests/language_2/type_promotion/assignment_defeats_promotion_nested_other_bool_test.dart index 4df8b119ed7..befa43c6cef 100644 --- a/tests/language_2/type_promotion/assignment_defeats_promotion_nested_other_bool_test.dart +++ b/tests/language_2/type_promotion/assignment_defeats_promotion_nested_other_bool_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that an assignment inside a promotion scope defeats the promotion, even // if it is nested inside another unrelated promotion scope. diff --git a/tests/language_2/type_promotion/assignment_defeats_promotion_nested_other_test.dart b/tests/language_2/type_promotion/assignment_defeats_promotion_nested_other_test.dart index c87a85d4d28..c53ba0fc75d 100644 --- a/tests/language_2/type_promotion/assignment_defeats_promotion_nested_other_test.dart +++ b/tests/language_2/type_promotion/assignment_defeats_promotion_nested_other_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that an assignment inside a promotion scope defeats the promotion, even // if it is nested inside another unrelated promotion scope. diff --git a/tests/language_2/type_promotion/assignment_defeats_promotion_nested_same_test.dart b/tests/language_2/type_promotion/assignment_defeats_promotion_nested_same_test.dart index 09a3785e0ee..57c6d49d4cb 100644 --- a/tests/language_2/type_promotion/assignment_defeats_promotion_nested_same_test.dart +++ b/tests/language_2/type_promotion/assignment_defeats_promotion_nested_same_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that an assignment inside a promotion scope defeats the promotion, even // if it is nested inside another promotion scope that promotes the same // variable. diff --git a/tests/language_2/type_promotion/closure_runtime_1_test.dart b/tests/language_2/type_promotion/closure_runtime_1_test.dart index d863c919519..bca51c081f3 100644 --- a/tests/language_2/type_promotion/closure_runtime_1_test.dart +++ b/tests/language_2/type_promotion/closure_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/closure_runtime_2_test.dart b/tests/language_2/type_promotion/closure_runtime_2_test.dart index 0e397d5ec7c..94e686b0837 100644 --- a/tests/language_2/type_promotion/closure_runtime_2_test.dart +++ b/tests/language_2/type_promotion/closure_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/closure_runtime_test.dart b/tests/language_2/type_promotion/closure_runtime_test.dart index b760366fe6e..8d5414c2741 100644 --- a/tests/language_2/type_promotion/closure_runtime_test.dart +++ b/tests/language_2/type_promotion/closure_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/closure_test.dart b/tests/language_2/type_promotion/closure_test.dart index 2e6fec9f0fe..28c06252129 100644 --- a/tests/language_2/type_promotion/closure_test.dart +++ b/tests/language_2/type_promotion/closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test type promotion of locals potentially mutated in closures. import "package:meta/meta.dart" show virtual; diff --git a/tests/language_2/type_promotion/functions_runtime_test.dart b/tests/language_2/type_promotion/functions_runtime_test.dart index e421814f29f..b3b6db0beff 100644 --- a/tests/language_2/type_promotion/functions_runtime_test.dart +++ b/tests/language_2/type_promotion/functions_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/functions_test.dart b/tests/language_2/type_promotion/functions_test.dart index 30de4c10a1b..46f3b43e7e1 100644 --- a/tests/language_2/type_promotion/functions_test.dart +++ b/tests/language_2/type_promotion/functions_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test type promotion of functions. class A {} diff --git a/tests/language_2/type_promotion/local_runtime_test.dart b/tests/language_2/type_promotion/local_runtime_test.dart index b0102088375..58900909383 100644 --- a/tests/language_2/type_promotion/local_runtime_test.dart +++ b/tests/language_2/type_promotion/local_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/local_test.dart b/tests/language_2/type_promotion/local_test.dart index 85b0386e604..9ce1e4a8696 100644 --- a/tests/language_2/type_promotion/local_test.dart +++ b/tests/language_2/type_promotion/local_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test type promotion of locals. class A { diff --git a/tests/language_2/type_promotion/logical_and_runtime_test.dart b/tests/language_2/type_promotion/logical_and_runtime_test.dart index 700d020f68b..11a6f0a2b8a 100644 --- a/tests/language_2/type_promotion/logical_and_runtime_test.dart +++ b/tests/language_2/type_promotion/logical_and_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/logical_and_test.dart b/tests/language_2/type_promotion/logical_and_test.dart index 8168615a4c5..76d63935b28 100644 --- a/tests/language_2/type_promotion/logical_and_test.dart +++ b/tests/language_2/type_promotion/logical_and_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test type promotion of locals potentially mutated. class A { diff --git a/tests/language_2/type_promotion/more_specific_runtime_1_test.dart b/tests/language_2/type_promotion/more_specific_runtime_1_test.dart index a71d634921a..17465207caf 100644 --- a/tests/language_2/type_promotion/more_specific_runtime_1_test.dart +++ b/tests/language_2/type_promotion/more_specific_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/more_specific_runtime_2_test.dart b/tests/language_2/type_promotion/more_specific_runtime_2_test.dart index 1f9fd5ced9a..fdfa6807fcb 100644 --- a/tests/language_2/type_promotion/more_specific_runtime_2_test.dart +++ b/tests/language_2/type_promotion/more_specific_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/more_specific_runtime_3_test.dart b/tests/language_2/type_promotion/more_specific_runtime_3_test.dart index 93fe23994f0..87fdb4da9ca 100644 --- a/tests/language_2/type_promotion/more_specific_runtime_3_test.dart +++ b/tests/language_2/type_promotion/more_specific_runtime_3_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/more_specific_runtime_4_test.dart b/tests/language_2/type_promotion/more_specific_runtime_4_test.dart index 339a93c039c..757510c4bcd 100644 --- a/tests/language_2/type_promotion/more_specific_runtime_4_test.dart +++ b/tests/language_2/type_promotion/more_specific_runtime_4_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/more_specific_runtime_5_test.dart b/tests/language_2/type_promotion/more_specific_runtime_5_test.dart index 4a8b4507cb6..bc22838fe2f 100644 --- a/tests/language_2/type_promotion/more_specific_runtime_5_test.dart +++ b/tests/language_2/type_promotion/more_specific_runtime_5_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/more_specific_runtime_6_test.dart b/tests/language_2/type_promotion/more_specific_runtime_6_test.dart index ade88390448..e7a79915689 100644 --- a/tests/language_2/type_promotion/more_specific_runtime_6_test.dart +++ b/tests/language_2/type_promotion/more_specific_runtime_6_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/more_specific_runtime_test.dart b/tests/language_2/type_promotion/more_specific_runtime_test.dart index 3876f675db1..523c95542b7 100644 --- a/tests/language_2/type_promotion/more_specific_runtime_test.dart +++ b/tests/language_2/type_promotion/more_specific_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/more_specific_test.dart b/tests/language_2/type_promotion/more_specific_test.dart index 2e7d840f7af..69b17308c21 100644 --- a/tests/language_2/type_promotion/more_specific_test.dart +++ b/tests/language_2/type_promotion/more_specific_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test use of more specific in type promotion of interface types. class A { diff --git a/tests/language_2/type_promotion/multiple_runtime_test.dart b/tests/language_2/type_promotion/multiple_runtime_test.dart index b465d9b0aef..b14251f1941 100644 --- a/tests/language_2/type_promotion/multiple_runtime_test.dart +++ b/tests/language_2/type_promotion/multiple_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/multiple_test.dart b/tests/language_2/type_promotion/multiple_test.dart index 21a2f7dc7e5..de8607c9c27 100644 --- a/tests/language_2/type_promotion/multiple_test.dart +++ b/tests/language_2/type_promotion/multiple_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test type promotion of locals. class A { diff --git a/tests/language_2/type_promotion/parameter_runtime_test.dart b/tests/language_2/type_promotion/parameter_runtime_test.dart index 935dd06751f..bbfdb298a36 100644 --- a/tests/language_2/type_promotion/parameter_runtime_test.dart +++ b/tests/language_2/type_promotion/parameter_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_promotion/parameter_test.dart b/tests/language_2/type_promotion/parameter_test.dart index 7ce711971e8..ccde9665880 100644 --- a/tests/language_2/type_promotion/parameter_test.dart +++ b/tests/language_2/type_promotion/parameter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test type promotion of parameters. class A { diff --git a/tests/language_2/type_variable/bound_access_runtime_test.dart b/tests/language_2/type_variable/bound_access_runtime_test.dart index 0c7a1233d60..cda73892edd 100644 --- a/tests/language_2/type_variable/bound_access_runtime_test.dart +++ b/tests/language_2/type_variable/bound_access_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // Copyright (c) 2019, 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. diff --git a/tests/language_2/type_variable/bound_access_test.dart b/tests/language_2/type_variable/bound_access_test.dart index 39d52ea229e..5737b7c2b89 100644 --- a/tests/language_2/type_variable/bound_access_test.dart +++ b/tests/language_2/type_variable/bound_access_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class DynamicClass { T field1; T field2; diff --git a/tests/language_2/type_variable/bounds2_test.dart b/tests/language_2/type_variable/bounds2_test.dart index ecb6c9f62a7..0e82f3c1850 100644 --- a/tests/language_2/type_variable/bounds2_test.dart +++ b/tests/language_2/type_variable/bounds2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test of parameterized types with invalid bounds. diff --git a/tests/language_2/type_variable/bounds3_runtime_test.dart b/tests/language_2/type_variable/bounds3_runtime_test.dart index 4dd58432d3b..93211de9054 100644 --- a/tests/language_2/type_variable/bounds3_runtime_test.dart +++ b/tests/language_2/type_variable/bounds3_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_variable/bounds3_test.dart b/tests/language_2/type_variable/bounds3_test.dart index 471112b2400..a56675e21e0 100644 --- a/tests/language_2/type_variable/bounds3_test.dart +++ b/tests/language_2/type_variable/bounds3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test of parameterized types with invalid bounds. class A {} diff --git a/tests/language_2/type_variable/bounds4_runtime_test.dart b/tests/language_2/type_variable/bounds4_runtime_test.dart index eef3b1dcd1a..de363f9d439 100644 --- a/tests/language_2/type_variable/bounds4_runtime_test.dart +++ b/tests/language_2/type_variable/bounds4_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_variable/bounds4_test.dart b/tests/language_2/type_variable/bounds4_test.dart index 9908b9c14ae..265c94f0ea1 100644 --- a/tests/language_2/type_variable/bounds4_test.dart +++ b/tests/language_2/type_variable/bounds4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test instantiation of object with malbounded types. class A< diff --git a/tests/language_2/type_variable/bounds_test.dart b/tests/language_2/type_variable/bounds_test.dart index c4deff70c26..05f8c0b3d9f 100644 --- a/tests/language_2/type_variable/bounds_test.dart +++ b/tests/language_2/type_variable/bounds_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test of parameterized factory methods. class Foo { diff --git a/tests/language_2/type_variable/closure2_test.dart b/tests/language_2/type_variable/closure2_test.dart index 1b55ff9aca8..f674acd89a7 100644 --- a/tests/language_2/type_variable/closure2_test.dart +++ b/tests/language_2/type_variable/closure2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/type_variable/closure3_test.dart b/tests/language_2/type_variable/closure3_test.dart index ecb1c39e82e..1b961349dc0 100644 --- a/tests/language_2/type_variable/closure3_test.dart +++ b/tests/language_2/type_variable/closure3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/type_variable/closure4_test.dart b/tests/language_2/type_variable/closure4_test.dart index e75bc085dc1..902c26b3207 100644 --- a/tests/language_2/type_variable/closure4_test.dart +++ b/tests/language_2/type_variable/closure4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/type_variable/closure_test.dart b/tests/language_2/type_variable/closure_test.dart index 7fd7381dd3f..e1f0e999249 100644 --- a/tests/language_2/type_variable/closure_test.dart +++ b/tests/language_2/type_variable/closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/type_variable/conflict2_runtime_test.dart b/tests/language_2/type_variable/conflict2_runtime_test.dart index 275f8dc4f4a..ff0180d5daf 100644 --- a/tests/language_2/type_variable/conflict2_runtime_test.dart +++ b/tests/language_2/type_variable/conflict2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_variable/conflict2_test.dart b/tests/language_2/type_variable/conflict2_test.dart index f43e6091186..c2118123f3a 100644 --- a/tests/language_2/type_variable/conflict2_test.dart +++ b/tests/language_2/type_variable/conflict2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 13134. Invocation of a type parameter. import "package:expect/expect.dart"; diff --git a/tests/language_2/type_variable/conflict_runtime_test.dart b/tests/language_2/type_variable/conflict_runtime_test.dart index 04623cb6e8a..26cf7779eb4 100644 --- a/tests/language_2/type_variable/conflict_runtime_test.dart +++ b/tests/language_2/type_variable/conflict_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_variable/conflict_test.dart b/tests/language_2/type_variable/conflict_test.dart index cc8e4daa984..6a7f0ab1b95 100644 --- a/tests/language_2/type_variable/conflict_test.dart +++ b/tests/language_2/type_variable/conflict_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we report a compile-time error when a type parameter conflicts // with an instance or static member with the same name. diff --git a/tests/language_2/type_variable/field_initializer2_test.dart b/tests/language_2/type_variable/field_initializer2_test.dart index 5249bf2a6f4..3aad18e18e6 100644 --- a/tests/language_2/type_variable/field_initializer2_test.dart +++ b/tests/language_2/type_variable/field_initializer2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that an inlined field initializer has access to the enclosing // type variables. diff --git a/tests/language_2/type_variable/field_initializer_closure2_test.dart b/tests/language_2/type_variable/field_initializer_closure2_test.dart index f3536cab682..d78d73c2b92 100644 --- a/tests/language_2/type_variable/field_initializer_closure2_test.dart +++ b/tests/language_2/type_variable/field_initializer_closure2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that an inlined field closure has access to the enclosing // type variables. diff --git a/tests/language_2/type_variable/field_initializer_closure_test.dart b/tests/language_2/type_variable/field_initializer_closure_test.dart index a61215b1d6b..fce08fbd1c1 100644 --- a/tests/language_2/type_variable/field_initializer_closure_test.dart +++ b/tests/language_2/type_variable/field_initializer_closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that an inlined field closure has access to the enclosing // type variables. diff --git a/tests/language_2/type_variable/field_initializer_test.dart b/tests/language_2/type_variable/field_initializer_test.dart index 6d44cfb5003..1ef0660ee7a 100644 --- a/tests/language_2/type_variable/field_initializer_test.dart +++ b/tests/language_2/type_variable/field_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that an inlined field initializer has access to the enclosing // type variables. diff --git a/tests/language_2/type_variable/function_type_test.dart b/tests/language_2/type_variable/function_type_test.dart index ad060808cba..789cc1f4f10 100644 --- a/tests/language_2/type_variable/function_type_test.dart +++ b/tests/language_2/type_variable/function_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; typedef T Func(); diff --git a/tests/language_2/type_variable/identifier_expression_test.dart b/tests/language_2/type_variable/identifier_expression_test.dart index 1827c56a2a7..497a27dccb4 100644 --- a/tests/language_2/type_variable/identifier_expression_test.dart +++ b/tests/language_2/type_variable/identifier_expression_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--enable_type_checks +// @dart = 2.9 + class A { static func() { return "class A"; diff --git a/tests/language_2/type_variable/initializer_test.dart b/tests/language_2/type_variable/initializer_test.dart index 3d5a85d114b..1645114f835 100644 --- a/tests/language_2/type_variable/initializer_test.dart +++ b/tests/language_2/type_variable/initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for dart2js where the reference to [:this:] in a diff --git a/tests/language_2/type_variable/nested_test.dart b/tests/language_2/type_variable/nested_test.dart index c47714490b5..35cc4bae40a 100644 --- a/tests/language_2/type_variable/nested_test.dart +++ b/tests/language_2/type_variable/nested_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for // http://code.google.com/p/dart/issues/detail?id=9050. diff --git a/tests/language_2/type_variable/promotion_issue39752_test.dart b/tests/language_2/type_variable/promotion_issue39752_test.dart index 731557daaf5..16a9390f26e 100644 --- a/tests/language_2/type_variable/promotion_issue39752_test.dart +++ b/tests/language_2/type_variable/promotion_issue39752_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() {} void f(T a) { diff --git a/tests/language_2/type_variable/promotion_test.dart b/tests/language_2/type_variable/promotion_test.dart index c0a507c4d41..0bf731964d7 100644 --- a/tests/language_2/type_variable/promotion_test.dart +++ b/tests/language_2/type_variable/promotion_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class A {} diff --git a/tests/language_2/type_variable/scope2_test.dart b/tests/language_2/type_variable/scope2_test.dart index 6893e2d771f..86d4c291494 100644 --- a/tests/language_2/type_variable/scope2_test.dart +++ b/tests/language_2/type_variable/scope2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that malformed type arguments are treated as an error. diff --git a/tests/language_2/type_variable/scope3_runtime_test.dart b/tests/language_2/type_variable/scope3_runtime_test.dart index e75b4a03845..49dbcea3e24 100644 --- a/tests/language_2/type_variable/scope3_runtime_test.dart +++ b/tests/language_2/type_variable/scope3_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_variable/scope3_test.dart b/tests/language_2/type_variable/scope3_test.dart index 9a382001a2b..4463a6bf92c 100644 --- a/tests/language_2/type_variable/scope3_test.dart +++ b/tests/language_2/type_variable/scope3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a type parameter cannot be repeated. class Foo< diff --git a/tests/language_2/type_variable/scope_runtime_test.dart b/tests/language_2/type_variable/scope_runtime_test.dart index 12e327da5fc..69ca8c5738f 100644 --- a/tests/language_2/type_variable/scope_runtime_test.dart +++ b/tests/language_2/type_variable/scope_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/type_variable/scope_test.dart b/tests/language_2/type_variable/scope_test.dart index febaa5d745d..cc5775effc6 100644 --- a/tests/language_2/type_variable/scope_test.dart +++ b/tests/language_2/type_variable/scope_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that type variables referenced from within static members are malformed. class Foo implements I { diff --git a/tests/language_2/type_variable/static_context_test.dart b/tests/language_2/type_variable/static_context_test.dart index e0cd2bc2902..5f613f7b03d 100644 --- a/tests/language_2/type_variable/static_context_test.dart +++ b/tests/language_2/type_variable/static_context_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A type variable can't be referenced in a static class class A { diff --git a/tests/language_2/type_variable/typedef_test.dart b/tests/language_2/type_variable/typedef_test.dart index caa1649f0e3..41cd1cf3e50 100644 --- a/tests/language_2/type_variable/typedef_test.dart +++ b/tests/language_2/type_variable/typedef_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that rti dependency registration takes type variables within typedefs // into account. diff --git a/tests/language_2/typedef/bad_typedef_runtime_test.dart b/tests/language_2/typedef/bad_typedef_runtime_test.dart index 274f7e70985..a1b69df8ef6 100644 --- a/tests/language_2/typedef/bad_typedef_runtime_test.dart +++ b/tests/language_2/typedef/bad_typedef_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // Copyright (c) 2016, 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. diff --git a/tests/language_2/typedef/bad_typedef_test.dart b/tests/language_2/typedef/bad_typedef_test.dart index c49eea842b2..808c3e925ce 100644 --- a/tests/language_2/typedef/bad_typedef_test.dart +++ b/tests/language_2/typedef/bad_typedef_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for a function type test that cannot be eliminated at compile time. +// @dart = 2.9 + import "package:expect/expect.dart"; typedef int H( diff --git a/tests/language_2/typedef/check_bounds_generic_test.dart b/tests/language_2/typedef/check_bounds_generic_test.dart index cc28dae9d2e..dfd20ccf411 100644 --- a/tests/language_2/typedef/check_bounds_generic_test.dart +++ b/tests/language_2/typedef/check_bounds_generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that typedef type parameters are verified to satisfy their bounds. typedef F = T Function(T x); diff --git a/tests/language_2/typedef/check_bounds_test.dart b/tests/language_2/typedef/check_bounds_test.dart index e1a411e07a6..382a68e013f 100644 --- a/tests/language_2/typedef/check_bounds_test.dart +++ b/tests/language_2/typedef/check_bounds_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that typedef type parameters are verified to satisfy their bounds. typedef T F(T x); diff --git a/tests/language_2/typedef/check_bounds_unused_test.dart b/tests/language_2/typedef/check_bounds_unused_test.dart index 247b0049f7c..b4fc11bbcff 100644 --- a/tests/language_2/typedef/check_bounds_unused_test.dart +++ b/tests/language_2/typedef/check_bounds_unused_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that typedef type parameters are verified to satisfy their bounds, even // if the type parameter in question isn't used by the typedef. diff --git a/tests/language_2/typedef/class_in_other_file_helper.dart b/tests/language_2/typedef/class_in_other_file_helper.dart index 3b66850d039..ec04b88eef8 100644 --- a/tests/language_2/typedef/class_in_other_file_helper.dart +++ b/tests/language_2/typedef/class_in_other_file_helper.dart @@ -2,4 +2,6 @@ // 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 = 2.9 + class Bar {} diff --git a/tests/language_2/typedef/class_in_other_file_test.dart b/tests/language_2/typedef/class_in_other_file_test.dart index c4a5b1a588d..6cc14464799 100644 --- a/tests/language_2/typedef/class_in_other_file_test.dart +++ b/tests/language_2/typedef/class_in_other_file_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This has crashed DDC with Kernel because of a // "Concurrent modification during iteration" exception. diff --git a/tests/language_2/typedef/cyclic_test.dart b/tests/language_2/typedef/cyclic_test.dart index c2a5c365fb1..ecfef2a9d23 100644 --- a/tests/language_2/typedef/cyclic_test.dart +++ b/tests/language_2/typedef/cyclic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that cyclic reference of a typedef is a compile-time error. // To test various cyclic references the definition of the [:typedef A():] is diff --git a/tests/language_2/typedef/is_test.dart b/tests/language_2/typedef/is_test.dart index b015f4600a4..788b9909d1e 100644 --- a/tests/language_2/typedef/is_test.dart +++ b/tests/language_2/typedef/is_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test is-test of typedefs with optional and named parameters. diff --git a/tests/language_2/unsorted/ackermann_test.dart b/tests/language_2/unsorted/ackermann_test.dart index c35d2d3cc95..5b2952b2aa3 100644 --- a/tests/language_2/unsorted/ackermann_test.dart +++ b/tests/language_2/unsorted/ackermann_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart version of two-argument Ackermann-Peter function. +// @dart = 2.9 + import "package:expect/expect.dart"; class AckermannTest { diff --git a/tests/language_2/unsorted/additional_interface_adds_optional_args_concrete_test.dart b/tests/language_2/unsorted/additional_interface_adds_optional_args_concrete_test.dart index 2fe4137e202..a321b32edb7 100644 --- a/tests/language_2/unsorted/additional_interface_adds_optional_args_concrete_test.dart +++ b/tests/language_2/unsorted/additional_interface_adds_optional_args_concrete_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { void foo() {} } diff --git a/tests/language_2/unsorted/additional_interface_adds_optional_args_test.dart b/tests/language_2/unsorted/additional_interface_adds_optional_args_test.dart index 5c9953e597e..0c74fd29ac3 100644 --- a/tests/language_2/unsorted/additional_interface_adds_optional_args_test.dart +++ b/tests/language_2/unsorted/additional_interface_adds_optional_args_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test exercises a corner case of override checking that is safe from a // soundness perspective, but which we haven't decided whether or not to allow // from a usability perspective. diff --git a/tests/language_2/unsorted/allocate_large_object_test.dart b/tests/language_2/unsorted/allocate_large_object_test.dart index 5873daade74..997b4797dd7 100644 --- a/tests/language_2/unsorted/allocate_large_object_test.dart +++ b/tests/language_2/unsorted/allocate_large_object_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/unsorted/allocate_test.dart b/tests/language_2/unsorted/allocate_test.dart index 2ab25c5e275..1c060df294a 100644 --- a/tests/language_2/unsorted/allocate_test.dart +++ b/tests/language_2/unsorted/allocate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class MyAllocate { diff --git a/tests/language_2/unsorted/arg_param_trailing_comma_test.dart b/tests/language_2/unsorted/arg_param_trailing_comma_test.dart index be2846c9080..335cfac50bd 100644 --- a/tests/language_2/unsorted/arg_param_trailing_comma_test.dart +++ b/tests/language_2/unsorted/arg_param_trailing_comma_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing params. +// @dart = 2.9 + // Convenience values. var c = new C(); var x = 42; diff --git a/tests/language_2/unsorted/assignable_expression_runtime_test.dart b/tests/language_2/unsorted/assignable_expression_runtime_test.dart index 942cb23d0ba..77daac8c599 100644 --- a/tests/language_2/unsorted/assignable_expression_runtime_test.dart +++ b/tests/language_2/unsorted/assignable_expression_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/unsorted/assignable_expression_test.dart b/tests/language_2/unsorted/assignable_expression_test.dart index 5bd904c4cb1..4074af4f51b 100644 --- a/tests/language_2/unsorted/assignable_expression_test.dart +++ b/tests/language_2/unsorted/assignable_expression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test to detect syntactically illegal left-hand-side (assignable) // expressions. diff --git a/tests/language_2/unsorted/bad_override_runtime_test.dart b/tests/language_2/unsorted/bad_override_runtime_test.dart index 1e2abe5dfb5..8475b1cf75e 100644 --- a/tests/language_2/unsorted/bad_override_runtime_test.dart +++ b/tests/language_2/unsorted/bad_override_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/unsorted/bad_override_test.dart b/tests/language_2/unsorted/bad_override_test.dart index 07400d2bebb..d823d771e43 100644 --- a/tests/language_2/unsorted/bad_override_test.dart +++ b/tests/language_2/unsorted/bad_override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Fisk { get fisk => null; static diff --git a/tests/language_2/unsorted/bind_test.dart b/tests/language_2/unsorted/bind_test.dart index 3617af3f780..580c1e1f2dd 100644 --- a/tests/language_2/unsorted/bind_test.dart +++ b/tests/language_2/unsorted/bind_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Bound { diff --git a/tests/language_2/unsorted/bootstrap_test.dart b/tests/language_2/unsorted/bootstrap_test.dart index 6b56a65cfde..32c440c8e01 100644 --- a/tests/language_2/unsorted/bootstrap_test.dart +++ b/tests/language_2/unsorted/bootstrap_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class BootstrapTest { static testMain() { var obj = new Object(); diff --git a/tests/language_2/unsorted/bottom_test.dart b/tests/language_2/unsorted/bottom_test.dart index 38ac7211061..a3df620265e 100644 --- a/tests/language_2/unsorted/bottom_test.dart +++ b/tests/language_2/unsorted/bottom_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/unsorted/branch_canonicalization_test.dart b/tests/language_2/unsorted/branch_canonicalization_test.dart index 49990cd0b13..a3b24641d95 100644 --- a/tests/language_2/unsorted/branch_canonicalization_test.dart +++ b/tests/language_2/unsorted/branch_canonicalization_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that branch fusion correctly sets branch environment for comparisons // that require unboxing and does not fuse branches that can deoptimize. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation diff --git a/tests/language_2/unsorted/branches_test.dart b/tests/language_2/unsorted/branches_test.dart index b45917696e7..d52e7393bdb 100644 --- a/tests/language_2/unsorted/branches_test.dart +++ b/tests/language_2/unsorted/branches_test.dart @@ -4,6 +4,8 @@ // Dart test for branches. Make sure that shortcuts work, even if they have // to jump over several expressions. +// @dart = 2.9 + import "package:expect/expect.dart"; class BranchesTest { diff --git a/tests/language_2/unsorted/callable_runtime_test.dart b/tests/language_2/unsorted/callable_runtime_test.dart index 05fad49862a..6745f859ae7 100644 --- a/tests/language_2/unsorted/callable_runtime_test.dart +++ b/tests/language_2/unsorted/callable_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/unsorted/callable_test.dart b/tests/language_2/unsorted/callable_test.dart index 16dde1344b6..43fff135957 100644 --- a/tests/language_2/unsorted/callable_test.dart +++ b/tests/language_2/unsorted/callable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class X { diff --git a/tests/language_2/unsorted/cascaded_forwarding_stubs_test.dart b/tests/language_2/unsorted/cascaded_forwarding_stubs_test.dart index a10cc2ea7e9..29fbe1fe29e 100644 --- a/tests/language_2/unsorted/cascaded_forwarding_stubs_test.dart +++ b/tests/language_2/unsorted/cascaded_forwarding_stubs_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A {} diff --git a/tests/language_2/unsorted/cast2_test.dart b/tests/language_2/unsorted/cast2_test.dart index 4e03ef39aa2..c65855fed19 100644 --- a/tests/language_2/unsorted/cast2_test.dart +++ b/tests/language_2/unsorted/cast2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + import "package:expect/expect.dart"; // Test 'expression as Type' casts. diff --git a/tests/language_2/unsorted/cast_test.dart b/tests/language_2/unsorted/cast_test.dart index e165022a3c5..f655690e4fa 100644 --- a/tests/language_2/unsorted/cast_test.dart +++ b/tests/language_2/unsorted/cast_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// @dart = 2.9 + import "package:expect/expect.dart"; // Test 'expression as Type' casts. diff --git a/tests/language_2/unsorted/check_member_static_runtime_1_test.dart b/tests/language_2/unsorted/check_member_static_runtime_1_test.dart index b9b4391db7e..05f92a4ded1 100644 --- a/tests/language_2/unsorted/check_member_static_runtime_1_test.dart +++ b/tests/language_2/unsorted/check_member_static_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/unsorted/check_member_static_runtime_test.dart b/tests/language_2/unsorted/check_member_static_runtime_test.dart index db884e0654b..06df24db19c 100644 --- a/tests/language_2/unsorted/check_member_static_runtime_test.dart +++ b/tests/language_2/unsorted/check_member_static_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/unsorted/check_member_static_test.dart b/tests/language_2/unsorted/check_member_static_test.dart index 2987cb82d36..dc7b84502c7 100644 --- a/tests/language_2/unsorted/check_member_static_test.dart +++ b/tests/language_2/unsorted/check_member_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { static var a; var b; diff --git a/tests/language_2/unsorted/check_method_override_runtime_test.dart b/tests/language_2/unsorted/check_method_override_runtime_test.dart index e538a336b25..c4b4a55a845 100644 --- a/tests/language_2/unsorted/check_method_override_runtime_test.dart +++ b/tests/language_2/unsorted/check_method_override_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/unsorted/check_method_override_test.dart b/tests/language_2/unsorted/check_method_override_test.dart index a23af6421a5..d2d439ea90c 100644 --- a/tests/language_2/unsorted/check_method_override_test.dart +++ b/tests/language_2/unsorted/check_method_override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { f([var x]) {} foo(var a, [x, y]) {} diff --git a/tests/language_2/unsorted/checked_method_error_order_test.dart b/tests/language_2/unsorted/checked_method_error_order_test.dart index 2d350877eca..7419c2070ea 100644 --- a/tests/language_2/unsorted/checked_method_error_order_test.dart +++ b/tests/language_2/unsorted/checked_method_error_order_test.dart @@ -1,6 +1,8 @@ // 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. + +// @dart = 2.9 import "package:expect/expect.dart"; class Bar { diff --git a/tests/language_2/unsorted/combiner_type_lookup_indexed_test.dart b/tests/language_2/unsorted/combiner_type_lookup_indexed_test.dart index e1f1a388066..ee2afc342d3 100644 --- a/tests/language_2/unsorted/combiner_type_lookup_indexed_test.dart +++ b/tests/language_2/unsorted/combiner_type_lookup_indexed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A {} class B extends A { diff --git a/tests/language_2/unsorted/combiner_type_lookup_instance_test.dart b/tests/language_2/unsorted/combiner_type_lookup_instance_test.dart index cc9536d98d0..497d7a6331a 100644 --- a/tests/language_2/unsorted/combiner_type_lookup_instance_test.dart +++ b/tests/language_2/unsorted/combiner_type_lookup_instance_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A {} class B extends A { diff --git a/tests/language_2/unsorted/combiner_type_lookup_static_test.dart b/tests/language_2/unsorted/combiner_type_lookup_static_test.dart index 925d9782920..8979b0ed8e3 100644 --- a/tests/language_2/unsorted/combiner_type_lookup_static_test.dart +++ b/tests/language_2/unsorted/combiner_type_lookup_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A {} class B extends A { diff --git a/tests/language_2/unsorted/combiner_type_lookup_top_level_test.dart b/tests/language_2/unsorted/combiner_type_lookup_top_level_test.dart index bb1cf5bc975..4a1b2765306 100644 --- a/tests/language_2/unsorted/combiner_type_lookup_top_level_test.dart +++ b/tests/language_2/unsorted/combiner_type_lookup_top_level_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A {} class B extends A { diff --git a/tests/language_2/unsorted/condition_bailout_test.dart b/tests/language_2/unsorted/condition_bailout_test.dart index d5d08e17189..b0d39d3141e 100644 --- a/tests/language_2/unsorted/condition_bailout_test.dart +++ b/tests/language_2/unsorted/condition_bailout_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing closures. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/unsorted/context2_test.dart b/tests/language_2/unsorted/context2_test.dart index 1db17ff9e18..1ac6c38d9bd 100644 --- a/tests/language_2/unsorted/context2_test.dart +++ b/tests/language_2/unsorted/context2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for capturing. +// @dart = 2.9 + import "package:expect/expect.dart"; // Regression test for issue 5991015. diff --git a/tests/language_2/unsorted/context_args_with_defaults_test.dart b/tests/language_2/unsorted/context_args_with_defaults_test.dart index 21c89a65168..d9dd2a1c529 100644 --- a/tests/language_2/unsorted/context_args_with_defaults_test.dart +++ b/tests/language_2/unsorted/context_args_with_defaults_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class ContextArgsWithDefaultsTest { diff --git a/tests/language_2/unsorted/context_test.dart b/tests/language_2/unsorted/context_test.dart index f2b96b124ee..eb8a0d5faa5 100644 --- a/tests/language_2/unsorted/context_test.dart +++ b/tests/language_2/unsorted/context_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for capturing. +// @dart = 2.9 + import "package:expect/expect.dart"; class ContextTest { diff --git a/tests/language_2/unsorted/core_type_check_test.dart b/tests/language_2/unsorted/core_type_check_test.dart index e20d8cb354b..e2e85f7c436 100644 --- a/tests/language_2/unsorted/core_type_check_test.dart +++ b/tests/language_2/unsorted/core_type_check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; check(value, expectComparable, expectPattern) { diff --git a/tests/language_2/unsorted/cyclic_default_values_test.dart b/tests/language_2/unsorted/cyclic_default_values_test.dart index 3ac8e0ba2f6..32c3b686a15 100644 --- a/tests/language_2/unsorted/cyclic_default_values_test.dart +++ b/tests/language_2/unsorted/cyclic_default_values_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; bar([x = foo]) => x((_) => "bar"); diff --git a/tests/language_2/unsorted/cyclic_type2_test.dart b/tests/language_2/unsorted/cyclic_type2_test.dart index 0b62f2fa1a1..4eb23300475 100644 --- a/tests/language_2/unsorted/cyclic_type2_test.dart +++ b/tests/language_2/unsorted/cyclic_type2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests self referencing types. import "package:expect/expect.dart"; diff --git a/tests/language_2/unsorted/cyclic_type_test.dart b/tests/language_2/unsorted/cyclic_type_test.dart index 3031f624512..dc15b107333 100644 --- a/tests/language_2/unsorted/cyclic_type_test.dart +++ b/tests/language_2/unsorted/cyclic_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests self referencing types. import "package:expect/expect.dart"; diff --git a/tests/language_2/unsorted/default_implementation2_test.dart b/tests/language_2/unsorted/default_implementation2_test.dart index 0a3607c38cc..f279d818f6d 100644 --- a/tests/language_2/unsorted/default_implementation2_test.dart +++ b/tests/language_2/unsorted/default_implementation2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test to verify incompatible constructor types +// @dart = 2.9 + abstract class Point { factory Point(int x, int y) = PointImplementation; //# 01: ok factory Point(x, y) = PointImplementation; //# 02: compile-time error diff --git a/tests/language_2/unsorted/default_implementation_test.dart b/tests/language_2/unsorted/default_implementation_test.dart index a05f5dd8944..945f6439388 100644 --- a/tests/language_2/unsorted/default_implementation_test.dart +++ b/tests/language_2/unsorted/default_implementation_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test to verify that factory classes are working. +// @dart = 2.9 + import "package:expect/expect.dart"; abstract class Point { diff --git a/tests/language_2/unsorted/default_init_test.dart b/tests/language_2/unsorted/default_init_test.dart index cff4a2e79ad..3513254e542 100644 --- a/tests/language_2/unsorted/default_init_test.dart +++ b/tests/language_2/unsorted/default_init_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Tests static and instance fields initialization. diff --git a/tests/language_2/unsorted/deny_listed_test.dart b/tests/language_2/unsorted/deny_listed_test.dart index ba49fdcea8c..ba5775cdcdf 100644 --- a/tests/language_2/unsorted/deny_listed_test.dart +++ b/tests/language_2/unsorted/deny_listed_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test checking that static/instance field shadowing do not conflict. +// @dart = 2.9 + // Test that certain interfaces/classes are denylisted from being // implemented or extended. diff --git a/tests/language_2/unsorted/disassemble_test.dart b/tests/language_2/unsorted/disassemble_test.dart index bc3b03223e8..e4a9efaa362 100644 --- a/tests/language_2/unsorted/disassemble_test.dart +++ b/tests/language_2/unsorted/disassemble_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--disassemble // VMOptions=--disassemble --always_generate_trampolines_for_testing diff --git a/tests/language_2/unsorted/efficient_length_warning_test.dart b/tests/language_2/unsorted/efficient_length_warning_test.dart index 5ba2c6fdfc9..78192bb32c4 100644 --- a/tests/language_2/unsorted/efficient_length_warning_test.dart +++ b/tests/language_2/unsorted/efficient_length_warning_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Third dart test program. +// @dart = 2.9 + import "dart:math"; main() { diff --git a/tests/language_2/unsorted/emit_const_fields_test.dart b/tests/language_2/unsorted/emit_const_fields_test.dart index 8264c50c180..641ea1da488 100644 --- a/tests/language_2/unsorted/emit_const_fields_test.dart +++ b/tests/language_2/unsorted/emit_const_fields_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test that used static consts are emitted. +// @dart = 2.9 + import "package:expect/expect.dart"; class Guide { diff --git a/tests/language_2/unsorted/expect_test.dart b/tests/language_2/unsorted/expect_test.dart index 5cd8c8a3f5b..d1df5bc1cb2 100644 --- a/tests/language_2/unsorted/expect_test.dart +++ b/tests/language_2/unsorted/expect_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Testing the Expect class. +// @dart = 2.9 + import "package:expect/expect.dart"; class ExpectTest { diff --git a/tests/language_2/unsorted/extend_type_parameter_test.dart b/tests/language_2/unsorted/extend_type_parameter_test.dart index 58991f5e893..10f1817a6ce 100644 --- a/tests/language_2/unsorted/extend_type_parameter_test.dart +++ b/tests/language_2/unsorted/extend_type_parameter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Extending a type parameter is not allowed. abstract class A extends T {} // //# 00: compile-time error diff --git a/tests/language_2/unsorted/extends_test.dart b/tests/language_2/unsorted/extends_test.dart index 44c1c1895dd..787552e3cc2 100644 --- a/tests/language_2/unsorted/extends_test.dart +++ b/tests/language_2/unsorted/extends_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library ExtendsTestMain; import "extends_test_lib.dart"; diff --git a/tests/language_2/unsorted/extends_test_lib.dart b/tests/language_2/unsorted/extends_test_lib.dart index d62ca8f7da4..b34ac7a18ca 100644 --- a/tests/language_2/unsorted/extends_test_lib.dart +++ b/tests/language_2/unsorted/extends_test_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library ExtendsTestLib; class A { diff --git a/tests/language_2/unsorted/external_runtime_test.dart b/tests/language_2/unsorted/external_runtime_test.dart index e51282cfe0f..eca7602057b 100644 --- a/tests/language_2/unsorted/external_runtime_test.dart +++ b/tests/language_2/unsorted/external_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/unsorted/external_test.dart b/tests/language_2/unsorted/external_test.dart index 7d2f2af1f4c..1ae590ada14 100644 --- a/tests/language_2/unsorted/external_test.dart +++ b/tests/language_2/unsorted/external_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Bar { Bar(val); } @@ -72,13 +74,13 @@ class Foo { } external int t06(int i) { } -// [error line 74, column 1, length 8] +// [error line 76, column 1, length 8] // [analyzer] SYNTACTIC_ERROR.EXTERNAL_METHOD_WITH_BODY // [cfe] An external or native method can't have a body. // ^ // [cfe] An external or native method can't have a body. external int t07(int i) => i + 1; -// [error line 80, column 1, length 8] +// [error line 82, column 1, length 8] // [analyzer] SYNTACTIC_ERROR.EXTERNAL_METHOD_WITH_BODY // [cfe] An external or native method can't have a body. // ^ diff --git a/tests/language_2/unsorted/extract_type_arguments_test.dart b/tests/language_2/unsorted/extract_type_arguments_test.dart index ee6d40522c9..b535bd6fac0 100644 --- a/tests/language_2/unsorted/extract_type_arguments_test.dart +++ b/tests/language_2/unsorted/extract_type_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Tests the (probably temporary) API for extracting reified type arguments /// from an object. diff --git a/tests/language_2/unsorted/fannkuch_test.dart b/tests/language_2/unsorted/fannkuch_test.dart index a08a0cf4182..aadcd1f5271 100644 --- a/tests/language_2/unsorted/fannkuch_test.dart +++ b/tests/language_2/unsorted/fannkuch_test.dart @@ -6,6 +6,8 @@ // Ported from JavaScript contributed by Isaac Gouy. // Description: Repeatedly access a tiny integer-sequence. +// @dart = 2.9 + import "package:expect/expect.dart"; class FannkuchTest { diff --git a/tests/language_2/unsorted/fast_method_extraction_test.dart b/tests/language_2/unsorted/fast_method_extraction_test.dart index 27620d847ed..6da4f057906 100644 --- a/tests/language_2/unsorted/fast_method_extraction_test.dart +++ b/tests/language_2/unsorted/fast_method_extraction_test.dart @@ -4,6 +4,8 @@ // Test that fast method extraction returns correct closure. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/unsorted/fauxverride_runtime_test.dart b/tests/language_2/unsorted/fauxverride_runtime_test.dart index d5ae11a3c52..46067923094 100644 --- a/tests/language_2/unsorted/fauxverride_runtime_test.dart +++ b/tests/language_2/unsorted/fauxverride_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/unsorted/fauxverride_test.dart b/tests/language_2/unsorted/fauxverride_test.dart index d5fc6b1aeeb..d1597f68203 100644 --- a/tests/language_2/unsorted/fauxverride_test.dart +++ b/tests/language_2/unsorted/fauxverride_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test the semantics of static members mixed with instance members. diff --git a/tests/language_2/unsorted/fibo_test.dart b/tests/language_2/unsorted/fibo_test.dart index e6f13bd9c96..5182753626c 100644 --- a/tests/language_2/unsorted/fibo_test.dart +++ b/tests/language_2/unsorted/fibo_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program calculating the Fibonacci sequence. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/unsorted/first_test.dart b/tests/language_2/unsorted/first_test.dart index 783dd2e61a7..836646443d2 100644 --- a/tests/language_2/unsorted/first_test.dart +++ b/tests/language_2/unsorted/first_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // First dart test program. +// @dart = 2.9 + class FirstTest { static testMain() { return 42; diff --git a/tests/language_2/unsorted/fixed_length_test.dart b/tests/language_2/unsorted/fixed_length_test.dart index 97a93f07ead..d97afc82715 100644 --- a/tests/language_2/unsorted/fixed_length_test.dart +++ b/tests/language_2/unsorted/fixed_length_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for https://code.google.com/p/dart/issues/detail?id=7994. diff --git a/tests/language_2/unsorted/flatten_test.dart b/tests/language_2/unsorted/flatten_test.dart index 2ff13e9531e..5f4b86a637e 100644 --- a/tests/language_2/unsorted/flatten_test.dart +++ b/tests/language_2/unsorted/flatten_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; class Derived implements Future { diff --git a/tests/language_2/unsorted/forwarding_semi_stub_test.dart b/tests/language_2/unsorted/forwarding_semi_stub_test.dart index 12db5f8076d..6f9c6208596 100644 --- a/tests/language_2/unsorted/forwarding_semi_stub_test.dart +++ b/tests/language_2/unsorted/forwarding_semi_stub_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class B { diff --git a/tests/language_2/unsorted/future_or_function_test.dart b/tests/language_2/unsorted/future_or_function_test.dart index 2fddb22dee1..6b7b2627cb9 100644 --- a/tests/language_2/unsorted/future_or_function_test.dart +++ b/tests/language_2/unsorted/future_or_function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/unsorted/fuzzy_arrows_test.dart b/tests/language_2/unsorted/fuzzy_arrows_test.dart index 814549f350e..7cb92d9b13d 100644 --- a/tests/language_2/unsorted/fuzzy_arrows_test.dart +++ b/tests/language_2/unsorted/fuzzy_arrows_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Fuzzy arrows will be eliminated from Dart 2.0 soon. This test checks that // implementations have properly removed fuzzy arrow support, both at compile // time and at run time. See dartbug.com/29630 for a detailed explanation. diff --git a/tests/language_2/unsorted/gc_test.dart b/tests/language_2/unsorted/gc_test.dart index 33e488c0106..af3728f57fe 100644 --- a/tests/language_2/unsorted/gc_test.dart +++ b/tests/language_2/unsorted/gc_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Testing GC, issue 1469. +// @dart = 2.9 + main() { var div; for (int i = 0; i < 200; ++i) { diff --git a/tests/language_2/unsorted/guess_cid_test.dart b/tests/language_2/unsorted/guess_cid_test.dart index 099dfe02f86..77a83427601 100644 --- a/tests/language_2/unsorted/guess_cid_test.dart +++ b/tests/language_2/unsorted/guess_cid_test.dart @@ -4,6 +4,8 @@ // Dart test program to test cid guessing optimizations. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/unsorted/gvn_field_access_test.dart b/tests/language_2/unsorted/gvn_field_access_test.dart index cf124b17eaf..fc68ee159ea 100644 --- a/tests/language_2/unsorted/gvn_field_access_test.dart +++ b/tests/language_2/unsorted/gvn_field_access_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/unsorted/gvn_interceptor_test.dart b/tests/language_2/unsorted/gvn_interceptor_test.dart index 51f109edf6f..c3003ccab1d 100644 --- a/tests/language_2/unsorted/gvn_interceptor_test.dart +++ b/tests/language_2/unsorted/gvn_interceptor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; foo(a, index) { diff --git a/tests/language_2/unsorted/gvn_test.dart b/tests/language_2/unsorted/gvn_test.dart index a52944dcedd..ef749760c38 100644 --- a/tests/language_2/unsorted/gvn_test.dart +++ b/tests/language_2/unsorted/gvn_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/unsorted/hash_code_mangling_test.dart b/tests/language_2/unsorted/hash_code_mangling_test.dart index 615da7bd685..f24094ce9e0 100644 --- a/tests/language_2/unsorted/hash_code_mangling_test.dart +++ b/tests/language_2/unsorted/hash_code_mangling_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Foo { diff --git a/tests/language_2/unsorted/hello_dart_test.dart b/tests/language_2/unsorted/hello_dart_test.dart index d53705baa69..f0f11b26971 100644 --- a/tests/language_2/unsorted/hello_dart_test.dart +++ b/tests/language_2/unsorted/hello_dart_test.dart @@ -5,6 +5,8 @@ // compile all code that is loaded in the isolate. // VMOptions=--compile_all +// @dart = 2.9 + class HelloDartTest { static testMain() { print("Hello, Darter!"); diff --git a/tests/language_2/unsorted/hello_script_lib.dart b/tests/language_2/unsorted/hello_script_lib.dart index 35ecc6a17e5..f3b2fdf96fc 100644 --- a/tests/language_2/unsorted/hello_script_lib.dart +++ b/tests/language_2/unsorted/hello_script_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing a simple script importing a library. // This file contains the library. diff --git a/tests/language_2/unsorted/hello_script_lib_source.dart b/tests/language_2/unsorted/hello_script_lib_source.dart index 8c74bc4cc84..09924617dd6 100644 --- a/tests/language_2/unsorted/hello_script_lib_source.dart +++ b/tests/language_2/unsorted/hello_script_lib_source.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing a simple script importing a library. // This file contains a source file included from the library. diff --git a/tests/language_2/unsorted/hello_script_test.dart b/tests/language_2/unsorted/hello_script_test.dart index b9f004e3552..f524e62c6a5 100644 --- a/tests/language_2/unsorted/hello_script_test.dart +++ b/tests/language_2/unsorted/hello_script_test.dart @@ -3,6 +3,8 @@ // 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 = 2.9 + // Testing a simple script importing a library. // This file contains the script (aka root library). diff --git a/tests/language_2/unsorted/illegal_declaration_test.dart b/tests/language_2/unsorted/illegal_declaration_test.dart index 6b8714bf8b3..4ef6c084a07 100644 --- a/tests/language_2/unsorted/illegal_declaration_test.dart +++ b/tests/language_2/unsorted/illegal_declaration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + [ //# 01: syntax error main() {} diff --git a/tests/language_2/unsorted/illegal_invocation_lib.dart b/tests/language_2/unsorted/illegal_invocation_lib.dart index 0d1b8df4429..1f0c4d57fec 100644 --- a/tests/language_2/unsorted/illegal_invocation_lib.dart +++ b/tests/language_2/unsorted/illegal_invocation_lib.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library foo; foo() {} diff --git a/tests/language_2/unsorted/illegal_invocation_runtime_test.dart b/tests/language_2/unsorted/illegal_invocation_runtime_test.dart index 41f46b05944..12bae4ca945 100644 --- a/tests/language_2/unsorted/illegal_invocation_runtime_test.dart +++ b/tests/language_2/unsorted/illegal_invocation_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/unsorted/illegal_invocation_test.dart b/tests/language_2/unsorted/illegal_invocation_test.dart index 7af94798f0c..4527584f580 100644 --- a/tests/language_2/unsorted/illegal_invocation_test.dart +++ b/tests/language_2/unsorted/illegal_invocation_test.dart @@ -6,6 +6,8 @@ // Test for issue 1393. Invoking a library prefix name caused an internal error // in dartc. +// @dart = 2.9 + import "illegal_invocation_lib.dart" as foo; main() { diff --git a/tests/language_2/unsorted/implicit_scope_test.dart b/tests/language_2/unsorted/implicit_scope_test.dart index 49d0dd95c03..741e51c4094 100644 --- a/tests/language_2/unsorted/implicit_scope_test.dart +++ b/tests/language_2/unsorted/implicit_scope_test.dart @@ -4,6 +4,8 @@ // Test that if, while etc create an implicit scope if the body // is not a compound statement. +// @dart = 2.9 + import "package:expect/expect.dart"; class ImplicitScopeTest { diff --git a/tests/language_2/unsorted/index_assign_operator_infer_return_type_test.dart b/tests/language_2/unsorted/index_assign_operator_infer_return_type_test.dart index 1ce591245a9..abd5a06f6b3 100644 --- a/tests/language_2/unsorted/index_assign_operator_infer_return_type_test.dart +++ b/tests/language_2/unsorted/index_assign_operator_infer_return_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { operator []=(dynamic index, dynamic value) {} } diff --git a/tests/language_2/unsorted/indirect_const_null_test.dart b/tests/language_2/unsorted/indirect_const_null_test.dart index 51616143018..52737be2946 100644 --- a/tests/language_2/unsorted/indirect_const_null_test.dart +++ b/tests/language_2/unsorted/indirect_const_null_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/unsorted/inference_enum_list_test.dart b/tests/language_2/unsorted/inference_enum_list_test.dart index dc7b7bd3651..66e7a002990 100644 --- a/tests/language_2/unsorted/inference_enum_list_test.dart +++ b/tests/language_2/unsorted/inference_enum_list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + enum E1 { a, b } enum E2 { a, b } diff --git a/tests/language_2/unsorted/inference_list_or_null_test.dart b/tests/language_2/unsorted/inference_list_or_null_test.dart index fc71e4ca939..d01c367e456 100644 --- a/tests/language_2/unsorted/inference_list_or_null_test.dart +++ b/tests/language_2/unsorted/inference_list_or_null_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to statically inline the length of an // array held in a variable when it could, even if that variable could // be null. diff --git a/tests/language_2/unsorted/intrinsified_methods_test.dart b/tests/language_2/unsorted/intrinsified_methods_test.dart index c321cf4f214..6ad9e92fb85 100644 --- a/tests/language_2/unsorted/intrinsified_methods_test.dart +++ b/tests/language_2/unsorted/intrinsified_methods_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing the instanceof operation. +// @dart = 2.9 + library intrinsified_methods_test; import "package:expect/expect.dart"; diff --git a/tests/language_2/unsorted/inv_cse_licm_test.dart b/tests/language_2/unsorted/inv_cse_licm_test.dart index 267e7574b29..dc19fcd2ef3 100644 --- a/tests/language_2/unsorted/inv_cse_licm_test.dart +++ b/tests/language_2/unsorted/inv_cse_licm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--deterministic --optimization_counter_threshold=10 import 'dart:typed_data'; diff --git a/tests/language_2/unsorted/invalid_cast_runtime_1_test.dart b/tests/language_2/unsorted/invalid_cast_runtime_1_test.dart index 52d4ced6c5b..9a4e555ec14 100644 --- a/tests/language_2/unsorted/invalid_cast_runtime_1_test.dart +++ b/tests/language_2/unsorted/invalid_cast_runtime_1_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/unsorted/invalid_cast_runtime_2_test.dart b/tests/language_2/unsorted/invalid_cast_runtime_2_test.dart index 7e97e48a26e..15a0b7711ab 100644 --- a/tests/language_2/unsorted/invalid_cast_runtime_2_test.dart +++ b/tests/language_2/unsorted/invalid_cast_runtime_2_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/unsorted/invalid_cast_runtime_test.dart b/tests/language_2/unsorted/invalid_cast_runtime_test.dart index 60403e00347..b94e73466fc 100644 --- a/tests/language_2/unsorted/invalid_cast_runtime_test.dart +++ b/tests/language_2/unsorted/invalid_cast_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/unsorted/invalid_cast_test.dart b/tests/language_2/unsorted/invalid_cast_test.dart index e00a1d63425..ca0f164359b 100644 --- a/tests/language_2/unsorted/invalid_cast_test.dart +++ b/tests/language_2/unsorted/invalid_cast_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { C(); factory C.fact() => null; diff --git a/tests/language_2/unsorted/invalid_type_argument_count_runtime_test.dart b/tests/language_2/unsorted/invalid_type_argument_count_runtime_test.dart index a0959a81735..ff5c8489e79 100644 --- a/tests/language_2/unsorted/invalid_type_argument_count_runtime_test.dart +++ b/tests/language_2/unsorted/invalid_type_argument_count_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/unsorted/invalid_type_argument_count_test.dart b/tests/language_2/unsorted/invalid_type_argument_count_test.dart index cf9619d4790..8cfb724a3b0 100644 --- a/tests/language_2/unsorted/invalid_type_argument_count_test.dart +++ b/tests/language_2/unsorted/invalid_type_argument_count_test.dart @@ -2,16 +2,18 @@ // 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 = 2.9 + // Test top level field. dynamic x1 = 42; -// [error line 6, column 1, length 12] +// [error line 8, column 1, length 12] // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_TYPE_ARGUMENTS // [cfe] Expected 0 type arguments. class Foo { // Test class member. dynamic x2 = 42; -// [error line 13, column 3, length 12] +//^^^^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_TYPE_ARGUMENTS // [cfe] Expected 0 type arguments. @@ -27,7 +29,7 @@ main() { // Test local variable. dynamic x3 = 42; -// [error line 29, column 3, length 12] +//^^^^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_TYPE_ARGUMENTS // [cfe] Expected 0 type arguments. print(x3); @@ -37,7 +39,7 @@ main() { // Test parameter. void foo(dynamic x4) { -// [error line 39, column 10, length 12] +// ^^^^^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.WRONG_NUMBER_OF_TYPE_ARGUMENTS // [cfe] Expected 0 type arguments. print(x4); diff --git a/tests/language_2/unsorted/invocation_mirror2_test.dart b/tests/language_2/unsorted/invocation_mirror2_test.dart index 6f62d6e0da1..e6c1a4262ff 100644 --- a/tests/language_2/unsorted/invocation_mirror2_test.dart +++ b/tests/language_2/unsorted/invocation_mirror2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/unsorted/invocation_mirror_empty_arguments_test.dart b/tests/language_2/unsorted/invocation_mirror_empty_arguments_test.dart index 4b8662a1aa4..485b1533a9e 100644 --- a/tests/language_2/unsorted/invocation_mirror_empty_arguments_test.dart +++ b/tests/language_2/unsorted/invocation_mirror_empty_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Validates that positional arguments are an empty immutable list. diff --git a/tests/language_2/unsorted/invocation_mirror_test.dart b/tests/language_2/unsorted/invocation_mirror_test.dart index dc56efa6923..4addddba484 100644 --- a/tests/language_2/unsorted/invocation_mirror_test.dart +++ b/tests/language_2/unsorted/invocation_mirror_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Invocation and noSuchMethod testing. diff --git a/tests/language_2/unsorted/js_properties_test.dart b/tests/language_2/unsorted/js_properties_test.dart index b93a5474c0c..6139dff51e1 100644 --- a/tests/language_2/unsorted/js_properties_test.dart +++ b/tests/language_2/unsorted/js_properties_test.dart @@ -4,6 +4,8 @@ // Test that JavaScript properties on Object can still be classes in // Dart. +// @dart = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/unsorted/keyword_type_expression_test.dart b/tests/language_2/unsorted/keyword_type_expression_test.dart index 5d981efd211..e7ae957767b 100644 --- a/tests/language_2/unsorted/keyword_type_expression_test.dart +++ b/tests/language_2/unsorted/keyword_type_expression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a keyword can't be used as type. Serves as regression test for // crashes in dart2js. diff --git a/tests/language_2/unsorted/large_implicit_getter_test.dart b/tests/language_2/unsorted/large_implicit_getter_test.dart index 624a06368ca..df69a05827f 100644 --- a/tests/language_2/unsorted/large_implicit_getter_test.dart +++ b/tests/language_2/unsorted/large_implicit_getter_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing compilation of large implicit getters. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + List panels = [ [6853.940039224797, 6050.837897021371], [6953.240039224797, 6050.837897021371], diff --git a/tests/language_2/unsorted/larger_implicit_getter_test.dart b/tests/language_2/unsorted/larger_implicit_getter_test.dart index cfadc00fa86..99d0781f7e5 100644 --- a/tests/language_2/unsorted/larger_implicit_getter_test.dart +++ b/tests/language_2/unsorted/larger_implicit_getter_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing compilation of large implicit getters. +// @dart = 2.9 + import 'package:expect/expect.dart'; List panels = [ diff --git a/tests/language_2/unsorted/liveness_test.dart b/tests/language_2/unsorted/liveness_test.dart index 61e628489da..33dde3bb038 100644 --- a/tests/language_2/unsorted/liveness_test.dart +++ b/tests/language_2/unsorted/liveness_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program testing closures. +// @dart = 2.9 + import "package:expect/expect.dart"; foo(x) { diff --git a/tests/language_2/unsorted/load_indexed_constant_test.dart b/tests/language_2/unsorted/load_indexed_constant_test.dart index d7ccee494ff..64493175241 100644 --- a/tests/language_2/unsorted/load_indexed_constant_test.dart +++ b/tests/language_2/unsorted/load_indexed_constant_test.dart @@ -4,6 +4,8 @@ // Test constant propagation of load-indexed operations // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/unsorted/local_var_in_annotation_test.dart b/tests/language_2/unsorted/local_var_in_annotation_test.dart index f6474f84766..c9e22e3eeb8 100644 --- a/tests/language_2/unsorted/local_var_in_annotation_test.dart +++ b/tests/language_2/unsorted/local_var_in_annotation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for https://github.com/dart-lang/sdk/issues/37065 const x = 0; diff --git a/tests/language_2/unsorted/many_calls_test.dart b/tests/language_2/unsorted/many_calls_test.dart index fc766d8e6c6..7411d1ad1fd 100644 --- a/tests/language_2/unsorted/many_calls_test.dart +++ b/tests/language_2/unsorted/many_calls_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test megamorphic calls. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/unsorted/many_method_calls_test.dart b/tests/language_2/unsorted/many_method_calls_test.dart index f16aa9af0d9..7b56c4ee5a6 100644 --- a/tests/language_2/unsorted/many_method_calls_test.dart +++ b/tests/language_2/unsorted/many_method_calls_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that compiler does not crash for very long chains of method calls. var field = false; diff --git a/tests/language_2/unsorted/many_named_arguments_test.dart b/tests/language_2/unsorted/many_named_arguments_test.dart index 015a13795f3..0e9170ac255 100644 --- a/tests/language_2/unsorted/many_named_arguments_test.dart +++ b/tests/language_2/unsorted/many_named_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class Fisk { diff --git a/tests/language_2/unsorted/mega_load_test.dart b/tests/language_2/unsorted/mega_load_test.dart index bc62aa2e72c..5d265470979 100644 --- a/tests/language_2/unsorted/mega_load_test.dart +++ b/tests/language_2/unsorted/mega_load_test.dart @@ -4,6 +4,8 @@ // Test megamorphic, but single target field load. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; class Base { diff --git a/tests/language_2/unsorted/memory_swap_test.dart b/tests/language_2/unsorted/memory_swap_test.dart index b8d093e1823..3cd46a4e847 100644 --- a/tests/language_2/unsorted/memory_swap_test.dart +++ b/tests/language_2/unsorted/memory_swap_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that the ParalleMoveResolver in the VM uses valid registers // when requiring scratch registers. diff --git a/tests/language_2/unsorted/mint_compares_test.dart b/tests/language_2/unsorted/mint_compares_test.dart index ef37d9a226a..fdc1e04d7e7 100644 --- a/tests/language_2/unsorted/mint_compares_test.dart +++ b/tests/language_2/unsorted/mint_compares_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 +// @dart = 2.9 + import "package:expect/expect.dart"; // Test compares on 64-bit integers. diff --git a/tests/language_2/unsorted/mock_writable_final_field_test.dart b/tests/language_2/unsorted/mock_writable_final_field_test.dart index d8a68f7dd1b..7835e940461 100644 --- a/tests/language_2/unsorted/mock_writable_final_field_test.dart +++ b/tests/language_2/unsorted/mock_writable_final_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; final values = []; diff --git a/tests/language_2/unsorted/multi_pass2_test.dart b/tests/language_2/unsorted/multi_pass2_test.dart index e75d2d67630..31e48749fee 100644 --- a/tests/language_2/unsorted/multi_pass2_test.dart +++ b/tests/language_2/unsorted/multi_pass2_test.dart @@ -4,6 +4,8 @@ // Dart test for loading several dart files and resolving superclasses lazily. // Same as MultiPassTest, except that the file order is reversed. +// @dart = 2.9 + library MultiPassTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/unsorted/multi_pass_a.dart b/tests/language_2/unsorted/multi_pass_a.dart index 5b2863f78ad..4c66703b53f 100644 --- a/tests/language_2/unsorted/multi_pass_a.dart +++ b/tests/language_2/unsorted/multi_pass_a.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for loading several dart files and resolving superclasses lazily. +// @dart = 2.9 + part of MultiPassTest.dart; class A extends Base { diff --git a/tests/language_2/unsorted/multi_pass_b.dart b/tests/language_2/unsorted/multi_pass_b.dart index ed99b832f36..9b3aa32cc00 100644 --- a/tests/language_2/unsorted/multi_pass_b.dart +++ b/tests/language_2/unsorted/multi_pass_b.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for loading several dart files and resolving superclasses lazily. +// @dart = 2.9 + part of MultiPassTest.dart; class B extends A { diff --git a/tests/language_2/unsorted/multi_pass_test.dart b/tests/language_2/unsorted/multi_pass_test.dart index a7f905904b1..0b05e952e46 100644 --- a/tests/language_2/unsorted/multi_pass_test.dart +++ b/tests/language_2/unsorted/multi_pass_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for loading several dart files and resolving superclasses lazily. +// @dart = 2.9 + library MultiPassTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language_2/unsorted/namer2_test.dart b/tests/language_2/unsorted/namer2_test.dart index 3d7d2bc991b..8c400ca1b4c 100644 --- a/tests/language_2/unsorted/namer2_test.dart +++ b/tests/language_2/unsorted/namer2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that user field names cannot clash with internal names of the diff --git a/tests/language_2/unsorted/namer_test.dart b/tests/language_2/unsorted/namer_test.dart index d9ad7d833f6..abe13bb1e35 100644 --- a/tests/language_2/unsorted/namer_test.dart +++ b/tests/language_2/unsorted/namer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for a bug in dart2js where global names could diff --git a/tests/language_2/unsorted/native_test.dart b/tests/language_2/unsorted/native_test.dart index c3401d3fb26..0b5707c4cf7 100644 --- a/tests/language_2/unsorted/native_test.dart +++ b/tests/language_2/unsorted/native_test.dart @@ -4,6 +4,8 @@ // Dart test program which shows how to write self verifying tests // and how to print dart objects if needed. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/unsorted/parse_types_test.dart b/tests/language_2/unsorted/parse_types_test.dart index 665759d5dbd..b4f40040f57 100644 --- a/tests/language_2/unsorted/parse_types_test.dart +++ b/tests/language_2/unsorted/parse_types_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for testing parsing of "standard" types. +// @dart = 2.9 + import "package:expect/expect.dart"; class ParseTypesTest { diff --git a/tests/language_2/unsorted/partial_min_test.dart b/tests/language_2/unsorted/partial_min_test.dart index 754549aad50..f66db487250 100644 --- a/tests/language_2/unsorted/partial_min_test.dart +++ b/tests/language_2/unsorted/partial_min_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // This test triggered an NPE in dart2js. diff --git a/tests/language_2/unsorted/patch_test.dart b/tests/language_2/unsorted/patch_test.dart index 2815cbfb631..34faf19f3d6 100644 --- a/tests/language_2/unsorted/patch_test.dart +++ b/tests/language_2/unsorted/patch_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; patch() { diff --git a/tests/language_2/unsorted/property_field_override_test.dart b/tests/language_2/unsorted/property_field_override_test.dart index 1e7b8538c8a..24bc7287b41 100644 --- a/tests/language_2/unsorted/property_field_override_test.dart +++ b/tests/language_2/unsorted/property_field_override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test overriding a getter property with a field. diff --git a/tests/language_2/unsorted/range_analysis2_test.dart b/tests/language_2/unsorted/range_analysis2_test.dart index 9443995e9f3..464169952f3 100644 --- a/tests/language_2/unsorted/range_analysis2_test.dart +++ b/tests/language_2/unsorted/range_analysis2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to remove bounds checks on // boxed variables. diff --git a/tests/language_2/unsorted/range_analysis3_test.dart b/tests/language_2/unsorted/range_analysis3_test.dart index 8fa0edd29bd..debf01d4d55 100644 --- a/tests/language_2/unsorted/range_analysis3_test.dart +++ b/tests/language_2/unsorted/range_analysis3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; confuse(x) { diff --git a/tests/language_2/unsorted/range_analysis_test.dart b/tests/language_2/unsorted/range_analysis_test.dart index c07b2bf817f..0c9f3857f32 100644 --- a/tests/language_2/unsorted/range_analysis_test.dart +++ b/tests/language_2/unsorted/range_analysis_test.dart @@ -4,6 +4,8 @@ // Dart test program for constructors and initializers. // VMOptions=--optimization-counter-threshold=10 --no-use-osr +// @dart = 2.9 + import "package:expect/expect.dart"; // Check that range analysis does not enter infinite loop trying to propagate diff --git a/tests/language_2/unsorted/recursive_calls_test.dart b/tests/language_2/unsorted/recursive_calls_test.dart index 21bc53d914c..75e0d4b9ff0 100644 --- a/tests/language_2/unsorted/recursive_calls_test.dart +++ b/tests/language_2/unsorted/recursive_calls_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int bar(x) => foo(x + 1); diff --git a/tests/language_2/unsorted/recursive_loop_phis_test.dart b/tests/language_2/unsorted/recursive_loop_phis_test.dart index f01aa0abf60..580b47deb32 100644 --- a/tests/language_2/unsorted/recursive_loop_phis_test.dart +++ b/tests/language_2/unsorted/recursive_loop_phis_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // This program tripped dart2js. diff --git a/tests/language_2/unsorted/refine_receiver_null_test.dart b/tests/language_2/unsorted/refine_receiver_null_test.dart index 499e99839ba..46df8195972 100644 --- a/tests/language_2/unsorted/refine_receiver_null_test.dart +++ b/tests/language_2/unsorted/refine_receiver_null_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to infer that code following // a dynamic call could assume the receiver is not null. This does not // work for Object methods. diff --git a/tests/language_2/unsorted/savannah_test.dart b/tests/language_2/unsorted/savannah_test.dart index 9d28959ed91..3200d2f42fa 100644 --- a/tests/language_2/unsorted/savannah_test.dart +++ b/tests/language_2/unsorted/savannah_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test using an identity hash. +// @dart = 2.9 + import "package:expect/expect.dart"; abstract class BigGame { diff --git a/tests/language_2/unsorted/scanner_test.dart b/tests/language_2/unsorted/scanner_test.dart index 01ee0480090..08db501d599 100644 --- a/tests/language_2/unsorted/scanner_test.dart +++ b/tests/language_2/unsorted/scanner_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test dart scanner. +// @dart = 2.9 + class ScannerTest { static testMain() { var s = "Hello\tmy\tfriend\n"; diff --git a/tests/language_2/unsorted/second_test.dart b/tests/language_2/unsorted/second_test.dart index 0cdd2a76044..48a48fdbc8e 100644 --- a/tests/language_2/unsorted/second_test.dart +++ b/tests/language_2/unsorted/second_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Second dart test program. +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper { diff --git a/tests/language_2/unsorted/shadow_parameter_and_local_test.dart b/tests/language_2/unsorted/shadow_parameter_and_local_test.dart index 6082f59a46d..2b7b65ce291 100644 --- a/tests/language_2/unsorted/shadow_parameter_and_local_test.dart +++ b/tests/language_2/unsorted/shadow_parameter_and_local_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for https://github.com/dart-lang/sdk/issues/29733 in DDC. diff --git a/tests/language_2/unsorted/side_effect_throw_test.dart b/tests/language_2/unsorted/side_effect_throw_test.dart index 484b76226f0..f2918953a85 100644 --- a/tests/language_2/unsorted/side_effect_throw_test.dart +++ b/tests/language_2/unsorted/side_effect_throw_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class B { diff --git a/tests/language_2/unsorted/smaller_4_Interface_Types_A11_t01_test.dart b/tests/language_2/unsorted/smaller_4_Interface_Types_A11_t01_test.dart index 281315e0e10..42d069bbe49 100644 --- a/tests/language_2/unsorted/smaller_4_Interface_Types_A11_t01_test.dart +++ b/tests/language_2/unsorted/smaller_4_Interface_Types_A11_t01_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 /* * 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 diff --git a/tests/language_2/unsorted/smaller_4_Interface_Types_A11_t02_test.dart b/tests/language_2/unsorted/smaller_4_Interface_Types_A11_t02_test.dart index db2ecca5239..d2c1af844e3 100644 --- a/tests/language_2/unsorted/smaller_4_Interface_Types_A11_t02_test.dart +++ b/tests/language_2/unsorted/smaller_4_Interface_Types_A11_t02_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 /* * 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 diff --git a/tests/language_2/unsorted/stack_overflow_stacktrace_test.dart b/tests/language_2/unsorted/stack_overflow_stacktrace_test.dart index 6e544771ab4..f9db45e74a7 100644 --- a/tests/language_2/unsorted/stack_overflow_stacktrace_test.dart +++ b/tests/language_2/unsorted/stack_overflow_stacktrace_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart program testing stack overflow. +// @dart = 2.9 + import "package:expect/expect.dart"; class StackOverflowTest { diff --git a/tests/language_2/unsorted/stack_overflow_test.dart b/tests/language_2/unsorted/stack_overflow_test.dart index bd87a256b58..43baa7a5bb1 100644 --- a/tests/language_2/unsorted/stack_overflow_test.dart +++ b/tests/language_2/unsorted/stack_overflow_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart program testing stack overflow. +// @dart = 2.9 + import "package:expect/expect.dart"; class StackOverflowTest { diff --git a/tests/language_2/unsorted/state_mangling2_test.dart b/tests/language_2/unsorted/state_mangling2_test.dart index 9467d79c3a4..ab8a3f3657e 100644 --- a/tests/language_2/unsorted/state_mangling2_test.dart +++ b/tests/language_2/unsorted/state_mangling2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; foo(state) { diff --git a/tests/language_2/unsorted/state_mangling3_test.dart b/tests/language_2/unsorted/state_mangling3_test.dart index 05e3c501f2b..abd12881efa 100644 --- a/tests/language_2/unsorted/state_mangling3_test.dart +++ b/tests/language_2/unsorted/state_mangling3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; foo(state0) { diff --git a/tests/language_2/unsorted/state_mangling4_test.dart b/tests/language_2/unsorted/state_mangling4_test.dart index 58c18d120b4..29dd8cdc67d 100644 --- a/tests/language_2/unsorted/state_mangling4_test.dart +++ b/tests/language_2/unsorted/state_mangling4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; foo(env1) { diff --git a/tests/language_2/unsorted/state_mangling_test.dart b/tests/language_2/unsorted/state_mangling_test.dart index 84d697b50a4..8c0232c5bd0 100644 --- a/tests/language_2/unsorted/state_mangling_test.dart +++ b/tests/language_2/unsorted/state_mangling_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; foo(state) { diff --git a/tests/language_2/unsorted/temp_mangling_test.dart b/tests/language_2/unsorted/temp_mangling_test.dart index 29f26ee4219..1f8197cd441 100644 --- a/tests/language_2/unsorted/temp_mangling_test.dart +++ b/tests/language_2/unsorted/temp_mangling_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/unsorted/third_test.dart b/tests/language_2/unsorted/third_test.dart index 3df66d3715c..afb76cfb35e 100644 --- a/tests/language_2/unsorted/third_test.dart +++ b/tests/language_2/unsorted/third_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Third dart test program. +// @dart = 2.9 + import "package:expect/expect.dart"; class A extends B { diff --git a/tests/language_2/unsorted/tree_shake_typed_selector_test.dart b/tests/language_2/unsorted/tree_shake_typed_selector_test.dart index 480c846b996..3f165acfedb 100644 --- a/tests/language_2/unsorted/tree_shake_typed_selector_test.dart +++ b/tests/language_2/unsorted/tree_shake_typed_selector_test.dart @@ -4,6 +4,8 @@ // Check that dart2js emits code for classes that implement another // class. +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/unsorted/typecheck_multifield_declaration_test.dart b/tests/language_2/unsorted/typecheck_multifield_declaration_test.dart index ccccf6ff023..178e82f104c 100644 --- a/tests/language_2/unsorted/typecheck_multifield_declaration_test.dart +++ b/tests/language_2/unsorted/typecheck_multifield_declaration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Checks that we can correctly typecheck multi-variable declarations on fields /// and top-levels. This is also a regression test for Issue 27401. diff --git a/tests/language_2/unsorted/typed_equality_test.dart b/tests/language_2/unsorted/typed_equality_test.dart index 9f48e7910b6..5306e2dc79e 100644 --- a/tests/language_2/unsorted/typed_equality_test.dart +++ b/tests/language_2/unsorted/typed_equality_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for http://dartbug.com/6036. dart2js used to fail // this method because it was computing that intersecting type D with // type C is conflicting. diff --git a/tests/language_2/unsorted/typed_selector2_test.dart b/tests/language_2/unsorted/typed_selector2_test.dart index db1cc3076d3..01287e9655e 100644 --- a/tests/language_2/unsorted/typed_selector2_test.dart +++ b/tests/language_2/unsorted/typed_selector2_test.dart @@ -4,6 +4,8 @@ // Test for dart2js to handle a typed selector with a typedef as a // receiver type. +// @dart = 2.9 + getComparator() => (a, b) => 42; class A { diff --git a/tests/language_2/unsorted/typed_selector_test.dart b/tests/language_2/unsorted/typed_selector_test.dart index 98c2d0892f4..0ad6715b966 100644 --- a/tests/language_2/unsorted/typed_selector_test.dart +++ b/tests/language_2/unsorted/typed_selector_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Regression test for http://dartbug.com/6259. This test used to fail diff --git a/tests/language_2/unsorted/unevaluated_field.dart b/tests/language_2/unsorted/unevaluated_field.dart index 5c701db0947..da3b760cc59 100644 --- a/tests/language_2/unsorted/unevaluated_field.dart +++ b/tests/language_2/unsorted/unevaluated_field.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that environment constants in field initializers work properly. import "package:expect/expect.dart"; diff --git a/tests/language_2/unsorted/unused_overridden_async_test.dart b/tests/language_2/unsorted/unused_overridden_async_test.dart index da7aa72b9cb..ffb5b00f495 100644 --- a/tests/language_2/unsorted/unused_overridden_async_test.dart +++ b/tests/language_2/unsorted/unused_overridden_async_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2016, 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 = 2.9 import 'dart:async'; class Base { diff --git a/tests/language_2/unsorted/value_range2_test.dart b/tests/language_2/unsorted/value_range2_test.dart index ac0a99d07f9..7059e688d0a 100644 --- a/tests/language_2/unsorted/value_range2_test.dart +++ b/tests/language_2/unsorted/value_range2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int inscrutable(int x) => x == 0 ? 0 : x | inscrutable(x & (x - 1)); diff --git a/tests/language_2/unsorted/value_range3_test.dart b/tests/language_2/unsorted/value_range3_test.dart index 58a65d4e438..91f8f180ed8 100644 --- a/tests/language_2/unsorted/value_range3_test.dart +++ b/tests/language_2/unsorted/value_range3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; class A { diff --git a/tests/language_2/unsorted/value_range_test.dart b/tests/language_2/unsorted/value_range_test.dart index 83fcc9f0b2a..546899c506d 100644 --- a/tests/language_2/unsorted/value_range_test.dart +++ b/tests/language_2/unsorted/value_range_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; int inscrutable(int x) => x == 0 ? 0 : x | inscrutable(x & (x - 1)); diff --git a/tests/language_2/unsorted/var_init_test.dart b/tests/language_2/unsorted/var_init_test.dart index 61ffd9bb139..d5d00cc49be 100644 --- a/tests/language_2/unsorted/var_init_test.dart +++ b/tests/language_2/unsorted/var_init_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Testing correct initialization of variables in scopes. +// @dart = 2.9 + import "package:expect/expect.dart"; class VarInitTest { diff --git a/tests/language_2/variable/bad_initializer1_runtime_test.dart b/tests/language_2/variable/bad_initializer1_runtime_test.dart index e97f36ba317..420dc76d394 100644 --- a/tests/language_2/variable/bad_initializer1_runtime_test.dart +++ b/tests/language_2/variable/bad_initializer1_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/variable/bad_initializer1_test.dart b/tests/language_2/variable/bad_initializer1_test.dart index 0070cd8c009..10a4bfe5076 100644 --- a/tests/language_2/variable/bad_initializer1_test.dart +++ b/tests/language_2/variable/bad_initializer1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Variable initializer must not reference the initialized variable. main() { diff --git a/tests/language_2/variable/bad_initializer2_runtime_test.dart b/tests/language_2/variable/bad_initializer2_runtime_test.dart index 5163cf01628..50252bde5b7 100644 --- a/tests/language_2/variable/bad_initializer2_runtime_test.dart +++ b/tests/language_2/variable/bad_initializer2_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/variable/bad_initializer2_test.dart b/tests/language_2/variable/bad_initializer2_test.dart index 384511a79b8..9b22a7b5f47 100644 --- a/tests/language_2/variable/bad_initializer2_test.dart +++ b/tests/language_2/variable/bad_initializer2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Variable initializer must not reference the initialized variable. import "package:expect/expect.dart"; diff --git a/tests/language_2/variable/conflicting_type_variable_and_setter_test.dart b/tests/language_2/variable/conflicting_type_variable_and_setter_test.dart index 2efcecbb0f9..16c48926dfb 100644 --- a/tests/language_2/variable/conflicting_type_variable_and_setter_test.dart +++ b/tests/language_2/variable/conflicting_type_variable_and_setter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class C< diff --git a/tests/language_2/variable/cyclic_type_variable_test.dart b/tests/language_2/variable/cyclic_type_variable_test.dart index c8db76a509f..4e1d5836fa3 100644 --- a/tests/language_2/variable/cyclic_type_variable_test.dart +++ b/tests/language_2/variable/cyclic_type_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests cyclic reference to type variables in type expressions class Base {} diff --git a/tests/language_2/variable/duplicate_field_with_initializer_runtime_test.dart b/tests/language_2/variable/duplicate_field_with_initializer_runtime_test.dart index 7764d43cd57..0af58536268 100644 --- a/tests/language_2/variable/duplicate_field_with_initializer_runtime_test.dart +++ b/tests/language_2/variable/duplicate_field_with_initializer_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/variable/duplicate_field_with_initializer_test.dart b/tests/language_2/variable/duplicate_field_with_initializer_test.dart index 9a65936d349..35a75d1cd6b 100644 --- a/tests/language_2/variable/duplicate_field_with_initializer_test.dart +++ b/tests/language_2/variable/duplicate_field_with_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Repeated { var a, b = 'Something'; var b; diff --git a/tests/language_2/variable/fixed_type_variable2_test.dart b/tests/language_2/variable/fixed_type_variable2_test.dart index 73e211c0c25..611aa7c3851 100644 --- a/tests/language_2/variable/fixed_type_variable2_test.dart +++ b/tests/language_2/variable/fixed_type_variable2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that type variables are passed on from subtypes that fixed the type // variable in inheritance. diff --git a/tests/language_2/variable/fixed_type_variable_test.dart b/tests/language_2/variable/fixed_type_variable_test.dart index cbe9e2b60f5..63e42529a64 100644 --- a/tests/language_2/variable/fixed_type_variable_test.dart +++ b/tests/language_2/variable/fixed_type_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that type variables are passed on from subtypes that fixed the type // variable in inheritance. diff --git a/tests/language_2/variable/illegal_initializer_runtime_test.dart b/tests/language_2/variable/illegal_initializer_runtime_test.dart index fecbeba0853..20049d9f236 100644 --- a/tests/language_2/variable/illegal_initializer_runtime_test.dart +++ b/tests/language_2/variable/illegal_initializer_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/variable/illegal_initializer_test.dart b/tests/language_2/variable/illegal_initializer_test.dart index 3b8b083e50f..e33e562b0d3 100644 --- a/tests/language_2/variable/illegal_initializer_test.dart +++ b/tests/language_2/variable/illegal_initializer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class A { A(); A.foo(); @@ -17,12 +19,11 @@ class B extends A { B.c2() : this.foo; // ^^^^ // [analyzer] COMPILE_TIME_ERROR.INVALID_REFERENCE_TO_THIS - // [cfe] Can't access 'this' in a field initializer. - // ^^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_ASSIGNMENT_IN_INITIALIZER - // [cfe] Expected an assignment after the field name. // ^^^^^^^^ // [analyzer] COMPILE_TIME_ERROR.INITIALIZER_FOR_NON_EXISTENT_FIELD + // [cfe] Can't access 'this' in a field initializer. + // [cfe] Expected an assignment after the field name. // ^^^ // [analyzer] COMPILE_TIME_ERROR.UNDEFINED_GETTER @@ -39,15 +40,12 @@ class B extends A { B.c4() : this; // ^^^^ // [analyzer] COMPILE_TIME_ERROR.INITIALIZER_FOR_NON_EXISTENT_FIELD - // [cfe] Expected an assignment after the field name. - // ^^^^ // [analyzer] COMPILE_TIME_ERROR.INVALID_REFERENCE_TO_THIS - // ^^^^ // [analyzer] SYNTACTIC_ERROR.MISSING_ASSIGNMENT_IN_INITIALIZER - // [error line 39, column 16, length 0] - // [cfe] Expected '.' before this. + // [cfe] Expected an assignment after the field name. // ^ // [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN + // [cfe] Expected '.' before this. // [cfe] Expected an identifier, but got ''. } diff --git a/tests/language_2/variable/inference_captured_variable2_test.dart b/tests/language_2/variable/inference_captured_variable2_test.dart index 4eb1f256148..2a3d845ac7e 100644 --- a/tests/language_2/variable/inference_captured_variable2_test.dart +++ b/tests/language_2/variable/inference_captured_variable2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Ensure that dart2js's receiver specialization optimization works // with captured variables. diff --git a/tests/language_2/variable/inference_captured_variable_test.dart b/tests/language_2/variable/inference_captured_variable_test.dart index 5cf92655cba..cb7ce749082 100644 --- a/tests/language_2/variable/inference_captured_variable_test.dart +++ b/tests/language_2/variable/inference_captured_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Ensure that dart2js's receiver specialization optimization works // with captured variables. diff --git a/tests/language_2/variable/initializer_super_last_runtime_test.dart b/tests/language_2/variable/initializer_super_last_runtime_test.dart index dc2caeb6e12..616d1ee4971 100644 --- a/tests/language_2/variable/initializer_super_last_runtime_test.dart +++ b/tests/language_2/variable/initializer_super_last_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // Copyright (c) 201, 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. diff --git a/tests/language_2/variable/initializer_super_last_test.dart b/tests/language_2/variable/initializer_super_last_test.dart index 7e2b0b87d1e..a466562e0fd 100644 --- a/tests/language_2/variable/initializer_super_last_test.dart +++ b/tests/language_2/variable/initializer_super_last_test.dart @@ -5,6 +5,8 @@ // // Dart test program testing assert statements. +// @dart = 2.9 + import "package:expect/expect.dart"; class S { diff --git a/tests/language_2/variable/inst_field_initializer1_test.dart b/tests/language_2/variable/inst_field_initializer1_test.dart index edc85c89c7c..57f31eed473 100644 --- a/tests/language_2/variable/inst_field_initializer1_test.dart +++ b/tests/language_2/variable/inst_field_initializer1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Catch illegal access to 'this' in initialized instance fields. class A { diff --git a/tests/language_2/variable/inst_field_initializer_test.dart b/tests/language_2/variable/inst_field_initializer_test.dart index c04fe11dca6..c97b9067d62 100644 --- a/tests/language_2/variable/inst_field_initializer_test.dart +++ b/tests/language_2/variable/inst_field_initializer_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test for instance field initializer expressions. +// @dart = 2.9 + import "package:expect/expect.dart"; class Cheese { diff --git a/tests/language_2/variable/labeled_variable_declaration_test.dart b/tests/language_2/variable/labeled_variable_declaration_test.dart index 6dede5a0646..3f59df9d0b0 100644 --- a/tests/language_2/variable/labeled_variable_declaration_test.dart +++ b/tests/language_2/variable/labeled_variable_declaration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + main() { L: var x, y; diff --git a/tests/language_2/variable/ref_before_declaration_runtime_test.dart b/tests/language_2/variable/ref_before_declaration_runtime_test.dart index 84949d01abd..8ef4def26a1 100644 --- a/tests/language_2/variable/ref_before_declaration_runtime_test.dart +++ b/tests/language_2/variable/ref_before_declaration_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/variable/ref_before_declaration_test.dart b/tests/language_2/variable/ref_before_declaration_test.dart index ee9ebc2b12e..c2dcdee1c3d 100644 --- a/tests/language_2/variable/ref_before_declaration_test.dart +++ b/tests/language_2/variable/ref_before_declaration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test compile-time errors for illegal variable declarations if the name // has been referenced before the variable is declared. diff --git a/tests/language_2/variable/scope_variable_runtime_test.dart b/tests/language_2/variable/scope_variable_runtime_test.dart index 75a5c31e5b5..d30a2d31fdd 100644 --- a/tests/language_2/variable/scope_variable_runtime_test.dart +++ b/tests/language_2/variable/scope_variable_runtime_test.dart @@ -1,6 +1,8 @@ // TODO(multitest): This was automatically migrated from a multitest and may // contain strange or dead code. +// @dart = 2.9 + // 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. diff --git a/tests/language_2/variable/scope_variable_test.dart b/tests/language_2/variable/scope_variable_test.dart index 14576a6ee3d..28ff28ce62a 100644 --- a/tests/language_2/variable/scope_variable_test.dart +++ b/tests/language_2/variable/scope_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void testSimpleScope() { diff --git a/tests/language_2/variable/scoped_variables_try_catch_test.dart b/tests/language_2/variable/scoped_variables_try_catch_test.dart index e18bec10fe2..9726429171d 100644 --- a/tests/language_2/variable/scoped_variables_try_catch_test.dart +++ b/tests/language_2/variable/scoped_variables_try_catch_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Test that try/catch does not shadow a variable at runtime. diff --git a/tests/language_2/variable/variable_declaration_metadata_test.dart b/tests/language_2/variable/variable_declaration_metadata_test.dart index 9802cda0c89..f4c34fb7f41 100644 --- a/tests/language_2/variable/variable_declaration_metadata_test.dart +++ b/tests/language_2/variable/variable_declaration_metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that the individual variable declarations inside a variable // declaration list are not allowed to be annotated with metadata. diff --git a/tests/language_2/variable/variable_named_dart_test.dart b/tests/language_2/variable/variable_named_dart_test.dart index 233b60f899e..d88fb9c8448 100644 --- a/tests/language_2/variable/variable_named_dart_test.dart +++ b/tests/language_2/variable/variable_named_dart_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; main() { diff --git a/tests/language_2/variance/syntax/variance_disabled_keyword_identifier_syntax_test.dart b/tests/language_2/variance/syntax/variance_disabled_keyword_identifier_syntax_test.dart deleted file mode 100644 index 0d6828c3002..00000000000 --- a/tests/language_2/variance/syntax/variance_disabled_keyword_identifier_syntax_test.dart +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) 2019, 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 identifier usage of keywords `out` and `inout`, correct usage of `in`. - -import "package:expect/expect.dart"; - -class A {} - -class B {} - -class C {} - -F() {} - -mixin G {} - -typedef H = out Function(inout); - -class OutParameter { - var out = 3; - int func(int out) { - return out; - } -} - -class inout { - void out(int x) {} -} - -var out = 5; - -main() { - OutParameter x = new OutParameter(); - Expect.equals(2, x.func(2)); - Expect.equals(3, x.out); - - inout foo = inout(); - foo.out(4); - - Expect.equals(5, out); - - var collection = [0, 1, 2]; - for (var x in collection) { - Expect.isTrue(x is int); - } -} diff --git a/tests/language_2/variance/syntax/variance_disabled_syntax_test.dart b/tests/language_2/variance/syntax/variance_disabled_syntax_test.dart deleted file mode 100644 index 2811208a794..00000000000 --- a/tests/language_2/variance/syntax/variance_disabled_syntax_test.dart +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) 2019, 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 with `variance` flag disabled -// Correct variance modifier usage will issue an error. - -import 'package:expect/expect.dart'; - -abstract class A { -// ^^ -// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED -// [cfe] This requires the 'variance' language feature to be enabled. - int foo(X bar); -} - -class B {} -// ^^^ -// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED -// [cfe] This requires the 'variance' language feature to be enabled. -// ^^ -// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED -// [cfe] This requires the 'variance' language feature to be enabled. -// ^^^^^ -// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED -// [cfe] This requires the 'variance' language feature to be enabled. - -class C extends A { -// ^^ -// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED -// [cfe] This requires the 'variance' language feature to be enabled. - @override - int foo(T bar) { - return 2; - } -} - -mixin D {} -// ^^^ -// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED -// [cfe] This requires the 'variance' language feature to be enabled. - -class E1 {} - -mixin E {} -// ^^ -// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED -// [cfe] This requires the 'variance' language feature to be enabled. - -class F = Object with D; -// ^^^ -// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED -// [cfe] This requires the 'variance' language feature to be enabled. - -class G {} -// ^^^ -// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED -// [cfe] This requires the 'variance' language feature to be enabled. - -class H {} -// ^^^ -// [analyzer] SYNTACTIC_ERROR.EXPERIMENT_NOT_ENABLED -// [cfe] This requires the 'variance' language feature to be enabled. - -main() { - B b = B(); - - C c = C(); - Expect.equals(2, c.foo(3)); - - F f = F(); - - G g = G(); - - H h = H(); -} diff --git a/tests/language_2/variance/syntax/variance_keyword_identifier_syntax_test.dart b/tests/language_2/variance/syntax/variance_keyword_identifier_syntax_test.dart deleted file mode 100644 index a0bf3d7b67d..00000000000 --- a/tests/language_2/variance/syntax/variance_keyword_identifier_syntax_test.dart +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) 2019, 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 identifier usage of keywords `out` and `inout`, correct usage of `in` -// with the experimental flag `variance` enabled. - -// SharedOptions=--enable-experiment=variance - -import "package:expect/expect.dart"; - -class A {} - -class B {} - -class C {} - -F() {} - -mixin G {} - -typedef H = out Function(inout); - -class OutParameter { - var out = 3; - int func(int out) { - return out; - } -} - -class inout { - void out(int x) {} -} - -var out = 5; - -main() { - OutParameter x = new OutParameter(); - Expect.equals(2, x.func(2)); - Expect.equals(3, x.out); - - inout foo = inout(); - foo.out(4); - - Expect.equals(5, out); - - var collection = [0, 1, 2]; - for (var x in collection) { - Expect.isTrue(x is int); - } -} diff --git a/tests/language_2/variance/syntax/variance_syntax_test.dart b/tests/language_2/variance/syntax/variance_syntax_test.dart deleted file mode 100644 index 9a40965b664..00000000000 --- a/tests/language_2/variance/syntax/variance_syntax_test.dart +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) 2019, 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. - -// SharedOptions=--enable-experiment=variance - -import 'package:expect/expect.dart'; - -abstract class A { - int foo(X bar); -} - -class B {} - -class C extends A { - @override - int foo(T bar) { - return 2; - } -} - -mixin D {} - -class E1 {} - -mixin E {} - -class F = Object with D; - -class G {} - -class H {} - -main() { - B b = B(); - - C c = C(); - Expect.equals(2, c.foo(3)); - - F f = F(); - - G g = G(); - - H h = H(); -} diff --git a/tests/language_2/variance/syntax/variance_type_parameter_error_syntax_test.dart b/tests/language_2/variance/syntax/variance_type_parameter_error_syntax_test.dart deleted file mode 100644 index e3e51d37349..00000000000 --- a/tests/language_2/variance/syntax/variance_type_parameter_error_syntax_test.dart +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) 2019, 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 erroneous usages of variance in unapplicable type parameters. - -// SharedOptions=--enable-experiment=variance - -void A(out int foo) { -// ^^^ -// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_CLASS -// [cfe] 'out' isn't a type. -// ^ -// [cfe] Type 'out' not found. -// ^^^ -// [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN -// [cfe] Expected ')' before this. - List bar; - // ^ - // [analyzer] COMPILE_TIME_ERROR.UNDEFINED_OPERATOR - // [cfe] The operator '<' isn't defined for the class 'Type'. - // ^^^ - // [analyzer] COMPILE_TIME_ERROR.UNDEFINED_IDENTIFIER - // [cfe] Expected ';' after this. - // ^^^ - // [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN - // [cfe] Getter not found: 'out'. - // ^ - // [analyzer] COMPILE_TIME_ERROR.UNDEFINED_OPERATOR - // [cfe] The operator '>' isn't defined for the class 'Type'. - // ^^^ - // [analyzer] COMPILE_TIME_ERROR.UNDEFINED_IDENTIFIER - // [cfe] Getter not found: 'bar'. -} - -void B(out foo) {} -// ^^^ -// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_CLASS -// [cfe] 'out' isn't a type. -// ^ -// [cfe] Type 'out' not found. - -class C {} -// ^^^ -// [analyzer] SYNTACTIC_ERROR.MULTIPLE_VARIANCE_MODIFIERS -// [cfe] Each type parameter can have at most one variance modifier. -// ^^^ -// [analyzer] SYNTACTIC_ERROR.MULTIPLE_VARIANCE_MODIFIERS -// [cfe] Each type parameter can have at most one variance modifier. - -class D {} -// ^^^ -// [analyzer] SYNTACTIC_ERROR.MULTIPLE_VARIANCE_MODIFIERS -// [cfe] Each type parameter can have at most one variance modifier. -// ^^^^^ -// [analyzer] SYNTACTIC_ERROR.MULTIPLE_VARIANCE_MODIFIERS -// [cfe] Each type parameter can have at most one variance modifier. -// ^^ -// [analyzer] SYNTACTIC_ERROR.MULTIPLE_VARIANCE_MODIFIERS -// [cfe] Each type parameter can have at most one variance modifier. -// ^^^ -// [analyzer] SYNTACTIC_ERROR.MULTIPLE_VARIANCE_MODIFIERS -// [cfe] Each type parameter can have at most one variance modifier. - -typedef E = T Function(T a); -// ^ -// [analyzer] SYNTACTIC_ERROR.EXPECTED_TOKEN -// [cfe] Expected ',' before this. diff --git a/tests/language_2/variance/variance_downwards_inference_test.dart b/tests/language_2/variance/variance_downwards_inference_test.dart deleted file mode 100644 index b6cd329cf63..00000000000 --- a/tests/language_2/variance/variance_downwards_inference_test.dart +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) 2019, 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 downwards inference for explicit variance modifiers. - -// SharedOptions=--enable-experiment=variance - -class A { - final T _x; - A(T x):_x = x; - T get x => _x; - void set x(Object value) {} -} - -class B { - B(List x); - void set x(T val) {} -} - -class C { - final T _x; - C(T x, S y):_x = x; - T get x => _x; - void set x(Object value) {} - void set y(S _value) {} -} - -class D { - D(T x, void Function(T) y) {} - void set x(T val) {} -} - -main() { - // int <: T <: Object - // Choose int - A a = new A(3)..x+=1; - - // int <: T - // num <: T - // Choose num - B b = new B([])..x=2.2; - - // int <: T <: Object - // Choose int - // int <: S <: Object - // Choose Object - C c = new C(3, 3)..x+=1..y="hello"; - - // int <: T <: num - // Choose num due to contravariant heuristic. - D d = new D(3, (num x) {})..x=2.2; -} diff --git a/tests/language_2/variance/variance_in_field_error_test.dart b/tests/language_2/variance/variance_in_field_error_test.dart deleted file mode 100644 index 6419bf66cb8..00000000000 --- a/tests/language_2/variance/variance_in_field_error_test.dart +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright (c) 2019, 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 erroneous field usage for the `in` variance modifier. - -// SharedOptions=--enable-experiment=variance - -class A { - final T a = null; - // ^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - final T Function() b = () => null; - // ^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - T get c => null; -//^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - - T d; -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION -// [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - covariant T e; - // ^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. -} - -mixin BMixin { - final T a = null; - // ^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - final T Function() b = () => null; - // ^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - T get c => null; -//^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - - T d; -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION -// [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - covariant T e; - // ^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. -} - -abstract class C { - T get a; -//^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. -} - -class D extends C { - var a; - // ^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. -} diff --git a/tests/language_2/variance/variance_in_field_test.dart b/tests/language_2/variance/variance_in_field_test.dart deleted file mode 100644 index 2b60fbbdc70..00000000000 --- a/tests/language_2/variance/variance_in_field_test.dart +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) 2019, 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 various fields for the `in` variance modifier. - -// SharedOptions=--enable-experiment=variance - -import "package:expect/expect.dart"; - -typedef Int2Void = void Function(int); - -class A { - void set a(T value) => value; - final void Function(T) b = (T val) { - Expect.equals(2, val); - }; - A get c => this; -} - -mixin BMixin { - void set a(T value) => value; - final void Function(T) b = (T val) { - Expect.equals(2, val); - }; - BMixin get c => this; -} - -class B with BMixin {} - -void testClass() { - A a = new A(); - - a.a = 2; - - Expect.type(a.b); - a.b(2); - - a.c.a = 2; -} - -void testMixin() { - B b = new B(); - - b.a = 2; - - Expect.type(b.b); - b.b(2); - - b.c.a = 2; -} - -main() { - testClass(); - testMixin(); -} diff --git a/tests/language_2/variance/variance_in_inference_error_test.dart b/tests/language_2/variance/variance_in_inference_error_test.dart deleted file mode 100644 index f7ab3d46226..00000000000 --- a/tests/language_2/variance/variance_in_inference_error_test.dart +++ /dev/null @@ -1,101 +0,0 @@ -// Copyright (c) 2019, 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 local inference errors for the `in` variance modifier. - -// SharedOptions=--enable-experiment=variance - -class Covariant {} -class Contravariant {} - -class Exactly {} - -class Upper {} -class Middle extends Upper {} -class Lower extends Middle {} - -class ContraBound { - ContraBound(T x, void Function(T) y) {} -} - -Exactly inferCovContra(Covariant x, Contravariant y) => new Exactly(); -Exactly inferContraContra(Contravariant x, Contravariant y) => new Exactly(); -Exactly inferContraBound(ContraBound x) => new Exactly(); - -main() { - Exactly upper; - Exactly lower; - - // T <: Upper and T <: Middle. - // We choose Middle. - var inferredMiddle = inferContraContra(Contravariant(), Contravariant()); - upper = inferredMiddle; - // ^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly' can't be assigned to a variable of type 'Exactly'. - - // T <: Upper and T <: Lower. - // We choose Lower. - var inferredLower = inferContraContra(Contravariant(), Contravariant()); - upper = inferredLower; - // ^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly' can't be assigned to a variable of type 'Exactly'. - - // int <: T <: String is not a valid constraint. - inferCovContra(Covariant(), Contravariant()); -//^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.COULD_NOT_INFER -// ^^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.ARGUMENT_TYPE_NOT_ASSIGNABLE -// [cfe] The argument type 'Contravariant' can't be assigned to the parameter type 'Contravariant'. - - // String <: T <: int is not a valid constraint. - inferCovContra(Covariant(), Contravariant()); -//^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.COULD_NOT_INFER -// ^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.ARGUMENT_TYPE_NOT_ASSIGNABLE -// [cfe] The argument type 'Contravariant' can't be assigned to the parameter type 'Contravariant'. - - // Middle <: T <: Lower is not a valid constraint - inferCovContra(Covariant(), Contravariant()); -//^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.COULD_NOT_INFER -// ^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.INVALID_CAST_NEW_EXPR -// [cfe] The constructor returns type 'Contravariant' that isn't of expected type 'Contravariant'. - - // Upper <: T <: Lower is not a valid constraint - inferCovContra(Covariant(), Contravariant()); -//^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.COULD_NOT_INFER -// ^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.INVALID_CAST_NEW_EXPR -// [cfe] The constructor returns type 'Contravariant' that isn't of expected type 'Contravariant'. - - // Upper <: T <: Middle is not a valid constraint - inferCovContra(Covariant(), Contravariant()); -//^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.COULD_NOT_INFER -// ^^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.INVALID_CAST_NEW_EXPR -// [cfe] The constructor returns type 'Contravariant' that isn't of expected type 'Contravariant'. - - // Inference for Contrabound(...) produces Lower <: T <: Upper. - // Since T is contravariant, we choose Upper as the solution. - var inferredContraUpper = inferContraBound(ContraBound(Lower(), (Upper x) {})); - lower = inferredContraUpper; - // ^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly' can't be assigned to a variable of type 'Exactly'. - - // Inference for Contrabound(...) produces Lower <: T <: Middle. - // Since T is contravariant, we choose Middle as the solution. - var inferredContraMiddle = inferContraBound(ContraBound(Lower(), (Middle x) {})); - lower = inferredContraMiddle; - // ^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly' can't be assigned to a variable of type 'Exactly'. -} diff --git a/tests/language_2/variance/variance_in_inference_test.dart b/tests/language_2/variance/variance_in_inference_test.dart deleted file mode 100644 index 03277fb01ee..00000000000 --- a/tests/language_2/variance/variance_in_inference_test.dart +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) 2019, 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 local inference for the `in` variance modifier. - -// SharedOptions=--enable-experiment=variance - -class Covariant {} -class Contravariant {} - -class Exactly {} - -class Upper {} -class Middle extends Upper {} -class Lower extends Middle {} - -class ContraBound { - ContraBound(T x, void Function(T) y) {} -} - -Exactly inferCovContra(Covariant x, Contravariant y) => new Exactly(); -Exactly inferContraContra(Contravariant x, Contravariant y) => new Exactly(); -Exactly inferContraBound(ContraBound x) => new Exactly(); - -main() { - Exactly upper; - Exactly middle; - Exactly lower; - - // Lower <: T - // T <: Lower - // Choose Lower for Lower <: T <: Lower - var inferredLower = inferCovContra(Covariant(), Contravariant()); - lower = inferredLower; - - // Lower <: T - // T <: Middle - // Choose Lower for Lower <: T <: Middle - var inferredLower2 = inferCovContra(Covariant(), Contravariant()); - lower = inferredLower2; - - // Lower <: T - // T <: Upper - // Choose Lower for Lower <: T <: Upper - var inferredLower3 = inferCovContra(Covariant(), Contravariant()); - lower = inferredLower3; - - // T <: Upper - // T <: Middle - // Choose Middle since it is the greatest lower bound of Upper and Middle. - var inferredMiddle = inferContraContra(Contravariant(), Contravariant()); - middle = inferredMiddle; - - // T <: Upper - // T <: Lower - // Choose Lower since it is the greatest lower bound of Upper and Lower. - var inferredLower4 = inferContraContra(Contravariant(), Contravariant()); - lower = inferredLower4; - - // T <: Middle - // T <: Lower - // Choose Lower since it is the greatest lower bound of Middle and Lower. - var inferredLower5 = inferContraContra(Contravariant(), Contravariant()); - lower = inferredLower5; - - // Lower <: T <: Upper - // Choose Upper. - var inferredContraUpper = inferContraBound(ContraBound(Lower(), (Upper x) {})); - upper = inferredContraUpper; - - // Lower <: T <: Middle - // Choose Middle. - var inferredContraMiddle = inferContraBound(ContraBound(Lower(), (Middle x) {})); - middle = inferredContraMiddle; -} diff --git a/tests/language_2/variance/variance_in_method_error_test.dart b/tests/language_2/variance/variance_in_method_error_test.dart deleted file mode 100644 index e7e26c4ca9b..00000000000 --- a/tests/language_2/variance/variance_in_method_error_test.dart +++ /dev/null @@ -1,351 +0,0 @@ -// Copyright (c) 2019, 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 erroneous method signatures and return types for the `in` variance modifier. - -// SharedOptions=--enable-experiment=variance - -typedef Inv = void Function(); -typedef Cov = T Function(); -typedef Contra = void Function(T); - -class Covariant {} -class Contravariant {} -class Invariant {} - -class A { - // TODO (kallentu): Come NNBD, change `T` to `T?` - T method1() => null; -//^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - - void method2(Contra x) {} - // ^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - Cov method3() { -//^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - return () => null; - } - - void method4(Contra> x) {} - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - void method5(Cov> x) {} - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - Contra> method6() => (Contra x) {}; -//^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - - Cov> method7() { -//^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - return () { - return () => null; - }; - } - - Inv method8() => null; -//^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position in the return type. - - void method9(Inv x) {} - // ^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. - - Covariant method10() => null; -//^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - - void method11(Contravariant x) {} - // ^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - Invariant method12() => null; -//^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position in the return type. - - void method13(Invariant x) {} - // ^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. - - void method14(Contravariant> x) {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - void method15(Covariant> x) {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - Contravariant> method16() => Contravariant>(); -//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - - Covariant> method17() => Covariant>(); -//^^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - - void method18() {} - // ^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. - - void method19>() {} - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. - - void method20>() {} - // ^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. - - void method21({Contra x}) {} - // ^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - void method22({Contravariant x}) {} - // ^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - void method23({Covariant x, Contravariant y}) {} - // ^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - void method24>() {} - // ^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. - - void method25>() {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. -} - -mixin BMixin { - // TODO (kallentu): Come NNBD, change `T` to `T?` - T method1() => null; -//^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - - void method2(Contra x) {} - // ^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - Cov method3() { -//^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - return () => null; - } - - void method4(Contra> x) {} - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - void method5(Cov> x) {} - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - Contra> method6() => (Contra x) {}; -//^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - - Cov> method7() { -//^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - return () { - return () => null; - }; - } - - Inv method8() => null; -//^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position in the return type. - - void method9(Inv x) {} - // ^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. - - Covariant method10() => null; -//^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - - void method11(Contravariant x) {} - // ^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - Invariant method12() => null; -//^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position in the return type. - - void method13(Invariant x) {} - // ^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. - - void method14(Contravariant> x) {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - void method15(Covariant> x) {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - Contravariant> method16() => Contravariant>(); -//^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - - Covariant> method17() => Covariant>(); -//^^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - - void method18() {} - // ^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. - - void method19>() {} - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. - - void method20>() {} - // ^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. - - void method21({Contra x}) {} - // ^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - void method22({Contravariant x}) {} - // ^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - void method23({Covariant x, Contravariant y}) {} - // ^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - - void method24>() {} - // ^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. - - void method25>() {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'in' type variable 'T' in an 'inout' position. -} - -class B { - void method1(A x) {} - // ^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. - Contra> method2() { -//^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position in the return type. - return null; - } -} - -class C { - void method(T x) {} -} - -class D extends C { - @override - void method(void Function(T) x) {} - // ^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'in' type variable 'T' in an 'out' position. -} diff --git a/tests/language_2/variance/variance_in_method_test.dart b/tests/language_2/variance/variance_in_method_test.dart deleted file mode 100644 index c06264be397..00000000000 --- a/tests/language_2/variance/variance_in_method_test.dart +++ /dev/null @@ -1,246 +0,0 @@ -// Copyright (c) 2019, 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 method signatures and return types for the `in` variance modifier. - -// SharedOptions=--enable-experiment=variance - -import "package:expect/expect.dart"; - -typedef Cov = T Function(); -typedef Contra = void Function(T); - -Cov covFunction = () => 2; -Contra contraFunction = (int val) {}; - -class Covariant {} -class Contravariant {} - -class A { - void method1(T x) {} - void method2(Cov x) {} - Contra method3() { - return (T val) { - Expect.equals(2, val); - }; - } - - void method4(Cov> x) {} - Contra> method5() { - return (Cov method) { - Expect.type>(method); - }; - } - Cov> method6() { - return () { - return (T x) { - Expect.equals(2, x); - }; - }; - } - void method7(Contra> x) {} - - void method8(Covariant x) {} - Contravariant method9() => null; - void method10(Covariant> x) {} - Contravariant> method11() => null; - void method12(Contravariant> x) {} - Covariant> method13() => null; - - void method14(covariant T x) {} - void method15(covariant Contra x) {} - void method16(covariant Cov x) {} - void method17(covariant Contravariant x) {} - void method18(covariant Covariant x) {} - - void method19({T x}) {} - void method20({Covariant x}) {} - void method21({Cov x}) {} -} - -mixin BMixin { - void method1(T x) {} - void method2(Cov x) {} - Contra method3() { - return (T val) { - Expect.equals(2, val); - }; - } - - void method4(Cov> x) {} - Contra> method5() { - return (Cov method) { - Expect.type>(method); - }; - } - Cov> method6() { - return () { - return (T x) { - Expect.equals(2, x); - }; - }; - } - void method7(Contra> x) {} - - void method8(Covariant x) {} - Contravariant method9() => null; - void method10(Covariant> x) {} - Contravariant> method11() => null; - void method12(Contravariant> x) {} - Covariant> method13() => null; - - void method14(covariant T x) {} - void method15(covariant Contra x) {} - void method16(covariant Cov x) {} - void method17(covariant Contravariant x) {} - void method18(covariant Covariant x) {} - - void method19({T x}) {} - void method20({Covariant x}) {} - void method21({Cov x}) {} -} - -class B with BMixin {} - -class C { - void method1(Contra> x) {} - A method2() { - return A(); - } -} - -class D { - T x; - T method() => null; - void method2(T x) {} - void method3(covariant T x) {} -} - -class E extends D { - @override - void Function(T) method() => (T x) {}; - - @override - void method3(covariant void Function(T) x) {} -} - -void testClass() { - A a = new A(); - - a.method1(2); - - a.method2(covFunction); - - Expect.type>(a.method3()); - Contra method3Function = a.method3(); - method3Function(2); - - a.method4(() { - return covFunction; - }); - - Expect.type>>(a.method5()); - Contra> method5Function = a.method5(); - method5Function(covFunction); - - Expect.type>>(a.method6()); - Cov> method6Function = a.method6(); - Expect.type>(method6Function()); - Contra method6NestedFunction = method6Function(); - method6NestedFunction(2); - - a.method7((Contra x) {}); - - a.method8(Covariant()); - Expect.isNull(a.method9()); - a.method10(Covariant>()); - Expect.isNull(a.method11()); - a.method12(Contravariant>()); - Expect.isNull(a.method13()); - - a.method14(3); - a.method15(contraFunction); - a.method16(covFunction); - a.method17(Contravariant()); - a.method18(Covariant()); - - a.method19(); - a.method20(); - a.method21(); -} - -void testMixin() { - B b = new B(); - - b.method1(2); - - b.method2(covFunction); - - Expect.type>(b.method3()); - Contra method3Return = b.method3(); - method3Return(2); - - b.method4(() { - return covFunction; - }); - - Expect.type>>(b.method5()); - Contra> method5Return = b.method5(); - method5Return(covFunction); - - Expect.type>>(b.method6()); - Cov> method6Function = b.method6(); - Expect.type>(method6Function()); - Contra method6NestedFunction = method6Function(); - method6NestedFunction(2); - - b.method7((Contra x) {}); - - b.method8(Covariant()); - Expect.isNull(b.method9()); - b.method10(Covariant>()); - Expect.isNull(b.method11()); - b.method12(Contravariant>()); - Expect.isNull(b.method13()); - - b.method14(3); - b.method15(contraFunction); - b.method16(covFunction); - b.method17(Contravariant()); - b.method18(Covariant()); - - b.method19(); - b.method20(); - b.method21(); -} - -void testClassInMethods() { - C c = new C(); - - c.method1((A x) {}); - - Expect.type>(c.method2()); -} - -void testOverrideLegacyMethods() { - E e = new E(); - Expect.isTrue(e.method() is Function); - e.method2(contraFunction); - e.method3(contraFunction); - e.x = contraFunction; - - D d = e; - Expect.throws(() => d.x = "test"); - - e = new E(); - Expect.throws(() => e.method2(contraFunction)); - Expect.throws(() => e.method3(contraFunction)); -} - -main() { - testClass(); - testMixin(); - testClassInMethods(); - testOverrideLegacyMethods(); -} diff --git a/tests/language_2/variance/variance_in_subclass_error_test.dart b/tests/language_2/variance/variance_in_subclass_error_test.dart deleted file mode 100644 index 123b3e56856..00000000000 --- a/tests/language_2/variance/variance_in_subclass_error_test.dart +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) 2019, 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 erroneous subclass usage for the `in` variance modifier. - -// SharedOptions=--enable-experiment=variance - -typedef CovFunction = T Function(); -typedef ContraFunction = void Function(T); -typedef InvFunction = T Function(T); - -class LegacyCovariant {} -class Covariant {} -class Contravariant {} -class Invariant {} -mixin MLegacyCovariant {} -mixin MCovariant {} -mixin MContravariant {} -mixin MInvariant {} - -class A extends LegacyCovariant {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'LegacyCovariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class B implements LegacyCovariant {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'LegacyCovariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class C with MLegacyCovariant {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'MLegacyCovariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class D extends Covariant {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class E implements Covariant {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class F with MCovariant {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'MCovariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class G extends Invariant {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'inout' position in supertype 'Invariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class H implements Invariant {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'inout' position in supertype 'Invariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class I with MInvariant {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'inout' position in supertype 'MInvariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class J extends Covariant> {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class K extends Contravariant> {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'Contravariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class L extends Covariant> {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class M extends Covariant>> {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class N extends Contravariant>> {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'Contravariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class O extends Covariant>> {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class P extends Covariant>> {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class Q extends Invariant> {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'inout' position in supertype 'Invariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class R = Covariant with MContravariant; -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class S = Contravariant with MCovariant; -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'MCovariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class T = Invariant with MInvariant; -// ^ -// [cfe] Can't use 'in' type variable 'X' in an 'inout' position in supertype 'Invariant'. -// ^ -// [cfe] Can't use 'in' type variable 'X' in an 'inout' position in supertype 'MInvariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE diff --git a/tests/language_2/variance/variance_in_subclass_test.dart b/tests/language_2/variance/variance_in_subclass_test.dart deleted file mode 100644 index f7a314a9b22..00000000000 --- a/tests/language_2/variance/variance_in_subclass_test.dart +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) 2019, 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 subclass usage for the `in` variance modifier. - -// SharedOptions=--enable-experiment=variance - -typedef CovFunction = T Function(); -typedef ContraFunction = void Function(T); - -class Covariant {} -class Contravariant {} -mixin MContravariant {} - -class A extends Contravariant {} -class B implements Contravariant {} -class C with MContravariant {} - -class D extends Covariant> {} -class E extends Contravariant> {} - -class F extends Covariant> {} -class G extends Covariant>> {} -class H extends Covariant>> {} - -class I extends Covariant>> {} - -class J extends Contravariant>> {} - -class K = Contravariant with MContravariant; -class L = Covariant> with MContravariant; -class M = Contravariant with MContravariant>; - -main() { - A a = A(); - B b = B(); - C c = C(); - D d = D(); - E e = E(); - F f = F(); - G g = G(); - H h = H(); - I i = I(); - J j = J(); - K k = K(); - L l = L(); - M m = M(); -} diff --git a/tests/language_2/variance/variance_in_subtyping_error_test.dart b/tests/language_2/variance/variance_in_subtyping_error_test.dart deleted file mode 100644 index 4271fd09320..00000000000 --- a/tests/language_2/variance/variance_in_subtyping_error_test.dart +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2019, 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 erroneous subtyping for the `in` variance modifier. - -// SharedOptions=--enable-experiment=variance - -class Contravariant {} - -class Upper {} -class Middle extends Upper {} -class Lower extends Middle {} - -class A { - Contravariant method1() { - return new Contravariant(); - } - - void method2(Contravariant x) {} -} - -class B extends A { - @override - Contravariant method1() { - // ^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_OVERRIDE - // [cfe] The return type of the method 'B.method1' is 'Contravariant', which does not match the return type, 'Contravariant', of the overridden method, 'A.method1'. - return new Contravariant(); - } - - @override - void method2(Contravariant x) {} - // ^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_OVERRIDE - // ^ - // [cfe] The parameter 'x' of the method 'B.method2' has type 'Contravariant', which does not match the corresponding type, 'Contravariant', in the overridden method, 'A.method2'. -} - -class C> {} - -class D { - C> method1() { - //^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - // ^ - // [cfe] Type argument 'Contravariant' doesn't conform to the bound 'Contravariant' of the type variable 'T' on 'C' in the return type. - return C>(); - // ^ - // [cfe] Type argument 'Contravariant' doesn't conform to the bound 'Contravariant' of the type variable 'T' on 'C'. - // ^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - } -} - -void testCall(Iterable> x) {} - -main() { - C> c = new C>(); - //^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - // ^ - // [cfe] Type argument 'Contravariant' doesn't conform to the bound 'Contravariant' of the type variable 'T' on 'C'. - // ^ - // [cfe] Type argument 'Contravariant' doesn't conform to the bound 'Contravariant' of the type variable 'T' on 'C'. - // ^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - - Iterable> iterableMiddle = [new Contravariant()]; - List> listLower = [new Contravariant()]; - iterableMiddle = listLower; - // ^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'List>' can't be assigned to a variable of type 'Iterable>'. - - testCall(listLower); - // ^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.ARGUMENT_TYPE_NOT_ASSIGNABLE - // [cfe] The argument type 'List>' can't be assigned to the parameter type 'Iterable>'. -} diff --git a/tests/language_2/variance/variance_in_subtyping_test.dart b/tests/language_2/variance/variance_in_subtyping_test.dart deleted file mode 100644 index df89b2ba2b4..00000000000 --- a/tests/language_2/variance/variance_in_subtyping_test.dart +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) 2019, 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 subtyping for the `in` variance modifier. - -// SharedOptions=--enable-experiment=variance - -import "package:expect/expect.dart"; - -class Contravariant {} - -class Upper {} -class Middle extends Upper {} -class Lower extends Middle {} - -class A { - Contravariant method1() { - return Contravariant(); - } - - void method2(Contravariant x) {} -} - -class B extends A { - @override - Contravariant method1() { - return new Contravariant(); - } - - @override - void method2(Contravariant x) {} -} - -class C extends A { - @override - Contravariant method1() { - return new Contravariant(); - } - - @override - void method2(Contravariant x) {} -} - -class D> {} - -class E { - D> method1() { - return D>(); - } -} - -class F { - D> method1() { - return D>(); - } -} - -void testCall(Iterable> x) {} - -main() { - A a = new A(); - Expect.type>(a.method1()); - Expect.type>(a.method1()); - Expect.notType>(a.method1()); - a.method2(new Contravariant()); - a.method2(new Contravariant()); - - B b = new B(); - Expect.type>(b.method1()); - Expect.type>(b.method1()); - Expect.type>(b.method1()); - b.method2(new Contravariant()); - b.method2(new Contravariant()); - - C c = new C(); - Expect.type>(c.method1()); - Expect.type>(c.method1()); - Expect.notType>(c.method1()); - c.method2(new Contravariant()); - c.method2(new Contravariant()); - - D> dUpper = new D>(); - D> dMiddle = new D>(); - - E e = new E(); - Expect.type>>(e.method1()); - Expect.type>>(e.method1()); - - F f = new F(); - Expect.type>>(e.method1()); - - Iterable> iterableLower = [new Contravariant()]; - List> listMiddle = [new Contravariant()]; - iterableLower = listMiddle; - - testCall(listMiddle); - - Expect.subtype, Contravariant>(); - Expect.subtype, Contravariant>(); - Expect.notSubtype, Contravariant>(); -} diff --git a/tests/language_2/variance/variance_inout_field_test.dart b/tests/language_2/variance/variance_inout_field_test.dart deleted file mode 100644 index 49e2349bbc8..00000000000 --- a/tests/language_2/variance/variance_inout_field_test.dart +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) 2019, 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 various fields for the `inout` variance modifier. - -// SharedOptions=--enable-experiment=variance - -import "package:expect/expect.dart"; - -typedef Void2Int = int Function(); -typedef Int2Void = void Function(int); - -class A { - T a; - final T b = null; - final T Function() c = () => null; - final void Function(T) d = (T val) { - Expect.equals(2, val); - }; - A get e => this; - covariant T f; - T get g => null; - void set h(T value) => value; - void set i(covariant T value) => value; -} - -mixin BMixin { - T a; - final T b = null; - final T Function() c = () => null; - final void Function(T) d = (T val) { - Expect.equals(2, val); - }; - BMixin get e => this; - covariant T f; - T get g => null; - void set h(T value) => value; - void set i(covariant T value) => value; -} - -class B with BMixin {} - -void testClass() { - A a = new A(); - - a.a = 2; - Expect.equals(2, a.a); - - Expect.isNull(a.b); - - Expect.type(a.c); - Expect.isNull(a.c()); - - Expect.type(a.d); - a.d(2); - - a.e.a = 3; - - a.f = 2; - Expect.equals(2, a.f); - - Expect.isNull(a.g); - - a.h = 2; - - a.i = 2; -} - -void testMixin() { - B b = new B(); - - b.a = 2; - Expect.equals(2, b.a); - - Expect.isNull(b.b); - - Expect.type(b.c); - Expect.isNull(b.c()); - - Expect.type(b.d); - b.d(2); - - b.e.a = 3; - - b.f = 2; - Expect.equals(2, b.f); - - Expect.isNull(b.g); - - b.h = 2; - - b.i = 2; -} - -main() { - testClass(); - testMixin(); -} diff --git a/tests/language_2/variance/variance_inout_inference_error_test.dart b/tests/language_2/variance/variance_inout_inference_error_test.dart deleted file mode 100644 index 4aab0b794a7..00000000000 --- a/tests/language_2/variance/variance_inout_inference_error_test.dart +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) 2019, 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 local inference errors for the `inout` variance modifier. - -// SharedOptions=--enable-experiment=variance - -class Covariant {} -class Contravariant {} -class Invariant {} - -class Exactly {} - -class Upper {} -class Middle extends Upper {} -class Lower extends Middle {} - -Exactly inferInvInv(Invariant x, Invariant y) => new Exactly(); -Exactly inferInvCov(Invariant x, Covariant y) => new Exactly(); -Exactly inferInvContra(Invariant x, Contravariant y) => new Exactly(); - -main() { - // Middle <: T <: Middle and int <: T <: int are not valid constraints. - inferInvInv(Invariant(), Invariant()); -//^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.COULD_NOT_INFER - // ^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.ARGUMENT_TYPE_NOT_ASSIGNABLE - // [cfe] The argument type 'Invariant' can't be assigned to the parameter type 'Invariant'. - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.ARGUMENT_TYPE_NOT_ASSIGNABLE - // [cfe] The argument type 'Invariant' can't be assigned to the parameter type 'Invariant'. - - // Middle <: T <: Middle and Upper <: T <: Upper are not valid constraints. - inferInvInv(Invariant(), Invariant()); -//^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.COULD_NOT_INFER - // ^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.ARGUMENT_TYPE_NOT_ASSIGNABLE - // [cfe] The argument type 'Invariant' can't be assigned to the parameter type 'Invariant'. - - // Middle <: T <: Middle and Lower <: T <: Lower are not valid constraints. - inferInvInv(Invariant(), Invariant()); -//^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.COULD_NOT_INFER - // ^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.ARGUMENT_TYPE_NOT_ASSIGNABLE - // [cfe] The argument type 'Invariant' can't be assigned to the parameter type 'Invariant'. - - // Upper <: T - // Middle <: T <: Middle - // Upper <: T <: Middle is not a valid constraint. - inferInvCov(Invariant(), Covariant()); -//^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.COULD_NOT_INFER - // ^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.ARGUMENT_TYPE_NOT_ASSIGNABLE - // [cfe] The argument type 'Invariant' can't be assigned to the parameter type 'Invariant'. - - // T <: Lower - // Middle <: T <: Lower - // Middle <: T <: Lower is not a valid constraint - inferInvContra(Invariant(), Contravariant()); -//^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.COULD_NOT_INFER - // ^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_CAST_NEW_EXPR - // [cfe] The constructor returns type 'Contravariant' that isn't of expected type 'Contravariant'. -} diff --git a/tests/language_2/variance/variance_inout_inference_test.dart b/tests/language_2/variance/variance_inout_inference_test.dart deleted file mode 100644 index 8a5e3c52705..00000000000 --- a/tests/language_2/variance/variance_inout_inference_test.dart +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2019, 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 local inference for the `inout` variance modifier. - -// SharedOptions=--enable-experiment=variance - -class Covariant {} -class Contravariant {} -class Invariant {} - -class Exactly {} - -class Upper {} -class Middle extends Upper {} -class Lower extends Middle {} - -Exactly inferInvInv(Invariant x, Invariant y) => new Exactly(); -Exactly inferInvCov(Invariant x, Covariant y) => new Exactly(); -Exactly inferInvContra(Invariant x, Contravariant y) => new Exactly(); - -main() { - Exactly middle; - - // Middle <: T <: Middle - // Choose Middle - var inferredMiddle = inferInvInv(Invariant(), Invariant()); - middle = inferredMiddle; - - // Lower <: T - // Middle <: T <: Middle - // Choose Middle since this merges to Middle <: T <: Middle - var inferredMiddle2 = inferInvCov(Invariant(), Covariant()); - middle = inferredMiddle2; - - // Middle <: T - // Middle <: T <: Middle - // Choose Middle since this merges to Middle <: T <: Middle - var inferredMiddle3 = inferInvCov(Invariant(), Covariant()); - middle = inferredMiddle3; - - // T <: Upper - // Middle <: T <: Middle - // Choose Middle since this merges to Middle <: T <: Middle - var inferredMiddle4 = inferInvContra(Invariant(), Contravariant()); - middle = inferredMiddle4; - - // T <: Middle - // Middle <: T <: Middle - // Choose Middle since this merges to Middle <: T <: Middle - var inferredMiddle5 = inferInvContra(Invariant(), Contravariant()); - middle = inferredMiddle5; -} diff --git a/tests/language_2/variance/variance_inout_method_test.dart b/tests/language_2/variance/variance_inout_method_test.dart deleted file mode 100644 index ae46510b35d..00000000000 --- a/tests/language_2/variance/variance_inout_method_test.dart +++ /dev/null @@ -1,287 +0,0 @@ -// Copyright (c) 2019, 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 method signatures and return types for the `inout` variance modifier. - -// SharedOptions=--enable-experiment=variance - -import "package:expect/expect.dart"; - -typedef Cov = T Function(); -typedef Contra = void Function(T); - -Cov covFunction = () => 2; -Contra contraFunction = (int val) {}; -Cov covFunctionNum = () => 2; -Contra contraFunctionNum = (num val) {}; - -class Covariant {} -class Contravariant {} -class Invariant {} - -class A { - void method1(T x) {} - void method2(Cov x) {} - Contra method3() { - return (T val) { - Expect.equals(2, val); - }; - } - - T method4() => null; - void method5(Contra x) {} - Cov method6() { - return () => null; - } - - T method7(T x) => x; - Contra method8(Contra x) => x; - Cov method9(Cov x) => x; - - T method10(S x) => x; - - void method11(Covariant x) {} - Covariant method12() => null; - void method13(Contravariant x) {} - Contravariant method14() => null; - void method15(Invariant x) {} - Invariant method16() => null; - - void method17(covariant T x) {} - void method18(covariant Contra x) {} - void method19(covariant Cov x) {} - void method20(covariant Contravariant x) {} - void method21(covariant Covariant x) {} - - void method22>() {} - void method23>() {} - void method24>() {} - void method25>() {} - - void method26({Contra a, Cov b, T c}) {} - void method27({Contravariant a, Covariant b}) {} -} - -mixin BMixin { - void method1(T x) {} - void method2(Cov x) {} - Contra method3() { - return (T val) { - Expect.equals(2, val); - }; - } - - T method4() => null; - void method5(Contra x) {} - Cov method6() { - return () => null; - } - - T method7(T x) => x; - Contra method8(Contra x) => x; - Cov method9(Cov x) => x; - - T method10(S x) => x; - - void method11(Covariant x) {} - Covariant method12() => null; - void method13(Contravariant x) {} - Contravariant method14() => null; - void method15(Invariant x) {} - Invariant method16() => null; - - void method17(covariant T x) {} - void method18(covariant Contra x) {} - void method19(covariant Cov x) {} - void method20(covariant Contravariant x) {} - void method21(covariant Covariant x) {} - - void method22>() {} - void method23>() {} - void method24>() {} - void method25>() {} - - void method26({Contra a, Cov b, T c}) {} - void method27({Contravariant a, Covariant b}) {} -} - -class B with BMixin {} - -class C { - void method1(Contra> x) {} - void method2(Cov> x) {} - A method3() { - return A(); - } -} - -class D { - T method() => null; - void method2(T x) {} - void method3(covariant T x) {} -} - -class E extends D { - @override - T method() => null; - - @override - void method2(T x) {} - - @override - void method3(covariant T x) {} -} - -abstract class F { - int method(T x); -} - -class G { - final void Function(T) f; - G(this.f); - int method(T x) { - f(x); - } -} - -class H extends G implements F { - H(void Function(T) f) : super(f); -} - -void testClass() { - A a = new A(); - - a.method1(2); - - a.method2(() => 2); - - Expect.type>(a.method3()); - Contra method3Function = a.method3(); - method3Function(2); - - Expect.isNull(a.method4()); - - a.method5((int val) {}); - - Expect.type>(a.method6()); - Cov method6Function = a.method6(); - Expect.isNull(method6Function()); - - Expect.equals(3, a.method7(3)); - - Expect.type>(a.method8(contraFunction)); - Expect.equals(contraFunction, a.method8(contraFunction)); - - Expect.type>(a.method9(covFunction)); - Expect.equals(covFunction, a.method9(covFunction)); - - A aa = new A(); - Expect.type(aa.method10(3)); - - a.method11(Covariant()); - Expect.isNull(a.method12()); - a.method13(Contravariant()); - Expect.isNull(a.method14()); - a.method15(Invariant()); - Expect.isNull(a.method16()); - - a.method17(3); - a.method18(contraFunction); - a.method19(covFunction); - a.method20(Contravariant()); - a.method21(Covariant()); - - a.method22>(); - a.method23>(); - a.method24>(); - a.method25>(); - - a.method26(); - a.method27(); -} - -void testMixin() { - B b = new B(); - - b.method1(2); - - b.method2(() => 2); - - Expect.type>(b.method3()); - Contra method3Function = b.method3(); - method3Function(2); - - Expect.isNull(b.method4()); - - b.method5((num val) {}); - - Expect.type>(b.method6()); - Cov method6Function = b.method6(); - Expect.isNull(method6Function()); - - Expect.equals(3, b.method7(3)); - - Expect.type>(b.method8(contraFunctionNum)); - Expect.equals(contraFunctionNum, b.method8(contraFunctionNum)); - - Expect.type>(b.method9(covFunctionNum)); - Expect.equals(covFunctionNum, b.method9(covFunctionNum)); - - Expect.type(b.method10(3)); - - b.method11(Covariant()); - Expect.isNull(b.method12()); - b.method13(Contravariant()); - Expect.isNull(b.method14()); - b.method15(Invariant()); - Expect.isNull(b.method16()); - - b.method17(3); - b.method18(contraFunctionNum); - b.method19(covFunctionNum); - b.method20(Contravariant()); - b.method21(Covariant()); - - b.method22>(); - b.method23>(); - b.method24>(); - b.method25>(); - - b.method26(); - b.method27(); -} - -void testClassInMethods() { - C c = new C(); - - c.method1((A x) {}); - c.method2(() => null); - - Expect.type>(c.method3()); -} - -void testOverrideLegacyMethods() { - E e = new E(); - Expect.isNull(e.method()); - e.method2(3); - e.method3(3); - - D d = e; - Expect.throws(() => d.method2("test")); - Expect.throws(() => d.method3("test")); - - F f = new H((String s) {}); - Expect.throws(() => f.method(3)); - - // Tests reified type is the type expected for F and not G. - Expect.type(f.method); - Expect.type(new H((String s){}).method); -} - -main() { - testClass(); - testMixin(); - testClassInMethods(); - testOverrideLegacyMethods(); -} diff --git a/tests/language_2/variance/variance_inout_subclass_test.dart b/tests/language_2/variance/variance_inout_subclass_test.dart deleted file mode 100644 index e1b7122c805..00000000000 --- a/tests/language_2/variance/variance_inout_subclass_test.dart +++ /dev/null @@ -1,90 +0,0 @@ -// Copyright (c) 2019, 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 subclass usage for the `inout` variance modifier. - -// SharedOptions=--enable-experiment=variance - -typedef CovFunction = T Function(); -typedef ContraFunction = void Function(T); -typedef InvFunction = T Function(T); - -class LegacyCovariant {} -class Invariant{} -class Covariant {} -class Contravariant {} -mixin MLegacyCovariant {} -mixin MContravariant {} -mixin MCovariant {} -mixin MInvariant {} - -class A extends LegacyCovariant {} -class B extends Invariant {} -class C extends Covariant {} -class D extends Contravariant {} - -class E implements LegacyCovariant {} -class F implements Invariant {} -class G implements Covariant {} -class H implements Contravariant {} - -class I with MLegacyCovariant {} -class J with MInvariant {} -class K with MCovariant {} -class L with MContravariant {} - -class M extends Covariant> {} -class N extends Contravariant> {} -class O extends Covariant> {} -class P extends Covariant>> {} -class Q extends Covariant>> {} -class R extends Covariant>> {} -class S extends Contravariant>> {} - -class T extends Covariant> {} -class U extends Contravariant> {} -class V extends Covariant> {} -class W extends Covariant>> {} -class X extends Contravariant>> {} -class Y extends Covariant>> {} -class Z extends Covariant>> {} - -class AA extends Covariant> {} - -class AB = Invariant with MInvariant; -class AC = Covariant with MCovariant; -class AD = Contravariant with MContravariant; - -main() { - A a = A(); - B b = B(); - C c = C(); - D d = D(); - E e = E(); - F f = F(); - G g = G(); - H h = H(); - I i = I(); - J j = J(); - K k = K(); - L l = L(); - M m = M(); - N n = N(); - O o = O(); - P p = P(); - Q q = Q(); - R r = R(); - S s = S(); - T t = T(); - U u = U(); - V v = V(); - W w = W(); - X x = X(); - Y y = Y(); - Z z = Z(); - AA aa = AA(); - AB ab = AB(); - AC ac = AC(); - AD ad = AD(); -} diff --git a/tests/language_2/variance/variance_inout_subtyping_error_test.dart b/tests/language_2/variance/variance_inout_subtyping_error_test.dart deleted file mode 100644 index d994e6c1da7..00000000000 --- a/tests/language_2/variance/variance_inout_subtyping_error_test.dart +++ /dev/null @@ -1,130 +0,0 @@ -// Copyright (c) 2019, 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 erroneous subtyping for the `inout` variance modifier. - -// SharedOptions=--enable-experiment=variance - -class Invariant {} - -class Upper {} -class Middle extends Upper {} -class Lower extends Middle {} - -class A { - Invariant method1() { - return Invariant(); - } - - void method2(Invariant x) {} -} - -class B extends A { - @override - Invariant method1() { - // ^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_OVERRIDE - // [cfe] The return type of the method 'B.method1' is 'Invariant', which does not match the return type, 'Invariant', of the overridden method, 'A.method1'. - return new Invariant(); - } - - @override - void method2(Invariant x) {} - // ^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_OVERRIDE - // ^ - // [cfe] The parameter 'x' of the method 'B.method2' has type 'Invariant', which does not match the corresponding type, 'Invariant', in the overridden method, 'A.method2'. -} - -class C extends A { - @override - Invariant method1() { - // ^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_OVERRIDE - // [cfe] The return type of the method 'C.method1' is 'Invariant', which does not match the return type, 'Invariant', of the overridden method, 'A.method1'. - return new Invariant(); - } - - @override - void method2(Invariant x) {} - // ^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_OVERRIDE - // ^ - // [cfe] The parameter 'x' of the method 'C.method2' has type 'Invariant', which does not match the corresponding type, 'Invariant', in the overridden method, 'A.method2'. -} - -class D> {} - -class E { - D> method1() { - //^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - // ^ - // [cfe] Type argument 'Invariant' doesn't conform to the bound 'Invariant' of the type variable 'T' on 'D' in the return type. - return D>(); - // ^ - // [cfe] Type argument 'Invariant' doesn't conform to the bound 'Invariant' of the type variable 'T' on 'D'. - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - } - - D> method2() { - //^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - // ^ - // [cfe] Type argument 'Invariant' doesn't conform to the bound 'Invariant' of the type variable 'T' on 'D' in the return type. - return D>(); - // ^ - // [cfe] Type argument 'Invariant' doesn't conform to the bound 'Invariant' of the type variable 'T' on 'D'. - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - } -} - -void testCall(Iterable> x) {} - -main() { - D> dUpper = new D>(); - //^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - // ^ - // [cfe] Type argument 'Invariant' doesn't conform to the bound 'Invariant' of the type variable 'T' on 'D'. - // ^ - // [cfe] Type argument 'Invariant' doesn't conform to the bound 'Invariant' of the type variable 'T' on 'D'. - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - D> dLower = new D>(); - //^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - // ^ - // [cfe] Type argument 'Invariant' doesn't conform to the bound 'Invariant' of the type variable 'T' on 'D'. - // ^ - // [cfe] Type argument 'Invariant' doesn't conform to the bound 'Invariant' of the type variable 'T' on 'D'. - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - - Iterable> iterableLower = [new Invariant()]; - List> listMiddle = [new Invariant()]; - iterableLower = listMiddle; - // ^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'List>' can't be assigned to a variable of type 'Iterable>'. - - Iterable> iterableMiddle = [new Invariant()]; - List> listLower = [new Invariant()]; - iterableMiddle = listLower; - // ^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'List>' can't be assigned to a variable of type 'Iterable>'. - - testCall(listMiddle); - // ^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.ARGUMENT_TYPE_NOT_ASSIGNABLE - // [cfe] The argument type 'List>' can't be assigned to the parameter type 'Iterable>'. - - testCall(listLower); - // ^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.ARGUMENT_TYPE_NOT_ASSIGNABLE - // [cfe] The argument type 'List>' can't be assigned to the parameter type 'Iterable>'. -} diff --git a/tests/language_2/variance/variance_inout_subtyping_test.dart b/tests/language_2/variance/variance_inout_subtyping_test.dart deleted file mode 100644 index d2450020ad0..00000000000 --- a/tests/language_2/variance/variance_inout_subtyping_test.dart +++ /dev/null @@ -1,170 +0,0 @@ -// Copyright (c) 2019, 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 subtyping for the `inout` variance modifier. - -// SharedOptions=--enable-experiment=variance - -import 'dart:async'; - -import "package:expect/expect.dart"; - -class Invariant {} - -class Upper {} -class Middle extends Upper {} -class Lower extends Middle {} - -class A { - Invariant method1() { - return new Invariant(); - } - - void method2(Invariant x) {} -} - -class B extends A { - @override - Invariant method1() { - return new Invariant(); - } - - @override - void method2(Invariant x) {} -} - -class C> {} - -class D { - C> method1() { - return C>(); - } -} - -class E { - Invariant method1() { - return new Invariant(); - } - - void method2(Invariant x) {} -} - -class F extends E { - @override - Invariant method1() { - return new Invariant(); - } - - @override - void method2(Invariant x) {} -} - -class G { - Invariant method1() { - return new Invariant(); - } - - void method2(Invariant> x) {} -} - -class H extends G { - @override - Invariant> method1() { - return new Invariant>(); - } - - @override - void method2(Invariant x) {} -} - -class I { - Invariant> method1() { - return new Invariant>(); - } - - void method2(Invariant> x) {} -} - -class J extends I { - @override - Invariant> method1() { - return new Invariant>(); - } - - @override - void method2(Invariant> x) {} -} - -void testCall(Iterable> x) {} - -main() { - A a = new A(); - Expect.type>(a.method1()); - Expect.notType>(a.method1()); - Expect.notType>(a.method1()); - a.method2(new Invariant()); - - B b = new B(); - Expect.type>(b.method1()); - Expect.notType>(b.method1()); - Expect.notType>(b.method1()); - b.method2(new Invariant()); - - C> c = new C>(); - - D d = new D(); - Expect.type>>(d.method1()); - - E e = new E(); - Expect.type>(e.method1()); - e.method2(new Invariant()); - - // Invariant <:> Invariant - F f = new F(); - Expect.type>(f.method1()); - Expect.type>(f.method1()); - f.method2(new Invariant()); - f.method2(new Invariant()); - - G g = new G(); - Expect.type>(g.method1()); - g.method2(new Invariant>()); - - // Invariant> <:> Invariant - H h = new H(); - Expect.type>>(h.method1()); - Expect.type>(h.method1()); - h.method2(new Invariant>()); - h.method2(new Invariant()); - - I i = new I(); - Expect.type>>(i.method1()); - i.method2(new Invariant>()); - - // Invariant> <:> Invariant> - J j = new J(); - Expect.type>>(j.method1()); - Expect.type>>(j.method1()); - j.method2(new Invariant>()); - j.method2(new Invariant>()); - - Iterable> iterableMiddle = [new Invariant()]; - List> listMiddle = [new Invariant()]; - iterableMiddle = listMiddle; - - testCall(listMiddle); - - Expect.subtype, Invariant>(); - Expect.notSubtype, Invariant>(); - Expect.notSubtype, Invariant>(); - - Expect.subtype, Invariant>(); - Expect.subtype, Invariant>(); - - Expect.subtype>, Invariant>(); - Expect.subtype, Invariant>>(); - - Expect.subtype>, Invariant>>(); - Expect.subtype>, Invariant>>(); -} diff --git a/tests/language_2/variance/variance_method_tearoff_test.dart b/tests/language_2/variance/variance_method_tearoff_test.dart deleted file mode 100644 index 03261acf916..00000000000 --- a/tests/language_2/variance/variance_method_tearoff_test.dart +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) 2019, 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 reified types of torn-off methods with type parameters that have -// explicit variance modifiers. - -// SharedOptions=--enable-experiment=variance - -import "package:expect/expect.dart"; - -class Contravariant { - int method(T x) {} -} - -class Invariant { - T method(T x) {} -} - -class LegacyCovariant { - int method(T x) {} -} - -class NoSuchMethod implements Invariant { - noSuchMethod(_) => 3; -} - -main() { - Contravariant contraDiff = new Contravariant(); - Expect.notType(contraDiff.method); - Expect.type(contraDiff.method); - - Contravariant contraSame = new Contravariant(); - Expect.notType(contraSame.method); - Expect.type(contraSame.method); - - Invariant invSame = new Invariant(); - Expect.notType(invSame.method); - Expect.type(invSame.method); - - LegacyCovariant legacyDiff = new LegacyCovariant(); - Expect.type(legacyDiff.method); - Expect.type(legacyDiff.method); - - LegacyCovariant legacySame = new LegacyCovariant(); - Expect.type(legacySame.method); - Expect.type(legacySame.method); - - NoSuchMethod nsm = new NoSuchMethod(); - Expect.notType(nsm.method); - Expect.type(nsm.method); -} diff --git a/tests/language_2/variance/variance_multi_subclass_error_test.dart b/tests/language_2/variance/variance_multi_subclass_error_test.dart deleted file mode 100644 index ed790c7394d..00000000000 --- a/tests/language_2/variance/variance_multi_subclass_error_test.dart +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) 2019, 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 erroneous variance usage multiple type parameters. - -// SharedOptions=--enable-experiment=variance - -typedef CovFunction = T Function(); -typedef ContraFunction = void Function(T); - -class Covariant {} -class Contravariant {} - -class MultiTwo {} -class MultiThree {} - -class A extends Covariant {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class B extends MultiThree {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'inout' position in supertype 'MultiThree'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class C extends MultiTwo {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'MultiTwo'. -// ^ -// [cfe] Can't use 'out' type variable 'U' in an 'in' position in supertype 'MultiTwo'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class D extends MultiThree {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'inout' position in supertype 'MultiThree'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class E extends MultiThree, Covariant, Covariant> {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'MultiThree'. -// ^ -// [cfe] Can't use 'out' type variable 'U' in an 'inout' position in supertype 'MultiThree'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class F extends MultiTwo, Contravariant> {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'MultiTwo'. -// ^ -// [cfe] Can't use 'out' type variable 'U' in an 'in' position in supertype 'MultiTwo'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class G extends MultiThree, CovFunction, CovFunction> {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'MultiThree'. -// ^ -// [cfe] Can't use 'out' type variable 'U' in an 'inout' position in supertype 'MultiThree'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class H extends MultiTwo, ContraFunction> {} -// ^ -// [cfe] Can't use 'in' type variable 'T' in an 'out' position in supertype 'MultiTwo'. -// ^ -// [cfe] Can't use 'out' type variable 'U' in an 'in' position in supertype 'MultiTwo'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE diff --git a/tests/language_2/variance/variance_multi_subclass_test.dart b/tests/language_2/variance/variance_multi_subclass_test.dart deleted file mode 100644 index ae4f57ae5ab..00000000000 --- a/tests/language_2/variance/variance_multi_subclass_test.dart +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) 2019, 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 variance usage multiple type parameters. - -// SharedOptions=--enable-experiment=variance - -typedef CovFunction = T Function(); -typedef ContraFunction = void Function(T); - -class Covariant {} -class Contravariant {} - -class A {} -class B {} - -class C extends A {} -class D extends B {} -class E extends B {} - -class F extends A, Contravariant> {} -class G extends A>, Contravariant>> {} -class H extends B, Covariant, Covariant> {} - -class I extends A, ContraFunction> {} -class J extends A>, ContraFunction>> {} -class K extends B, CovFunction, CovFunction> {} - -main() { - A a = A(); - B b = B(); - C c = C(); - D d = D(); - E e = E(); - F f = F(); - G g = G(); - H h = H(); - I i = I(); - J j = J(); - K k = K(); -} diff --git a/tests/language_2/variance/variance_out_field_error_test.dart b/tests/language_2/variance/variance_out_field_error_test.dart deleted file mode 100644 index d87b195532b..00000000000 --- a/tests/language_2/variance/variance_out_field_error_test.dart +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) 2019, 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 erroneous field usage for the `out` variance modifier. - -// SharedOptions=--enable-experiment=variance - -class A { - void set a(T value) => value; - // ^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - final void Function(T) b = (T val) {}; - // ^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - T c; -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION -// [cfe] Can't use 'out' type variable 'T' in an 'in' position. -} - -mixin BMixin { - void set a(T value) => value; - // ^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - final void Function(T) b = (T val) {}; - // ^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - T c; -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION -// [cfe] Can't use 'out' type variable 'T' in an 'in' position. -} - -abstract class C { - void set a(T value) => value; - // ^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. -} - -class D extends C { - var a; - // ^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. -} diff --git a/tests/language_2/variance/variance_out_field_test.dart b/tests/language_2/variance/variance_out_field_test.dart deleted file mode 100644 index 775d2a6ad02..00000000000 --- a/tests/language_2/variance/variance_out_field_test.dart +++ /dev/null @@ -1,72 +0,0 @@ -// Copyright (c) 2019, 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 various fields for the `out` variance modifier. - -// SharedOptions=--enable-experiment=variance - -import "package:expect/expect.dart"; - -typedef Void2Int = int Function(); - -class A { - final T a = null; - final T Function() b = () => null; - T get c => null; - A get d => this; - covariant T e; - void set f(covariant T value) => value; -} - -mixin BMixin { - final T a = null; - final T Function() b = () => null; - T get c => null; - BMixin get d => this; - covariant T e; - void set f(covariant T value) => value; -} - -class B with BMixin {} - -void testClass() { - A a = new A(); - - Expect.isNull(a.a); - - Expect.type(a.b); - Expect.isNull(a.b()); - - Expect.isNull(a.c); - - Expect.isNull(a.d.a); - - a.e = 2; - Expect.equals(2, a.e); - - a.f = 2; -} - -void testMixin() { - B b = new B(); - - Expect.isNull(b.a); - - Expect.type(b.b); - Expect.isNull(b.b()); - - Expect.isNull(b.c); - - Expect.isNull(b.d.a); - - b.e = 2; - Expect.equals(2, b.e); - - b.f = 2; -} - -main() { - testClass(); - testMixin(); -} diff --git a/tests/language_2/variance/variance_out_inference_error_test.dart b/tests/language_2/variance/variance_out_inference_error_test.dart deleted file mode 100644 index ccce0d1504f..00000000000 --- a/tests/language_2/variance/variance_out_inference_error_test.dart +++ /dev/null @@ -1,60 +0,0 @@ -// Copyright (c) 2019, 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 local inference errors for the `out` variance modifier. - -// SharedOptions=--enable-experiment=variance - -class Covariant {} - -class Exactly {} - -class Upper {} -class Middle extends Upper {} -class Lower extends Middle {} - -class CovBound { - CovBound(T x, void Function(T) y) {} -} - -Exactly inferCovCov(Covariant x, Covariant y) => new Exactly(); -Exactly inferCovBound(CovBound x) => new Exactly(); - -main() { - Exactly upper; - Exactly middle; - Exactly lower; - - // Lower <: T <: Middle. - // We choose Middle. - var inferredMiddle = inferCovCov(Covariant(), Covariant()); - lower = inferredMiddle; - // ^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly' can't be assigned to a variable of type 'Exactly'. - - // Lower <: T <: Upper. - // We choose Upper. - var inferredUpper = inferCovCov(Covariant(), Covariant()); - lower = inferredUpper; - // ^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly' can't be assigned to a variable of type 'Exactly'. - - // Inference for Covbound(...) produces Lower <: T <: Upper. - // Since T is covariant, we choose Lower as the solution. - var inferredCovLower = inferCovBound(CovBound(Lower(), (Upper x) {})); - upper = inferredCovLower; - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly' can't be assigned to a variable of type 'Exactly'. - - // Inference for Covbound(...) produces Lower <: T <: Middle. - // Since T is covariant, we choose Lower as the solution. - var inferredCovLower2 = inferCovBound(CovBound(Lower(), (Middle x) {})); - middle = inferredCovLower2; - // ^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly' can't be assigned to a variable of type 'Exactly'. -} diff --git a/tests/language_2/variance/variance_out_inference_test.dart b/tests/language_2/variance/variance_out_inference_test.dart deleted file mode 100644 index 14b49e165e3..00000000000 --- a/tests/language_2/variance/variance_out_inference_test.dart +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) 2019, 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 local inference for the `out` variance modifier. - -// SharedOptions=--enable-experiment=variance - -class Covariant {} - -class Exactly {} - -class Upper {} -class Middle extends Upper {} -class Lower extends Middle {} - -class CovBound { - CovBound(T x, void Function(T) y) {} -} - -Exactly inferCovCov(Covariant x, Covariant y) => new Exactly(); -Exactly inferCovBound(CovBound x) => new Exactly(); - -main() { - Exactly upper; - Exactly lower; - - // Upper <: T - // Upper <: T - // Choose Upper - var inferredUpper = inferCovCov(Covariant(), Covariant()); - upper = inferredUpper; - - // Upper <: T - // Middle <: T - // Choose Upper since it is the lowest upper bound of Upper and Middle. - var inferredUpper2 = inferCovCov(Covariant(), Covariant()); - upper = inferredUpper2; - - // Upper <: T - // Lower <: T - // Choose Upper since it is the lowest upper bound of Upper and Lower. - var inferredUpper3 = inferCovCov(Covariant(), Covariant()); - upper = inferredUpper3; - - // Lower <: T <: Upper - // Choose Lower. - var inferredCovLower = inferCovBound(CovBound(Lower(), (Upper x) {})); - lower = inferredCovLower; - - // Lower <: T <: Middle - // Choose Lower. - var inferredCovLower2 = inferCovBound(CovBound(Lower(), (Middle x) {})); - lower = inferredCovLower2; -} diff --git a/tests/language_2/variance/variance_out_method_error_test.dart b/tests/language_2/variance/variance_out_method_error_test.dart deleted file mode 100644 index 1705207eb34..00000000000 --- a/tests/language_2/variance/variance_out_method_error_test.dart +++ /dev/null @@ -1,357 +0,0 @@ -// Copyright (c) 2019, 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 erroneous method signatures and return types for the `out` variance modifier. - -// SharedOptions=--enable-experiment=variance - -typedef Inv = void Function(); -typedef Cov = T Function(); -typedef Contra = void Function(T); - -class Covariant {} -class Contravariant {} -class Invariant {} - -class A { - void method1(T x) {} - // ^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - void method2(Cov x) {} - // ^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - Contra method3() => (T val) {}; -//^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position in the return type. - - void method4(Cov> x) {} - // ^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - Contra> method5() => (Cov method) {}; -//^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position in the return type. - - Cov> method6() { -//^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position in the return type. - return () { - return (T x) {}; - }; - } - - void method7(Contra> x) {} - // ^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - Inv method8() => null; -//^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position in the return type. - - void method9(Inv x) {} - // ^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. - - Contravariant method10() => null; -//^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position in the return type. - - void method11(Covariant x) {} - // ^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - Invariant method12() => null; -//^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position in the return type. - - void method13(Invariant x) {} - // ^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. - - void method14(Covariant> x) {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - void method15(Contravariant> x) {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - Contravariant> method16() => Contravariant>(); -//^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position in the return type. - - Covariant> method17() => Covariant>(); -//^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position in the return type. - - void method18>() {} - // ^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. - - void method19>() {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. - - void method20({T x}) {} - // ^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - void method21({Cov x}) {} - // ^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - void method22({Covariant x}) {} - // ^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - void method23({Covariant x, Contravariant y}) {} - // ^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - void method24() {} - // ^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. - - void method25>() {} - // ^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. - - void method26>() {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. -} - -mixin BMixin { - void method1(T x) {} - // ^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - void method2(Cov x) {} - // ^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - Contra method3() => (T val) {}; -//^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position in the return type. - - void method4(Cov> x) {} - // ^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - Contra> method5() => (Cov method) {}; -//^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position in the return type. - - Cov> method6() { -//^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position in the return type. - return () { - return (T x) {}; - }; - } - - void method7(Contra> x) {} - // ^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - Inv method8() => null; -//^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position in the return type. - - void method9(Inv x) {} - // ^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. - - Contravariant method10() => null; -//^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position in the return type. - - void method11(Covariant x) {} - // ^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - Invariant method12() => null; -//^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position in the return type. - - void method13(Invariant x) {} - // ^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. - - void method14(Covariant> x) {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - void method15(Contravariant> x) {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - Contravariant> method16() => Contravariant>(); -//^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position in the return type. - - Covariant> method17() => Covariant>(); -//^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position in the return type. - - void method18>() {} - // ^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. - - void method19>() {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. - - void method20({T x}) {} - // ^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - void method21({Cov x}) {} - // ^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - void method22({Covariant x}) {} - // ^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - void method23({Covariant x, Contravariant y}) {} - // ^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - - void method24() {} - // ^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. - - void method25>() {} - // ^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. - - void method26>() {} - // ^^^^^^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // [cfe] Can't use 'out' type variable 'T' in an 'inout' position. -} - -class B { - void method1(Cov> x) {} - // ^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. - Contra> method2() { -//^^^^^^^^^^^^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position in the return type. - return null; - } -} - -class C { - void method(T x) {} -} - -class D extends C { - @override - void method(T x) {} - // ^^^ - // [analyzer] COMPILE_TIME_ERROR.WRONG_TYPE_PARAMETER_VARIANCE_POSITION - // ^ - // [cfe] Can't use 'out' type variable 'T' in an 'in' position. -} diff --git a/tests/language_2/variance/variance_out_method_test.dart b/tests/language_2/variance/variance_out_method_test.dart deleted file mode 100644 index 7e0da2385e7..00000000000 --- a/tests/language_2/variance/variance_out_method_test.dart +++ /dev/null @@ -1,233 +0,0 @@ -// Copyright (c) 2019, 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 method signatures and return types for the `out` variance modifier. - -// SharedOptions=--enable-experiment=variance - -import "package:expect/expect.dart"; - -typedef Cov = T Function(); -typedef Contra = void Function(T); - -Cov covFunction = () => 2; -Contra contraFunction = (int val) {}; - -class Covariant {} -class Contravariant {} - -class A { - // TODO (kallentu): Come NNBD, change `T` to `T?` - T method1() => null; - void method2(Contra x) {} - Cov method3() { - return () => null; - } - - void method4(Contra> x) {} - void method5(Cov> x) {} - Contra> method6() { - return (Contra x) { - Expect.type>(x); - }; - } - - Cov> method7() { - return () { - return () => null; - }; - } - - void method8(Contravariant x) {} - Covariant method9() => null; - void method10(Contravariant> x) {} - Covariant> method11() => null; - void method12(Covariant> x) {} - Contravariant> method13() => null; - - void method14(covariant T x) {} - void method15(covariant Contra x) {} - void method16(covariant Cov x) {} - void method17(covariant Contravariant x) {} - void method18(covariant Covariant x) {} - - void method19({Contravariant x}) {} - void method20({Contra x}) {} -} - -mixin BMixin { - // TODO (kallentu): Come NNBD, change `T` to `T?` - T method1() => null; - void method2(Contra x) {} - Cov method3() { - return () => null; - } - - void method4(Contra> x) {} - void method5(Cov> x) {} - Contra> method6() { - return (Contra x) { - Expect.type>(x); - }; - } - - Cov> method7() { - return () { - return () => null; - }; - } - - void method8(Contravariant x) {} - Covariant method9() => null; - void method10(Contravariant> x) {} - Covariant> method11() => null; - void method12(Covariant> x) {} - Contravariant> method13() => null; - - void method14(covariant T x) {} - void method15(covariant Contra x) {} - void method16(covariant Cov x) {} - void method17(covariant Contravariant x) {} - void method18(covariant Covariant x) {} - - void method19({Contravariant x}) {} - void method20({Contra x}) {} -} - -class B with BMixin {} - -class C { - void method1(Contra> x) {} - A method2() { - return A(); - } -} - -class D { - T method() => null; - void method2(T x) {} - void method3(covariant T x) {} -} - -class E extends D { - @override - T method() => null; - - @override - void method3(covariant T x) {} -} - -void testClass() { - A a = new A(); - - Expect.isNull(a.method1()); - - a.method2(contraFunction); - - Expect.type>(a.method3()); - Cov method3Function = a.method3(); - Expect.isNull(method3Function()); - - a.method4((Cov x) {}); - - a.method5(() { - return contraFunction; - }); - - Expect.type>>(a.method6()); - Contra> method6Function = a.method6(); - method6Function(contraFunction); - - Expect.type>>(a.method7()); - Cov> method7Function = a.method7(); - Expect.type>(method7Function()); - Cov method7NestedFunction = method7Function(); - Expect.isNull(method7NestedFunction()); - - a.method8(Contravariant()); - Expect.isNull(a.method9()); - a.method10(Contravariant>()); - Expect.isNull(a.method11()); - a.method12(Covariant>()); - Expect.isNull(a.method13()); - - a.method14(3); - a.method15(contraFunction); - a.method16(covFunction); - a.method17(Contravariant()); - a.method18(Covariant()); - - a.method19(); - a.method20(); -} - -void testMixin() { - B b = new B(); - - Expect.isNull(b.method1()); - - b.method2(contraFunction); - - Expect.type>(b.method3()); - Cov method3Function = b.method3(); - Expect.isNull(method3Function()); - - b.method4((Cov x) {}); - - b.method5(() { - return contraFunction; - }); - - Expect.type>>(b.method6()); - Contra> method6Function = b.method6(); - method6Function(contraFunction); - - Expect.type>>(b.method7()); - Cov> method7Function = b.method7(); - Expect.type>(method7Function()); - Cov method7NestedFunction = method7Function(); - Expect.isNull(method7NestedFunction()); - - b.method8(Contravariant()); - Expect.isNull(b.method9()); - b.method10(Contravariant>()); - Expect.isNull(b.method11()); - b.method12(Covariant>()); - Expect.isNull(b.method13()); - - b.method14(3); - b.method15(contraFunction); - b.method16(covFunction); - b.method17(Contravariant()); - b.method18(Covariant()); - - b.method19(); - b.method20(); -} - -void testClassInMethods() { - C c = new C(); - - c.method1((A x) {}); - - Expect.type>(c.method2()); -} - -void testOverrideLegacyMethods() { - E e = new E(); - Expect.isNull(e.method()); - e.method2(3); - e.method3(3); - - D d = e; - Expect.throws(() => d.method2("test")); - Expect.throws(() => d.method3("test")); -} - -main() { - testClass(); - testMixin(); - testClassInMethods(); - testOverrideLegacyMethods(); -} diff --git a/tests/language_2/variance/variance_out_subclass_error_test.dart b/tests/language_2/variance/variance_out_subclass_error_test.dart deleted file mode 100644 index 046395c6b3a..00000000000 --- a/tests/language_2/variance/variance_out_subclass_error_test.dart +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) 2019, 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 erroneous subclass usage for the `out` variance modifier. - -// SharedOptions=--enable-experiment=variance - -typedef CovFunction = T Function(); -typedef ContraFunction = void Function(T); -typedef InvFunction = T Function(T); - -class Covariant {} -class Contravariant {} -class Invariant {} -mixin MCovariant {} -mixin MContravariant {} -mixin MInvariant {} - -class A extends Contravariant {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'Contravariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class B implements Contravariant {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'Contravariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class C with MContravariant {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'MContravariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class D extends Invariant {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'inout' position in supertype 'Invariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class E implements Invariant {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'inout' position in supertype 'Invariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class F with MInvariant {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'MInvariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class G extends Covariant> {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class H extends Contravariant> {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'Contravariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class I extends Covariant> {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class J extends Covariant>> {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class K extends Covariant>> {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class L extends Covariant>> {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class M extends Contravariant>> {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'Contravariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class N extends Covariant> {} -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'inout' position in supertype 'Covariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class O = Covariant with MContravariant; -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'MContravariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class P = Contravariant with MCovariant; -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'Contravariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE - -class Q = Invariant with MInvariant; -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'in' position in supertype 'MInvariant'. -// ^ -// [cfe] Can't use 'out' type variable 'T' in an 'inout' position in supertype 'Invariant'. -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE -// ^ -// [analyzer] COMPILE_TIME_ERROR.WRONG_EXPLICIT_TYPE_PARAMETER_VARIANCE_IN_SUPERINTERFACE diff --git a/tests/language_2/variance/variance_out_subclass_test.dart b/tests/language_2/variance/variance_out_subclass_test.dart deleted file mode 100644 index 0c8861df7b6..00000000000 --- a/tests/language_2/variance/variance_out_subclass_test.dart +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) 2019, 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 subclass usage for the `out` variance modifier. - -// SharedOptions=--enable-experiment=variance - -typedef CovFunction = T Function(); -typedef ContraFunction = void Function(T); - -class LegacyCovariant {} -class Covariant {} -class Contravariant {} -mixin MLegacyCovariant {} -mixin MCovariant {} - -class A extends LegacyCovariant {} -class B implements LegacyCovariant {} -class C with MLegacyCovariant {} - -class D extends Covariant {} -class E implements Covariant {} -class F with MCovariant {} - -class G extends Covariant> {} -class H extends Contravariant> {} - -class I extends Covariant> {} -class J extends Covariant>> {} -class K extends Contravariant>> {} - -class L extends Covariant>> {} - -class M extends Covariant>> {} - -class N = Covariant with MCovariant; -class O = Contravariant> with MCovariant; -class P = Covariant with MCovariant>; - -main() { - A a = A(); - B b = B(); - C c = C(); - D d = D(); - E e = E(); - F f = F(); - G g = G(); - H h = H(); - I i = I(); - J j = J(); - K k = K(); - L l = L(); - M m = M(); - N n = N(); - O o = O(); - P p = P(); -} diff --git a/tests/language_2/variance/variance_out_subtyping_error_test.dart b/tests/language_2/variance/variance_out_subtyping_error_test.dart deleted file mode 100644 index 2ddcd3e2131..00000000000 --- a/tests/language_2/variance/variance_out_subtyping_error_test.dart +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright (c) 2019, 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 erroneous subtyping for the `out` variance modifier. - -// SharedOptions=--enable-experiment=variance - -class Covariant {} - -class Upper {} -class Middle extends Upper {} -class Lower {} - -class A { - Covariant method1() { - return Covariant(); - } - - void method2(Covariant x) {} -} - -class B extends A { - @override - Covariant method1() { - // ^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_OVERRIDE - // [cfe] The return type of the method 'B.method1' is 'Covariant', which does not match the return type, 'Covariant', of the overridden method, 'A.method1'. - return new Covariant(); - } - - @override - void method2(Covariant x) {} - // ^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_OVERRIDE - // ^ - // [cfe] The parameter 'x' of the method 'B.method2' has type 'Covariant', which does not match the corresponding type, 'Covariant', in the overridden method, 'A.method2'. -} - -class C> {} - -class D { - C> method1() { - //^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - // ^ - // [cfe] Type argument 'Covariant' doesn't conform to the bound 'Covariant' of the type variable 'T' on 'C' in the return type. - return C>(); - // ^ - // [cfe] Type argument 'Covariant' doesn't conform to the bound 'Covariant' of the type variable 'T' on 'C'. - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - } -} - -void testCall(Iterable> x) {} - -main() { - C> c = new C>(); - //^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - // ^ - // [cfe] Type argument 'Covariant' doesn't conform to the bound 'Covariant' of the type variable 'T' on 'C'. - // ^ - // [cfe] Type argument 'Covariant' doesn't conform to the bound 'Covariant' of the type variable 'T' on 'C'. - // ^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.TYPE_ARGUMENT_NOT_MATCHING_BOUNDS - - Iterable> iterableLower = [new Covariant()]; - List> listMiddle = [new Covariant()]; - iterableLower = listMiddle; - // ^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'List>' can't be assigned to a variable of type 'Iterable>'. - - testCall(listMiddle); - // ^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.ARGUMENT_TYPE_NOT_ASSIGNABLE - // [cfe] The argument type 'List>' can't be assigned to the parameter type 'Iterable>'. -} diff --git a/tests/language_2/variance/variance_out_subtyping_test.dart b/tests/language_2/variance/variance_out_subtyping_test.dart deleted file mode 100644 index 00f5ed3cf92..00000000000 --- a/tests/language_2/variance/variance_out_subtyping_test.dart +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) 2019, 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 subtyping for the `out` variance modifier. - -// SharedOptions=--enable-experiment=variance - -import "package:expect/expect.dart"; - -class Covariant {} - -class Upper {} -class Middle extends Upper {} -class Lower extends Middle {} - -class A { - Covariant method1() { - return new Covariant(); - } - - void method2(Covariant x) {} -} - -class B extends A { - @override - Covariant method1() { - return new Covariant(); - } - - @override - void method2(Covariant x) {} -} - -class C extends A { - @override - Covariant method1() { - return new Covariant(); - } - - @override - void method2(Covariant x) {} -} - -class D> {} - -class E { - D> method1() { - return D>(); - } -} - -class F { - D> method1() { - return D>(); - } -} - -void testCall(Iterable> x) {} - -main() { - A a = new A(); - Expect.type>(a.method1()); - Expect.type>(a.method1()); - Expect.notType>(a.method1()); - a.method2(new Covariant()); - a.method2(new Covariant()); - - B b = new B(); - Expect.type>(b.method1()); - Expect.type>(b.method1()); - Expect.type>(b.method1()); - b.method2(new Covariant()); - b.method2(new Covariant()); - - C c = new C(); - Expect.type>(c.method1()); - Expect.type>(c.method1()); - Expect.notType>(c.method1()); - c.method2(new Covariant()); - c.method2(new Covariant()); - - D> dLower = new D>(); - D> dMiddle = new D>(); - - E e = new E(); - Expect.type>>(e.method1()); - Expect.type>>(e.method1()); - - F f = new F(); - Expect.type>>(f.method1()); - - Iterable> iterableMiddle = [new Covariant()]; - List> listLower = [new Covariant()]; - iterableMiddle = listLower; - - testCall(listLower); - - Expect.subtype, Covariant>(); - Expect.subtype, Covariant>(); - Expect.notSubtype, Covariant>(); -} diff --git a/tests/language_2/variance/variance_unconstrained_inference_test.dart b/tests/language_2/variance/variance_unconstrained_inference_test.dart deleted file mode 100644 index fed460b564a..00000000000 --- a/tests/language_2/variance/variance_unconstrained_inference_test.dart +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) 2019, 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 unconstrained inferencing with sound variance. - -// SharedOptions=--enable-experiment=variance - -class Covariant {} -class Contravariant {} -class Invariant {} - -void covariantListInfer(Covariant> x) {} -void contravariantListInfer(Contravariant> x) {} -void invariantListInfer(Invariant> x) {} - -main() { - var cov = new Covariant(); - covariantListInfer(Covariant()); - - var contra = new Contravariant(); - contravariantListInfer(Contravariant()); - - var inv = new Invariant(); - invariantListInfer(Invariant()); -} diff --git a/tests/language_2/variance/variance_upper_lower_bounds_error_test.dart b/tests/language_2/variance/variance_upper_lower_bounds_error_test.dart deleted file mode 100644 index a8e1f25d021..00000000000 --- a/tests/language_2/variance/variance_upper_lower_bounds_error_test.dart +++ /dev/null @@ -1,102 +0,0 @@ -// Copyright (c) 2019, 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 erroneous upper and lower bounds computation with respect to -// variance modifiers. - -// SharedOptions=--enable-experiment=variance - -class Covariant {} -class Contravariant {} -class Invariant {} -class LegacyCovariant {} - -class Multi {} - -class Exactly {} -Exactly exactly(T x) => new Exactly(); - -class Upper {} -class Middle extends Upper {} -class Lower extends Middle {} - -main() { - bool condition = true; - - var contraLowerActual = - exactly(condition ? Contravariant() : Contravariant()); - Exactly> contraUpperExpected = contraLowerActual; - // ^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly>' can't be assigned to a variable of type 'Exactly>'. - - var contraMiddleActual = - exactly(condition ? Contravariant() : Contravariant()); - contraUpperExpected = contraMiddleActual; - // ^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly>' can't be assigned to a variable of type 'Exactly>'. - - var covMiddleActual = - exactly(condition ? Covariant() : Covariant()); - Exactly> covLowerExpected = covMiddleActual; - // ^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly>' can't be assigned to a variable of type 'Exactly>'. - - var covUpperActual = - exactly(condition ? Covariant() : Covariant()); - covLowerExpected = covUpperActual; - // ^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly>' can't be assigned to a variable of type 'Exactly>'. - - var invObjectActual = - exactly(condition ? Invariant() : Invariant()); - Exactly> invMiddleExpected = invObjectActual; - // ^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly' can't be assigned to a variable of type 'Exactly>'. - Exactly> invUpperExpected = invObjectActual; - // ^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly' can't be assigned to a variable of type 'Exactly>'. - - var legacyCovMiddleActual = - exactly(condition ? LegacyCovariant() : LegacyCovariant()); - Exactly> legacyCovLowerExpected = - legacyCovMiddleActual; - // ^^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly>' can't be assigned to a variable of type 'Exactly>'. - - var legacyCovUpperActual = - exactly(condition ? LegacyCovariant() : LegacyCovariant()); - legacyCovLowerExpected = legacyCovUpperActual; - // ^^^^^^^^^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly>' can't be assigned to a variable of type 'Exactly>'. - - var multiActual = exactly(condition - ? Multi() - : Multi()); - Exactly> multiExpected = multiActual; - // ^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly>' can't be assigned to a variable of type 'Exactly>'. - - var multiActual2 = exactly( - condition ? Multi() : Multi()); - Exactly> multiObjectExpected = multiActual2; - // ^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly' can't be assigned to a variable of type 'Exactly>'. - - var multiActual3 = exactly( - condition ? Multi() : Multi()); - Exactly multiObjectExpected2 = multiActual3; - // ^^^^^^^^^^^^ - // [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT - // [cfe] A value of type 'Exactly>' can't be assigned to a variable of type 'Exactly'. -} diff --git a/tests/language_2/variance/variance_upper_lower_bounds_test.dart b/tests/language_2/variance/variance_upper_lower_bounds_test.dart deleted file mode 100644 index ceb9ac88b91..00000000000 --- a/tests/language_2/variance/variance_upper_lower_bounds_test.dart +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) 2019, 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 upper and lower bounds computation with respect to variance modifiers. - -// SharedOptions=--enable-experiment=variance - -class Covariant {} -class Contravariant {} -class Invariant {} -class LegacyCovariant {} - -class Multi {} - -class Exactly {} -Exactly exactly(T x) => new Exactly(); - -class Upper {} -class Middle extends Upper {} -class Lower extends Middle {} - -main() { - bool condition = true; - - var contraLowerActual = - exactly(condition ? Contravariant() : Contravariant()); - Exactly> contraLowerExpected = contraLowerActual; - - var contraMiddleActual = - exactly(condition ? Contravariant() : Contravariant()); - Exactly> contraMiddleExpected = contraMiddleActual; - - var covMiddleActual = - exactly(condition ? Covariant() : Covariant()); - Exactly> covMiddleExpected = covMiddleActual; - - var covUpperActual = - exactly(condition ? Covariant() : Covariant()); - Exactly> covUpperExpected = covUpperActual; - - var invMiddleActual = - exactly(condition ? Invariant() : Invariant()); - Exactly> invMiddleExpected = invMiddleActual; - - var invObjectActual = - exactly(condition ? Invariant() : Invariant()); - Exactly invObjectExpected = invObjectActual; - - var legacyCovMiddleActual = - exactly(condition ? LegacyCovariant() : LegacyCovariant()); - Exactly> legacyCovMiddleExpected = - legacyCovMiddleActual; - - var legacyCovUpperActual = - exactly(condition ? LegacyCovariant() : LegacyCovariant()); - Exactly> legacyCovUpperExpected = legacyCovUpperActual; - - var multiActual = exactly(condition - ? Multi() - : Multi()); - Exactly> multiExpected = multiActual; - - var multiActual2 = exactly( - condition ? Multi() : Multi()); - Exactly multiObjectExpected = multiActual2; - - var multiActual3 = exactly( - condition ? Multi() : Multi()); - Exactly> multiObjectExpected2 = multiActual3; -} diff --git a/tests/language_2/vm/allocate_overflow_array_test.dart b/tests/language_2/vm/allocate_overflow_array_test.dart index 39d00d3a02b..f4a343eeef3 100644 --- a/tests/language_2/vm/allocate_overflow_array_test.dart +++ b/tests/language_2/vm/allocate_overflow_array_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; const interestingLengths = [ diff --git a/tests/language_2/vm/allocate_overflow_bytearray_test.dart b/tests/language_2/vm/allocate_overflow_bytearray_test.dart index 9242494224d..d98f921956d 100644 --- a/tests/language_2/vm/allocate_overflow_bytearray_test.dart +++ b/tests/language_2/vm/allocate_overflow_bytearray_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/vm/allocate_overflow_string_test.dart b/tests/language_2/vm/allocate_overflow_string_test.dart index f4488a1da54..464dea8139f 100644 --- a/tests/language_2/vm/allocate_overflow_string_test.dart +++ b/tests/language_2/vm/allocate_overflow_string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; const interestingLengths = [ diff --git a/tests/language_2/vm/allocation_sinking_arrays_test.dart b/tests/language_2/vm/allocation_sinking_arrays_test.dart index c6dc0a5c590..8f3f4da94ba 100644 --- a/tests/language_2/vm/allocation_sinking_arrays_test.dart +++ b/tests/language_2/vm/allocation_sinking_arrays_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization-counter-threshold=100 --deterministic // Tests allocation sinking of arrays and typed data objects. diff --git a/tests/language_2/vm/allocation_sinking_vm_test.dart b/tests/language_2/vm/allocation_sinking_vm_test.dart index f96fcbdbbdc..845c0a026f3 100644 --- a/tests/language_2/vm/allocation_sinking_vm_test.dart +++ b/tests/language_2/vm/allocation_sinking_vm_test.dart @@ -4,6 +4,8 @@ // Test allocation sinking optimization. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/vm/async_await_catch_stacktrace_test.dart b/tests/language_2/vm/async_await_catch_stacktrace_test.dart index 727b24232b2..16584de2324 100644 --- a/tests/language_2/vm/async_await_catch_stacktrace_test.dart +++ b/tests/language_2/vm/async_await_catch_stacktrace_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/language_2/vm/await_synchronous_future_test.dart b/tests/language_2/vm/await_synchronous_future_test.dart index 9ccf5dc5409..1a314ca9bd9 100644 --- a/tests/language_2/vm/await_synchronous_future_test.dart +++ b/tests/language_2/vm/await_synchronous_future_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that async/await syntax works for synchronously completed futures. // Such futures are used by Flutter (see http://dartbug.com/32098). diff --git a/tests/language_2/vm/bitnot_int_test.dart b/tests/language_2/vm/bitnot_int_test.dart index f52d66bf084..2d7a6073832 100644 --- a/tests/language_2/vm/bitnot_int_test.dart +++ b/tests/language_2/vm/bitnot_int_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no_background_compilation --optimization_counter_threshold=10 import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/bool_check_stack_traces_test.dart b/tests/language_2/vm/bool_check_stack_traces_test.dart index cd809369881..cd9c490d7d6 100644 --- a/tests/language_2/vm/bool_check_stack_traces_test.dart +++ b/tests/language_2/vm/bool_check_stack_traces_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class Test1 { @@ -95,9 +97,9 @@ void testStackTrace(void testCase(bool condition), List lineNumbers) { } main() { - testStackTrace(test1, [9, 18]); - testStackTrace(test2, [26, 35]); - testStackTrace(test3, [45, 54]); - testStackTrace(test4, [60]); //# 01: ok - testStackTrace(test5, [67]); //# 02: ok + testStackTrace(test1, [11, 20]); + testStackTrace(test2, [28, 37]); + testStackTrace(test3, [47, 56]); + testStackTrace(test4, [62]); //# 01: ok + testStackTrace(test5, [69]); //# 02: ok } diff --git a/tests/language_2/vm/canonicalization_preserves_deopt_test.dart b/tests/language_2/vm/canonicalization_preserves_deopt_test.dart index 37d1587e934..593fdd2b60e 100644 --- a/tests/language_2/vm/canonicalization_preserves_deopt_test.dart +++ b/tests/language_2/vm/canonicalization_preserves_deopt_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-use-osr --no-background_compilation +// @dart = 2.9 + import "package:expect/expect.dart"; class X { diff --git a/tests/language_2/vm/causal_async_exception_stack2_test.dart b/tests/language_2/vm/causal_async_exception_stack2_test.dart index e3ddda0f735..6e21580c12b 100644 --- a/tests/language_2/vm/causal_async_exception_stack2_test.dart +++ b/tests/language_2/vm/causal_async_exception_stack2_test.dart @@ -4,6 +4,8 @@ // // VMOptions=--lazy-async-stacks +// @dart = 2.9 + import 'package:async_helper/async_minitest.dart'; import 'causal_async_exception_stack_helper.dart' as h; diff --git a/tests/language_2/vm/causal_async_exception_stack_helper.dart b/tests/language_2/vm/causal_async_exception_stack_helper.dart index 7a751b43306..36e5c3ba084 100644 --- a/tests/language_2/vm/causal_async_exception_stack_helper.dart +++ b/tests/language_2/vm/causal_async_exception_stack_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + bool stringContainsInOrder(String string, List substrings) { var fromIndex = 0; for (var s in substrings) { diff --git a/tests/language_2/vm/causal_async_exception_stack_test.dart b/tests/language_2/vm/causal_async_exception_stack_test.dart index e9df0a7aad1..8afe38f8228 100644 --- a/tests/language_2/vm/causal_async_exception_stack_test.dart +++ b/tests/language_2/vm/causal_async_exception_stack_test.dart @@ -4,6 +4,8 @@ // // VMOptions=--lazy-async-stacks +// @dart = 2.9 + import 'package:async_helper/async_minitest.dart'; import 'causal_async_exception_stack_helper.dart' as h; @@ -36,8 +38,8 @@ main() async { } catch (e, st) { expect( h.stringContainsInOrder(st.toString(), [ - 'thrower', '.dart:12', // no auto-format. - 'generator', '.dart:21', // no auto-format. + 'thrower', '.dart:14', // no auto-format. + 'generator', '.dart:23', // no auto-format. '', // no auto-format. 'foo', '.dart', // no auto-format. 'main', @@ -74,8 +76,8 @@ main() async { } catch (e, st) { expect( h.stringContainsInOrder(st.toString(), [ - 'thrower', '.dart:12', // no auto-format. - 'main.', '.dart:73', // no auto-format. + 'thrower', '.dart:14', // no auto-format. + 'main.', '.dart:75', // no auto-format. ]), isTrue); } diff --git a/tests/language_2/vm/checked_smi_comparison_test.dart b/tests/language_2/vm/checked_smi_comparison_test.dart index d22cb013ed0..777ca3f1e41 100644 --- a/tests/language_2/vm/checked_smi_comparison_test.dart +++ b/tests/language_2/vm/checked_smi_comparison_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions= // VMOptions=--use_slow_path diff --git a/tests/language_2/vm/checked_smi_op_test.dart b/tests/language_2/vm/checked_smi_op_test.dart index f1ae4a65af8..5e1f8cd8383 100644 --- a/tests/language_2/vm/checked_smi_op_test.dart +++ b/tests/language_2/vm/checked_smi_op_test.dart @@ -2,7 +2,8 @@ // 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. -// SharedOptions=--enable-experiment=triple-shift +// @dart = 2.9 + // VMOptions= // VMOptions=--use_slow_path @@ -59,7 +60,6 @@ class Custom { operator ^(other) => "xor"; operator <<(other) => "sll"; operator >>(other) => "sra"; - operator >>>(other) => "srl"; } main() { @@ -73,7 +73,6 @@ main() { Expect.equals(40, hiddenSmi() ^ 2); Expect.equals(168, hiddenSmi() << 2); Expect.equals(10, hiddenSmi() >> 2); - Expect.equals(10, hiddenSmi() >>> 2); Expect.equals(-9223372036854775806, hiddenMint() + 2); Expect.equals(9223372036854775806, hiddenMint() - 2); @@ -85,7 +84,6 @@ main() { Expect.equals(-9223372036854775806, hiddenMint() ^ 2); Expect.equals(0, hiddenMint() << 2); Expect.equals(-2305843009213693952, hiddenMint() >> 2); - Expect.equals(2305843009213693952, hiddenMint() >>> 2); Expect.equals(5.0, hiddenDouble() + 2); Expect.equals(1.0, hiddenDouble() - 2); @@ -97,7 +95,6 @@ main() { Expect.throws(() => hiddenDouble() ^ 2, (e) => e is NoSuchMethodError); Expect.throws(() => hiddenDouble() << 2, (e) => e is NoSuchMethodError); Expect.throws(() => hiddenDouble() >> 2, (e) => e is NoSuchMethodError); - Expect.throws(() => hiddenDouble() >>> 2, (e) => e is NoSuchMethodError); Expect.equals("add", hiddenCustom() + 2); Expect.equals("sub", hiddenCustom() - 2); @@ -109,5 +106,4 @@ main() { Expect.equals("xor", hiddenCustom() ^ 2); Expect.equals("sll", hiddenCustom() << 2); Expect.equals("sra", hiddenCustom() >> 2); - Expect.equals("srl", hiddenCustom() >>> 2); } diff --git a/tests/language_2/vm/clamp_37868_test.dart b/tests/language_2/vm/clamp_37868_test.dart index a6d7f21471c..dce6bcd253b 100755 --- a/tests/language_2/vm/clamp_37868_test.dart +++ b/tests/language_2/vm/clamp_37868_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--deterministic import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/closure_memory_retention_test.dart b/tests/language_2/vm/closure_memory_retention_test.dart index d3732911c72..2f1ecef21dd 100644 --- a/tests/language_2/vm/closure_memory_retention_test.dart +++ b/tests/language_2/vm/closure_memory_retention_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--old_gen_heap_size=50 +// @dart = 2.9 + // Test that non-capturing closures don't retain unnecessary memory. // It tests that the context of `f` allocated within `bar` not leaking and does // not become the context of empty non-capturing closure allocated inside `foo`. diff --git a/tests/language_2/vm/create_array_instr_deopt2_test.dart b/tests/language_2/vm/create_array_instr_deopt2_test.dart index 3108cb57cc9..4a18d341721 100644 --- a/tests/language_2/vm/create_array_instr_deopt2_test.dart +++ b/tests/language_2/vm/create_array_instr_deopt2_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + foo(n) { return new List(n); } diff --git a/tests/language_2/vm/create_array_instr_deopt_test.dart b/tests/language_2/vm/create_array_instr_deopt_test.dart index 4e2a778141d..3b0fb1cfe33 100644 --- a/tests/language_2/vm/create_array_instr_deopt_test.dart +++ b/tests/language_2/vm/create_array_instr_deopt_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + @pragma('vm:never-inline') foo(n) { try { diff --git a/tests/language_2/vm/debug_break_enabled_vm_test.dart b/tests/language_2/vm/debug_break_enabled_vm_test.dart index a0e0c59a0c8..42c8790ed18 100644 --- a/tests/language_2/vm/debug_break_enabled_vm_test.dart +++ b/tests/language_2/vm/debug_break_enabled_vm_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=5 --enable-debug-break --no-background-compilation +// @dart = 2.9 + // Verify that the optimizer does not trip over the debug break (StopInstr). test(i) { diff --git a/tests/language_2/vm/debug_break_vm_test.dart b/tests/language_2/vm/debug_break_vm_test.dart index cdc174a0b3e..5c4d29cc65a 100644 --- a/tests/language_2/vm/debug_break_vm_test.dart +++ b/tests/language_2/vm/debug_break_vm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A debug break is not valid Dart syntax unless --enable-debug-break. test(i) { diff --git a/tests/language_2/vm/deep_loop_test.dart b/tests/language_2/vm/deep_loop_test.dart index dea7d53e24d..3fdc3381df3 100644 --- a/tests/language_2/vm/deep_loop_test.dart +++ b/tests/language_2/vm/deep_loop_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; // Stress tests on loop nesting depth. Make sure loop and induction diff --git a/tests/language_2/vm/deopt_hoisted_smi_check_vm_test.dart b/tests/language_2/vm/deopt_hoisted_smi_check_vm_test.dart index 2ed2e381689..00454bc9d7e 100644 --- a/tests/language_2/vm/deopt_hoisted_smi_check_vm_test.dart +++ b/tests/language_2/vm/deopt_hoisted_smi_check_vm_test.dart @@ -4,6 +4,8 @@ // Test deoptimization on an optimistically hoisted smi check. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import 'package:expect/expect.dart'; sum(a, b) { diff --git a/tests/language_2/vm/deopt_smi_check_vm_test.dart b/tests/language_2/vm/deopt_smi_check_vm_test.dart index 3c6143029ba..9642b458ef7 100644 --- a/tests/language_2/vm/deopt_smi_check_vm_test.dart +++ b/tests/language_2/vm/deopt_smi_check_vm_test.dart @@ -4,6 +4,8 @@ // Test deoptimization on a smi check. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import 'package:expect/expect.dart'; hc(a) { diff --git a/tests/language_2/vm/div_mod_test.dart b/tests/language_2/vm/div_mod_test.dart index ff9a88ca11f..0d75505382a 100755 --- a/tests/language_2/vm/div_mod_test.dart +++ b/tests/language_2/vm/div_mod_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--deterministic // VMOptions=--deterministic --use_slow_path diff --git a/tests/language_2/vm/exactness/future_or_regression_34238_test.dart b/tests/language_2/vm/exactness/future_or_regression_34238_test.dart index 9ee7a964547..9c73911bb9c 100644 --- a/tests/language_2/vm/exactness/future_or_regression_34238_test.dart +++ b/tests/language_2/vm/exactness/future_or_regression_34238_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:async'; class A { diff --git a/tests/language_2/vm/function_equality_vm_test.dart b/tests/language_2/vm/function_equality_vm_test.dart index 2c0f9fd24b2..961bff55ea1 100644 --- a/tests/language_2/vm/function_equality_vm_test.dart +++ b/tests/language_2/vm/function_equality_vm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test function equality with null. import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/if_conversion_vm_test.dart b/tests/language_2/vm/if_conversion_vm_test.dart index bea37afdc65..c86aeea5154 100644 --- a/tests/language_2/vm/if_conversion_vm_test.dart +++ b/tests/language_2/vm/if_conversion_vm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test if-conversion pass in the optimizing compiler. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation diff --git a/tests/language_2/vm/inline_heuristic_test.dart b/tests/language_2/vm/inline_heuristic_test.dart index 91ec7eab847..5f9bb7cbd0f 100755 --- a/tests/language_2/vm/inline_heuristic_test.dart +++ b/tests/language_2/vm/inline_heuristic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--deterministic --optimization_counter_threshold=10 // Test on specialized vs non-specialized inlining. diff --git a/tests/language_2/vm/integer_type_propagation2_test.dart b/tests/language_2/vm/integer_type_propagation2_test.dart index a6d14e84ea7..918d0cd9d92 100644 --- a/tests/language_2/vm/integer_type_propagation2_test.dart +++ b/tests/language_2/vm/integer_type_propagation2_test.dart @@ -4,6 +4,8 @@ // Test various optimizations and deoptimizations of optimizing compiler.. // VMOptions=--no-background-compilation --optimization-counter-threshold=1000 +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:typed_data"; diff --git a/tests/language_2/vm/integer_type_propagation_test.dart b/tests/language_2/vm/integer_type_propagation_test.dart index ccf9834005b..468f03e6eae 100644 --- a/tests/language_2/vm/integer_type_propagation_test.dart +++ b/tests/language_2/vm/integer_type_propagation_test.dart @@ -4,6 +4,8 @@ // Test various optimizations and deoptimizations of optimizing compiler.. // VMOptions=--no-background-compilation --optimization-counter-threshold=1000 +// @dart = 2.9 + import "package:expect/expect.dart"; @pragma('vm:never-inline') diff --git a/tests/language_2/vm/irreducible_loop_test.dart b/tests/language_2/vm/irreducible_loop_test.dart index 96baa3d0d5a..218844d5199 100644 --- a/tests/language_2/vm/irreducible_loop_test.dart +++ b/tests/language_2/vm/irreducible_loop_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no_background_compilation --optimization_counter_threshold=10 import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/issue11087_vm_test.dart b/tests/language_2/vm/issue11087_vm_test.dart index 00458d528e7..40763eb435a 100644 --- a/tests/language_2/vm/issue11087_vm_test.dart +++ b/tests/language_2/vm/issue11087_vm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for VM's IfConverted pass not keeping graph structure and // use lists in sync. diff --git a/tests/language_2/vm/issue21220_vm_test.dart b/tests/language_2/vm/issue21220_vm_test.dart index bc5dd57fcaa..f48392fcc67 100644 --- a/tests/language_2/vm/issue21220_vm_test.dart +++ b/tests/language_2/vm/issue21220_vm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/vm/lazy_deopt_vm_test.dart b/tests/language_2/vm/lazy_deopt_vm_test.dart index ca4f3c71c62..4ff83510794 100644 --- a/tests/language_2/vm/lazy_deopt_vm_test.dart +++ b/tests/language_2/vm/lazy_deopt_vm_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-filter=foo --deoptimize_every=10 --optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Test that lazy deoptimization on stack checks does not damage unoptimized // frame. diff --git a/tests/language_2/vm/lazy_deopt_with_exception_and_stacktrace_test.dart b/tests/language_2/vm/lazy_deopt_with_exception_and_stacktrace_test.dart index c1101a102d7..ce9d80343dd 100644 --- a/tests/language_2/vm/lazy_deopt_with_exception_and_stacktrace_test.dart +++ b/tests/language_2/vm/lazy_deopt_with_exception_and_stacktrace_test.dart @@ -4,6 +4,8 @@ // Test deoptimization on an optimistically hoisted smi check. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Test that lazy deoptimization works if the program returns to a function // that is scheduled for lazy deoptimization via an exception. diff --git a/tests/language_2/vm/lazy_deopt_with_exception_test.dart b/tests/language_2/vm/lazy_deopt_with_exception_test.dart index c040e548693..a38089f5c29 100644 --- a/tests/language_2/vm/lazy_deopt_with_exception_test.dart +++ b/tests/language_2/vm/lazy_deopt_with_exception_test.dart @@ -4,6 +4,8 @@ // Test deoptimization on an optimistically hoisted smi check. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Test that lazy deoptimization works if the program returns to a function // that is scheduled for lazy deoptimization via an exception. diff --git a/tests/language_2/vm/licm_constant_redefinition_vm_test.dart b/tests/language_2/vm/licm_constant_redefinition_vm_test.dart index 662cb4b22ec..28d64e5870c 100644 --- a/tests/language_2/vm/licm_constant_redefinition_vm_test.dart +++ b/tests/language_2/vm/licm_constant_redefinition_vm_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=100 --no-use-osr --no-background_compilation +// @dart = 2.9 + import "package:expect/expect.dart"; class X { diff --git a/tests/language_2/vm/load_elimination_any_use_creates_alias_test.dart b/tests/language_2/vm/load_elimination_any_use_creates_alias_test.dart index ff1639fe485..b1092ae4680 100644 --- a/tests/language_2/vm/load_elimination_any_use_creates_alias_test.dart +++ b/tests/language_2/vm/load_elimination_any_use_creates_alias_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test correctness of side effects tracking used by load to load forwarding. +// @dart = 2.9 + // VMOptions=--no-use-osr --optimization-counter-threshold=10 --no-background-compilation import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/load_elimination_has_loads_from_place_test.dart b/tests/language_2/vm/load_elimination_has_loads_from_place_test.dart index 167e9c6d1f1..0a5d3bd5d99 100644 --- a/tests/language_2/vm/load_elimination_has_loads_from_place_test.dart +++ b/tests/language_2/vm/load_elimination_has_loads_from_place_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test correctness of side effects tracking used by load to load forwarding. +// @dart = 2.9 + // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation // Tests correct handling of redefinitions in aliasing computation. diff --git a/tests/language_2/vm/load_elimination_mark_stored_values_escaping_test.dart b/tests/language_2/vm/load_elimination_mark_stored_values_escaping_test.dart index 13d3fed8174..4a3835ca1a9 100644 --- a/tests/language_2/vm/load_elimination_mark_stored_values_escaping_test.dart +++ b/tests/language_2/vm/load_elimination_mark_stored_values_escaping_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test correctness of side effects tracking used by load to load forwarding. +// @dart = 2.9 + // VMOptions=--no-use-osr --optimization-counter-threshold=10 --no-background-compilation // Tests correct handling of redefinitions in aliasing computation. diff --git a/tests/language_2/vm/load_elimination_two_redefinitions_test.dart b/tests/language_2/vm/load_elimination_two_redefinitions_test.dart index 1f65bc276ef..3e8e79271e6 100644 --- a/tests/language_2/vm/load_elimination_two_redefinitions_test.dart +++ b/tests/language_2/vm/load_elimination_two_redefinitions_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test correctness of side effects tracking used by load to load forwarding. +// @dart = 2.9 + // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation // Tests correct handling of redefinitions in aliasing computation. diff --git a/tests/language_2/vm/load_to_load_forwarding_cutdown_vm_test.dart b/tests/language_2/vm/load_to_load_forwarding_cutdown_vm_test.dart index ed81342d351..5dbc50334e9 100644 --- a/tests/language_2/vm/load_to_load_forwarding_cutdown_vm_test.dart +++ b/tests/language_2/vm/load_to_load_forwarding_cutdown_vm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test correctness of side effects tracking used by load to load forwarding. // In this cutdown version of the load_to_load_forwarding_vm test, the function // being compiled ends up in a single basic block, which tests load diff --git a/tests/language_2/vm/load_to_load_forwarding_vm_test.dart b/tests/language_2/vm/load_to_load_forwarding_vm_test.dart index a944e29333a..f16683a766d 100644 --- a/tests/language_2/vm/load_to_load_forwarding_vm_test.dart +++ b/tests/language_2/vm/load_to_load_forwarding_vm_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test correctness of side effects tracking used by load to load forwarding. +// @dart = 2.9 + // VMOptions=--optimization-counter-threshold=10 --no-background-compilation import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/load_to_load_unaligned_forwarding_vm_test.dart b/tests/language_2/vm/load_to_load_unaligned_forwarding_vm_test.dart index 0a5d8201182..e648e949e01 100644 --- a/tests/language_2/vm/load_to_load_unaligned_forwarding_vm_test.dart +++ b/tests/language_2/vm/load_to_load_unaligned_forwarding_vm_test.dart @@ -4,6 +4,8 @@ // Test correctness of side effects tracking used by load to load forwarding. // Should be merged into load_to_load_forwarding once Issue 22151 is fixed. +// @dart = 2.9 + // VMOptions=--optimization-counter-threshold=10 --no-background-compilation import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/math_vm_test.dart b/tests/language_2/vm/math_vm_test.dart index 6d942a52d6c..3fc97bcbb38 100644 --- a/tests/language_2/vm/math_vm_test.dart +++ b/tests/language_2/vm/math_vm_test.dart @@ -4,6 +4,8 @@ // Tests that the VM does not crash on weird corner cases of class Math. // VMOptions=--optimization_counter_threshold=100 --no-background_compilation +// @dart = 2.9 + library math_vm_test; import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/mixin_test.dart b/tests/language_2/vm/mixin_test.dart index b086b7311a6..b68f98a4db5 100755 --- a/tests/language_2/vm/mixin_test.dart +++ b/tests/language_2/vm/mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Illustrates inlining heuristic issue of // https://github.com/dart-lang/sdk/issues/37126 // (mixins introduce one extra depth of inlining). diff --git a/tests/language_2/vm/modtruncdiv_int_test.dart b/tests/language_2/vm/modtruncdiv_int_test.dart index 018995ec617..907f912904d 100644 --- a/tests/language_2/vm/modtruncdiv_int_test.dart +++ b/tests/language_2/vm/modtruncdiv_int_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no_background_compilation --optimization_counter_threshold=10 // VMOptions=--no_background_compilation --optimization_counter_threshold=10 --use_slow_path diff --git a/tests/language_2/vm/mult_int_test.dart b/tests/language_2/vm/mult_int_test.dart index 16df39181ec..83ff1aabf83 100644 --- a/tests/language_2/vm/mult_int_test.dart +++ b/tests/language_2/vm/mult_int_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no_background_compilation --optimization_counter_threshold=10 // VMOptions=--no_background_compilation --optimization_counter_threshold=10 --use_slow_path diff --git a/tests/language_2/vm/negate_int_test.dart b/tests/language_2/vm/negate_int_test.dart index 253756e7edd..9ba3d9bf6d6 100644 --- a/tests/language_2/vm/negate_int_test.dart +++ b/tests/language_2/vm/negate_int_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no_background_compilation --optimization_counter_threshold=10 // VMOptions=--no_background_compilation --optimization_counter_threshold=10 --use_slow_path diff --git a/tests/language_2/vm/no_such_args_error_message_vm_test.dart b/tests/language_2/vm/no_such_args_error_message_vm_test.dart index 34299076ef5..48c368827a6 100644 --- a/tests/language_2/vm/no_such_args_error_message_vm_test.dart +++ b/tests/language_2/vm/no_such_args_error_message_vm_test.dart @@ -4,6 +4,8 @@ // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation --no-lazy-dispatchers +// @dart = 2.9 + import "package:expect/expect.dart"; // Test error message with misusing Functions and Closures: wrong args diff --git a/tests/language_2/vm/no_such_method_error_message_callable_vm_test.dart b/tests/language_2/vm/no_such_method_error_message_callable_vm_test.dart index a7d5ed9bf9a..063b47c5b16 100644 --- a/tests/language_2/vm/no_such_method_error_message_callable_vm_test.dart +++ b/tests/language_2/vm/no_such_method_error_message_callable_vm_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test error message with noSuchMethodError: non-existent names diff --git a/tests/language_2/vm/no_such_method_error_message_vm_test.dart b/tests/language_2/vm/no_such_method_error_message_vm_test.dart index 575a9662e54..f029976a226 100644 --- a/tests/language_2/vm/no_such_method_error_message_vm_test.dart +++ b/tests/language_2/vm/no_such_method_error_message_vm_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test error message with noSuchMethodError: non-existent names diff --git a/tests/language_2/vm/null_hashcode_optimized_vm_test.dart b/tests/language_2/vm/null_hashcode_optimized_vm_test.dart index d7263a7be5c..bb2d0c71b67 100644 --- a/tests/language_2/vm/null_hashcode_optimized_vm_test.dart +++ b/tests/language_2/vm/null_hashcode_optimized_vm_test.dart @@ -4,6 +4,8 @@ // Test that optimized Object.hashCode works for the null receiver. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + main() { for (int i = 0; i < 20; i++) { foo(null); diff --git a/tests/language_2/vm/optimization_test.dart b/tests/language_2/vm/optimization_test.dart index 3205425f470..b949736e2b9 100644 --- a/tests/language_2/vm/optimization_test.dart +++ b/tests/language_2/vm/optimization_test.dart @@ -4,6 +4,8 @@ // Test various optimizations and deoptimizations of optimizing compiler.. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; addThem(a, b) { diff --git a/tests/language_2/vm/optimized_await_regress_test.dart b/tests/language_2/vm/optimized_await_regress_test.dart index bdb25a63824..9980578585a 100644 --- a/tests/language_2/vm/optimized_await_regress_test.dart +++ b/tests/language_2/vm/optimized_await_regress_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization-counter-threshold=10 --no-background-compilation // This tests that captured parameters (by the async-closure) are diff --git a/tests/language_2/vm/optimized_check_class_test.dart b/tests/language_2/vm/optimized_check_class_test.dart index 76cced11df1..61f1b8fc19b 100644 --- a/tests/language_2/vm/optimized_check_class_test.dart +++ b/tests/language_2/vm/optimized_check_class_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test dense class-id checks. Regression test for issue 22104. diff --git a/tests/language_2/vm/optimized_guarded_field_isolates_test.dart b/tests/language_2/vm/optimized_guarded_field_isolates_test.dart index 742a7eb6cd2..c08c957902a 100644 --- a/tests/language_2/vm/optimized_guarded_field_isolates_test.dart +++ b/tests/language_2/vm/optimized_guarded_field_isolates_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // VMOptions=--optimization_counter_threshold=100 --no-background_compilation diff --git a/tests/language_2/vm/optimized_guarded_field_test.dart b/tests/language_2/vm/optimized_guarded_field_test.dart index dc25a92a2d2..74bf9560fba 100644 --- a/tests/language_2/vm/optimized_guarded_field_test.dart +++ b/tests/language_2/vm/optimized_guarded_field_test.dart @@ -5,6 +5,8 @@ // by store to load forwarding. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:typed_data"; diff --git a/tests/language_2/vm/optimized_identical_test.dart b/tests/language_2/vm/optimized_identical_test.dart index 5e1027853e9..3de4723a0f5 100644 --- a/tests/language_2/vm/optimized_identical_test.dart +++ b/tests/language_2/vm/optimized_identical_test.dart @@ -4,6 +4,8 @@ // Test various optimizations and deoptimizations of optimizing compiler.. // VMOptions=--optimization-counter-threshold=10 --no-constant-propagation --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test canonicalization of identical with double input. diff --git a/tests/language_2/vm/optimized_list_constructor_test.dart b/tests/language_2/vm/optimized_list_constructor_test.dart index 7c4b4bf0fd3..fd57ae20919 100644 --- a/tests/language_2/vm/optimized_list_constructor_test.dart +++ b/tests/language_2/vm/optimized_list_constructor_test.dart @@ -4,6 +4,8 @@ // Test various optimizations and deoptimizations of optimizing compiler.. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test correct throwing of ArgumentError in optimized code. diff --git a/tests/language_2/vm/optimized_polymorphic_list_access_test.dart b/tests/language_2/vm/optimized_polymorphic_list_access_test.dart index df6765927a5..ae29864f7e3 100644 --- a/tests/language_2/vm/optimized_polymorphic_list_access_test.dart +++ b/tests/language_2/vm/optimized_polymorphic_list_access_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test correct polymorphic inlining of recognized methods like list access. diff --git a/tests/language_2/vm/optimized_shl_test.dart b/tests/language_2/vm/optimized_shl_test.dart index 9c1709bff43..db1014ed7ea 100644 --- a/tests/language_2/vm/optimized_shl_test.dart +++ b/tests/language_2/vm/optimized_shl_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test truncating left-shift that can deoptimize. diff --git a/tests/language_2/vm/optimized_stacktrace_test.dart b/tests/language_2/vm/optimized_stacktrace_test.dart index 675029f3f68..6fd02e66e44 100644 --- a/tests/language_2/vm/optimized_stacktrace_test.dart +++ b/tests/language_2/vm/optimized_stacktrace_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--stacktrace-every=3 --optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Test generating stacktraces with inlining and deferred code. // Regression test for issue dartbug.com/22331 diff --git a/tests/language_2/vm/optimized_testsmi_test.dart b/tests/language_2/vm/optimized_testsmi_test.dart index 0643832da97..124afc8eeca 100644 --- a/tests/language_2/vm/optimized_testsmi_test.dart +++ b/tests/language_2/vm/optimized_testsmi_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + // Test branch optimization for TestSmiInstr import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/optimized_try_catch_cha_test.dart b/tests/language_2/vm/optimized_try_catch_cha_test.dart index f71fac1143b..8cbbc791fff 100644 --- a/tests/language_2/vm/optimized_try_catch_cha_test.dart +++ b/tests/language_2/vm/optimized_try_catch_cha_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=100 --no-use-osr --no-background_compilation +// @dart = 2.9 + // Test CHA-based optimizations in presence of try-catch. import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/optimized_unique_selector_test.dart b/tests/language_2/vm/optimized_unique_selector_test.dart index d9725dc1a47..e40f27ffd77 100644 --- a/tests/language_2/vm/optimized_unique_selector_test.dart +++ b/tests/language_2/vm/optimized_unique_selector_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/vm/osr_nonempty_stack_test.dart b/tests/language_2/vm/osr_nonempty_stack_test.dart index a31df5097cb..9f1407675a9 100644 --- a/tests/language_2/vm/osr_nonempty_stack_test.dart +++ b/tests/language_2/vm/osr_nonempty_stack_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test with OSR on non-empty stack (block expression). import 'dart:core'; diff --git a/tests/language_2/vm/plus_null_37719_test.dart b/tests/language_2/vm/plus_null_37719_test.dart index 66b87509f22..b6f1f6e3531 100755 --- a/tests/language_2/vm/plus_null_37719_test.dart +++ b/tests/language_2/vm/plus_null_37719_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--deterministic import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/power_int_test.dart b/tests/language_2/vm/power_int_test.dart index 4f0c86efed8..bc3fcc9ecca 100644 --- a/tests/language_2/vm/power_int_test.dart +++ b/tests/language_2/vm/power_int_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:math'; diff --git a/tests/language_2/vm/precompiled_static_initializer_test.dart b/tests/language_2/vm/precompiled_static_initializer_test.dart index 195e07d9a7f..0bbac2720f0 100644 --- a/tests/language_2/vm/precompiled_static_initializer_test.dart +++ b/tests/language_2/vm/precompiled_static_initializer_test.dart @@ -4,6 +4,8 @@ // Test optimizations with static fields with precompilation. // VMOptions=--inlining-hotness=0 +// @dart = 2.9 + import 'package:expect/expect.dart'; init() => 123; diff --git a/tests/language_2/vm/reflect_core_vm_test.dart b/tests/language_2/vm/reflect_core_vm_test.dart index 75fff71f1e3..16dc279d585 100644 --- a/tests/language_2/vm/reflect_core_vm_test.dart +++ b/tests/language_2/vm/reflect_core_vm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test reflection of private functions in core classes. import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/regress_14903_test.dart b/tests/language_2/vm/regress_14903_test.dart index 54165ada25e..342fb23c100 100644 --- a/tests/language_2/vm/regress_14903_test.dart +++ b/tests/language_2/vm/regress_14903_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; // Test identical comparisons in optimized code. Registers must be preserved diff --git a/tests/language_2/vm/regress_16873_test.dart b/tests/language_2/vm/regress_16873_test.dart index 12bc1efb2b4..7a6fd546d1a 100644 --- a/tests/language_2/vm/regress_16873_test.dart +++ b/tests/language_2/vm/regress_16873_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--new_gen_semi_max_size=1 --no_inline_alloc +// @dart = 2.9 + // Regression test for slow-path allocation in the allocation stub. library map_test; diff --git a/tests/language_2/vm/regress_21245_test.dart b/tests/language_2/vm/regress_21245_test.dart index 7a8001e0ee3..a2e4d55db10 100644 --- a/tests/language_2/vm/regress_21245_test.dart +++ b/tests/language_2/vm/regress_21245_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-use-osr --no-background_compilation +// @dart = 2.9 + test(a) { var e; for (var i = 0; i < a.length; i++) { diff --git a/tests/language_2/vm/regress_22480_test.dart b/tests/language_2/vm/regress_22480_test.dart index 3dfc57467f9..ba5e2689017 100644 --- a/tests/language_2/vm/regress_22480_test.dart +++ b/tests/language_2/vm/regress_22480_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + import 'package:expect/expect.dart'; test(j) { diff --git a/tests/language_2/vm/regress_22541_vm_test.dart b/tests/language_2/vm/regress_22541_vm_test.dart index 0d121ac3a8e..671a15fa2d0 100644 --- a/tests/language_2/vm/regress_22541_vm_test.dart +++ b/tests/language_2/vm/regress_22541_vm_test.dart @@ -4,6 +4,8 @@ // Test range inference for multiplication of two negative values. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import 'package:expect/expect.dart'; test(a) { diff --git a/tests/language_2/vm/regress_22621_vm_test.dart b/tests/language_2/vm/regress_22621_vm_test.dart index 5b5b27db39a..38017503eaa 100644 --- a/tests/language_2/vm/regress_22621_vm_test.dart +++ b/tests/language_2/vm/regress_22621_vm_test.dart @@ -4,6 +4,8 @@ // Test that BoxAllocationSlowPath for Mint emits stackmap in unoptimized code. // VMOptions=--inline_alloc=false +// @dart = 2.9 + main() { var re = new RegExp(r"IsolateStubs (.*)"); return re.firstMatch("oooo"); diff --git a/tests/language_2/vm/regress_22693_vm_test.dart b/tests/language_2/vm/regress_22693_vm_test.dart index 6df2a467561..74a5b6bfc3e 100644 --- a/tests/language_2/vm/regress_22693_vm_test.dart +++ b/tests/language_2/vm/regress_22693_vm_test.dart @@ -4,6 +4,8 @@ // Test location summary for Uint32 multiplication. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + const MASK = 0xFFFFFFFF; uint32Mul(x, y) => (x * y) & MASK; diff --git a/tests/language_2/vm/regress_23117_vm_test.dart b/tests/language_2/vm/regress_23117_vm_test.dart index d6fcf6932d8..4dcb411cc9e 100644 --- a/tests/language_2/vm/regress_23117_vm_test.dart +++ b/tests/language_2/vm/regress_23117_vm_test.dart @@ -4,6 +4,8 @@ // Test location summary for Uint32 multiplication. // VMOptions=--optimization-counter-threshold=5 --no-background-compilation +// @dart = 2.9 + import 'package:expect/expect.dart'; mintLeftShift(x, y) => x << y; diff --git a/tests/language_2/vm/regress_23238_test.dart b/tests/language_2/vm/regress_23238_test.dart index f89bbb4d288..d11494f76ef 100644 --- a/tests/language_2/vm/regress_23238_test.dart +++ b/tests/language_2/vm/regress_23238_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/language_2/vm/regress_24517_test.dart b/tests/language_2/vm/regress_24517_test.dart index 654caf99563..c9e4dea0139 100644 --- a/tests/language_2/vm/regress_24517_test.dart +++ b/tests/language_2/vm/regress_24517_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no-intrinsify // Test that math runtime function (non-intrinsified) produce the expected diff --git a/tests/language_2/vm/regress_27201_lib.dart b/tests/language_2/vm/regress_27201_lib.dart index af32a46e7df..bf9fe788581 100644 --- a/tests/language_2/vm/regress_27201_lib.dart +++ b/tests/language_2/vm/regress_27201_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library import_lib; final foo = 1; diff --git a/tests/language_2/vm/regress_27201_test.dart b/tests/language_2/vm/regress_27201_test.dart index bb106af9539..825ab081405 100644 --- a/tests/language_2/vm/regress_27201_test.dart +++ b/tests/language_2/vm/regress_27201_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 /* * Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file * for details. All rights reserved. Use of this source code is governed by a diff --git a/tests/language_2/vm/regress_27671_other.dart b/tests/language_2/vm/regress_27671_other.dart index e62d013337b..e21d7423851 100644 --- a/tests/language_2/vm/regress_27671_other.dart +++ b/tests/language_2/vm/regress_27671_other.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'regress_27671_test.dart'; @pragma('vm:prefer-inline') diff --git a/tests/language_2/vm/regress_27671_test.dart b/tests/language_2/vm/regress_27671_test.dart index 99de5b93590..9ec25191dc0 100644 --- a/tests/language_2/vm/regress_27671_test.dart +++ b/tests/language_2/vm/regress_27671_test.dart @@ -4,6 +4,8 @@ // // VMOptions=--enable_asserts --optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'regress_27671_other.dart'; diff --git a/tests/language_2/vm/regress_29137_vm_test.dart b/tests/language_2/vm/regress_29137_vm_test.dart index 978483f5b60..1088ceeb0f9 100644 --- a/tests/language_2/vm/regress_29137_vm_test.dart +++ b/tests/language_2/vm/regress_29137_vm_test.dart @@ -13,6 +13,8 @@ // // VMOptions=--optimization-counter-threshold=5 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; const _MASK_32 = 0xffffffff; diff --git a/tests/language_2/vm/regress_29145_test.dart b/tests/language_2/vm/regress_29145_test.dart index a518a22b710..d182b41e058 100644 --- a/tests/language_2/vm/regress_29145_test.dart +++ b/tests/language_2/vm/regress_29145_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=-1 --stacktrace-filter=completeError --stress-async-stacks +// @dart = 2.9 + // Stress test for async stack traces. import 'dart:async'; diff --git a/tests/language_2/vm/regress_31946_test.dart b/tests/language_2/vm/regress_31946_test.dart index 19554a0617b..3c9692cbd38 100644 --- a/tests/language_2/vm/regress_31946_test.dart +++ b/tests/language_2/vm/regress_31946_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no_background_compilation --optimization_counter_threshold=10 import 'dart:async'; diff --git a/tests/language_2/vm/regress_32204_test.dart b/tests/language_2/vm/regress_32204_test.dart index abfa0507f00..25746612e16 100644 --- a/tests/language_2/vm/regress_32204_test.dart +++ b/tests/language_2/vm/regress_32204_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that local functions capture `this` if their arguments refer to // type parameters from the enclosing class. diff --git a/tests/language_2/vm/regress_32322_test.dart b/tests/language_2/vm/regress_32322_test.dart index 61415d79f44..3312d0bede2 100644 --- a/tests/language_2/vm/regress_32322_test.dart +++ b/tests/language_2/vm/regress_32322_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that optimizing compiler does not perform an illegal code motion // past CheckNull instruction. diff --git a/tests/language_2/vm/regress_32502_test.dart b/tests/language_2/vm/regress_32502_test.dart index 6bdf285a778..b3433085958 100644 --- a/tests/language_2/vm/regress_32502_test.dart +++ b/tests/language_2/vm/regress_32502_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that VM does not omit type checks from closure prologues. import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/regress_32971_test.dart b/tests/language_2/vm/regress_32971_test.dart index 6f5863bb1f6..f335e6d6a7c 100644 --- a/tests/language_2/vm/regress_32971_test.dart +++ b/tests/language_2/vm/regress_32971_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test verifying that default switch cast is cloned correctly by the // mixin transformation. diff --git a/tests/language_2/vm/regress_33025_test.dart b/tests/language_2/vm/regress_33025_test.dart index 4b083c3ec56..52161b3a325 100644 --- a/tests/language_2/vm/regress_33025_test.dart +++ b/tests/language_2/vm/regress_33025_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that VM correctly handles function type arguments across // yield points. diff --git a/tests/language_2/vm/regress_33040_instantiation_test.dart b/tests/language_2/vm/regress_33040_instantiation_test.dart index 0b15de0d618..0789b18ceec 100644 --- a/tests/language_2/vm/regress_33040_instantiation_test.dart +++ b/tests/language_2/vm/regress_33040_instantiation_test.dart @@ -4,6 +4,8 @@ // // Exact regression test for issue #33040. +// @dart = 2.9 + import 'dart:async'; class Optional {} diff --git a/tests/language_2/vm/regress_33040_test.dart b/tests/language_2/vm/regress_33040_test.dart index 8b595bf2000..bcd86a98440 100644 --- a/tests/language_2/vm/regress_33040_test.dart +++ b/tests/language_2/vm/regress_33040_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that prefix sharing optimization is taken into account when // concatenating type arguments vectors. diff --git a/tests/language_2/vm/regress_33073_test.dart b/tests/language_2/vm/regress_33073_test.dart index 18ea228a480..fd79ad8e9d6 100644 --- a/tests/language_2/vm/regress_33073_test.dart +++ b/tests/language_2/vm/regress_33073_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that the correct number of type arguments is observed in the // Invocation object for invocations that pass all-dynamic type arguments. diff --git a/tests/language_2/vm/regress_33095_test.dart b/tests/language_2/vm/regress_33095_test.dart index 9dd97c04421..05459305a23 100644 --- a/tests/language_2/vm/regress_33095_test.dart +++ b/tests/language_2/vm/regress_33095_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; typedef String IntFunctionType(int _); diff --git a/tests/language_2/vm/regress_33469_test.dart b/tests/language_2/vm/regress_33469_test.dart index 831704ebe03..a85fcf4e4ce 100644 --- a/tests/language_2/vm/regress_33469_test.dart +++ b/tests/language_2/vm/regress_33469_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class X { final x; const X(this.x); diff --git a/tests/language_2/vm/regress_33794_test.dart b/tests/language_2/vm/regress_33794_test.dart index 17940f36812..c98cfa98808 100644 --- a/tests/language_2/vm/regress_33794_test.dart +++ b/tests/language_2/vm/regress_33794_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that sub-expressions with side-effects are handled correctly // in the presence of exceptions or deoptimization. diff --git a/tests/language_2/vm/regress_34051_test.dart b/tests/language_2/vm/regress_34051_test.dart index 0e789127029..2b6d3e39843 100644 --- a/tests/language_2/vm/regress_34051_test.dart +++ b/tests/language_2/vm/regress_34051_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/language_2/vm/regress_34288_test.dart b/tests/language_2/vm/regress_34288_test.dart index a5f8272329b..dd41e72ac57 100644 --- a/tests/language_2/vm/regress_34288_test.dart +++ b/tests/language_2/vm/regress_34288_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test canonicalization of integer shift operations. // This is a regression test for dartbug.com/34288. diff --git a/tests/language_2/vm/regress_34396_helper.dart b/tests/language_2/vm/regress_34396_helper.dart index 5e61334c854..b3f19bc60b8 100644 --- a/tests/language_2/vm/regress_34396_helper.dart +++ b/tests/language_2/vm/regress_34396_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library regress_34396_helper; get privateSymbol => #_privateSymbol; diff --git a/tests/language_2/vm/regress_34396_test.dart b/tests/language_2/vm/regress_34396_test.dart index ead2b0bdcf9..53acc84ae45 100644 --- a/tests/language_2/vm/regress_34396_test.dart +++ b/tests/language_2/vm/regress_34396_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'regress_34396_helper.dart' as helper; diff --git a/tests/language_2/vm/regress_34435_test.dart b/tests/language_2/vm/regress_34435_test.dart index 11e709b4240..fc7eedbf0ab 100644 --- a/tests/language_2/vm/regress_34435_test.dart +++ b/tests/language_2/vm/regress_34435_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization-filter=triggerBug --no-background-compilation --optimization-counter-threshold=2 @pragma('vm:never-inline') diff --git a/tests/language_2/vm/regress_34466_test.dart b/tests/language_2/vm/regress_34466_test.dart index 69b237fb857..c88b3605eca 100644 --- a/tests/language_2/vm/regress_34466_test.dart +++ b/tests/language_2/vm/regress_34466_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test NaN comparison (dartbug.com/34466 and dartbug.com/34467). // VMOptions=--no_background_compilation --optimization_counter_threshold=10 diff --git a/tests/language_2/vm/regress_34644_test.dart b/tests/language_2/vm/regress_34644_test.dart index 24f8cf83bce..f01ae2ba63f 100644 --- a/tests/language_2/vm/regress_34644_test.dart +++ b/tests/language_2/vm/regress_34644_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test verifies that annotations on parameters are correctly handled // in the tree shaker. // Regression test for https://github.com/dart-lang/sdk/issues/34644. diff --git a/tests/language_2/vm/regress_34684_test.dart b/tests/language_2/vm/regress_34684_test.dart index 626cb502373..30c1a5ba3ce 100644 --- a/tests/language_2/vm/regress_34684_test.dart +++ b/tests/language_2/vm/regress_34684_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // No LICM on array bounds check (dartbug.com/34684). // // VMOptions=--deterministic --optimization_counter_threshold=10 diff --git a/tests/language_2/vm/regress_35321_test.dart b/tests/language_2/vm/regress_35321_test.dart index 8823ddb5196..bc8194b5281 100644 --- a/tests/language_2/vm/regress_35321_test.dart +++ b/tests/language_2/vm/regress_35321_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Proper CP on double op (dartbug.com/35321). // // VMOptions=--deterministic --optimization_counter_threshold=10 diff --git a/tests/language_2/vm/regress_35325_test.dart b/tests/language_2/vm/regress_35325_test.dart index cfd977211d3..c479a238a64 100644 --- a/tests/language_2/vm/regress_35325_test.dart +++ b/tests/language_2/vm/regress_35325_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Proper nullable comparison (dartbug.com/35325). // // VMOptions=--deterministic --optimization_counter_threshold=10 diff --git a/tests/language_2/vm/regress_36589_test.dart b/tests/language_2/vm/regress_36589_test.dart index 2fe4932da63..2fadec2b3ce 100644 --- a/tests/language_2/vm/regress_36589_test.dart +++ b/tests/language_2/vm/regress_36589_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Non-smi constant indices for load and store indexed (dartbug.com/36589). // // VMOptions=--deterministic --optimization_counter_threshold=5 diff --git a/tests/language_2/vm/regress_36681_test.dart b/tests/language_2/vm/regress_36681_test.dart index c0721c25b08..a61c70520a4 100644 --- a/tests/language_2/vm/regress_36681_test.dart +++ b/tests/language_2/vm/regress_36681_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Enforce proper S-overlapping register for temp (dartbug.com/36681). // // VMOptions=--deterministic --optimization_counter_threshold=5 diff --git a/tests/language_2/vm/regress_36778_test.dart b/tests/language_2/vm/regress_36778_test.dart index b3a95d5af68..2c860d5ef4d 100644 --- a/tests/language_2/vm/regress_36778_test.dart +++ b/tests/language_2/vm/regress_36778_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check for length overflow when eliminating write barriers for variable-length // objects. // diff --git a/tests/language_2/vm/regress_36803_test.dart b/tests/language_2/vm/regress_36803_test.dart index 0cbd09daec9..50b0dcbc81a 100755 --- a/tests/language_2/vm/regress_36803_test.dart +++ b/tests/language_2/vm/regress_36803_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Don't LICM AOT's generic bounds check reference beyond other exception. // (dartbug.com/36803). // diff --git a/tests/language_2/vm/regress_36977_test.dart b/tests/language_2/vm/regress_36977_test.dart index caeabad4218..0ee27a7d6e3 100755 --- a/tests/language_2/vm/regress_36977_test.dart +++ b/tests/language_2/vm/regress_36977_test.dart @@ -7,6 +7,8 @@ // Regression test, reduced case found by DartFuzz that crashed DBC register // allocator (https://github.com/dart-lang/sdk/issues/36977). +// @dart = 2.9 + // [NNBD non-migrated]: This test contains dozens and dozens of static errors // under NNBD. Migrating the test to fix those errors significantly changes the // code under test in ways that are likely to invalidate it. diff --git a/tests/language_2/vm/regress_37149_test.dart b/tests/language_2/vm/regress_37149_test.dart index 5907c5b129b..ab6b46ded07 100644 --- a/tests/language_2/vm/regress_37149_test.dart +++ b/tests/language_2/vm/regress_37149_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test verifies that typedef types used in constants are correctly // visited in the tree shaker. // Regression test for https://github.com/dart-lang/sdk/issues/37149. diff --git a/tests/language_2/vm/regress_37984_test.dart b/tests/language_2/vm/regress_37984_test.dart index 2e7cd6ff177..5ca6ba60be0 100644 --- a/tests/language_2/vm/regress_37984_test.dart +++ b/tests/language_2/vm/regress_37984_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; main() async { diff --git a/tests/language_2/vm/regress_39283_test.dart b/tests/language_2/vm/regress_39283_test.dart index 0638fb8ba22..ad35c0be005 100644 --- a/tests/language_2/vm/regress_39283_test.dart +++ b/tests/language_2/vm/regress_39283_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/vm/regress_40792_test.dart b/tests/language_2/vm/regress_40792_test.dart index 310e084aa5c..19d37390a0a 100644 --- a/tests/language_2/vm/regress_40792_test.dart +++ b/tests/language_2/vm/regress_40792_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization_counter_threshold=10 --deterministic // Regression test for https://dartbug.com/40792 and https://dartbug.com/40795. diff --git a/tests/language_2/vm/regress_45525_test.dart b/tests/language_2/vm/regress_45525_test.dart index 2becc03588a..57c7e88ef7a 100644 --- a/tests/language_2/vm/regress_45525_test.dart +++ b/tests/language_2/vm/regress_45525_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; dynamic a() { diff --git a/tests/language_2/vm/regress_45674_test.dart b/tests/language_2/vm/regress_45674_test.dart index bbfc20a3402..56ab0293020 100644 --- a/tests/language_2/vm/regress_45674_test.dart +++ b/tests/language_2/vm/regress_45674_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Reduced from diff --git a/tests/language_2/vm/regress_b131091988_test.dart b/tests/language_2/vm/regress_b131091988_test.dart index 359b4febe19..9d6f50cfaca 100644 --- a/tests/language_2/vm/regress_b131091988_test.dart +++ b/tests/language_2/vm/regress_b131091988_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that await from a call-via-field expression works. import 'package:expect/expect.dart'; diff --git a/tests/language_2/vm/regress_b80154489_test.dart b/tests/language_2/vm/regress_b80154489_test.dart index a93b384b824..d9f303b0d99 100644 --- a/tests/language_2/vm/regress_b80154489_test.dart +++ b/tests/language_2/vm/regress_b80154489_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that class finalizer correctly marks supertypes of superinterfaces // as implemented. diff --git a/tests/language_2/vm/regress_flutter_14891_test.dart b/tests/language_2/vm/regress_flutter_14891_test.dart index 1f410df010e..539199d352f 100644 --- a/tests/language_2/vm/regress_flutter_14891_test.dart +++ b/tests/language_2/vm/regress_flutter_14891_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test verifying that type literals hidden within other constant objects // are correctly handled by the AOT compiler. diff --git a/tests/language_2/vm/regress_flutter_19612_test.dart b/tests/language_2/vm/regress_flutter_19612_test.dart index e7b3af1465a..36597645f8b 100644 --- a/tests/language_2/vm/regress_flutter_19612_test.dart +++ b/tests/language_2/vm/regress_flutter_19612_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for https://github.com/flutter/flutter/issues/19612. // This test verifies that negated condition is correctly handled by the // AOT compiler. diff --git a/tests/language_2/vm/regress_flutter_21957_test.dart b/tests/language_2/vm/regress_flutter_21957_test.dart index 69db3a59552..a60c2510b0e 100644 --- a/tests/language_2/vm/regress_flutter_21957_test.dart +++ b/tests/language_2/vm/regress_flutter_21957_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests how nullability is inferred for a final field which is implicitly // initialized to null. This is a regression test for // https://github.com/flutter/flutter/issues/21957. diff --git a/tests/language_2/vm/regress_flutter_22131_test.dart b/tests/language_2/vm/regress_flutter_22131_test.dart index e9e2bb748e6..b4bddeb23e6 100644 --- a/tests/language_2/vm/regress_flutter_22131_test.dart +++ b/tests/language_2/vm/regress_flutter_22131_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verifies that inferred type of a final field takes constant objects into // account. This is a regression test for // https://github.com/flutter/flutter/issues/22131. diff --git a/tests/language_2/vm/regress_flutter_23879_test.dart b/tests/language_2/vm/regress_flutter_23879_test.dart index 102493ed9fc..8e10ba14dc2 100644 --- a/tests/language_2/vm/regress_flutter_23879_test.dart +++ b/tests/language_2/vm/regress_flutter_23879_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Bug in unboxed int spilling (https://github.com/flutter/flutter/issues/23879). // // VMOptions=--deterministic diff --git a/tests/language_2/vm/regress_flutter_28260_test.dart b/tests/language_2/vm/regress_flutter_28260_test.dart index 830cae5c8c1..22a0478cc48 100644 --- a/tests/language_2/vm/regress_flutter_28260_test.dart +++ b/tests/language_2/vm/regress_flutter_28260_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--deterministic --optimization_counter_threshold=10 // Bug cid ranges (https://github.com/flutter/flutter/issues/28260). diff --git a/tests/language_2/vm/regress_flutter_42845_lib.dart b/tests/language_2/vm/regress_flutter_42845_lib.dart index f22d8322b77..d21e1e3b56e 100644 --- a/tests/language_2/vm/regress_flutter_42845_lib.dart +++ b/tests/language_2/vm/regress_flutter_42845_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + extension TestExtension on int { bool get isPositive => this > 0; bool get isNegative => this < 0; diff --git a/tests/language_2/vm/regress_flutter_42845_test.dart b/tests/language_2/vm/regress_flutter_42845_test.dart index ac05e97211c..1991ad64d34 100644 --- a/tests/language_2/vm/regress_flutter_42845_test.dart +++ b/tests/language_2/vm/regress_flutter_42845_test.dart @@ -2,7 +2,7 @@ // 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. -// SharedOptions=--enable-experiment=extension-methods +// @dart = 2.9 // Tests exported extensions. diff --git a/tests/language_2/vm/regress_flutter_51828_bug2_test.dart b/tests/language_2/vm/regress_flutter_51828_bug2_test.dart index 02d47a8e3d1..d8180b63056 100644 --- a/tests/language_2/vm/regress_flutter_51828_bug2_test.dart +++ b/tests/language_2/vm/regress_flutter_51828_bug2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This is a regression test for the 2nd bug in // https://github.com/flutter/flutter/issues/51828. // Verifies that implicit cast of :result parameter of async_op diff --git a/tests/language_2/vm/regress_flutter_56479_test.dart b/tests/language_2/vm/regress_flutter_56479_test.dart index 87e3a708356..03b08a59606 100644 --- a/tests/language_2/vm/regress_flutter_56479_test.dart +++ b/tests/language_2/vm/regress_flutter_56479_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verifies that optional parameters can be transformed in field initializers. // Regression test for https://github.com/flutter/flutter/issues/56479. diff --git a/tests/language_2/vm/regress_licm_test.dart b/tests/language_2/vm/regress_licm_test.dart index 26644845488..982fae93a0a 100644 --- a/tests/language_2/vm/regress_licm_test.dart +++ b/tests/language_2/vm/regress_licm_test.dart @@ -4,6 +4,8 @@ // // VMOptions=--optimization-counter-threshold=1000 --no-background-compilation +// @dart = 2.9 + // Regression test for correct LICM and type propagation. class Attribute { diff --git a/tests/language_2/vm/regress_protobuf_95_test.dart b/tests/language_2/vm/regress_protobuf_95_test.dart index 623aba3e273..773da9b7f6b 100644 --- a/tests/language_2/vm/regress_protobuf_95_test.dart +++ b/tests/language_2/vm/regress_protobuf_95_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that compiler loads class id from the receiver and not from type // arguments when performing polymorphic inlining in the AOT mode. diff --git a/tests/language_2/vm/regression_32912_test.dart b/tests/language_2/vm/regression_32912_test.dart index 2a63ff642bd..122929669f4 100644 --- a/tests/language_2/vm/regression_32912_test.dart +++ b/tests/language_2/vm/regression_32912_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + dynamic _defaultCallback(T t) => t; void bar([dynamic Function(T) f = _defaultCallback]) {} //# 01: compile-time error diff --git a/tests/language_2/vm/regression_36076_test.dart b/tests/language_2/vm/regression_36076_test.dart index 962a5cb9631..1e847b408f8 100755 --- a/tests/language_2/vm/regression_36076_test.dart +++ b/tests/language_2/vm/regression_36076_test.dart @@ -1,6 +1,8 @@ // Bug found by DartFuzz (stripped down version): // https://github.com/dart-lang/sdk/issues/36076 +// @dart = 2.9 + // Code does not do anything, but broke kernel binary flow graph builder. foo() { diff --git a/tests/language_2/vm/regression_36587_test.dart b/tests/language_2/vm/regression_36587_test.dart index a0146410354..91993bf9817 100644 --- a/tests/language_2/vm/regression_36587_test.dart +++ b/tests/language_2/vm/regression_36587_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test extracted from a large DartFuzz-generated test. // https://github.com/dart-lang/sdk/issues/36587 diff --git a/tests/language_2/vm/regression_37408_test.dart b/tests/language_2/vm/regression_37408_test.dart index f4a295a565c..b48d27a1dd0 100644 --- a/tests/language_2/vm/regression_37408_test.dart +++ b/tests/language_2/vm/regression_37408_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Issue #37408: AOT did not throw. import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/regression_37622_test.dart b/tests/language_2/vm/regression_37622_test.dart index 3c885674a24..c7ef6f0ec82 100755 --- a/tests/language_2/vm/regression_37622_test.dart +++ b/tests/language_2/vm/regression_37622_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--deterministic // Issue #37622 found with fuzzing: internal compiler crash (division-by-zero). diff --git a/tests/language_2/vm/regression_37633_test.dart b/tests/language_2/vm/regression_37633_test.dart index da7471a0840..53a00707440 100755 --- a/tests/language_2/vm/regression_37633_test.dart +++ b/tests/language_2/vm/regression_37633_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--deterministic // Issue #37633 found with fuzzing: internal compiler crash (parallel move). diff --git a/tests/language_2/vm/regression_37821_test.dart b/tests/language_2/vm/regression_37821_test.dart index fd7ef2d2ac3..acad5da0859 100755 --- a/tests/language_2/vm/regression_37821_test.dart +++ b/tests/language_2/vm/regression_37821_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--deterministic import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/regression_38147_test.dart b/tests/language_2/vm/regression_38147_test.dart index 0f3450a85cc..a2db5993373 100755 --- a/tests/language_2/vm/regression_38147_test.dart +++ b/tests/language_2/vm/regression_38147_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--deterministic --optimization_counter_threshold=10 import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/regression_38231_test.dart b/tests/language_2/vm/regression_38231_test.dart index a269d67b561..21cc7c96513 100644 --- a/tests/language_2/vm/regression_38231_test.dart +++ b/tests/language_2/vm/regression_38231_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization_counter_threshold=1 import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/regression_38412.dart b/tests/language_2/vm/regression_38412.dart index b904f05945e..c511db8e710 100644 --- a/tests/language_2/vm/regression_38412.dart +++ b/tests/language_2/vm/regression_38412.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization_counter_threshold=1 // Found by DartFuzzing: would sometimes fail: diff --git a/tests/language_2/vm/regression_38436.dart b/tests/language_2/vm/regression_38436.dart index ea5fafd6052..f350f6c24fa 100644 --- a/tests/language_2/vm/regression_38436.dart +++ b/tests/language_2/vm/regression_38436.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization_counter_threshold=1 import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/regression_38741.dart b/tests/language_2/vm/regression_38741.dart index 2dd12234d4e..256fea0cd96 100644 --- a/tests/language_2/vm/regression_38741.dart +++ b/tests/language_2/vm/regression_38741.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--deterministic // Found by DartFuzzing: would fail during deopt: diff --git a/tests/language_2/vm/regression_39071_test.dart b/tests/language_2/vm/regression_39071_test.dart index 82049b48382..aeb8d45e5b6 100644 --- a/tests/language_2/vm/regression_39071_test.dart +++ b/tests/language_2/vm/regression_39071_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization_counter_threshold=10 // Found by DartFuzzing: would assert during OSR: diff --git a/tests/language_2/vm/regression_39193_test.dart b/tests/language_2/vm/regression_39193_test.dart index bf487652c3c..8b482e540b6 100644 --- a/tests/language_2/vm/regression_39193_test.dart +++ b/tests/language_2/vm/regression_39193_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization_counter_threshold=1 // Found by DartFuzzing: would assert during OSR: diff --git a/tests/language_2/vm/reusable_boxes_test.dart b/tests/language_2/vm/reusable_boxes_test.dart index 64e804d0845..5fef79836b9 100644 --- a/tests/language_2/vm/reusable_boxes_test.dart +++ b/tests/language_2/vm/reusable_boxes_test.dart @@ -4,6 +4,8 @@ // Test correct handling reusable boxes. // VMOptions=--optimization_counter_threshold=100 --no-background_compilation +// @dart = 2.9 + library reusable_boxes_test; import 'dart:typed_data'; diff --git a/tests/language_2/vm/shift_special_cases_test.dart b/tests/language_2/vm/shift_special_cases_test.dart index f854461d7e3..4bda31fda52 100644 --- a/tests/language_2/vm/shift_special_cases_test.dart +++ b/tests/language_2/vm/shift_special_cases_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization-counter-threshold=10 --no-background-compilation // VMOptions=--optimization-counter-threshold=10 --no-background-compilation --use_slow_path diff --git a/tests/language_2/vm/smi_widening_test.dart b/tests/language_2/vm/smi_widening_test.dart index b3fcfae77ad..0774909cb8f 100644 --- a/tests/language_2/vm/smi_widening_test.dart +++ b/tests/language_2/vm/smi_widening_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--deterministic --optimization-counter-threshold=102 --optimization-filter=Box_ import 'package:expect/expect.dart'; diff --git a/tests/language_2/vm/store_elimination_vm_test.dart b/tests/language_2/vm/store_elimination_vm_test.dart index f162f1ea766..996b481aa19 100644 --- a/tests/language_2/vm/store_elimination_vm_test.dart +++ b/tests/language_2/vm/store_elimination_vm_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test correctness of side effects tracking used by load to load forwarding. +// @dart = 2.9 + // VMOptions=--optimization-counter-threshold=10 --no-background-compilation import "package:expect/expect.dart"; diff --git a/tests/language_2/vm/store_to_load_forwarding_phis_vm_test.dart b/tests/language_2/vm/store_to_load_forwarding_phis_vm_test.dart index af801f73241..14c718c80cf 100644 --- a/tests/language_2/vm/store_to_load_forwarding_phis_vm_test.dart +++ b/tests/language_2/vm/store_to_load_forwarding_phis_vm_test.dart @@ -5,6 +5,8 @@ // by store to load forwarding. // VMOptions=--optimization_counter_threshold=100 --no-background_compilation +// @dart = 2.9 + library store_to_load_forwarding_phis_vm_test; import 'dart:async'; diff --git a/tests/language_2/vm/string_polymorphic_test.dart b/tests/language_2/vm/string_polymorphic_test.dart index 6e6b4741bfa..6ab734fc23f 100644 --- a/tests/language_2/vm/string_polymorphic_test.dart +++ b/tests/language_2/vm/string_polymorphic_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + import 'package:expect/expect.dart'; test1(String a, String b) { diff --git a/tests/language_2/vm/symbols_test.dart b/tests/language_2/vm/symbols_test.dart index a68e2f413b6..b022a24b024 100644 --- a/tests/language_2/vm/symbols_test.dart +++ b/tests/language_2/vm/symbols_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; void main() { diff --git a/tests/language_2/vm/tree_shake_type_args_in_constant_test.dart b/tests/language_2/vm/tree_shake_type_args_in_constant_test.dart index b1d9f88b15d..5d1e986dced 100644 --- a/tests/language_2/vm/tree_shake_type_args_in_constant_test.dart +++ b/tests/language_2/vm/tree_shake_type_args_in_constant_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test verifies that if a class is only used as a type argument of // a constant object, it is not removed by tree shaker. diff --git a/tests/language_2/vm/type_cast_vm_test.dart b/tests/language_2/vm/type_cast_vm_test.dart index 5a83874b1e3..1cc194acc7f 100644 --- a/tests/language_2/vm/type_cast_vm_test.dart +++ b/tests/language_2/vm/type_cast_vm_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--no_show_internal_names // Dart test program testing type casts. + +// @dart = 2.9 import "package:expect/expect.dart"; checkSecondFunction(String expected, StackTrace stacktrace) { diff --git a/tests/language_2/vm/type_of_call_via_getter_test.dart b/tests/language_2/vm/type_of_call_via_getter_test.dart index 4a6c4452ace..e5ec68a3f2a 100644 --- a/tests/language_2/vm/type_of_call_via_getter_test.dart +++ b/tests/language_2/vm/type_of_call_via_getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test verifies that compiler infers correct type from call via getter. // VMOptions=--no_background_compilation --optimization_counter_threshold=10 diff --git a/tests/language_2/vm/type_propagation_test.dart b/tests/language_2/vm/type_propagation_test.dart index 6347f349d21..40645a9b9eb 100644 --- a/tests/language_2/vm/type_propagation_test.dart +++ b/tests/language_2/vm/type_propagation_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=1000 --max-polymorphic-checks=1 --no-background-compilation +// @dart = 2.9 + // Test correct loop invariant code motion and type propagation from is-checks // and null-comparisons. diff --git a/tests/language_2/vm/type_vm_test.dart b/tests/language_2/vm/type_vm_test.dart index cd3059f53b4..52749234a1e 100644 --- a/tests/language_2/vm/type_vm_test.dart +++ b/tests/language_2/vm/type_vm_test.dart @@ -4,6 +4,8 @@ // VMOptions=--enable_type_checks --enable_asserts --no_show_internal_names // Dart test program testing type checks. +// @dart = 2.9 + import "package:expect/expect.dart"; class C { diff --git a/tests/language_2/vm/uint32_add_test.dart b/tests/language_2/vm/uint32_add_test.dart index 6a644445c27..4c30e8e604b 100644 --- a/tests/language_2/vm/uint32_add_test.dart +++ b/tests/language_2/vm/uint32_add_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + import 'package:expect/expect.dart'; trunc(x) => x & 0xFFFFFFFF; diff --git a/tests/language_2/vm/uint32_right_shift_test.dart b/tests/language_2/vm/uint32_right_shift_test.dart index c55bc660dcb..f755584d102 100644 --- a/tests/language_2/vm/uint32_right_shift_test.dart +++ b/tests/language_2/vm/uint32_right_shift_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + import 'package:expect/expect.dart'; trunc(x) => x & 0xFFFFFFFF; diff --git a/tests/language_2/vm/uint32_shift_test.dart b/tests/language_2/vm/uint32_shift_test.dart index f20210a7cc9..2c8a53070e0 100644 --- a/tests/language_2/vm/uint32_shift_test.dart +++ b/tests/language_2/vm/uint32_shift_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + import 'package:expect/expect.dart'; class Good { diff --git a/tests/language_2/vm/unaligned_float_access_literal_index_test.dart b/tests/language_2/vm/unaligned_float_access_literal_index_test.dart index 2ea752caa25..80be22599e2 100644 --- a/tests/language_2/vm/unaligned_float_access_literal_index_test.dart +++ b/tests/language_2/vm/unaligned_float_access_literal_index_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/vm/unaligned_float_access_register_index_test.dart b/tests/language_2/vm/unaligned_float_access_register_index_test.dart index bf9f02e1121..c654599d518 100644 --- a/tests/language_2/vm/unaligned_float_access_register_index_test.dart +++ b/tests/language_2/vm/unaligned_float_access_register_index_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/vm/unaligned_integer_access_literal_index_test.dart b/tests/language_2/vm/unaligned_integer_access_literal_index_test.dart index 2e0fbcc60b7..8f6937a8a6a 100644 --- a/tests/language_2/vm/unaligned_integer_access_literal_index_test.dart +++ b/tests/language_2/vm/unaligned_integer_access_literal_index_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/vm/unaligned_integer_access_register_index_test.dart b/tests/language_2/vm/unaligned_integer_access_register_index_test.dart index 3d0525c06a8..d949ea5c0c2 100644 --- a/tests/language_2/vm/unaligned_integer_access_register_index_test.dart +++ b/tests/language_2/vm/unaligned_integer_access_register_index_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization_counter_threshold=10 --no-background_compilation +// @dart = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/language_2/vm/unique_selector_test.dart b/tests/language_2/vm/unique_selector_test.dart index e26d4b53e8a..ce637037e53 100644 --- a/tests/language_2/vm/unique_selector_test.dart +++ b/tests/language_2/vm/unique_selector_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/language_2/vm/unreachable_code_test.dart b/tests/language_2/vm/unreachable_code_test.dart index b1a14ee4c50..f16ca815991 100644 --- a/tests/language_2/vm/unreachable_code_test.dart +++ b/tests/language_2/vm/unreachable_code_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verifies that VM is able to handle certain cases of unreachable code. // VMOptions=--no_background_compilation --optimization_counter_threshold=10 diff --git a/tests/language_2/vm/unregistered_closure_in_finally_test.dart b/tests/language_2/vm/unregistered_closure_in_finally_test.dart index fa970af2fff..5b7e30bda51 100644 --- a/tests/language_2/vm/unregistered_closure_in_finally_test.dart +++ b/tests/language_2/vm/unregistered_closure_in_finally_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--no-background-compilation +// @dart = 2.9 + @pragma('vm:never-inline') doSomething() { print("Hello!"); diff --git a/tests/language_2/void/await_void_test.dart b/tests/language_2/void/await_void_test.dart index 764d41e0bab..82e4c3ce99c 100644 --- a/tests/language_2/void/await_void_test.dart +++ b/tests/language_2/void/await_void_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // [NNBD non-migrated] This test has no NNBD equivalent. // In NNBD, you are not allowed to await `void` and the corresponding test // is await_void_error_test.dart diff --git a/tests/language_2/void/generalized_void_syntax_test.dart b/tests/language_2/void/generalized_void_syntax_test.dart index b7202808692..637724a5d68 100644 --- a/tests/language_2/void/generalized_void_syntax_test.dart +++ b/tests/language_2/void/generalized_void_syntax_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing that the reserved word `void` is allowed to occur as a type, not // just as a return type. diff --git a/tests/language_2/void/generalized_void_usage_test.dart b/tests/language_2/void/generalized_void_usage_test.dart index 262e40a0d53..8fffbba8f3c 100644 --- a/tests/language_2/void/generalized_void_usage_test.dart +++ b/tests/language_2/void/generalized_void_usage_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for static checks on situations where expressions of type void // can be used. The point is simply that there are no compile-time errors. diff --git a/tests/language_2/void/return_future_future_or_void_async_error0_test.dart b/tests/language_2/void/return_future_future_or_void_async_error0_test.dart index ea6093ae968..1ca2939be88 100644 --- a/tests/language_2/void/return_future_future_or_void_async_error0_test.dart +++ b/tests/language_2/void/return_future_future_or_void_async_error0_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void voidValue = null; diff --git a/tests/language_2/void/return_future_future_or_void_async_error1_test.dart b/tests/language_2/void/return_future_future_or_void_async_error1_test.dart index 29f6293bf5b..6a560d5892c 100644 --- a/tests/language_2/void/return_future_future_or_void_async_error1_test.dart +++ b/tests/language_2/void/return_future_future_or_void_async_error1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void main() { diff --git a/tests/language_2/void/return_future_future_or_void_async_test.dart b/tests/language_2/void/return_future_future_or_void_async_test.dart index 68b65ad789d..08bf6a05797 100644 --- a/tests/language_2/void/return_future_future_or_void_async_test.dart +++ b/tests/language_2/void/return_future_future_or_void_async_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void voidValue = null; diff --git a/tests/language_2/void/return_future_future_or_void_sync_error0_test.dart b/tests/language_2/void/return_future_future_or_void_sync_error0_test.dart index 70f8c2eec61..23842acbdd5 100644 --- a/tests/language_2/void/return_future_future_or_void_sync_error0_test.dart +++ b/tests/language_2/void/return_future_future_or_void_sync_error0_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void voidValue = null; diff --git a/tests/language_2/void/return_future_future_or_void_sync_error1_test.dart b/tests/language_2/void/return_future_future_or_void_sync_error1_test.dart index dd123582fd9..9392a6ade21 100644 --- a/tests/language_2/void/return_future_future_or_void_sync_error1_test.dart +++ b/tests/language_2/void/return_future_future_or_void_sync_error1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void main() { diff --git a/tests/language_2/void/return_future_future_or_void_sync_test.dart b/tests/language_2/void/return_future_future_or_void_sync_test.dart index fae59d56179..a06fd120f76 100644 --- a/tests/language_2/void/return_future_future_or_void_sync_test.dart +++ b/tests/language_2/void/return_future_future_or_void_sync_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void voidValue = null; diff --git a/tests/language_2/void/return_future_or_future_or_void_sync_error1_test.dart b/tests/language_2/void/return_future_or_future_or_void_sync_error1_test.dart index 25b0df79aed..2a9405786b8 100644 --- a/tests/language_2/void/return_future_or_future_or_void_sync_error1_test.dart +++ b/tests/language_2/void/return_future_or_future_or_void_sync_error1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void voidValue = null; diff --git a/tests/language_2/void/return_future_or_future_or_void_sync_error2_test.dart b/tests/language_2/void/return_future_or_future_or_void_sync_error2_test.dart index e6878fd6c27..23d797f6249 100644 --- a/tests/language_2/void/return_future_or_future_or_void_sync_error2_test.dart +++ b/tests/language_2/void/return_future_or_future_or_void_sync_error2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void main() { diff --git a/tests/language_2/void/return_future_or_future_or_void_sync_test.dart b/tests/language_2/void/return_future_or_future_or_void_sync_test.dart index ab95eff693d..cb17483e28b 100644 --- a/tests/language_2/void/return_future_or_future_or_void_sync_test.dart +++ b/tests/language_2/void/return_future_or_future_or_void_sync_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void voidValue = null; diff --git a/tests/language_2/void/return_future_or_void_async_test.dart b/tests/language_2/void/return_future_or_void_async_test.dart index 151f33796ec..3ad4c4e1195 100644 --- a/tests/language_2/void/return_future_or_void_async_test.dart +++ b/tests/language_2/void/return_future_or_void_async_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void voidValue = null; diff --git a/tests/language_2/void/return_future_or_void_sync_error3_test.dart b/tests/language_2/void/return_future_or_void_sync_error3_test.dart index c9211140fc5..a2d9c3bcb2b 100644 --- a/tests/language_2/void/return_future_or_void_sync_error3_test.dart +++ b/tests/language_2/void/return_future_or_void_sync_error3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void voidValue = null; diff --git a/tests/language_2/void/return_future_or_void_sync_error4_test.dart b/tests/language_2/void/return_future_or_void_sync_error4_test.dart index bd020aa9121..c18d1d18b2e 100644 --- a/tests/language_2/void/return_future_or_void_sync_error4_test.dart +++ b/tests/language_2/void/return_future_or_void_sync_error4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void main() { diff --git a/tests/language_2/void/return_future_or_void_sync_test.dart b/tests/language_2/void/return_future_or_void_sync_test.dart index 986bd289c42..74a97999c36 100644 --- a/tests/language_2/void/return_future_or_void_sync_test.dart +++ b/tests/language_2/void/return_future_or_void_sync_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void voidValue = null; diff --git a/tests/language_2/void/return_future_void_async_test.dart b/tests/language_2/void/return_future_void_async_test.dart index dae62eda897..1cd7a154adb 100644 --- a/tests/language_2/void/return_future_void_async_test.dart +++ b/tests/language_2/void/return_future_void_async_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void voidValue = null; diff --git a/tests/language_2/void/return_void_async_error0_test.dart b/tests/language_2/void/return_void_async_error0_test.dart index cb02f38dad0..91420ea7b99 100644 --- a/tests/language_2/void/return_void_async_error0_test.dart +++ b/tests/language_2/void/return_void_async_error0_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { test(); } diff --git a/tests/language_2/void/return_void_async_error1_test.dart b/tests/language_2/void/return_void_async_error1_test.dart index c685097772f..de35c39fb2b 100644 --- a/tests/language_2/void/return_void_async_error1_test.dart +++ b/tests/language_2/void/return_void_async_error1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { test(); } diff --git a/tests/language_2/void/return_void_async_error2_test.dart b/tests/language_2/void/return_void_async_error2_test.dart index afc2825032e..b534f74ca52 100644 --- a/tests/language_2/void/return_void_async_error2_test.dart +++ b/tests/language_2/void/return_void_async_error2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void main() { diff --git a/tests/language_2/void/return_void_async_test.dart b/tests/language_2/void/return_void_async_test.dart index 1abcfec64c6..0ee020c90dd 100644 --- a/tests/language_2/void/return_void_async_test.dart +++ b/tests/language_2/void/return_void_async_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void voidValue = null; diff --git a/tests/language_2/void/return_void_sync_error0_test.dart b/tests/language_2/void/return_void_sync_error0_test.dart index 5d27b5d3636..7607a34df2e 100644 --- a/tests/language_2/void/return_void_sync_error0_test.dart +++ b/tests/language_2/void/return_void_sync_error0_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { test(); } diff --git a/tests/language_2/void/return_void_sync_error1_test.dart b/tests/language_2/void/return_void_sync_error1_test.dart index 4d212c9e214..28dc4df8cd6 100644 --- a/tests/language_2/void/return_void_sync_error1_test.dart +++ b/tests/language_2/void/return_void_sync_error1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void main() { test(); } diff --git a/tests/language_2/void/return_void_sync_error2_test.dart b/tests/language_2/void/return_void_sync_error2_test.dart index 389aa15437f..88a3e4a2e52 100644 --- a/tests/language_2/void/return_void_sync_error2_test.dart +++ b/tests/language_2/void/return_void_sync_error2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; void main() { diff --git a/tests/language_2/void/return_void_sync_test.dart b/tests/language_2/void/return_void_sync_test.dart index 8c558bacbb1..927e6750f3d 100644 --- a/tests/language_2/void/return_void_sync_test.dart +++ b/tests/language_2/void/return_void_sync_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + void voidValue = null; void main() { diff --git a/tests/language_2/void/void_arrow_return_test.dart b/tests/language_2/void/void_arrow_return_test.dart index 17ab84c9190..9d00757e917 100644 --- a/tests/language_2/void/void_arrow_return_test.dart +++ b/tests/language_2/void/void_arrow_return_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing that a void arrow function is allowed to return any type of value. void foo() => 42; diff --git a/tests/language_2/void/void_block_return_test.dart b/tests/language_2/void/void_block_return_test.dart index 8dd8badd93a..8a3e793c308 100644 --- a/tests/language_2/void/void_block_return_test.dart +++ b/tests/language_2/void/void_block_return_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing that a void block function is not allowed to `return e` // where `e` is non-void. diff --git a/tests/language_2/void/void_check_test.dart b/tests/language_2/void/void_check_test.dart index 8c10f70c8dd..73b6ce50550 100644 --- a/tests/language_2/void/void_check_test.dart +++ b/tests/language_2/void/void_check_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests that `void` accepts any value and won't throw on non-`null` values. // The test is set up in a way that `--trust-type-annotations` and type // propagation must not assume that `void` is `null` either. diff --git a/tests/language_2/void/void_subtype_test.dart b/tests/language_2/void/void_subtype_test.dart index 2ecdc33e89b..c6bab0e3a5d 100644 --- a/tests/language_2/void/void_subtype_test.dart +++ b/tests/language_2/void/void_subtype_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for type checks involving the void type. +// @dart = 2.9 + import "package:expect/expect.dart"; var _str = new StringBuffer(); diff --git a/tests/language_2/void/void_type_callbacks_test.dart b/tests/language_2/void/void_type_callbacks_test.dart index f8771a9f2dd..2cc28752e68 100644 --- a/tests/language_2/void/void_type_callbacks_test.dart +++ b/tests/language_2/void/void_type_callbacks_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for type checks involving callbacks and the type void. import 'package:expect/expect.dart'; diff --git a/tests/language_2/void/void_type_function_types_test.dart b/tests/language_2/void/void_type_function_types_test.dart index 6146c43b6ab..de546953c48 100644 --- a/tests/language_2/void/void_type_function_types_test.dart +++ b/tests/language_2/void/void_type_function_types_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for type checks involving the void type in function types. import 'package:expect/expect.dart'; diff --git a/tests/language_2/void/void_type_override_test.dart b/tests/language_2/void/void_type_override_test.dart index 8bf79996161..d2411132e9d 100644 --- a/tests/language_2/void/void_type_override_test.dart +++ b/tests/language_2/void/void_type_override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for type checks involving the void type and overriding. import 'package:expect/expect.dart'; diff --git a/tests/language_2/void/void_type_test.dart b/tests/language_2/void/void_type_test.dart index c858989835c..21c02f2d275 100644 --- a/tests/language_2/void/void_type_test.dart +++ b/tests/language_2/void/void_type_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for type checks involving the void type. +// @dart = 2.9 + import "package:expect/expect.dart"; void f() { diff --git a/tests/language_2/void/void_type_usage_test.dart b/tests/language_2/void/void_type_usage_test.dart index a49a34a6b18..bf7a9f1659d 100644 --- a/tests/language_2/void/void_type_usage_test.dart +++ b/tests/language_2/void/void_type_usage_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test for type checks on usage of expressions of type void. void use(dynamic x) { } diff --git a/tests/lib_2/async/async_await_sync_completer_test.dart b/tests/lib_2/async/async_await_sync_completer_test.dart index 889632f04ba..3797a927497 100644 --- a/tests/lib_2/async/async_await_sync_completer_test.dart +++ b/tests/lib_2/async/async_await_sync_completer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/async/async_await_zones_test.dart b/tests/lib_2/async/async_await_zones_test.dart index fb3dc50c062..d2fcb95b387 100644 --- a/tests/lib_2/async/async_await_zones_test.dart +++ b/tests/lib_2/async/async_await_zones_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that async functions don't zone-register their callbacks for each // await. Async functions should register their callback once in the beginning // and then reuse it for all awaits in their body. diff --git a/tests/lib_2/async/async_no_await_zones_test.dart b/tests/lib_2/async/async_no_await_zones_test.dart index 789de016d78..ab5e74f4a16 100644 --- a/tests/lib_2/async/async_no_await_zones_test.dart +++ b/tests/lib_2/async/async_no_await_zones_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for https://github.com/dart-lang/sdk/issues/33330 import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/async/catch_errors.dart b/tests/lib_2/async/catch_errors.dart index b170b70467f..d73bff04412 100644 --- a/tests/lib_2/async/catch_errors.dart +++ b/tests/lib_2/async/catch_errors.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library catch_errors; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors11_test.dart b/tests/lib_2/async/catch_errors11_test.dart index 67bb9db248d..5fb2e903723 100644 --- a/tests/lib_2/async/catch_errors11_test.dart +++ b/tests/lib_2/async/catch_errors11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors12_test.dart b/tests/lib_2/async/catch_errors12_test.dart index fc42696db78..2a5b4d1cf16 100644 --- a/tests/lib_2/async/catch_errors12_test.dart +++ b/tests/lib_2/async/catch_errors12_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors13_test.dart b/tests/lib_2/async/catch_errors13_test.dart index 7c4d0e0f45e..33adbbd7180 100644 --- a/tests/lib_2/async/catch_errors13_test.dart +++ b/tests/lib_2/async/catch_errors13_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors14_test.dart b/tests/lib_2/async/catch_errors14_test.dart index 8149dd3abe0..e9562682c89 100644 --- a/tests/lib_2/async/catch_errors14_test.dart +++ b/tests/lib_2/async/catch_errors14_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors15_test.dart b/tests/lib_2/async/catch_errors15_test.dart index b95929b4f47..6962cb07170 100644 --- a/tests/lib_2/async/catch_errors15_test.dart +++ b/tests/lib_2/async/catch_errors15_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors16_test.dart b/tests/lib_2/async/catch_errors16_test.dart index 40a2c63f37f..ffdecb9e676 100644 --- a/tests/lib_2/async/catch_errors16_test.dart +++ b/tests/lib_2/async/catch_errors16_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors17_test.dart b/tests/lib_2/async/catch_errors17_test.dart index 3ba918e75db..1ba81385742 100644 --- a/tests/lib_2/async/catch_errors17_test.dart +++ b/tests/lib_2/async/catch_errors17_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors18_test.dart b/tests/lib_2/async/catch_errors18_test.dart index 2e640137335..d8f07938b77 100644 --- a/tests/lib_2/async/catch_errors18_test.dart +++ b/tests/lib_2/async/catch_errors18_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors19_test.dart b/tests/lib_2/async/catch_errors19_test.dart index f5b37a1b2b9..879462d55a6 100644 --- a/tests/lib_2/async/catch_errors19_test.dart +++ b/tests/lib_2/async/catch_errors19_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors20_test.dart b/tests/lib_2/async/catch_errors20_test.dart index c3ca08e926e..58b344a2e60 100644 --- a/tests/lib_2/async/catch_errors20_test.dart +++ b/tests/lib_2/async/catch_errors20_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors21_test.dart b/tests/lib_2/async/catch_errors21_test.dart index 11db23b6001..fe3bdce1a47 100644 --- a/tests/lib_2/async/catch_errors21_test.dart +++ b/tests/lib_2/async/catch_errors21_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors22_test.dart b/tests/lib_2/async/catch_errors22_test.dart index 8f810e70737..c507622a0f8 100644 --- a/tests/lib_2/async/catch_errors22_test.dart +++ b/tests/lib_2/async/catch_errors22_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors23_test.dart b/tests/lib_2/async/catch_errors23_test.dart index 92967c980be..655371e221f 100644 --- a/tests/lib_2/async/catch_errors23_test.dart +++ b/tests/lib_2/async/catch_errors23_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors24_test.dart b/tests/lib_2/async/catch_errors24_test.dart index 9b388a2732c..4c68d9f20aa 100644 --- a/tests/lib_2/async/catch_errors24_test.dart +++ b/tests/lib_2/async/catch_errors24_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors25_test.dart b/tests/lib_2/async/catch_errors25_test.dart index 8de05403b2f..2fc8be095b4 100644 --- a/tests/lib_2/async/catch_errors25_test.dart +++ b/tests/lib_2/async/catch_errors25_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors26_test.dart b/tests/lib_2/async/catch_errors26_test.dart index 0d2ea86b316..43d714851f7 100644 --- a/tests/lib_2/async/catch_errors26_test.dart +++ b/tests/lib_2/async/catch_errors26_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors27_test.dart b/tests/lib_2/async/catch_errors27_test.dart index 19229470188..f829b41e6da 100644 --- a/tests/lib_2/async/catch_errors27_test.dart +++ b/tests/lib_2/async/catch_errors27_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors28_test.dart b/tests/lib_2/async/catch_errors28_test.dart index eae954ad37d..2d1a4d6f8da 100644 --- a/tests/lib_2/async/catch_errors28_test.dart +++ b/tests/lib_2/async/catch_errors28_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors2_test.dart b/tests/lib_2/async/catch_errors2_test.dart index e97d52b8b4c..eb61bc43e82 100644 --- a/tests/lib_2/async/catch_errors2_test.dart +++ b/tests/lib_2/async/catch_errors2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors3_test.dart b/tests/lib_2/async/catch_errors3_test.dart index 5ddb915c793..f55cf5a01f3 100644 --- a/tests/lib_2/async/catch_errors3_test.dart +++ b/tests/lib_2/async/catch_errors3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors4_test.dart b/tests/lib_2/async/catch_errors4_test.dart index c25d60e1a9d..7290634a325 100644 --- a/tests/lib_2/async/catch_errors4_test.dart +++ b/tests/lib_2/async/catch_errors4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors5_test.dart b/tests/lib_2/async/catch_errors5_test.dart index ef238781578..01d81ae3170 100644 --- a/tests/lib_2/async/catch_errors5_test.dart +++ b/tests/lib_2/async/catch_errors5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors6_test.dart b/tests/lib_2/async/catch_errors6_test.dart index 48f6c305d21..f4b70fa9133 100644 --- a/tests/lib_2/async/catch_errors6_test.dart +++ b/tests/lib_2/async/catch_errors6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors7_test.dart b/tests/lib_2/async/catch_errors7_test.dart index 43e5ff115f8..32b37b1a13d 100644 --- a/tests/lib_2/async/catch_errors7_test.dart +++ b/tests/lib_2/async/catch_errors7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors8_test.dart b/tests/lib_2/async/catch_errors8_test.dart index 459208b8d7c..05f31e9445f 100644 --- a/tests/lib_2/async/catch_errors8_test.dart +++ b/tests/lib_2/async/catch_errors8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/catch_errors_test.dart b/tests/lib_2/async/catch_errors_test.dart index 10ddb90582c..aa3c20eb141 100644 --- a/tests/lib_2/async/catch_errors_test.dart +++ b/tests/lib_2/async/catch_errors_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/dart2js_uncaught_error_test.dart b/tests/lib_2/async/dart2js_uncaught_error_test.dart index 136c91edf11..faaeab8201f 100644 --- a/tests/lib_2/async/dart2js_uncaught_error_test.dart +++ b/tests/lib_2/async/dart2js_uncaught_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // TODO(bkonyi): This test should be moved to compiler/dart2js. import "dart:async"; diff --git a/tests/lib_2/async/event_helper.dart b/tests/lib_2/async/event_helper.dart index d7ff0f46e37..3dd075095c6 100644 --- a/tests/lib_2/async/event_helper.dart +++ b/tests/lib_2/async/event_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library event_helper; import 'dart:async'; diff --git a/tests/lib_2/async/first_regression_test.dart b/tests/lib_2/async/first_regression_test.dart index 590251b615d..c0d49e5e73d 100644 --- a/tests/lib_2/async/first_regression_test.dart +++ b/tests/lib_2/async/first_regression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for http://dartbug.com/7964 library first_regression_test; diff --git a/tests/lib_2/async/future_constructor2_test.dart b/tests/lib_2/async/future_constructor2_test.dart index c80090f56e8..29693b139c3 100644 --- a/tests/lib_2/async/future_constructor2_test.dart +++ b/tests/lib_2/async/future_constructor2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library future_delayed_test; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/async/future_constructor_test.dart b/tests/lib_2/async/future_constructor_test.dart index 34b2d31a564..6d97507f100 100644 --- a/tests/lib_2/async/future_constructor_test.dart +++ b/tests/lib_2/async/future_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library future_test; import "package:expect/expect.dart"; diff --git a/tests/lib_2/async/future_delayed_error_test.dart b/tests/lib_2/async/future_delayed_error_test.dart index 51d10016adb..af60b02ad15 100644 --- a/tests/lib_2/async/future_delayed_error_test.dart +++ b/tests/lib_2/async/future_delayed_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library future_delayed_error_test; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/async/future_error_test.dart b/tests/lib_2/async/future_error_test.dart index bb96fa35a80..483b4815c1f 100644 --- a/tests/lib_2/async/future_error_test.dart +++ b/tests/lib_2/async/future_error_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2020, 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 = 2.9 import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/async/future_foreach_test.dart b/tests/lib_2/async/future_foreach_test.dart index 7416b9411d1..723a91e273d 100644 --- a/tests/lib_2/async/future_foreach_test.dart +++ b/tests/lib_2/async/future_foreach_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library future_foreach_test; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/async/future_future_test.dart b/tests/lib_2/async/future_future_test.dart index 45aaf8278e3..1d4a0a94684 100644 --- a/tests/lib_2/async/future_future_test.dart +++ b/tests/lib_2/async/future_future_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Checks that Future> is a valid type and that futures can contain // and complete other futures. diff --git a/tests/lib_2/async/future_microtask_test.dart b/tests/lib_2/async/future_microtask_test.dart index 1606fb01fe3..78a5808aadd 100644 --- a/tests/lib_2/async/future_microtask_test.dart +++ b/tests/lib_2/async/future_microtask_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/async/future_or_bad_type_test.dart b/tests/lib_2/async/future_or_bad_type_test.dart index 7d908166299..d4ae86a0a73 100644 --- a/tests/lib_2/async/future_or_bad_type_test.dart +++ b/tests/lib_2/async/future_or_bad_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // In non strong-mode, `FutureOr` is dynamic, even if `T` doesn't exist. // `FutureOr` can not be used as superclass, mixin, nor can it be // implemented (as interface). diff --git a/tests/lib_2/async/future_or_only_in_async_test.dart b/tests/lib_2/async/future_or_only_in_async_test.dart index 8db86f37087..5af0a85c55a 100644 --- a/tests/lib_2/async/future_or_only_in_async_test.dart +++ b/tests/lib_2/async/future_or_only_in_async_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // `FutureOr` is only visible when `dart:async` is imported. dynamic foo(dynamic x) { diff --git a/tests/lib_2/async/future_or_strong_test.dart b/tests/lib_2/async/future_or_strong_test.dart index f9f1ff9721e..b7a37a00a15 100644 --- a/tests/lib_2/async/future_or_strong_test.dart +++ b/tests/lib_2/async/future_or_strong_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // In strong mode, `FutureOr` should be equivalent to the union of `Future` // and `T`. diff --git a/tests/lib_2/async/future_or_type_test.dart b/tests/lib_2/async/future_or_type_test.dart index df5a0149cd6..9b2fdf7d39b 100644 --- a/tests/lib_2/async/future_or_type_test.dart +++ b/tests/lib_2/async/future_or_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // In strong mode, `FutureOr` should be a valid type in most locations. import 'dart:async'; diff --git a/tests/lib_2/async/future_test.dart b/tests/lib_2/async/future_test.dart index 9242649d6e8..ef44287f8ff 100644 --- a/tests/lib_2/async/future_test.dart +++ b/tests/lib_2/async/future_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library future_test; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/async/future_timeout_test.dart b/tests/lib_2/async/future_timeout_test.dart index 5fb73b4a24b..a2e3c67b37a 100644 --- a/tests/lib_2/async/future_timeout_test.dart +++ b/tests/lib_2/async/future_timeout_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library future_timeout_test; import 'dart:async'; diff --git a/tests/lib_2/async/future_value_chain2_test.dart b/tests/lib_2/async/future_value_chain2_test.dart index e3240b94c50..6ca96ccca38 100644 --- a/tests/lib_2/async/future_value_chain2_test.dart +++ b/tests/lib_2/async/future_value_chain2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/future_value_chain3_test.dart b/tests/lib_2/async/future_value_chain3_test.dart index 0247e5a66ce..5e3b7354bf6 100644 --- a/tests/lib_2/async/future_value_chain3_test.dart +++ b/tests/lib_2/async/future_value_chain3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/future_value_chain4_test.dart b/tests/lib_2/async/future_value_chain4_test.dart index 29f1477e4fc..7bdbe8caca8 100644 --- a/tests/lib_2/async/future_value_chain4_test.dart +++ b/tests/lib_2/async/future_value_chain4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/future_value_chain_test.dart b/tests/lib_2/async/future_value_chain_test.dart index 895f6ce347f..9c96318119e 100644 --- a/tests/lib_2/async/future_value_chain_test.dart +++ b/tests/lib_2/async/future_value_chain_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/futures_test.dart b/tests/lib_2/async/futures_test.dart index 26b30191e18..e2dc9c4c4a9 100644 --- a/tests/lib_2/async/futures_test.dart +++ b/tests/lib_2/async/futures_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library futures_test; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/async/intercept_print1_test.dart b/tests/lib_2/async/intercept_print1_test.dart index 36b2fbac370..71e47d9b5c3 100644 --- a/tests/lib_2/async/intercept_print1_test.dart +++ b/tests/lib_2/async/intercept_print1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'catch_errors.dart'; diff --git a/tests/lib_2/async/intercept_schedule_microtask1_test.dart b/tests/lib_2/async/intercept_schedule_microtask1_test.dart index d4b38977c59..75a9f686eb4 100644 --- a/tests/lib_2/async/intercept_schedule_microtask1_test.dart +++ b/tests/lib_2/async/intercept_schedule_microtask1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'catch_errors.dart'; diff --git a/tests/lib_2/async/intercept_schedule_microtask2_test.dart b/tests/lib_2/async/intercept_schedule_microtask2_test.dart index 123f69d121e..fe6649574a4 100644 --- a/tests/lib_2/async/intercept_schedule_microtask2_test.dart +++ b/tests/lib_2/async/intercept_schedule_microtask2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'catch_errors.dart'; diff --git a/tests/lib_2/async/intercept_schedule_microtask3_test.dart b/tests/lib_2/async/intercept_schedule_microtask3_test.dart index 5202137209b..87f37e203ac 100644 --- a/tests/lib_2/async/intercept_schedule_microtask3_test.dart +++ b/tests/lib_2/async/intercept_schedule_microtask3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/intercept_schedule_microtask4_test.dart b/tests/lib_2/async/intercept_schedule_microtask4_test.dart index 76eb98d9f2b..9966f6b1af3 100644 --- a/tests/lib_2/async/intercept_schedule_microtask4_test.dart +++ b/tests/lib_2/async/intercept_schedule_microtask4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/intercept_schedule_microtask5_test.dart b/tests/lib_2/async/intercept_schedule_microtask5_test.dart index f1359e52f1b..701368c4c30 100644 --- a/tests/lib_2/async/intercept_schedule_microtask5_test.dart +++ b/tests/lib_2/async/intercept_schedule_microtask5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/intercept_schedule_microtask6_test.dart b/tests/lib_2/async/intercept_schedule_microtask6_test.dart index b301d1ec1c5..0e62d52692d 100644 --- a/tests/lib_2/async/intercept_schedule_microtask6_test.dart +++ b/tests/lib_2/async/intercept_schedule_microtask6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/multiple_timer_test.dart b/tests/lib_2/async/multiple_timer_test.dart index bf86eacd36e..acd40ac2e2e 100644 --- a/tests/lib_2/async/multiple_timer_test.dart +++ b/tests/lib_2/async/multiple_timer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library multiple_timer_test; import 'dart:async'; diff --git a/tests/lib_2/async/null_future_zone_test.dart b/tests/lib_2/async/null_future_zone_test.dart index 802c399dd07..33229160396 100644 --- a/tests/lib_2/async/null_future_zone_test.dart +++ b/tests/lib_2/async/null_future_zone_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/periodic_timer2_test.dart b/tests/lib_2/async/periodic_timer2_test.dart index a1b7da1af28..6514f10ddad 100644 --- a/tests/lib_2/async/periodic_timer2_test.dart +++ b/tests/lib_2/async/periodic_timer2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/async/periodic_timer3_test.dart b/tests/lib_2/async/periodic_timer3_test.dart index d09e636af8d..64d5424c06c 100644 --- a/tests/lib_2/async/periodic_timer3_test.dart +++ b/tests/lib_2/async/periodic_timer3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library timer_test; import 'dart:async'; diff --git a/tests/lib_2/async/periodic_timer4_test.dart b/tests/lib_2/async/periodic_timer4_test.dart index 12b9b312884..9af7e2e1a27 100644 --- a/tests/lib_2/async/periodic_timer4_test.dart +++ b/tests/lib_2/async/periodic_timer4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library timer_test; import 'dart:async'; diff --git a/tests/lib_2/async/run_zoned1_test.dart b/tests/lib_2/async/run_zoned1_test.dart index 74af5b16855..45c20202bcd 100644 --- a/tests/lib_2/async/run_zoned1_test.dart +++ b/tests/lib_2/async/run_zoned1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/run_zoned4_test.dart b/tests/lib_2/async/run_zoned4_test.dart index fb5166ab7ad..e252c81fb6a 100644 --- a/tests/lib_2/async/run_zoned4_test.dart +++ b/tests/lib_2/async/run_zoned4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/run_zoned5_test.dart b/tests/lib_2/async/run_zoned5_test.dart index 0787fd569f5..850aa07b88c 100644 --- a/tests/lib_2/async/run_zoned5_test.dart +++ b/tests/lib_2/async/run_zoned5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/run_zoned6_test.dart b/tests/lib_2/async/run_zoned6_test.dart index 837e6f19ecd..40e785ef67d 100644 --- a/tests/lib_2/async/run_zoned6_test.dart +++ b/tests/lib_2/async/run_zoned6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/async/run_zoned7_test.dart b/tests/lib_2/async/run_zoned7_test.dart index 01de14341cd..91fd804b8ff 100644 --- a/tests/lib_2/async/run_zoned7_test.dart +++ b/tests/lib_2/async/run_zoned7_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/run_zoned8_test.dart b/tests/lib_2/async/run_zoned8_test.dart index fca39896f95..22730abcd59 100644 --- a/tests/lib_2/async/run_zoned8_test.dart +++ b/tests/lib_2/async/run_zoned8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/run_zoned9_test.dart b/tests/lib_2/async/run_zoned9_test.dart index be96ac80a50..8ef3e3174bd 100644 --- a/tests/lib_2/async/run_zoned9_test.dart +++ b/tests/lib_2/async/run_zoned9_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/async/schedule_microtask2_test.dart b/tests/lib_2/async/schedule_microtask2_test.dart index ab72d866127..c27fbae6de6 100644 --- a/tests/lib_2/async/schedule_microtask2_test.dart +++ b/tests/lib_2/async/schedule_microtask2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library run_async_test; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/async/schedule_microtask3_test.dart b/tests/lib_2/async/schedule_microtask3_test.dart index 5e787b7342e..735b62ac2e3 100644 --- a/tests/lib_2/async/schedule_microtask3_test.dart +++ b/tests/lib_2/async/schedule_microtask3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library run_async_test; import 'dart:async'; diff --git a/tests/lib_2/async/schedule_microtask5_test.dart b/tests/lib_2/async/schedule_microtask5_test.dart index b6c8152dae1..c272a9ec02b 100644 --- a/tests/lib_2/async/schedule_microtask5_test.dart +++ b/tests/lib_2/async/schedule_microtask5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library run_async_test; import 'dart:async'; diff --git a/tests/lib_2/async/schedule_microtask_test.dart b/tests/lib_2/async/schedule_microtask_test.dart index 8e12f4e4a5e..163f8514531 100644 --- a/tests/lib_2/async/schedule_microtask_test.dart +++ b/tests/lib_2/async/schedule_microtask_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/slow_consumer2_test.dart b/tests/lib_2/async/slow_consumer2_test.dart index 23a001ad1c7..fe86a4fac18 100644 --- a/tests/lib_2/async/slow_consumer2_test.dart +++ b/tests/lib_2/async/slow_consumer2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--old_gen_heap_size=64 --no-background-compilation library slow_consumer2_test; diff --git a/tests/lib_2/async/slow_consumer3_test.dart b/tests/lib_2/async/slow_consumer3_test.dart index 806f929aa3a..8661293344b 100644 --- a/tests/lib_2/async/slow_consumer3_test.dart +++ b/tests/lib_2/async/slow_consumer3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--old_gen_heap_size=64 --no-background-compilation library slow_consumer3_test; diff --git a/tests/lib_2/async/slow_consumer_test.dart b/tests/lib_2/async/slow_consumer_test.dart index 2eaa8ef4b18..57096fad184 100644 --- a/tests/lib_2/async/slow_consumer_test.dart +++ b/tests/lib_2/async/slow_consumer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--old_gen_heap_size=64 --no-background-compilation library slow_consumer_test; diff --git a/tests/lib_2/async/stack_trace01_test.dart b/tests/lib_2/async/stack_trace01_test.dart index 9a34b221ff1..eb180a7b0e7 100644 --- a/tests/lib_2/async/stack_trace01_test.dart +++ b/tests/lib_2/async/stack_trace01_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace02_test.dart b/tests/lib_2/async/stack_trace02_test.dart index 2932a2e4b2d..fe1fccd6387 100644 --- a/tests/lib_2/async/stack_trace02_test.dart +++ b/tests/lib_2/async/stack_trace02_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace03_test.dart b/tests/lib_2/async/stack_trace03_test.dart index e5ab27bc006..bf934a17d5b 100644 --- a/tests/lib_2/async/stack_trace03_test.dart +++ b/tests/lib_2/async/stack_trace03_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace04_test.dart b/tests/lib_2/async/stack_trace04_test.dart index ea92c535509..16e27d6bc08 100644 --- a/tests/lib_2/async/stack_trace04_test.dart +++ b/tests/lib_2/async/stack_trace04_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace05_test.dart b/tests/lib_2/async/stack_trace05_test.dart index d1528c62aa0..bda1b009e13 100644 --- a/tests/lib_2/async/stack_trace05_test.dart +++ b/tests/lib_2/async/stack_trace05_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace06_test.dart b/tests/lib_2/async/stack_trace06_test.dart index c6246c15530..8e6a1ff42f2 100644 --- a/tests/lib_2/async/stack_trace06_test.dart +++ b/tests/lib_2/async/stack_trace06_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace07_test.dart b/tests/lib_2/async/stack_trace07_test.dart index dd989e8fd05..a5d7c37af60 100644 --- a/tests/lib_2/async/stack_trace07_test.dart +++ b/tests/lib_2/async/stack_trace07_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace08_test.dart b/tests/lib_2/async/stack_trace08_test.dart index e9d5b94e6c2..d3c116d3bd7 100644 --- a/tests/lib_2/async/stack_trace08_test.dart +++ b/tests/lib_2/async/stack_trace08_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace09_test.dart b/tests/lib_2/async/stack_trace09_test.dart index 534aeb11591..969de46e1f4 100644 --- a/tests/lib_2/async/stack_trace09_test.dart +++ b/tests/lib_2/async/stack_trace09_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace10_test.dart b/tests/lib_2/async/stack_trace10_test.dart index b0420d4538d..0e7d6c0464f 100644 --- a/tests/lib_2/async/stack_trace10_test.dart +++ b/tests/lib_2/async/stack_trace10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace11_test.dart b/tests/lib_2/async/stack_trace11_test.dart index d698a187144..7a60cb124c7 100644 --- a/tests/lib_2/async/stack_trace11_test.dart +++ b/tests/lib_2/async/stack_trace11_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace12_test.dart b/tests/lib_2/async/stack_trace12_test.dart index c067d8fa662..0991efcf8ef 100644 --- a/tests/lib_2/async/stack_trace12_test.dart +++ b/tests/lib_2/async/stack_trace12_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace13_test.dart b/tests/lib_2/async/stack_trace13_test.dart index 8855bee27a2..39e9dfb2812 100644 --- a/tests/lib_2/async/stack_trace13_test.dart +++ b/tests/lib_2/async/stack_trace13_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace14_test.dart b/tests/lib_2/async/stack_trace14_test.dart index fe3a534497c..20c2c0a2c6a 100644 --- a/tests/lib_2/async/stack_trace14_test.dart +++ b/tests/lib_2/async/stack_trace14_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace15_test.dart b/tests/lib_2/async/stack_trace15_test.dart index e52b4eb4a8f..03e0ba9b357 100644 --- a/tests/lib_2/async/stack_trace15_test.dart +++ b/tests/lib_2/async/stack_trace15_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace16_test.dart b/tests/lib_2/async/stack_trace16_test.dart index a54a56e9f9d..398e14ce86c 100644 --- a/tests/lib_2/async/stack_trace16_test.dart +++ b/tests/lib_2/async/stack_trace16_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace17_test.dart b/tests/lib_2/async/stack_trace17_test.dart index b7f33c544e9..caed73153d8 100644 --- a/tests/lib_2/async/stack_trace17_test.dart +++ b/tests/lib_2/async/stack_trace17_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace18_test.dart b/tests/lib_2/async/stack_trace18_test.dart index 51b0c705b09..b15f5f7ac02 100644 --- a/tests/lib_2/async/stack_trace18_test.dart +++ b/tests/lib_2/async/stack_trace18_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace19_test.dart b/tests/lib_2/async/stack_trace19_test.dart index 74a6180890f..5a4d91517c0 100644 --- a/tests/lib_2/async/stack_trace19_test.dart +++ b/tests/lib_2/async/stack_trace19_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace20_test.dart b/tests/lib_2/async/stack_trace20_test.dart index b0420d4538d..0e7d6c0464f 100644 --- a/tests/lib_2/async/stack_trace20_test.dart +++ b/tests/lib_2/async/stack_trace20_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace21_test.dart b/tests/lib_2/async/stack_trace21_test.dart index b859ba8555b..9ce59293234 100644 --- a/tests/lib_2/async/stack_trace21_test.dart +++ b/tests/lib_2/async/stack_trace21_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace22_test.dart b/tests/lib_2/async/stack_trace22_test.dart index 0ac1b8e57d5..e37709dc277 100644 --- a/tests/lib_2/async/stack_trace22_test.dart +++ b/tests/lib_2/async/stack_trace22_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace23_test.dart b/tests/lib_2/async/stack_trace23_test.dart index 2ee308a3fd0..d6eaca3d089 100644 --- a/tests/lib_2/async/stack_trace23_test.dart +++ b/tests/lib_2/async/stack_trace23_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace24_test.dart b/tests/lib_2/async/stack_trace24_test.dart index 81fa3d2e264..ccdd5db327e 100644 --- a/tests/lib_2/async/stack_trace24_test.dart +++ b/tests/lib_2/async/stack_trace24_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stack_trace25_test.dart b/tests/lib_2/async/stack_trace25_test.dart index 88a541b8472..c04b48b9490 100644 --- a/tests/lib_2/async/stack_trace25_test.dart +++ b/tests/lib_2/async/stack_trace25_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stream_controller_add_error_test.dart b/tests/lib_2/async/stream_controller_add_error_test.dart index fe24cebea89..4656f831fb8 100644 --- a/tests/lib_2/async/stream_controller_add_error_test.dart +++ b/tests/lib_2/async/stream_controller_add_error_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2020, 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 = 2.9 import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/async/stream_controller_async_test.dart b/tests/lib_2/async/stream_controller_async_test.dart index a0792509134..bc8355edcce 100644 --- a/tests/lib_2/async/stream_controller_async_test.dart +++ b/tests/lib_2/async/stream_controller_async_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the basic StreamController and StreamController.broadcast. library stream_controller_async_test; diff --git a/tests/lib_2/async/stream_controller_test.dart b/tests/lib_2/async/stream_controller_test.dart index f0c52760af2..a644be39925 100644 --- a/tests/lib_2/async/stream_controller_test.dart +++ b/tests/lib_2/async/stream_controller_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the basic StreamController and StreamController.singleSubscription. library stream_controller_test; diff --git a/tests/lib_2/async/stream_distinct_test.dart b/tests/lib_2/async/stream_distinct_test.dart index 354c258c352..03a06650c2d 100644 --- a/tests/lib_2/async/stream_distinct_test.dart +++ b/tests/lib_2/async/stream_distinct_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/lib_2/async/stream_empty_test.dart b/tests/lib_2/async/stream_empty_test.dart index d421b3de6fe..e4914a907a5 100644 --- a/tests/lib_2/async/stream_empty_test.dart +++ b/tests/lib_2/async/stream_empty_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test empty stream. import "package:expect/expect.dart"; import "dart:async"; diff --git a/tests/lib_2/async/stream_error_test.dart b/tests/lib_2/async/stream_error_test.dart index 1c0737e05d4..bc733766022 100644 --- a/tests/lib_2/async/stream_error_test.dart +++ b/tests/lib_2/async/stream_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/lib_2/async/stream_event_transformed_test.dart b/tests/lib_2/async/stream_event_transformed_test.dart index 2b22fad7aeb..475e6fd9448 100644 --- a/tests/lib_2/async/stream_event_transformed_test.dart +++ b/tests/lib_2/async/stream_event_transformed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stream_first_where_test.dart b/tests/lib_2/async/stream_first_where_test.dart index ad1a83c12cc..ec496a0e1b5 100644 --- a/tests/lib_2/async/stream_first_where_test.dart +++ b/tests/lib_2/async/stream_first_where_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library stream_controller_async_test; import 'dart:async'; diff --git a/tests/lib_2/async/stream_from_futures_test.dart b/tests/lib_2/async/stream_from_futures_test.dart index 2313c9dada2..56442b2b8ea 100644 --- a/tests/lib_2/async/stream_from_futures_test.dart +++ b/tests/lib_2/async/stream_from_futures_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/async/stream_from_iterable_test.dart b/tests/lib_2/async/stream_from_iterable_test.dart index d80d9897674..fb26553c170 100644 --- a/tests/lib_2/async/stream_from_iterable_test.dart +++ b/tests/lib_2/async/stream_from_iterable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test Stream.fromIterable. import 'dart:async'; diff --git a/tests/lib_2/async/stream_iterator_double_cancel_test.dart b/tests/lib_2/async/stream_iterator_double_cancel_test.dart index d648e0d2958..6ae393530ad 100644 --- a/tests/lib_2/async/stream_iterator_double_cancel_test.dart +++ b/tests/lib_2/async/stream_iterator_double_cancel_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/lib_2/async/stream_iterator_test.dart b/tests/lib_2/async/stream_iterator_test.dart index 1b952cdddac..38b32771d7e 100644 --- a/tests/lib_2/async/stream_iterator_test.dart +++ b/tests/lib_2/async/stream_iterator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/async/stream_join_test.dart b/tests/lib_2/async/stream_join_test.dart index 6e3a98b7194..2e5ded27a9c 100644 --- a/tests/lib_2/async/stream_join_test.dart +++ b/tests/lib_2/async/stream_join_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the basic StreamController and StreamController.singleSubscription. library stream_join_test; diff --git a/tests/lib_2/async/stream_last_where_test.dart b/tests/lib_2/async/stream_last_where_test.dart index 42418b95110..5100cf06855 100644 --- a/tests/lib_2/async/stream_last_where_test.dart +++ b/tests/lib_2/async/stream_last_where_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library stream_controller_async_test; import 'dart:async'; diff --git a/tests/lib_2/async/stream_listen_zone_test.dart b/tests/lib_2/async/stream_listen_zone_test.dart index 64ff77d1743..ff59f4680c7 100644 --- a/tests/lib_2/async/stream_listen_zone_test.dart +++ b/tests/lib_2/async/stream_listen_zone_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library stream_listen_zeno_test; import "dart:async"; diff --git a/tests/lib_2/async/stream_multi_test.dart b/tests/lib_2/async/stream_multi_test.dart index b5dd7e556e1..413ed1d6626 100644 --- a/tests/lib_2/async/stream_multi_test.dart +++ b/tests/lib_2/async/stream_multi_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import "package:expect/expect.dart"; diff --git a/tests/lib_2/async/stream_periodic2_test.dart b/tests/lib_2/async/stream_periodic2_test.dart index 1250131c643..d0d9ed97cfd 100644 --- a/tests/lib_2/async/stream_periodic2_test.dart +++ b/tests/lib_2/async/stream_periodic2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test merging streams. library dart.test.stream_from_iterable; diff --git a/tests/lib_2/async/stream_periodic3_test.dart b/tests/lib_2/async/stream_periodic3_test.dart index a1fbbd07a7b..7e0f3fda684 100644 --- a/tests/lib_2/async/stream_periodic3_test.dart +++ b/tests/lib_2/async/stream_periodic3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test merging streams. library dart.test.stream_from_iterable; diff --git a/tests/lib_2/async/stream_periodic4_test.dart b/tests/lib_2/async/stream_periodic4_test.dart index e687786b030..5471b34446a 100644 --- a/tests/lib_2/async/stream_periodic4_test.dart +++ b/tests/lib_2/async/stream_periodic4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test merging streams. library dart.test.stream_from_iterable; diff --git a/tests/lib_2/async/stream_periodic5_test.dart b/tests/lib_2/async/stream_periodic5_test.dart index 2be1c96f382..16148bcf4a1 100644 --- a/tests/lib_2/async/stream_periodic5_test.dart +++ b/tests/lib_2/async/stream_periodic5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test merging streams. library dart.test.stream_from_iterable; diff --git a/tests/lib_2/async/stream_periodic6_test.dart b/tests/lib_2/async/stream_periodic6_test.dart index 0ef154e5e2f..6c1f42ee4ec 100644 --- a/tests/lib_2/async/stream_periodic6_test.dart +++ b/tests/lib_2/async/stream_periodic6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test merging streams. library dart.test.stream_from_iterable; diff --git a/tests/lib_2/async/stream_periodic_test.dart b/tests/lib_2/async/stream_periodic_test.dart index 43a06d087ec..554c802b473 100644 --- a/tests/lib_2/async/stream_periodic_test.dart +++ b/tests/lib_2/async/stream_periodic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test merging streams. library dart.test.stream_from_iterable; diff --git a/tests/lib_2/async/stream_single_test.dart b/tests/lib_2/async/stream_single_test.dart index 0156d71e275..3d943d849b1 100644 --- a/tests/lib_2/async/stream_single_test.dart +++ b/tests/lib_2/async/stream_single_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the Stream.single method. library stream_single_test; diff --git a/tests/lib_2/async/stream_single_to_multi_subscriber_test.dart b/tests/lib_2/async/stream_single_to_multi_subscriber_test.dart index e422a8d9eeb..db68a582e58 100644 --- a/tests/lib_2/async/stream_single_to_multi_subscriber_test.dart +++ b/tests/lib_2/async/stream_single_to_multi_subscriber_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the basic StreamController and StreamController.singleSubscription. library stream_single_test; diff --git a/tests/lib_2/async/stream_state_helper.dart b/tests/lib_2/async/stream_state_helper.dart index 6178495e067..1a5289f5151 100644 --- a/tests/lib_2/async/stream_state_helper.dart +++ b/tests/lib_2/async/stream_state_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library stream_state_helper; import 'dart:async'; diff --git a/tests/lib_2/async/stream_state_nonzero_timer_test.dart b/tests/lib_2/async/stream_state_nonzero_timer_test.dart index 8c7c11551ae..2b7ef1148f7 100644 --- a/tests/lib_2/async/stream_state_nonzero_timer_test.dart +++ b/tests/lib_2/async/stream_state_nonzero_timer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the event/callback protocol of the stream implementations. // Uses a non-zero timer so it fails on d8. diff --git a/tests/lib_2/async/stream_state_test.dart b/tests/lib_2/async/stream_state_test.dart index 651f74d8bfb..6ea0b137aae 100644 --- a/tests/lib_2/async/stream_state_test.dart +++ b/tests/lib_2/async/stream_state_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the event/callback protocol of the stream implementations. library stream_state_test; diff --git a/tests/lib_2/async/stream_subscription_as_future_test.dart b/tests/lib_2/async/stream_subscription_as_future_test.dart index 55f2c290438..131ac391a6f 100644 --- a/tests/lib_2/async/stream_subscription_as_future_test.dart +++ b/tests/lib_2/async/stream_subscription_as_future_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the Stream.single method. library stream_single_test; diff --git a/tests/lib_2/async/stream_subscription_cancel_test.dart b/tests/lib_2/async/stream_subscription_cancel_test.dart index 017bac53a73..db8062e3f76 100644 --- a/tests/lib_2/async/stream_subscription_cancel_test.dart +++ b/tests/lib_2/async/stream_subscription_cancel_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the StreamSubscription.cancel return Future. library stream_subscription_cancel; diff --git a/tests/lib_2/async/stream_take_test.dart b/tests/lib_2/async/stream_take_test.dart index 853cc77250c..2b193321a42 100644 --- a/tests/lib_2/async/stream_take_test.dart +++ b/tests/lib_2/async/stream_take_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/lib_2/async/stream_timeout_test.dart b/tests/lib_2/async/stream_timeout_test.dart index d0ddc0dedaf..e632d4ef3a2 100644 --- a/tests/lib_2/async/stream_timeout_test.dart +++ b/tests/lib_2/async/stream_timeout_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/async/stream_transform_test.dart b/tests/lib_2/async/stream_transform_test.dart index e8ac505415b..955b9ff84b0 100644 --- a/tests/lib_2/async/stream_transform_test.dart +++ b/tests/lib_2/async/stream_transform_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library stream_transform_test; import 'dart:async'; diff --git a/tests/lib_2/async/stream_transformation_broadcast_test.dart b/tests/lib_2/async/stream_transformation_broadcast_test.dart index 839933f6e28..34ec9eb2482 100644 --- a/tests/lib_2/async/stream_transformation_broadcast_test.dart +++ b/tests/lib_2/async/stream_transformation_broadcast_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that transformations like `map` and `where` preserve broadcast flag. library stream_join_test; diff --git a/tests/lib_2/async/stream_transformer_from_bind_test.dart b/tests/lib_2/async/stream_transformer_from_bind_test.dart index fcc63a1cc53..6908de16309 100644 --- a/tests/lib_2/async/stream_transformer_from_bind_test.dart +++ b/tests/lib_2/async/stream_transformer_from_bind_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import "package:async_helper/async_helper.dart"; diff --git a/tests/lib_2/async/stream_transformer_from_handlers_test.dart b/tests/lib_2/async/stream_transformer_from_handlers_test.dart index 53637741d6a..6b5a95e44e3 100644 --- a/tests/lib_2/async/stream_transformer_from_handlers_test.dart +++ b/tests/lib_2/async/stream_transformer_from_handlers_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stream_transformer_test.dart b/tests/lib_2/async/stream_transformer_test.dart index 9f89f6a636e..7905a622381 100644 --- a/tests/lib_2/async/stream_transformer_test.dart +++ b/tests/lib_2/async/stream_transformer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/stream_type_test.dart b/tests/lib_2/async/stream_type_test.dart index 2a76d73fab1..11358d27b8f 100644 --- a/tests/lib_2/async/stream_type_test.dart +++ b/tests/lib_2/async/stream_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/lib_2/async/stream_value_test.dart b/tests/lib_2/async/stream_value_test.dart index 75b6c8808be..ff5dec1d9ff 100644 --- a/tests/lib_2/async/stream_value_test.dart +++ b/tests/lib_2/async/stream_value_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/lib_2/async/stream_view_test.dart b/tests/lib_2/async/stream_view_test.dart index 6bc0ee69d73..def705acd26 100644 --- a/tests/lib_2/async/stream_view_test.dart +++ b/tests/lib_2/async/stream_view_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests the StreamView class. import "package:expect/expect.dart"; diff --git a/tests/lib_2/async/stream_zones_test.dart b/tests/lib_2/async/stream_zones_test.dart index 9f382ba77df..e02385de5e8 100644 --- a/tests/lib_2/async/stream_zones_test.dart +++ b/tests/lib_2/async/stream_zones_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:async_helper/async_helper.dart'; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/lib_2/async/timer_cancel1_test.dart b/tests/lib_2/async/timer_cancel1_test.dart index 1295e9608a3..e0c7901ade9 100644 --- a/tests/lib_2/async/timer_cancel1_test.dart +++ b/tests/lib_2/async/timer_cancel1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library timer_cancel1_test; import 'dart:async'; diff --git a/tests/lib_2/async/timer_cancel2_test.dart b/tests/lib_2/async/timer_cancel2_test.dart index 7b3d0e23b44..1a9fc4a1def 100644 --- a/tests/lib_2/async/timer_cancel2_test.dart +++ b/tests/lib_2/async/timer_cancel2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library timer_cancel2_test; import 'dart:async'; diff --git a/tests/lib_2/async/timer_cancel_test.dart b/tests/lib_2/async/timer_cancel_test.dart index 475bc9171a5..310995df35f 100644 --- a/tests/lib_2/async/timer_cancel_test.dart +++ b/tests/lib_2/async/timer_cancel_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library timer_cancel_test; import 'dart:async'; diff --git a/tests/lib_2/async/timer_isActive_test.dart b/tests/lib_2/async/timer_isActive_test.dart index b688b21ee21..01a937a8349 100644 --- a/tests/lib_2/async/timer_isActive_test.dart +++ b/tests/lib_2/async/timer_isActive_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/async/timer_repeat_test.dart b/tests/lib_2/async/timer_repeat_test.dart index afe19575977..7cc7f6de5fd 100644 --- a/tests/lib_2/async/timer_repeat_test.dart +++ b/tests/lib_2/async/timer_repeat_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library timer_repeat_test; import 'dart:async'; diff --git a/tests/lib_2/async/timer_test.dart b/tests/lib_2/async/timer_test.dart index 220ac051f33..51500d29b8e 100644 --- a/tests/lib_2/async/timer_test.dart +++ b/tests/lib_2/async/timer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library timer_test; import 'dart:async'; diff --git a/tests/lib_2/async/uncaught_error_handler_throws_test.dart b/tests/lib_2/async/uncaught_error_handler_throws_test.dart index f70f0987b29..e5790af0199 100644 --- a/tests/lib_2/async/uncaught_error_handler_throws_test.dart +++ b/tests/lib_2/async/uncaught_error_handler_throws_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/wait_for_cancel_test.dart b/tests/lib_2/async/wait_for_cancel_test.dart index 7c400849ff9..aed799be04c 100644 --- a/tests/lib_2/async/wait_for_cancel_test.dart +++ b/tests/lib_2/async/wait_for_cancel_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/lib_2/async/zone_async_error_test.dart b/tests/lib_2/async/zone_async_error_test.dart index ad3709de6c9..73840d422dc 100644 --- a/tests/lib_2/async/zone_async_error_test.dart +++ b/tests/lib_2/async/zone_async_error_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2020, 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 = 2.9 import 'dart:async'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/async/zone_bind_callback_test.dart b/tests/lib_2/async/zone_bind_callback_test.dart index dd85df54ec2..234be15dca0 100644 --- a/tests/lib_2/async/zone_bind_callback_test.dart +++ b/tests/lib_2/async/zone_bind_callback_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_bind_callback_unary_test.dart b/tests/lib_2/async/zone_bind_callback_unary_test.dart index f063fbd2ec3..8bf937fbbd0 100644 --- a/tests/lib_2/async/zone_bind_callback_unary_test.dart +++ b/tests/lib_2/async/zone_bind_callback_unary_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_bind_test.dart b/tests/lib_2/async/zone_bind_test.dart index a0ab5039e8a..2920d146cbc 100644 --- a/tests/lib_2/async/zone_bind_test.dart +++ b/tests/lib_2/async/zone_bind_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_create_periodic_timer_test.dart b/tests/lib_2/async/zone_create_periodic_timer_test.dart index d6c105e84a5..2b48d908555 100644 --- a/tests/lib_2/async/zone_create_periodic_timer_test.dart +++ b/tests/lib_2/async/zone_create_periodic_timer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_create_timer2_test.dart b/tests/lib_2/async/zone_create_timer2_test.dart index 4608e88cf79..623d895eac0 100644 --- a/tests/lib_2/async/zone_create_timer2_test.dart +++ b/tests/lib_2/async/zone_create_timer2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_create_timer_test.dart b/tests/lib_2/async/zone_create_timer_test.dart index 883ee591147..5958b2e4607 100644 --- a/tests/lib_2/async/zone_create_timer_test.dart +++ b/tests/lib_2/async/zone_create_timer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_debug_test.dart b/tests/lib_2/async/zone_debug_test.dart index 69576306d19..916da2f4b40 100644 --- a/tests/lib_2/async/zone_debug_test.dart +++ b/tests/lib_2/async/zone_debug_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_empty_description2_test.dart b/tests/lib_2/async/zone_empty_description2_test.dart index d9af3b8c86c..f99a70ab484 100644 --- a/tests/lib_2/async/zone_empty_description2_test.dart +++ b/tests/lib_2/async/zone_empty_description2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_empty_description_test.dart b/tests/lib_2/async/zone_empty_description_test.dart index 8cef1f9cd78..c88a922f880 100644 --- a/tests/lib_2/async/zone_empty_description_test.dart +++ b/tests/lib_2/async/zone_empty_description_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_error_callback_test.dart b/tests/lib_2/async/zone_error_callback_test.dart index 5ad373e6fa8..df9b9b3b3b4 100644 --- a/tests/lib_2/async/zone_error_callback_test.dart +++ b/tests/lib_2/async/zone_error_callback_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_fork_test.dart b/tests/lib_2/async/zone_fork_test.dart index e72e06cf9ac..558a8048b1c 100644 --- a/tests/lib_2/async/zone_fork_test.dart +++ b/tests/lib_2/async/zone_fork_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_future_schedule_microtask_test.dart b/tests/lib_2/async/zone_future_schedule_microtask_test.dart index 9d8f8bccd73..b4c4cbd0711 100644 --- a/tests/lib_2/async/zone_future_schedule_microtask_test.dart +++ b/tests/lib_2/async/zone_future_schedule_microtask_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/async/zone_register_callback_test.dart b/tests/lib_2/async/zone_register_callback_test.dart index 9825e0f189c..d008920d762 100644 --- a/tests/lib_2/async/zone_register_callback_test.dart +++ b/tests/lib_2/async/zone_register_callback_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_register_callback_unary_test.dart b/tests/lib_2/async/zone_register_callback_unary_test.dart index ae5cbfbe54f..5fe037da3a7 100644 --- a/tests/lib_2/async/zone_register_callback_unary_test.dart +++ b/tests/lib_2/async/zone_register_callback_unary_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_root_bind_test.dart b/tests/lib_2/async/zone_root_bind_test.dart index 34bcdad426b..5a545e7371e 100644 --- a/tests/lib_2/async/zone_root_bind_test.dart +++ b/tests/lib_2/async/zone_root_bind_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_run_guarded_test.dart b/tests/lib_2/async/zone_run_guarded_test.dart index 61b0f770ef1..b1ea88dcce5 100644 --- a/tests/lib_2/async/zone_run_guarded_test.dart +++ b/tests/lib_2/async/zone_run_guarded_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_run_test.dart b/tests/lib_2/async/zone_run_test.dart index 5c319d0dfd5..6f89937942f 100644 --- a/tests/lib_2/async/zone_run_test.dart +++ b/tests/lib_2/async/zone_run_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_run_unary_test.dart b/tests/lib_2/async/zone_run_unary_test.dart index ebf78ee35d0..beb7f3271ad 100644 --- a/tests/lib_2/async/zone_run_unary_test.dart +++ b/tests/lib_2/async/zone_run_unary_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/async/zone_value_test.dart b/tests/lib_2/async/zone_value_test.dart index 78417761da9..8be36a03031 100644 --- a/tests/lib_2/async/zone_value_test.dart +++ b/tests/lib_2/async/zone_value_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:async'; diff --git a/tests/lib_2/collection/hash_map_test.dart b/tests/lib_2/collection/hash_map_test.dart index 3d7ff9d37d9..98eab63e61b 100644 --- a/tests/lib_2/collection/hash_map_test.dart +++ b/tests/lib_2/collection/hash_map_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection"; import "package:expect/expect.dart"; diff --git a/tests/lib_2/collection/hash_set_test.dart b/tests/lib_2/collection/hash_set_test.dart index c8ede1f9aa1..67827b8a850 100644 --- a/tests/lib_2/collection/hash_set_test.dart +++ b/tests/lib_2/collection/hash_set_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:collection"; import "package:expect/expect.dart"; diff --git a/tests/lib_2/collection/linked_list_test.dart b/tests/lib_2/collection/linked_list_test.dart index dd73a0a6df6..210cd7ab839 100644 --- a/tests/lib_2/collection/linked_list_test.dart +++ b/tests/lib_2/collection/linked_list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import "package:expect/expect.dart"; diff --git a/tests/lib_2/collection/list_test.dart b/tests/lib_2/collection/list_test.dart index 31bb61b2170..04f7c2c9ae5 100644 --- a/tests/lib_2/collection/list_test.dart +++ b/tests/lib_2/collection/list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import "package:expect/expect.dart"; diff --git a/tests/lib_2/convert/ascii_test.dart b/tests/lib_2/convert/ascii_test.dart index 7b674179f61..fa72dc6818e 100644 --- a/tests/lib_2/convert/ascii_test.dart +++ b/tests/lib_2/convert/ascii_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:convert'; diff --git a/tests/lib_2/convert/base64_test.dart b/tests/lib_2/convert/base64_test.dart index 6e85a7c305b..fdc10d9da8b 100644 --- a/tests/lib_2/convert/base64_test.dart +++ b/tests/lib_2/convert/base64_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:convert'; import "dart:typed_data"; import "package:expect/expect.dart"; diff --git a/tests/lib_2/convert/chunked_conversion1_test.dart b/tests/lib_2/convert/chunked_conversion1_test.dart index cfbad2406d9..fc1667607e8 100644 --- a/tests/lib_2/convert/chunked_conversion1_test.dart +++ b/tests/lib_2/convert/chunked_conversion1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:convert'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/convert/chunked_conversion2_test.dart b/tests/lib_2/convert/chunked_conversion2_test.dart index ca37d101c64..93592ad774e 100644 --- a/tests/lib_2/convert/chunked_conversion2_test.dart +++ b/tests/lib_2/convert/chunked_conversion2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:convert'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/convert/chunked_conversion_json_decode1_test.dart b/tests/lib_2/convert/chunked_conversion_json_decode1_test.dart index 7a29b9c4fbc..ddfa29b9768 100644 --- a/tests/lib_2/convert/chunked_conversion_json_decode1_test.dart +++ b/tests/lib_2/convert/chunked_conversion_json_decode1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:convert'; diff --git a/tests/lib_2/convert/chunked_conversion_json_encode1_test.dart b/tests/lib_2/convert/chunked_conversion_json_encode1_test.dart index 6cbd728bec1..4a994b115fb 100644 --- a/tests/lib_2/convert/chunked_conversion_json_encode1_test.dart +++ b/tests/lib_2/convert/chunked_conversion_json_encode1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:convert'; diff --git a/tests/lib_2/convert/chunked_conversion_utf82_test.dart b/tests/lib_2/convert/chunked_conversion_utf82_test.dart index 2e07f87f447..13f06438064 100644 --- a/tests/lib_2/convert/chunked_conversion_utf82_test.dart +++ b/tests/lib_2/convert/chunked_conversion_utf82_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library utf8_test; import "package:expect/expect.dart"; diff --git a/tests/lib_2/convert/chunked_conversion_utf83_test.dart b/tests/lib_2/convert/chunked_conversion_utf83_test.dart index a8818a2cf01..f8a1ad6607f 100644 --- a/tests/lib_2/convert/chunked_conversion_utf83_test.dart +++ b/tests/lib_2/convert/chunked_conversion_utf83_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // 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. diff --git a/tests/lib_2/convert/chunked_conversion_utf84_test.dart b/tests/lib_2/convert/chunked_conversion_utf84_test.dart index 977d8d5227b..442387a1051 100644 --- a/tests/lib_2/convert/chunked_conversion_utf84_test.dart +++ b/tests/lib_2/convert/chunked_conversion_utf84_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:convert'; import 'unicode_tests.dart'; diff --git a/tests/lib_2/convert/chunked_conversion_utf85_test.dart b/tests/lib_2/convert/chunked_conversion_utf85_test.dart index 68f58f96d48..0b8b0559a23 100644 --- a/tests/lib_2/convert/chunked_conversion_utf85_test.dart +++ b/tests/lib_2/convert/chunked_conversion_utf85_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:convert'; import 'unicode_tests.dart'; diff --git a/tests/lib_2/convert/chunked_conversion_utf86_test.dart b/tests/lib_2/convert/chunked_conversion_utf86_test.dart index 8c9a08c39fd..3873c6b85ec 100644 --- a/tests/lib_2/convert/chunked_conversion_utf86_test.dart +++ b/tests/lib_2/convert/chunked_conversion_utf86_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:convert'; diff --git a/tests/lib_2/convert/chunked_conversion_utf87_test.dart b/tests/lib_2/convert/chunked_conversion_utf87_test.dart index 67929af0b99..fd94ff9553a 100644 --- a/tests/lib_2/convert/chunked_conversion_utf87_test.dart +++ b/tests/lib_2/convert/chunked_conversion_utf87_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:convert'; diff --git a/tests/lib_2/convert/chunked_conversion_utf88_test.dart b/tests/lib_2/convert/chunked_conversion_utf88_test.dart index 8b19b2a15d2..5e28b35b215 100644 --- a/tests/lib_2/convert/chunked_conversion_utf88_test.dart +++ b/tests/lib_2/convert/chunked_conversion_utf88_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library utf8_test; import "package:expect/expect.dart"; diff --git a/tests/lib_2/convert/chunked_conversion_utf89_test.dart b/tests/lib_2/convert/chunked_conversion_utf89_test.dart index 45ef79b3071..748bfebc3ec 100644 --- a/tests/lib_2/convert/chunked_conversion_utf89_test.dart +++ b/tests/lib_2/convert/chunked_conversion_utf89_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:convert'; diff --git a/tests/lib_2/convert/chunked_conversion_utf8_test.dart b/tests/lib_2/convert/chunked_conversion_utf8_test.dart index db5380bac59..d58ff35cd48 100644 --- a/tests/lib_2/convert/chunked_conversion_utf8_test.dart +++ b/tests/lib_2/convert/chunked_conversion_utf8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:convert'; import 'unicode_tests.dart'; diff --git a/tests/lib_2/convert/close_test.dart b/tests/lib_2/convert/close_test.dart index b8e8f0a1082..5bf08effed4 100644 --- a/tests/lib_2/convert/close_test.dart +++ b/tests/lib_2/convert/close_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:convert"; diff --git a/tests/lib_2/convert/codec1_test.dart b/tests/lib_2/convert/codec1_test.dart index 5b5d9b3bf08..70c013e22ce 100644 --- a/tests/lib_2/convert/codec1_test.dart +++ b/tests/lib_2/convert/codec1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:convert'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/convert/codec2_test.dart b/tests/lib_2/convert/codec2_test.dart index 7af8d1a2929..18bf5f44fbf 100644 --- a/tests/lib_2/convert/codec2_test.dart +++ b/tests/lib_2/convert/codec2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:convert'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/convert/encoding_test.dart b/tests/lib_2/convert/encoding_test.dart index 3ad25fe84fb..ece01068ad0 100644 --- a/tests/lib_2/convert/encoding_test.dart +++ b/tests/lib_2/convert/encoding_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'dart:convert'; diff --git a/tests/lib_2/convert/html_escape_test.dart b/tests/lib_2/convert/html_escape_test.dart index f40c18d7544..3603447fc28 100644 --- a/tests/lib_2/convert/html_escape_test.dart +++ b/tests/lib_2/convert/html_escape_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'dart:convert'; diff --git a/tests/lib_2/convert/json_chunk_test.dart b/tests/lib_2/convert/json_chunk_test.dart index 953f2b37af7..8fb5df54552 100644 --- a/tests/lib_2/convert/json_chunk_test.dart +++ b/tests/lib_2/convert/json_chunk_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library json_test; import "package:expect/expect.dart"; diff --git a/tests/lib_2/convert/json_lib_test.dart b/tests/lib_2/convert/json_lib_test.dart index 42db73068a1..190637a6a9e 100644 --- a/tests/lib_2/convert/json_lib_test.dart +++ b/tests/lib_2/convert/json_lib_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'dart:convert'; diff --git a/tests/lib_2/convert/json_pretty_test.dart b/tests/lib_2/convert/json_pretty_test.dart index 86a5bbebe65..f95eb9e3894 100644 --- a/tests/lib_2/convert/json_pretty_test.dart +++ b/tests/lib_2/convert/json_pretty_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Note: This test relies on LF line endings in the source file. // It requires an entry in the .gitattributes file. diff --git a/tests/lib_2/convert/json_test.dart b/tests/lib_2/convert/json_test.dart index 8ebfe63e489..53ace84e388 100644 --- a/tests/lib_2/convert/json_test.dart +++ b/tests/lib_2/convert/json_test.dart @@ -4,6 +4,8 @@ // Disable background compilation so that the Issue 24908 can be reproduced. // VMOptions=--no-background-compilation +// @dart = 2.9 + library json_test; import "package:expect/expect.dart"; diff --git a/tests/lib_2/convert/json_toEncodable_reviver_test.dart b/tests/lib_2/convert/json_toEncodable_reviver_test.dart index f5f83136c71..d247cce324a 100644 --- a/tests/lib_2/convert/json_toEncodable_reviver_test.dart +++ b/tests/lib_2/convert/json_toEncodable_reviver_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library json_tests; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/convert/json_unicode_tests.dart b/tests/lib_2/convert/json_unicode_tests.dart index 5403c619538..30d6a28c142 100644 --- a/tests/lib_2/convert/json_unicode_tests.dart +++ b/tests/lib_2/convert/json_unicode_tests.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library json_unicode_tests; import 'unicode_tests.dart'; diff --git a/tests/lib_2/convert/json_utf8_chunk_test.dart b/tests/lib_2/convert/json_utf8_chunk_test.dart index cf5064ed823..99379b7ac38 100644 --- a/tests/lib_2/convert/json_utf8_chunk_test.dart +++ b/tests/lib_2/convert/json_utf8_chunk_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test; import "package:expect/expect.dart"; diff --git a/tests/lib_2/convert/json_utf8_test.dart b/tests/lib_2/convert/json_utf8_test.dart index 6afae4d8052..f0afc40a5fe 100644 --- a/tests/lib_2/convert/json_utf8_test.dart +++ b/tests/lib_2/convert/json_utf8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that the fused UTF-8/JSON decoder accepts a leading BOM. library test; diff --git a/tests/lib_2/convert/json_util_test.dart b/tests/lib_2/convert/json_util_test.dart index bf945f9f17b..4c5b212d121 100644 --- a/tests/lib_2/convert/json_util_test.dart +++ b/tests/lib_2/convert/json_util_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library jsonTest; import "package:expect/expect.dart"; diff --git a/tests/lib_2/convert/latin1_test.dart b/tests/lib_2/convert/latin1_test.dart index aed31712ae0..4e1355d0581 100644 --- a/tests/lib_2/convert/latin1_test.dart +++ b/tests/lib_2/convert/latin1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:convert'; diff --git a/tests/lib_2/convert/line_splitter_test.dart b/tests/lib_2/convert/line_splitter_test.dart index 747e7bddaf1..a1d257136b4 100644 --- a/tests/lib_2/convert/line_splitter_test.dart +++ b/tests/lib_2/convert/line_splitter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library line_splitter_test; import "package:expect/expect.dart"; diff --git a/tests/lib_2/convert/streamed_conversion_json_decode1_test.dart b/tests/lib_2/convert/streamed_conversion_json_decode1_test.dart index 8c6416e0b1b..0647f441d05 100644 --- a/tests/lib_2/convert/streamed_conversion_json_decode1_test.dart +++ b/tests/lib_2/convert/streamed_conversion_json_decode1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'dart:convert'; diff --git a/tests/lib_2/convert/streamed_conversion_json_encode1_test.dart b/tests/lib_2/convert/streamed_conversion_json_encode1_test.dart index e5d7485bc77..2aa76a7f2f9 100644 --- a/tests/lib_2/convert/streamed_conversion_json_encode1_test.dart +++ b/tests/lib_2/convert/streamed_conversion_json_encode1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'dart:convert'; diff --git a/tests/lib_2/convert/streamed_conversion_json_utf8_decode_test.dart b/tests/lib_2/convert/streamed_conversion_json_utf8_decode_test.dart index baf43229041..9faad73a8af 100644 --- a/tests/lib_2/convert/streamed_conversion_json_utf8_decode_test.dart +++ b/tests/lib_2/convert/streamed_conversion_json_utf8_decode_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions= // VMOptions=--verify_before_gc // VMOptions=--verify_after_gc diff --git a/tests/lib_2/convert/streamed_conversion_json_utf8_encode_test.dart b/tests/lib_2/convert/streamed_conversion_json_utf8_encode_test.dart index c4f1a444eab..d9d776dff01 100644 --- a/tests/lib_2/convert/streamed_conversion_json_utf8_encode_test.dart +++ b/tests/lib_2/convert/streamed_conversion_json_utf8_encode_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'dart:convert'; diff --git a/tests/lib_2/convert/streamed_conversion_utf8_decode_test.dart b/tests/lib_2/convert/streamed_conversion_utf8_decode_test.dart index d903db61219..10424b7c555 100644 --- a/tests/lib_2/convert/streamed_conversion_utf8_decode_test.dart +++ b/tests/lib_2/convert/streamed_conversion_utf8_decode_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'dart:convert'; diff --git a/tests/lib_2/convert/streamed_conversion_utf8_encode_test.dart b/tests/lib_2/convert/streamed_conversion_utf8_encode_test.dart index 3daba03c83e..d260db50e01 100644 --- a/tests/lib_2/convert/streamed_conversion_utf8_encode_test.dart +++ b/tests/lib_2/convert/streamed_conversion_utf8_encode_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'dart:convert'; diff --git a/tests/lib_2/convert/unicode_tests.dart b/tests/lib_2/convert/unicode_tests.dart index 9f0493bce29..0c8090679c1 100644 --- a/tests/lib_2/convert/unicode_tests.dart +++ b/tests/lib_2/convert/unicode_tests.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library unicode_tests; // Google favorite: "Îñţérñåţîöñåļîžåţîờñ". diff --git a/tests/lib_2/convert/utf82_test.dart b/tests/lib_2/convert/utf82_test.dart index cf0c2b0585e..7aa483f9ad3 100644 --- a/tests/lib_2/convert/utf82_test.dart +++ b/tests/lib_2/convert/utf82_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library utf8_test; import "package:expect/expect.dart"; diff --git a/tests/lib_2/convert/utf83_test.dart b/tests/lib_2/convert/utf83_test.dart index 6972c115e4b..2a980c18527 100644 --- a/tests/lib_2/convert/utf83_test.dart +++ b/tests/lib_2/convert/utf83_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library utf8_test; import "package:expect/expect.dart"; diff --git a/tests/lib_2/convert/utf84_test.dart b/tests/lib_2/convert/utf84_test.dart index 566b1fa54bd..639504a4b4b 100755 --- a/tests/lib_2/convert/utf84_test.dart +++ b/tests/lib_2/convert/utf84_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'dart:convert'; import 'dart:typed_data' show Uint8List; diff --git a/tests/lib_2/convert/utf85_test.dart b/tests/lib_2/convert/utf85_test.dart index a3809918a8f..75e05e1c4f0 100644 --- a/tests/lib_2/convert/utf85_test.dart +++ b/tests/lib_2/convert/utf85_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library utf8_test; import "package:expect/expect.dart"; diff --git a/tests/lib_2/convert/utf8_encode_test.dart b/tests/lib_2/convert/utf8_encode_test.dart index 0a43e1452f1..66ee3774f60 100644 --- a/tests/lib_2/convert/utf8_encode_test.dart +++ b/tests/lib_2/convert/utf8_encode_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:convert'; import 'unicode_tests.dart'; diff --git a/tests/lib_2/convert/utf8_test.dart b/tests/lib_2/convert/utf8_test.dart index 6f97fd06770..d92b0d6dff9 100644 --- a/tests/lib_2/convert/utf8_test.dart +++ b/tests/lib_2/convert/utf8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:convert'; import 'dart:typed_data' show Uint8List; diff --git a/tests/lib_2/developer/inspect_test.dart b/tests/lib_2/developer/inspect_test.dart index 9f062150117..80cf966af00 100644 --- a/tests/lib_2/developer/inspect_test.dart +++ b/tests/lib_2/developer/inspect_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:developer'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/developer/metrics_num_test.dart b/tests/lib_2/developer/metrics_num_test.dart index 4fc829c752f..a198f8348c6 100644 --- a/tests/lib_2/developer/metrics_num_test.dart +++ b/tests/lib_2/developer/metrics_num_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import 'dart:developer'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/developer/metrics_test.dart b/tests/lib_2/developer/metrics_test.dart index fe33175a2aa..e91d3c221c9 100644 --- a/tests/lib_2/developer/metrics_test.dart +++ b/tests/lib_2/developer/metrics_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import 'dart:developer'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/developer/timeline_recorders_test.dart b/tests/lib_2/developer/timeline_recorders_test.dart index 349cbbaf004..e0a82f0f45f 100644 --- a/tests/lib_2/developer/timeline_recorders_test.dart +++ b/tests/lib_2/developer/timeline_recorders_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// VMOptions=--timeline_streams=VM,Isolate,GC,Dart --timeline_recorder=endless /// VMOptions=--timeline_streams=VM,Isolate,GC,Dart --timeline_recorder=ring /// VMOptions=--timeline_streams=VM,Isolate,GC,Dart --timeline_recorder=startup diff --git a/tests/lib_2/developer/timeline_test.dart b/tests/lib_2/developer/timeline_test.dart index fab8e932e0e..6e96e2a00eb 100644 --- a/tests/lib_2/developer/timeline_test.dart +++ b/tests/lib_2/developer/timeline_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:developer'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/developer/user_tags_test.dart b/tests/lib_2/developer/user_tags_test.dart index c22e3731e58..16581bd4b71 100644 --- a/tests/lib_2/developer/user_tags_test.dart +++ b/tests/lib_2/developer/user_tags_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import 'dart:developer'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/html/async_cancellingisolate.dart b/tests/lib_2/html/async_cancellingisolate.dart index fe0096b84f2..50ce4186ed3 100644 --- a/tests/lib_2/html/async_cancellingisolate.dart +++ b/tests/lib_2/html/async_cancellingisolate.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library async_cancellingisolate; import 'dart:async'; diff --git a/tests/lib_2/html/async_oneshot.dart b/tests/lib_2/html/async_oneshot.dart index 718a1d1d7e2..55827b17b7d 100644 --- a/tests/lib_2/html/async_oneshot.dart +++ b/tests/lib_2/html/async_oneshot.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:async'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/async_periodictimer.dart b/tests/lib_2/html/async_periodictimer.dart index 3205d046f41..55c468ee93d 100644 --- a/tests/lib_2/html/async_periodictimer.dart +++ b/tests/lib_2/html/async_periodictimer.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library async_periodictimer; import 'dart:async'; diff --git a/tests/lib_2/html/async_test.dart b/tests/lib_2/html/async_test.dart index dd209fbe281..7812c7c6940 100644 --- a/tests/lib_2/html/async_test.dart +++ b/tests/lib_2/html/async_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library async_test; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/audiobuffersourcenode_test.dart b/tests/lib_2/html/audiobuffersourcenode_test.dart index 9c98cf04e29..fd79b01b250 100644 --- a/tests/lib_2/html/audiobuffersourcenode_test.dart +++ b/tests/lib_2/html/audiobuffersourcenode_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:web_audio'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/audiocontext_test.dart b/tests/lib_2/html/audiocontext_test.dart index be99945d659..b66e54b293b 100644 --- a/tests/lib_2/html/audiocontext_test.dart +++ b/tests/lib_2/html/audiocontext_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:async'; import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/audioelement_test.dart b/tests/lib_2/html/audioelement_test.dart index 53133b71f2b..e438afb1290 100644 --- a/tests/lib_2/html/audioelement_test.dart +++ b/tests/lib_2/html/audioelement_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/b_element_test.dart b/tests/lib_2/html/b_element_test.dart index 3dbb0e70f25..5083b759cc4 100644 --- a/tests/lib_2/html/b_element_test.dart +++ b/tests/lib_2/html/b_element_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; main() { diff --git a/tests/lib_2/html/blob_constructor_test.dart b/tests/lib_2/html/blob_constructor_test.dart index d5f5d34ab05..6f17fd87b8f 100644 --- a/tests/lib_2/html/blob_constructor_test.dart +++ b/tests/lib_2/html/blob_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/cache_test.dart b/tests/lib_2/html/cache_test.dart index 06b4258106e..0200cf15305 100644 --- a/tests/lib_2/html/cache_test.dart +++ b/tests/lib_2/html/cache_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/callback_list_test.dart b/tests/lib_2/html/callback_list_test.dart index df22d1753cf..1a90f169edd 100644 --- a/tests/lib_2/html/callback_list_test.dart +++ b/tests/lib_2/html/callback_list_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library callback_list_test; import 'dart:html'; diff --git a/tests/lib_2/html/callbacks_test.dart b/tests/lib_2/html/callbacks_test.dart index 7afeae5bacf..eae0b1e12f9 100644 --- a/tests/lib_2/html/callbacks_test.dart +++ b/tests/lib_2/html/callbacks_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; main() { diff --git a/tests/lib_2/html/canvas_pixel_array_type_alias_test.dart b/tests/lib_2/html/canvas_pixel_array_type_alias_test.dart index f77e9b0abf6..8b511e95186 100644 --- a/tests/lib_2/html/canvas_pixel_array_type_alias_test.dart +++ b/tests/lib_2/html/canvas_pixel_array_type_alias_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/canvas_test.dart b/tests/lib_2/html/canvas_test.dart index 730ab7b63a7..52ddd32d749 100644 --- a/tests/lib_2/html/canvas_test.dart +++ b/tests/lib_2/html/canvas_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library CanvasTest; import 'dart:html'; diff --git a/tests/lib_2/html/canvasrendering/arc_test.dart b/tests/lib_2/html/canvasrendering/arc_test.dart index d60fb1eafa5..ff393867c85 100644 --- a/tests/lib_2/html/canvasrendering/arc_test.dart +++ b/tests/lib_2/html/canvasrendering/arc_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library canvas_rendering_context_2d_test; import 'dart:html'; diff --git a/tests/lib_2/html/canvasrendering/canvas_rendering_util.dart b/tests/lib_2/html/canvasrendering/canvas_rendering_util.dart index 037da9e8651..09e8984cd09 100644 --- a/tests/lib_2/html/canvasrendering/canvas_rendering_util.dart +++ b/tests/lib_2/html/canvasrendering/canvas_rendering_util.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library canvas_rendering_context_2d_test; import 'dart:html'; diff --git a/tests/lib_2/html/canvasrendering/draw_image_canvas_element_test.dart b/tests/lib_2/html/canvasrendering/draw_image_canvas_element_test.dart index 942c8f6a18b..d7117d96935 100644 --- a/tests/lib_2/html/canvasrendering/draw_image_canvas_element_test.dart +++ b/tests/lib_2/html/canvasrendering/draw_image_canvas_element_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library canvas_rendering_context_2d_test; import 'dart:html'; diff --git a/tests/lib_2/html/canvasrendering/draw_image_video_element_test.dart b/tests/lib_2/html/canvasrendering/draw_image_video_element_test.dart index e2899d78aa3..e8304d14c4c 100644 --- a/tests/lib_2/html/canvasrendering/draw_image_video_element_test.dart +++ b/tests/lib_2/html/canvasrendering/draw_image_video_element_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library canvas_rendering_context_2d_test; import 'dart:async'; diff --git a/tests/lib_2/html/canvasrendering/fill_text_test.dart b/tests/lib_2/html/canvasrendering/fill_text_test.dart index fe44d253e9f..ad9381fa3fe 100644 --- a/tests/lib_2/html/canvasrendering/fill_text_test.dart +++ b/tests/lib_2/html/canvasrendering/fill_text_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library canvas_rendering_context_2d_test; import 'dart:html'; diff --git a/tests/lib_2/html/canvasrendering/image_element_test.dart b/tests/lib_2/html/canvasrendering/image_element_test.dart index a1d8040c21c..c5ee1d14ca5 100644 --- a/tests/lib_2/html/canvasrendering/image_element_test.dart +++ b/tests/lib_2/html/canvasrendering/image_element_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library canvas_rendering_context_2d_test; import 'dart:async'; diff --git a/tests/lib_2/html/canvasrendering/pixel_manipulation_test.dart b/tests/lib_2/html/canvasrendering/pixel_manipulation_test.dart index 586072ab12d..24e9e45ecd2 100644 --- a/tests/lib_2/html/canvasrendering/pixel_manipulation_test.dart +++ b/tests/lib_2/html/canvasrendering/pixel_manipulation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library canvas_rendering_context_2d_test; import 'dart:html'; diff --git a/tests/lib_2/html/cdata_test.dart b/tests/lib_2/html/cdata_test.dart index 60c311a251b..168ab1d5e1b 100644 --- a/tests/lib_2/html/cdata_test.dart +++ b/tests/lib_2/html/cdata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/client_rect_test.dart b/tests/lib_2/html/client_rect_test.dart index 10d84b225f0..056d851d0e9 100644 --- a/tests/lib_2/html/client_rect_test.dart +++ b/tests/lib_2/html/client_rect_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/cross_domain_iframe_test.dart b/tests/lib_2/html/cross_domain_iframe_test.dart index a903a32f1c8..d49025fbc7a 100644 --- a/tests/lib_2/html/cross_domain_iframe_test.dart +++ b/tests/lib_2/html/cross_domain_iframe_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/cross_frame_test.dart b/tests/lib_2/html/cross_frame_test.dart index 030f3b8f398..4dcf5628251 100644 --- a/tests/lib_2/html/cross_frame_test.dart +++ b/tests/lib_2/html/cross_frame_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/crypto_test.dart b/tests/lib_2/html/crypto_test.dart index 9cb63abb0ec..7a9d8d88c87 100644 --- a/tests/lib_2/html/crypto_test.dart +++ b/tests/lib_2/html/crypto_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/css_rule_list_test.dart b/tests/lib_2/html/css_rule_list_test.dart index 481aca9f0e6..8b61620029a 100644 --- a/tests/lib_2/html/css_rule_list_test.dart +++ b/tests/lib_2/html/css_rule_list_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/css_selector_test.dart b/tests/lib_2/html/css_selector_test.dart index 2b001a0553b..6540b481f86 100644 --- a/tests/lib_2/html/css_selector_test.dart +++ b/tests/lib_2/html/css_selector_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/html/css_test.dart b/tests/lib_2/html/css_test.dart index ee84acb9b93..2d60c97d830 100644 --- a/tests/lib_2/html/css_test.dart +++ b/tests/lib_2/html/css_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library CssTest; import 'dart:html'; diff --git a/tests/lib_2/html/cssstyledeclaration_test.dart b/tests/lib_2/html/cssstyledeclaration_test.dart index 02921d62905..393139e14b0 100644 --- a/tests/lib_2/html/cssstyledeclaration_test.dart +++ b/tests/lib_2/html/cssstyledeclaration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library CssStyleDeclarationTest; import 'dart:async'; diff --git a/tests/lib_2/html/custom/attribute_changed_callback_test.dart b/tests/lib_2/html/custom/attribute_changed_callback_test.dart index f30a0480a9d..cb6a4e7b500 100644 --- a/tests/lib_2/html/custom/attribute_changed_callback_test.dart +++ b/tests/lib_2/html/custom/attribute_changed_callback_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library attribute_changed_callback_test; import 'dart:async'; diff --git a/tests/lib_2/html/custom/created_callback_test.dart b/tests/lib_2/html/custom/created_callback_test.dart index d5e193a50e6..b9895c79540 100644 --- a/tests/lib_2/html/custom/created_callback_test.dart +++ b/tests/lib_2/html/custom/created_callback_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library created_callback_test; import 'dart:html'; diff --git a/tests/lib_2/html/custom/document_register_basic_test.dart b/tests/lib_2/html/custom/document_register_basic_test.dart index 3205761e047..24530d2ba56 100644 --- a/tests/lib_2/html/custom/document_register_basic_test.dart +++ b/tests/lib_2/html/custom/document_register_basic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library document_register_basic_test; import 'dart:html'; diff --git a/tests/lib_2/html/custom/document_register_template_test.dart b/tests/lib_2/html/custom/document_register_template_test.dart index 7e37b96407b..23884900ea2 100644 --- a/tests/lib_2/html/custom/document_register_template_test.dart +++ b/tests/lib_2/html/custom/document_register_template_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/custom/document_register_type_extensions_test.dart b/tests/lib_2/html/custom/document_register_type_extensions_test.dart index b1bdd6799a4..740891d5d5f 100644 --- a/tests/lib_2/html/custom/document_register_type_extensions_test.dart +++ b/tests/lib_2/html/custom/document_register_type_extensions_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/custom/element_upgrade_failure_test.dart b/tests/lib_2/html/custom/element_upgrade_failure_test.dart index db46df5ef59..4b5937d1498 100644 --- a/tests/lib_2/html/custom/element_upgrade_failure_test.dart +++ b/tests/lib_2/html/custom/element_upgrade_failure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:js' as js; diff --git a/tests/lib_2/html/custom/element_upgrade_test.dart b/tests/lib_2/html/custom/element_upgrade_test.dart index 8c3df438c0c..761aa199bc4 100644 --- a/tests/lib_2/html/custom/element_upgrade_test.dart +++ b/tests/lib_2/html/custom/element_upgrade_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:js' as js; diff --git a/tests/lib_2/html/custom/entered_left_view/disconnected_subtree_test.dart b/tests/lib_2/html/custom/entered_left_view/disconnected_subtree_test.dart index aacbfc5566c..4f15cc739a7 100644 --- a/tests/lib_2/html/custom/entered_left_view/disconnected_subtree_test.dart +++ b/tests/lib_2/html/custom/entered_left_view/disconnected_subtree_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library entered_left_view_test; import 'dart:async'; diff --git a/tests/lib_2/html/custom/entered_left_view/entered_left_view_standard_events_test.dart b/tests/lib_2/html/custom/entered_left_view/entered_left_view_standard_events_test.dart index 8a5c69d3272..d312e4ce278 100644 --- a/tests/lib_2/html/custom/entered_left_view/entered_left_view_standard_events_test.dart +++ b/tests/lib_2/html/custom/entered_left_view/entered_left_view_standard_events_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library entered_left_view_test; import 'dart:async'; diff --git a/tests/lib_2/html/custom/entered_left_view/entered_left_view_util.dart b/tests/lib_2/html/custom/entered_left_view/entered_left_view_util.dart index ab3ad9724d3..0338c459bae 100644 --- a/tests/lib_2/html/custom/entered_left_view/entered_left_view_util.dart +++ b/tests/lib_2/html/custom/entered_left_view/entered_left_view_util.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library entered_left_view_test; import 'dart:async'; diff --git a/tests/lib_2/html/custom/entered_left_view/shadow_dom_test.dart b/tests/lib_2/html/custom/entered_left_view/shadow_dom_test.dart index 3da023048d5..fb675b3c44f 100644 --- a/tests/lib_2/html/custom/entered_left_view/shadow_dom_test.dart +++ b/tests/lib_2/html/custom/entered_left_view/shadow_dom_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library entered_left_view_test; import 'dart:async'; diff --git a/tests/lib_2/html/custom/entered_left_view/standard_events_old_callback_names_test.dart b/tests/lib_2/html/custom/entered_left_view/standard_events_old_callback_names_test.dart index 36d8eaa3e16..d0a5341b706 100644 --- a/tests/lib_2/html/custom/entered_left_view/standard_events_old_callback_names_test.dart +++ b/tests/lib_2/html/custom/entered_left_view/standard_events_old_callback_names_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library entered_left_view_test; import 'dart:async'; diff --git a/tests/lib_2/html/custom/entered_left_view/viewless_document_test.dart b/tests/lib_2/html/custom/entered_left_view/viewless_document_test.dart index 75b57fa6d0f..ed593702293 100644 --- a/tests/lib_2/html/custom/entered_left_view/viewless_document_test.dart +++ b/tests/lib_2/html/custom/entered_left_view/viewless_document_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library entered_left_view_test; import 'dart:async'; diff --git a/tests/lib_2/html/custom/regress_194523002_test.dart b/tests/lib_2/html/custom/regress_194523002_test.dart index 692be9896fe..aaf9e49b662 100644 --- a/tests/lib_2/html/custom/regress_194523002_test.dart +++ b/tests/lib_2/html/custom/regress_194523002_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for CL 194523002. import 'dart:html'; diff --git a/tests/lib_2/html/custom/utils.dart b/tests/lib_2/html/custom/utils.dart index dc114d7a7a0..bb10a406949 100644 --- a/tests/lib_2/html/custom/utils.dart +++ b/tests/lib_2/html/custom/utils.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:async'; import 'dart:html'; import 'dart:js' as js; diff --git a/tests/lib_2/html/custom_element_method_clash_test.dart b/tests/lib_2/html/custom_element_method_clash_test.dart index c152980b08a..d5b6ca164a5 100644 --- a/tests/lib_2/html/custom_element_method_clash_test.dart +++ b/tests/lib_2/html/custom_element_method_clash_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library custom_elements_method_clash; import 'dart:async'; diff --git a/tests/lib_2/html/custom_element_name_clash_test.dart b/tests/lib_2/html/custom_element_name_clash_test.dart index 5061d346454..2c480b0f10e 100644 --- a/tests/lib_2/html/custom_element_name_clash_test.dart +++ b/tests/lib_2/html/custom_element_name_clash_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library custom_elements_name_clash; import 'dart:async'; diff --git a/tests/lib_2/html/custom_elements_23127_test.dart b/tests/lib_2/html/custom_elements_23127_test.dart index a1f0545b726..da4190afdb3 100644 --- a/tests/lib_2/html/custom_elements_23127_test.dart +++ b/tests/lib_2/html/custom_elements_23127_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for http://dartbug.com/23127 // Tests super calls to a custom element upgrade constructor with various // combinations of parameters and type arguments. diff --git a/tests/lib_2/html/custom_elements_test.dart b/tests/lib_2/html/custom_elements_test.dart index 4af42ecda6f..d13fa2fac56 100644 --- a/tests/lib_2/html/custom_elements_test.dart +++ b/tests/lib_2/html/custom_elements_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library custom_elements_test; import 'dart:async'; diff --git a/tests/lib_2/html/custom_tags_test.dart b/tests/lib_2/html/custom_tags_test.dart index 637879a5719..855c9f5438c 100644 --- a/tests/lib_2/html/custom_tags_test.dart +++ b/tests/lib_2/html/custom_tags_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/dart_object_local_storage_test.dart b/tests/lib_2/html/dart_object_local_storage_test.dart index f45fbfa8591..3dd01fc3262 100644 --- a/tests/lib_2/html/dart_object_local_storage_test.dart +++ b/tests/lib_2/html/dart_object_local_storage_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/datalistelement_test.dart b/tests/lib_2/html/datalistelement_test.dart index d46a313199f..f5c04e45a6a 100644 --- a/tests/lib_2/html/datalistelement_test.dart +++ b/tests/lib_2/html/datalistelement_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/document_test.dart b/tests/lib_2/html/document_test.dart index 1ded093af45..40dc9973782 100644 --- a/tests/lib_2/html/document_test.dart +++ b/tests/lib_2/html/document_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/documentfragment_test.dart b/tests/lib_2/html/documentfragment_test.dart index 603769af565..2c4b047638d 100644 --- a/tests/lib_2/html/documentfragment_test.dart +++ b/tests/lib_2/html/documentfragment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/dom_constructors_test.dart b/tests/lib_2/html/dom_constructors_test.dart index 38c661abf80..ef6867c809d 100644 --- a/tests/lib_2/html/dom_constructors_test.dart +++ b/tests/lib_2/html/dom_constructors_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/dom_isolates_test.dart.child_isolate.dart b/tests/lib_2/html/dom_isolates_test.dart.child_isolate.dart index 31e97d2bc8a..ef564f96695 100644 --- a/tests/lib_2/html/dom_isolates_test.dart.child_isolate.dart +++ b/tests/lib_2/html/dom_isolates_test.dart.child_isolate.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:isolate'; diff --git a/tests/lib_2/html/domparser_test.dart b/tests/lib_2/html/domparser_test.dart index 51f8ce1a22b..e240f60cf30 100644 --- a/tests/lib_2/html/domparser_test.dart +++ b/tests/lib_2/html/domparser_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_add_test.dart b/tests/lib_2/html/element_add_test.dart index e4436590534..f0198005fed 100644 --- a/tests/lib_2/html/element_add_test.dart +++ b/tests/lib_2/html/element_add_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_animate_omit_timing_test.dart b/tests/lib_2/html/element_animate_omit_timing_test.dart index 9aa98e0ebe7..2a27437ec98 100644 --- a/tests/lib_2/html/element_animate_omit_timing_test.dart +++ b/tests/lib_2/html/element_animate_omit_timing_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library element_animate_test; import 'dart:async'; diff --git a/tests/lib_2/html/element_animate_simple_timing_test.dart b/tests/lib_2/html/element_animate_simple_timing_test.dart index b35dd99ece2..a70dbf50bea 100644 --- a/tests/lib_2/html/element_animate_simple_timing_test.dart +++ b/tests/lib_2/html/element_animate_simple_timing_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library element_animate_test; import 'dart:async'; diff --git a/tests/lib_2/html/element_animate_supported_test.dart b/tests/lib_2/html/element_animate_supported_test.dart index 7f11c8aeb6c..5eb33b82714 100644 --- a/tests/lib_2/html/element_animate_supported_test.dart +++ b/tests/lib_2/html/element_animate_supported_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library element_animate_test; import 'dart:async'; diff --git a/tests/lib_2/html/element_animate_timing_dict_test.dart b/tests/lib_2/html/element_animate_timing_dict_test.dart index 1276b9028d8..156893ca5e5 100644 --- a/tests/lib_2/html/element_animate_timing_dict_test.dart +++ b/tests/lib_2/html/element_animate_timing_dict_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library element_animate_test; import 'dart:async'; diff --git a/tests/lib_2/html/element_classes_svg_test.dart b/tests/lib_2/html/element_classes_svg_test.dart index 3beb9d76dc5..c46c5c85765 100644 --- a/tests/lib_2/html/element_classes_svg_test.dart +++ b/tests/lib_2/html/element_classes_svg_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import 'dart:html'; import 'dart:svg' as svg; diff --git a/tests/lib_2/html/element_classes_test.dart b/tests/lib_2/html/element_classes_test.dart index 3bd1507df8e..051aa13dfe1 100644 --- a/tests/lib_2/html/element_classes_test.dart +++ b/tests/lib_2/html/element_classes_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import 'dart:html'; diff --git a/tests/lib_2/html/element_constructor_1_test.dart b/tests/lib_2/html/element_constructor_1_test.dart index bd265b4a2e8..50e24510728 100644 --- a/tests/lib_2/html/element_constructor_1_test.dart +++ b/tests/lib_2/html/element_constructor_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Put universally passing event constructors in this file. // Move constructors that fail on some configuration to their own // element_constructor_foo_test.dart file. diff --git a/tests/lib_2/html/element_dimensions_test.dart b/tests/lib_2/html/element_dimensions_test.dart index 68aa316863d..ecadde45d7a 100644 --- a/tests/lib_2/html/element_dimensions_test.dart +++ b/tests/lib_2/html/element_dimensions_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_offset_test.dart b/tests/lib_2/html/element_offset_test.dart index 7643660c77f..19cd2c62913 100644 --- a/tests/lib_2/html/element_offset_test.dart +++ b/tests/lib_2/html/element_offset_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:html'; diff --git a/tests/lib_2/html/element_test.dart b/tests/lib_2/html/element_test.dart index d428999307c..4e658273505 100644 --- a/tests/lib_2/html/element_test.dart +++ b/tests/lib_2/html/element_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library ElementTest; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/element_types_constructors1_test.dart b/tests/lib_2/html/element_types_constructors1_test.dart index 9c5575dc63c..e8ccc9af8b4 100644 --- a/tests/lib_2/html/element_types_constructors1_test.dart +++ b/tests/lib_2/html/element_types_constructors1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_constructors2_test.dart b/tests/lib_2/html/element_types_constructors2_test.dart index d1376b056bc..c2c22c071a1 100644 --- a/tests/lib_2/html/element_types_constructors2_test.dart +++ b/tests/lib_2/html/element_types_constructors2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_constructors3_test.dart b/tests/lib_2/html/element_types_constructors3_test.dart index dcd5dbd7e18..f5f6765795e 100644 --- a/tests/lib_2/html/element_types_constructors3_test.dart +++ b/tests/lib_2/html/element_types_constructors3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_constructors4_test.dart b/tests/lib_2/html/element_types_constructors4_test.dart index 26e6acb1f0f..c445c3d435d 100644 --- a/tests/lib_2/html/element_types_constructors4_test.dart +++ b/tests/lib_2/html/element_types_constructors4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_constructors5_test.dart b/tests/lib_2/html/element_types_constructors5_test.dart index 7039442d6c1..08041d00ed3 100644 --- a/tests/lib_2/html/element_types_constructors5_test.dart +++ b/tests/lib_2/html/element_types_constructors5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_constructors6_test.dart b/tests/lib_2/html/element_types_constructors6_test.dart index 50b81c2eaad..147782b362d 100644 --- a/tests/lib_2/html/element_types_constructors6_test.dart +++ b/tests/lib_2/html/element_types_constructors6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_content_test.dart b/tests/lib_2/html/element_types_content_test.dart index 2e0109f4580..2b84907c119 100644 --- a/tests/lib_2/html/element_types_content_test.dart +++ b/tests/lib_2/html/element_types_content_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_datalist_test.dart b/tests/lib_2/html/element_types_datalist_test.dart index a12acc50943..e84af69a4ae 100644 --- a/tests/lib_2/html/element_types_datalist_test.dart +++ b/tests/lib_2/html/element_types_datalist_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_details_test.dart b/tests/lib_2/html/element_types_details_test.dart index b47f998af4a..7fcb106453f 100644 --- a/tests/lib_2/html/element_types_details_test.dart +++ b/tests/lib_2/html/element_types_details_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_embed_test.dart b/tests/lib_2/html/element_types_embed_test.dart index 7c23d3804f7..6820e29f3aa 100644 --- a/tests/lib_2/html/element_types_embed_test.dart +++ b/tests/lib_2/html/element_types_embed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_meter_test.dart b/tests/lib_2/html/element_types_meter_test.dart index cdd917e7f04..2eb097c5c8f 100644 --- a/tests/lib_2/html/element_types_meter_test.dart +++ b/tests/lib_2/html/element_types_meter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_object_test.dart b/tests/lib_2/html/element_types_object_test.dart index 03f508c0c81..e7a9702a7e1 100644 --- a/tests/lib_2/html/element_types_object_test.dart +++ b/tests/lib_2/html/element_types_object_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_output_test.dart b/tests/lib_2/html/element_types_output_test.dart index 8781aa3485a..0caf8dad194 100644 --- a/tests/lib_2/html/element_types_output_test.dart +++ b/tests/lib_2/html/element_types_output_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_progress_test.dart b/tests/lib_2/html/element_types_progress_test.dart index 9dac4743018..3d03210d7b6 100644 --- a/tests/lib_2/html/element_types_progress_test.dart +++ b/tests/lib_2/html/element_types_progress_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_shadow_test.dart b/tests/lib_2/html/element_types_shadow_test.dart index 271c49d18f4..f0469a909f1 100644 --- a/tests/lib_2/html/element_types_shadow_test.dart +++ b/tests/lib_2/html/element_types_shadow_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_template_test.dart b/tests/lib_2/html/element_types_template_test.dart index d7939ab3bc2..b82dd9d5c69 100644 --- a/tests/lib_2/html/element_types_template_test.dart +++ b/tests/lib_2/html/element_types_template_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/element_types_track_test.dart b/tests/lib_2/html/element_types_track_test.dart index 27c65d13ce8..9620c9973e8 100644 --- a/tests/lib_2/html/element_types_track_test.dart +++ b/tests/lib_2/html/element_types_track_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/event_callback_test.dart b/tests/lib_2/html/event_callback_test.dart index 347e754cb26..d5a1dc7be31 100644 --- a/tests/lib_2/html/event_callback_test.dart +++ b/tests/lib_2/html/event_callback_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 33627. import 'dart:html'; diff --git a/tests/lib_2/html/event_customevent_test.dart b/tests/lib_2/html/event_customevent_test.dart index 97045579245..7fa81a3aa9f 100644 --- a/tests/lib_2/html/event_customevent_test.dart +++ b/tests/lib_2/html/event_customevent_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library EventCustomEventTest; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/event_test.dart b/tests/lib_2/html/event_test.dart index 873513739ef..c51b76c3294 100644 --- a/tests/lib_2/html/event_test.dart +++ b/tests/lib_2/html/event_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/events_test.dart b/tests/lib_2/html/events_test.dart index 8211f66d968..99a316adc2d 100644 --- a/tests/lib_2/html/events_test.dart +++ b/tests/lib_2/html/events_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library tests.html.events_test; import 'dart:async'; diff --git a/tests/lib_2/html/exceptions_test.dart b/tests/lib_2/html/exceptions_test.dart index e07c3280a20..cc4abad8369 100644 --- a/tests/lib_2/html/exceptions_test.dart +++ b/tests/lib_2/html/exceptions_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/file_sample_test.dart b/tests/lib_2/html/file_sample_test.dart index 2e626e89e3b..99c8213cd2e 100644 --- a/tests/lib_2/html/file_sample_test.dart +++ b/tests/lib_2/html/file_sample_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library file_sample; import 'dart:async'; diff --git a/tests/lib_2/html/fileapi_directory_reader_test.dart b/tests/lib_2/html/fileapi_directory_reader_test.dart index e1738964152..8c15a42d2b6 100644 --- a/tests/lib_2/html/fileapi_directory_reader_test.dart +++ b/tests/lib_2/html/fileapi_directory_reader_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library fileapi; import 'dart:async'; diff --git a/tests/lib_2/html/fileapi_directory_test.dart b/tests/lib_2/html/fileapi_directory_test.dart index fc360247457..01315448a13 100644 --- a/tests/lib_2/html/fileapi_directory_test.dart +++ b/tests/lib_2/html/fileapi_directory_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library fileapi; import 'dart:async'; diff --git a/tests/lib_2/html/fileapi_entry_test.dart b/tests/lib_2/html/fileapi_entry_test.dart index 0f2f490b88b..4b5cef32b2e 100644 --- a/tests/lib_2/html/fileapi_entry_test.dart +++ b/tests/lib_2/html/fileapi_entry_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library fileapi; import 'dart:async'; diff --git a/tests/lib_2/html/fileapi_file_entry_test.dart b/tests/lib_2/html/fileapi_file_entry_test.dart index 0689ad8c21d..3bc6cfd55e5 100644 --- a/tests/lib_2/html/fileapi_file_entry_test.dart +++ b/tests/lib_2/html/fileapi_file_entry_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library fileapi; import 'dart:async'; diff --git a/tests/lib_2/html/fileapi_file_test.dart b/tests/lib_2/html/fileapi_file_test.dart index 5c198bbc9e9..9cb7ff2f458 100644 --- a/tests/lib_2/html/fileapi_file_test.dart +++ b/tests/lib_2/html/fileapi_file_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library fileapi; import 'dart:async'; diff --git a/tests/lib_2/html/fileapi_supported_test.dart b/tests/lib_2/html/fileapi_supported_test.dart index 0de1f8529c7..bd45934449b 100644 --- a/tests/lib_2/html/fileapi_supported_test.dart +++ b/tests/lib_2/html/fileapi_supported_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library fileapi; import 'dart:async'; diff --git a/tests/lib_2/html/fileapi_supported_throws_test.dart b/tests/lib_2/html/fileapi_supported_throws_test.dart index 892ba502756..78cb7ffccab 100644 --- a/tests/lib_2/html/fileapi_supported_throws_test.dart +++ b/tests/lib_2/html/fileapi_supported_throws_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library fileapi; import 'dart:async'; diff --git a/tests/lib_2/html/filereader_test.dart b/tests/lib_2/html/filereader_test.dart index 64bc60c2313..a4652a75641 100644 --- a/tests/lib_2/html/filereader_test.dart +++ b/tests/lib_2/html/filereader_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library filereader_test; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/filteredelementlist_test.dart b/tests/lib_2/html/filteredelementlist_test.dart index c9b5d4c82f4..da99d402978 100644 --- a/tests/lib_2/html/filteredelementlist_test.dart +++ b/tests/lib_2/html/filteredelementlist_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'dart:html_common'; diff --git a/tests/lib_2/html/fontface_loaded_test.dart b/tests/lib_2/html/fontface_loaded_test.dart index 06a18cb0012..2abea51ea59 100644 --- a/tests/lib_2/html/fontface_loaded_test.dart +++ b/tests/lib_2/html/fontface_loaded_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library fontface_loaded_test; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/fontface_test.dart b/tests/lib_2/html/fontface_test.dart index a663def7459..522f5dabda7 100644 --- a/tests/lib_2/html/fontface_test.dart +++ b/tests/lib_2/html/fontface_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/form_data_test.dart b/tests/lib_2/html/form_data_test.dart index 03592e2bc9d..aa920594e6d 100644 --- a/tests/lib_2/html/form_data_test.dart +++ b/tests/lib_2/html/form_data_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library FormDataTest; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/form_element_test.dart b/tests/lib_2/html/form_element_test.dart index 4cc6807f8d0..2b30e1750ca 100644 --- a/tests/lib_2/html/form_element_test.dart +++ b/tests/lib_2/html/form_element_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/gamepad_test.dart b/tests/lib_2/html/gamepad_test.dart index 4707604412c..2a50bb6cef6 100644 --- a/tests/lib_2/html/gamepad_test.dart +++ b/tests/lib_2/html/gamepad_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'package:expect/minitest.dart'; import 'dart:html'; diff --git a/tests/lib_2/html/geolocation_test.dart b/tests/lib_2/html/geolocation_test.dart index 30d24dc9d53..f05bfe44303 100644 --- a/tests/lib_2/html/geolocation_test.dart +++ b/tests/lib_2/html/geolocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/hidden_dom_1_test.dart b/tests/lib_2/html/hidden_dom_1_test.dart index 820a88ae5ed..b4a5ca36b51 100644 --- a/tests/lib_2/html/hidden_dom_1_test.dart +++ b/tests/lib_2/html/hidden_dom_1_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/hidden_dom_2_test.dart b/tests/lib_2/html/hidden_dom_2_test.dart index 650ee060b28..35db625c12c 100644 --- a/tests/lib_2/html/hidden_dom_2_test.dart +++ b/tests/lib_2/html/hidden_dom_2_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/history_hash_change_test.dart b/tests/lib_2/html/history_hash_change_test.dart index b15685fc476..d3918101836 100644 --- a/tests/lib_2/html/history_hash_change_test.dart +++ b/tests/lib_2/html/history_hash_change_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library HistoryTest; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/history_supported_test.dart b/tests/lib_2/html/history_supported_test.dart index 358d32a09c9..97b188e6086 100644 --- a/tests/lib_2/html/history_supported_test.dart +++ b/tests/lib_2/html/history_supported_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library HistoryTest; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/history_test.dart b/tests/lib_2/html/history_test.dart index ffcdede74cd..03cb68e9de2 100644 --- a/tests/lib_2/html/history_test.dart +++ b/tests/lib_2/html/history_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library HistoryTest; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/html_mock_test.dart b/tests/lib_2/html/html_mock_test.dart index 1d4aeb9e5e1..4d61454a2a0 100644 --- a/tests/lib_2/html/html_mock_test.dart +++ b/tests/lib_2/html/html_mock_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:html'; diff --git a/tests/lib_2/html/htmlcollection_test.dart b/tests/lib_2/html/htmlcollection_test.dart index 37423c27b4a..5e8d8aa78ee 100644 --- a/tests/lib_2/html/htmlcollection_test.dart +++ b/tests/lib_2/html/htmlcollection_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/htmlelement_test.dart b/tests/lib_2/html/htmlelement_test.dart index fbeb93b9d5c..0c8680569b9 100644 --- a/tests/lib_2/html/htmlelement_test.dart +++ b/tests/lib_2/html/htmlelement_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/htmloptionscollection_test.dart b/tests/lib_2/html/htmloptionscollection_test.dart index 127a8ee491f..7177be7156c 100644 --- a/tests/lib_2/html/htmloptionscollection_test.dart +++ b/tests/lib_2/html/htmloptionscollection_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/http_test.dart b/tests/lib_2/html/http_test.dart index 905f4d580c9..48b9efa349d 100644 --- a/tests/lib_2/html/http_test.dart +++ b/tests/lib_2/html/http_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/indexeddb_1_test.dart b/tests/lib_2/html/indexeddb_1_test.dart index 932f3fb2c26..9edf491d3bc 100644 --- a/tests/lib_2/html/indexeddb_1_test.dart +++ b/tests/lib_2/html/indexeddb_1_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library IndexedDB1Test; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/indexeddb_2_test.dart b/tests/lib_2/html/indexeddb_2_test.dart index 17478b9988a..9990c276182 100644 --- a/tests/lib_2/html/indexeddb_2_test.dart +++ b/tests/lib_2/html/indexeddb_2_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library IndexedDB1Test; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/html/indexeddb_3_test.dart b/tests/lib_2/html/indexeddb_3_test.dart index 52bccb4221e..61c46f60b49 100644 --- a/tests/lib_2/html/indexeddb_3_test.dart +++ b/tests/lib_2/html/indexeddb_3_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library IndexedDB3Test; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/html/indexeddb_4_test.dart b/tests/lib_2/html/indexeddb_4_test.dart index 2c98884f74b..c257ccbb28b 100644 --- a/tests/lib_2/html/indexeddb_4_test.dart +++ b/tests/lib_2/html/indexeddb_4_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library IndexedDB4Test; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/indexeddb_5_test.dart b/tests/lib_2/html/indexeddb_5_test.dart index 41c557af7cd..c784ce6cd3b 100644 --- a/tests/lib_2/html/indexeddb_5_test.dart +++ b/tests/lib_2/html/indexeddb_5_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library IndexedDB1Test; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/html/input_element_attributes_test.dart b/tests/lib_2/html/input_element_attributes_test.dart index c314397886d..0d6b90f82e3 100644 --- a/tests/lib_2/html/input_element_attributes_test.dart +++ b/tests/lib_2/html/input_element_attributes_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/input_element_constructor_test.dart b/tests/lib_2/html/input_element_constructor_test.dart index 8ae6d7e52a0..81f52ff6bb1 100644 --- a/tests/lib_2/html/input_element_constructor_test.dart +++ b/tests/lib_2/html/input_element_constructor_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/input_element_date_test.dart b/tests/lib_2/html/input_element_date_test.dart index e160e4521b8..ef2b32a3cb5 100644 --- a/tests/lib_2/html/input_element_date_test.dart +++ b/tests/lib_2/html/input_element_date_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/input_element_datetime_test.dart b/tests/lib_2/html/input_element_datetime_test.dart index f60ffd85c2e..ef85625330e 100644 --- a/tests/lib_2/html/input_element_datetime_test.dart +++ b/tests/lib_2/html/input_element_datetime_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/input_element_email_test.dart b/tests/lib_2/html/input_element_email_test.dart index 8e06207acb7..42a11a33fda 100644 --- a/tests/lib_2/html/input_element_email_test.dart +++ b/tests/lib_2/html/input_element_email_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/input_element_month_test.dart b/tests/lib_2/html/input_element_month_test.dart index 4ec070272d5..d5842dd41a7 100644 --- a/tests/lib_2/html/input_element_month_test.dart +++ b/tests/lib_2/html/input_element_month_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/input_element_number_test.dart b/tests/lib_2/html/input_element_number_test.dart index 11aa040b334..f82ac9da309 100644 --- a/tests/lib_2/html/input_element_number_test.dart +++ b/tests/lib_2/html/input_element_number_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/input_element_range_test.dart b/tests/lib_2/html/input_element_range_test.dart index e8cbf967d10..96b3822eb93 100644 --- a/tests/lib_2/html/input_element_range_test.dart +++ b/tests/lib_2/html/input_element_range_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/input_element_search_test.dart b/tests/lib_2/html/input_element_search_test.dart index d26ea170436..1f254e3ce35 100644 --- a/tests/lib_2/html/input_element_search_test.dart +++ b/tests/lib_2/html/input_element_search_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/input_element_tel_test.dart b/tests/lib_2/html/input_element_tel_test.dart index fae6424d429..1c80570af69 100644 --- a/tests/lib_2/html/input_element_tel_test.dart +++ b/tests/lib_2/html/input_element_tel_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/input_element_time_test.dart b/tests/lib_2/html/input_element_time_test.dart index 9fa27f7e5ae..3b76421aa34 100644 --- a/tests/lib_2/html/input_element_time_test.dart +++ b/tests/lib_2/html/input_element_time_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/input_element_url_test.dart b/tests/lib_2/html/input_element_url_test.dart index 40bce37a230..5d707cc76b8 100644 --- a/tests/lib_2/html/input_element_url_test.dart +++ b/tests/lib_2/html/input_element_url_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/input_element_week_test.dart b/tests/lib_2/html/input_element_week_test.dart index 21b5bbdad42..9b29589eef2 100644 --- a/tests/lib_2/html/input_element_week_test.dart +++ b/tests/lib_2/html/input_element_week_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/instance_of_test.dart b/tests/lib_2/html/instance_of_test.dart index 72db7b67d4c..31ccadcea36 100644 --- a/tests/lib_2/html/instance_of_test.dart +++ b/tests/lib_2/html/instance_of_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/interactive_geolocation_test.dart b/tests/lib_2/html/interactive_geolocation_test.dart index 1ad3a13a371..6728e3d60e1 100644 --- a/tests/lib_2/html/interactive_geolocation_test.dart +++ b/tests/lib_2/html/interactive_geolocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library interactive_test; import 'dart:async'; diff --git a/tests/lib_2/html/interactive_media_test.dart b/tests/lib_2/html/interactive_media_test.dart index 517057c3cbd..81aeed7eee0 100644 --- a/tests/lib_2/html/interactive_media_test.dart +++ b/tests/lib_2/html/interactive_media_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library interactive_test; import 'dart:async'; diff --git a/tests/lib_2/html/interactive_test.dart b/tests/lib_2/html/interactive_test.dart index 2392e27ae54..d1ad70ed72f 100644 --- a/tests/lib_2/html/interactive_test.dart +++ b/tests/lib_2/html/interactive_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library interactive_test; import 'dart:async'; diff --git a/tests/lib_2/html/isolates_test.dart b/tests/lib_2/html/isolates_test.dart index 6ffec06d6b1..0bbaf360d48 100644 --- a/tests/lib_2/html/isolates_test.dart +++ b/tests/lib_2/html/isolates_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library IsolatesTest; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/js_array_test.dart b/tests/lib_2/html/js_array_test.dart index 3ba30b041c2..1ad544a51da 100644 --- a/tests/lib_2/html/js_array_test.dart +++ b/tests/lib_2/html/js_array_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS("ArrayTest.Util") library js_array_test; diff --git a/tests/lib_2/html/js_browser_test.dart b/tests/lib_2/html/js_browser_test.dart index a4a5e4124a1..a5996aa9caf 100644 --- a/tests/lib_2/html/js_browser_test.dart +++ b/tests/lib_2/html/js_browser_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:indexed_db' show IdbFactory, KeyRange; import 'dart:typed_data' show Int32List; diff --git a/tests/lib_2/html/js_caching_test.dart b/tests/lib_2/html/js_caching_test.dart index 62cfc523710..677b8097314 100644 --- a/tests/lib_2/html/js_caching_test.dart +++ b/tests/lib_2/html/js_caching_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:indexed_db' show IdbFactory, KeyRange; import 'dart:typed_data' show Int32List; diff --git a/tests/lib_2/html/js_context_test.dart b/tests/lib_2/html/js_context_test.dart index 426d1218197..9c875d705df 100644 --- a/tests/lib_2/html/js_context_test.dart +++ b/tests/lib_2/html/js_context_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:indexed_db' show IdbFactory, KeyRange; import 'dart:typed_data' show Int32List; diff --git a/tests/lib_2/html/js_dart_functions_test.dart b/tests/lib_2/html/js_dart_functions_test.dart index f4d20b173da..33fa0e6b440 100644 --- a/tests/lib_2/html/js_dart_functions_test.dart +++ b/tests/lib_2/html/js_dart_functions_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:indexed_db' show IdbFactory, KeyRange; import 'dart:typed_data' show Int32List; diff --git a/tests/lib_2/html/js_dart_js_test.dart b/tests/lib_2/html/js_dart_js_test.dart index 2ad2a2e3ace..c3723ab317f 100644 --- a/tests/lib_2/html/js_dart_js_test.dart +++ b/tests/lib_2/html/js_dart_js_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:indexed_db' show IdbFactory, KeyRange; import 'dart:typed_data' show Int32List; diff --git a/tests/lib_2/html/js_dart_to_string_test.dart b/tests/lib_2/html/js_dart_to_string_test.dart index bbee3180e94..0a3be04a0d2 100644 --- a/tests/lib_2/html/js_dart_to_string_test.dart +++ b/tests/lib_2/html/js_dart_to_string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_dart_to_string_test; diff --git a/tests/lib_2/html/js_dispatch_property_test.dart b/tests/lib_2/html/js_dispatch_property_test.dart index 3fbe2eaeec1..3ca4a9eb3a1 100644 --- a/tests/lib_2/html/js_dispatch_property_test.dart +++ b/tests/lib_2/html/js_dispatch_property_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for dart2js initialization of dispatchPropertyName. import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/js_dispatch_property_test_lib.dart b/tests/lib_2/html/js_dispatch_property_test_lib.dart index 80a87a17717..6f32c2d5a11 100644 --- a/tests/lib_2/html/js_dispatch_property_test_lib.dart +++ b/tests/lib_2/html/js_dispatch_property_test_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_dispatch_property_test_lib; diff --git a/tests/lib_2/html/js_function_getter_test.dart b/tests/lib_2/html/js_function_getter_test.dart index e3715d7a7e2..1e3f63bb30a 100644 --- a/tests/lib_2/html/js_function_getter_test.dart +++ b/tests/lib_2/html/js_function_getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_function_getter_test; diff --git a/tests/lib_2/html/js_function_getter_trust_types/compile_test.dart b/tests/lib_2/html/js_function_getter_trust_types/compile_test.dart index 29f8669761f..b8653518746 100644 --- a/tests/lib_2/html/js_function_getter_trust_types/compile_test.dart +++ b/tests/lib_2/html/js_function_getter_trust_types/compile_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // SharedOptions=--trust-type-annotations @JS() library js_function_getter_trust_types_test; diff --git a/tests/lib_2/html/js_function_getter_trust_types/function_test.dart b/tests/lib_2/html/js_function_getter_trust_types/function_test.dart index 5a49f47c2b5..b184c53dc6e 100644 --- a/tests/lib_2/html/js_function_getter_trust_types/function_test.dart +++ b/tests/lib_2/html/js_function_getter_trust_types/function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // SharedOptions=--trust-type-annotations @JS() library js_function_getter_trust_types_test; diff --git a/tests/lib_2/html/js_function_getter_trust_types/js_function_util.dart b/tests/lib_2/html/js_function_getter_trust_types/js_function_util.dart index b6afd8f9c2a..f1ccd0dc21f 100644 --- a/tests/lib_2/html/js_function_getter_trust_types/js_function_util.dart +++ b/tests/lib_2/html/js_function_getter_trust_types/js_function_util.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // SharedOptions=--trust-type-annotations @JS() library js_function_getter_trust_types_test; diff --git a/tests/lib_2/html/js_identity_test.dart b/tests/lib_2/html/js_identity_test.dart index dadf6a9d18c..0860f643256 100644 --- a/tests/lib_2/html/js_identity_test.dart +++ b/tests/lib_2/html/js_identity_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:indexed_db' show IdbFactory, KeyRange; import 'dart:typed_data' show Int32List; diff --git a/tests/lib_2/html/js_interop_1_test.dart b/tests/lib_2/html/js_interop_1_test.dart index d008a39bf4f..95b280e87d6 100644 --- a/tests/lib_2/html/js_interop_1_test.dart +++ b/tests/lib_2/html/js_interop_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library JsInterop1Test; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/html/js_interop_constructor_name/div_test.dart b/tests/lib_2/html/js_interop_constructor_name/div_test.dart index a61ae6fcb2d..deff18af7e1 100644 --- a/tests/lib_2/html/js_interop_constructor_name/div_test.dart +++ b/tests/lib_2/html/js_interop_constructor_name/div_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html' as html; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/js_interop_constructor_name/error1_test.dart b/tests/lib_2/html/js_interop_constructor_name/error1_test.dart index a12be513679..f28cc099c7d 100644 --- a/tests/lib_2/html/js_interop_constructor_name/error1_test.dart +++ b/tests/lib_2/html/js_interop_constructor_name/error1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html' as html; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/js_interop_constructor_name/error2_test.dart b/tests/lib_2/html/js_interop_constructor_name/error2_test.dart index 365e4185865..078a870b8de 100644 --- a/tests/lib_2/html/js_interop_constructor_name/error2_test.dart +++ b/tests/lib_2/html/js_interop_constructor_name/error2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html' as html; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/js_interop_constructor_name/method_test.dart b/tests/lib_2/html/js_interop_constructor_name/method_test.dart index 9781829e5e4..a7fd842fac2 100644 --- a/tests/lib_2/html/js_interop_constructor_name/method_test.dart +++ b/tests/lib_2/html/js_interop_constructor_name/method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html' as html; import 'package:expect/expect.dart' show Expect; diff --git a/tests/lib_2/html/js_interop_constructor_name/util.dart b/tests/lib_2/html/js_interop_constructor_name/util.dart index 03659f0b10c..6eecab4226a 100644 --- a/tests/lib_2/html/js_interop_constructor_name/util.dart +++ b/tests/lib_2/html/js_interop_constructor_name/util.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library util; diff --git a/tests/lib_2/html/js_javascript_function_test.dart b/tests/lib_2/html/js_javascript_function_test.dart index af9394e9e0f..992eac25a5f 100644 --- a/tests/lib_2/html/js_javascript_function_test.dart +++ b/tests/lib_2/html/js_javascript_function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:js'; diff --git a/tests/lib_2/html/js_jsarray_test.dart b/tests/lib_2/html/js_jsarray_test.dart index dd67a443be9..d8e1f7d4474 100644 --- a/tests/lib_2/html/js_jsarray_test.dart +++ b/tests/lib_2/html/js_jsarray_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:indexed_db' show IdbFactory, KeyRange; import 'dart:typed_data' show Int32List; diff --git a/tests/lib_2/html/js_jsfunc_callmethod_test.dart b/tests/lib_2/html/js_jsfunc_callmethod_test.dart index 374c4ad58fa..d0c09bed080 100644 --- a/tests/lib_2/html/js_jsfunc_callmethod_test.dart +++ b/tests/lib_2/html/js_jsfunc_callmethod_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:indexed_db' show IdbFactory, KeyRange; import 'dart:typed_data' show Int32List; diff --git a/tests/lib_2/html/js_jsify_test.dart b/tests/lib_2/html/js_jsify_test.dart index 4a59a1f5dcc..db5f6f2cf0c 100644 --- a/tests/lib_2/html/js_jsify_test.dart +++ b/tests/lib_2/html/js_jsify_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:indexed_db' show IdbFactory, KeyRange; import 'dart:typed_data' show Int32List; diff --git a/tests/lib_2/html/js_jsobject_test.dart b/tests/lib_2/html/js_jsobject_test.dart index a718cb4ce87..06a2e8c5577 100644 --- a/tests/lib_2/html/js_jsobject_test.dart +++ b/tests/lib_2/html/js_jsobject_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:indexed_db' show IdbFactory, KeyRange; import 'dart:typed_data' show Int32List; diff --git a/tests/lib_2/html/js_methods_test.dart b/tests/lib_2/html/js_methods_test.dart index 4c226a89f3d..14fef959d65 100644 --- a/tests/lib_2/html/js_methods_test.dart +++ b/tests/lib_2/html/js_methods_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:indexed_db' show IdbFactory, KeyRange; import 'dart:typed_data' show Int32List; diff --git a/tests/lib_2/html/js_test_util.dart b/tests/lib_2/html/js_test_util.dart index 4702c167ca4..a2e63cf46c5 100644 --- a/tests/lib_2/html/js_test_util.dart +++ b/tests/lib_2/html/js_test_util.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library TestJsUtils; import 'dart:html'; diff --git a/tests/lib_2/html/js_transferrables_test.dart b/tests/lib_2/html/js_transferrables_test.dart index 49eaa79d183..3a839560945 100644 --- a/tests/lib_2/html/js_transferrables_test.dart +++ b/tests/lib_2/html/js_transferrables_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:indexed_db' show IdbFactory, KeyRange; import 'dart:typed_data' show Int32List; diff --git a/tests/lib_2/html/js_typed_interop_anonymous2_test.dart b/tests/lib_2/html/js_typed_interop_anonymous2_test.dart index 149640ecd24..99b4de5ae5b 100644 --- a/tests/lib_2/html/js_typed_interop_anonymous2_test.dart +++ b/tests/lib_2/html/js_typed_interop_anonymous2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_anonymous2_test; diff --git a/tests/lib_2/html/js_typed_interop_anonymous_test.dart b/tests/lib_2/html/js_typed_interop_anonymous_test.dart index 9dec7027085..06755d37f42 100644 --- a/tests/lib_2/html/js_typed_interop_anonymous_test.dart +++ b/tests/lib_2/html/js_typed_interop_anonymous_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_anonymous_test; diff --git a/tests/lib_2/html/js_typed_interop_anonymous_unreachable_test.dart b/tests/lib_2/html/js_typed_interop_anonymous_unreachable_test.dart index 0e11cb39375..70c1dd688a9 100644 --- a/tests/lib_2/html/js_typed_interop_anonymous_unreachable_test.dart +++ b/tests/lib_2/html/js_typed_interop_anonymous_unreachable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_anonymous_unreachable_test; diff --git a/tests/lib_2/html/js_typed_interop_bind_this_test.dart b/tests/lib_2/html/js_typed_interop_bind_this_test.dart index 4e0b25df15a..dc4bc2ad9bb 100644 --- a/tests/lib_2/html/js_typed_interop_bind_this_test.dart +++ b/tests/lib_2/html/js_typed_interop_bind_this_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_bind_this_test; diff --git a/tests/lib_2/html/js_typed_interop_callable_object_test.dart b/tests/lib_2/html/js_typed_interop_callable_object_test.dart index 49f58c46822..1a89ff67400 100644 --- a/tests/lib_2/html/js_typed_interop_callable_object_test.dart +++ b/tests/lib_2/html/js_typed_interop_callable_object_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_callable_object_test; diff --git a/tests/lib_2/html/js_typed_interop_default_arg_static_test.dart b/tests/lib_2/html/js_typed_interop_default_arg_static_test.dart index 25adc673485..c8b6c8ebf8e 100644 --- a/tests/lib_2/html/js_typed_interop_default_arg_static_test.dart +++ b/tests/lib_2/html/js_typed_interop_default_arg_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_test; diff --git a/tests/lib_2/html/js_typed_interop_default_arg_test.dart b/tests/lib_2/html/js_typed_interop_default_arg_test.dart index b37df7dd7c6..d5f40cf8e3d 100644 --- a/tests/lib_2/html/js_typed_interop_default_arg_test.dart +++ b/tests/lib_2/html/js_typed_interop_default_arg_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_test; diff --git a/tests/lib_2/html/js_typed_interop_dynamic_test.dart b/tests/lib_2/html/js_typed_interop_dynamic_test.dart index 9c77cd8ad5a..8438dce1ff7 100644 --- a/tests/lib_2/html/js_typed_interop_dynamic_test.dart +++ b/tests/lib_2/html/js_typed_interop_dynamic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_anonymous_test; diff --git a/tests/lib_2/html/js_typed_interop_lazy_test.dart b/tests/lib_2/html/js_typed_interop_lazy_test.dart index 3fce5a0daaf..a7b49a97766 100644 --- a/tests/lib_2/html/js_typed_interop_lazy_test.dart +++ b/tests/lib_2/html/js_typed_interop_lazy_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_lazy_test; diff --git a/tests/lib_2/html/js_typed_interop_rename_static_test.dart b/tests/lib_2/html/js_typed_interop_rename_static_test.dart index 99c3bac40f2..a8ca50b288a 100644 --- a/tests/lib_2/html/js_typed_interop_rename_static_test.dart +++ b/tests/lib_2/html/js_typed_interop_rename_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_rename_static_test; diff --git a/tests/lib_2/html/js_typed_interop_side_cast_test.dart b/tests/lib_2/html/js_typed_interop_side_cast_test.dart index b41a50e1443..9c8dec5e207 100644 --- a/tests/lib_2/html/js_typed_interop_side_cast_test.dart +++ b/tests/lib_2/html/js_typed_interop_side_cast_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_anonymous2_test; diff --git a/tests/lib_2/html/js_typed_interop_test.dart b/tests/lib_2/html/js_typed_interop_test.dart index c75116e2285..76adf5f5bfc 100644 --- a/tests/lib_2/html/js_typed_interop_test.dart +++ b/tests/lib_2/html/js_typed_interop_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_test; diff --git a/tests/lib_2/html/js_typed_interop_type1_test.dart b/tests/lib_2/html/js_typed_interop_type1_test.dart index ca82833fabe..6cab4aa54f1 100644 --- a/tests/lib_2/html/js_typed_interop_type1_test.dart +++ b/tests/lib_2/html/js_typed_interop_type1_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 @JS() library js_typed_interop_type1_test; diff --git a/tests/lib_2/html/js_typed_interop_type2_test.dart b/tests/lib_2/html/js_typed_interop_type2_test.dart index b9558bb4290..85d49fd227a 100644 --- a/tests/lib_2/html/js_typed_interop_type2_test.dart +++ b/tests/lib_2/html/js_typed_interop_type2_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 @JS() library js_typed_interop_type2_test; diff --git a/tests/lib_2/html/js_typed_interop_type3_test.dart b/tests/lib_2/html/js_typed_interop_type3_test.dart index 11885712ad0..13dbb5740ea 100644 --- a/tests/lib_2/html/js_typed_interop_type3_test.dart +++ b/tests/lib_2/html/js_typed_interop_type3_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 @JS() library js_typed_interop_type3_test; diff --git a/tests/lib_2/html/js_typed_interop_type_test.dart b/tests/lib_2/html/js_typed_interop_type_test.dart index dab7187af88..646b38eda4c 100644 --- a/tests/lib_2/html/js_typed_interop_type_test.dart +++ b/tests/lib_2/html/js_typed_interop_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_type_test; diff --git a/tests/lib_2/html/js_typed_interop_window_property_test.dart b/tests/lib_2/html/js_typed_interop_window_property_test.dart index 6a7d5fd299c..6179c80351e 100644 --- a/tests/lib_2/html/js_typed_interop_window_property_test.dart +++ b/tests/lib_2/html/js_typed_interop_window_property_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_typed_interop_window_property_test; diff --git a/tests/lib_2/html/js_util_test.dart b/tests/lib_2/html/js_util_test.dart index a3d509253a6..41d50a9d04d 100644 --- a/tests/lib_2/html/js_util_test.dart +++ b/tests/lib_2/html/js_util_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests the functionality of js_util with HTML objects. @JS() diff --git a/tests/lib_2/html/json_helper.dart b/tests/lib_2/html/json_helper.dart index 7d037ae2ec8..28d15edacea 100644 --- a/tests/lib_2/html/json_helper.dart +++ b/tests/lib_2/html/json_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS("JSON") library json_helper; diff --git a/tests/lib_2/html/keyboard_event_test.dart b/tests/lib_2/html/keyboard_event_test.dart index 6d27d65eab4..319d2073646 100644 --- a/tests/lib_2/html/keyboard_event_test.dart +++ b/tests/lib_2/html/keyboard_event_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library KeyboardEventTest; import 'dart:html'; diff --git a/tests/lib_2/html/localstorage_test.dart b/tests/lib_2/html/localstorage_test.dart index 57db9208268..c3183d1c269 100644 --- a/tests/lib_2/html/localstorage_test.dart +++ b/tests/lib_2/html/localstorage_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/location_test.dart b/tests/lib_2/html/location_test.dart index 933a5649ae9..dbadede06bf 100644 --- a/tests/lib_2/html/location_test.dart +++ b/tests/lib_2/html/location_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/media_stream_test.dart b/tests/lib_2/html/media_stream_test.dart index 7dc5bde56af..f09f9d19a13 100644 --- a/tests/lib_2/html/media_stream_test.dart +++ b/tests/lib_2/html/media_stream_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/mediadevices_test.dart b/tests/lib_2/html/mediadevices_test.dart index 279e9e3f549..51874f07f2a 100644 --- a/tests/lib_2/html/mediadevices_test.dart +++ b/tests/lib_2/html/mediadevices_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:async'; import 'dart:html'; diff --git a/tests/lib_2/html/mediasource_test.dart b/tests/lib_2/html/mediasource_test.dart index f24b72d5394..f6214f2f4d8 100644 --- a/tests/lib_2/html/mediasource_test.dart +++ b/tests/lib_2/html/mediasource_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/message_channel_test.dart b/tests/lib_2/html/message_channel_test.dart index c6029dd241d..53a13db71d8 100644 --- a/tests/lib_2/html/message_channel_test.dart +++ b/tests/lib_2/html/message_channel_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:html'; diff --git a/tests/lib_2/html/messageevent_test.dart b/tests/lib_2/html/messageevent_test.dart index 31503fdb2a0..1c8e38fd107 100644 --- a/tests/lib_2/html/messageevent_test.dart +++ b/tests/lib_2/html/messageevent_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/mouse_event_test.dart b/tests/lib_2/html/mouse_event_test.dart index 7d7b0d9c33b..975840c1efb 100644 --- a/tests/lib_2/html/mouse_event_test.dart +++ b/tests/lib_2/html/mouse_event_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/mutationobserver_test.dart b/tests/lib_2/html/mutationobserver_test.dart index 7ee71fe4cee..c731e097f82 100644 --- a/tests/lib_2/html/mutationobserver_test.dart +++ b/tests/lib_2/html/mutationobserver_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library mutationobserver_test; import 'dart:async'; diff --git a/tests/lib_2/html/native_gc_test.dart b/tests/lib_2/html/native_gc_test.dart index 8957a784581..55a26837e71 100644 --- a/tests/lib_2/html/native_gc_test.dart +++ b/tests/lib_2/html/native_gc_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library NativeGCTest; import 'dart:async'; diff --git a/tests/lib_2/html/navigator_test.dart b/tests/lib_2/html/navigator_test.dart index c0f2627668c..3bb3953308b 100644 --- a/tests/lib_2/html/navigator_test.dart +++ b/tests/lib_2/html/navigator_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/html/node_test.dart b/tests/lib_2/html/node_test.dart index 204663c7b21..d8f81051967 100644 --- a/tests/lib_2/html/node_test.dart +++ b/tests/lib_2/html/node_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:svg' as svg; diff --git a/tests/lib_2/html/node_validator_important_if_you_suppress_make_the_bug_critical_test.dart b/tests/lib_2/html/node_validator_important_if_you_suppress_make_the_bug_critical_test.dart index ee318684692..c34597b1a00 100644 --- a/tests/lib_2/html/node_validator_important_if_you_suppress_make_the_bug_critical_test.dart +++ b/tests/lib_2/html/node_validator_important_if_you_suppress_make_the_bug_critical_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// This tests HTML validation and sanitization, which is very important /// for prevent XSS or other attacks. If you suppress this, or parts of it /// please make it a critical bug and bring it to the attention of the diff --git a/tests/lib_2/html/non_instantiated_is_test.dart b/tests/lib_2/html/non_instantiated_is_test.dart index 0865b073933..42b4be7d6f4 100644 --- a/tests/lib_2/html/non_instantiated_is_test.dart +++ b/tests/lib_2/html/non_instantiated_is_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js, that used to emit wrong code on is // checks of native classes that are not instantiated. diff --git a/tests/lib_2/html/notification_permission_test.dart b/tests/lib_2/html/notification_permission_test.dart index 0edd8ee61e3..315efbaa7db 100644 --- a/tests/lib_2/html/notification_permission_test.dart +++ b/tests/lib_2/html/notification_permission_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/notification_test.dart b/tests/lib_2/html/notification_test.dart index 283dc5bce27..724959cb0d5 100644 --- a/tests/lib_2/html/notification_test.dart +++ b/tests/lib_2/html/notification_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/performance_api_test.dart b/tests/lib_2/html/performance_api_test.dart index b66feeb15c1..b29684cc13d 100644 --- a/tests/lib_2/html/performance_api_test.dart +++ b/tests/lib_2/html/performance_api_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/postmessage_anonymous_test.dart b/tests/lib_2/html/postmessage_anonymous_test.dart index ab3b1ec54d5..348796b1028 100644 --- a/tests/lib_2/html/postmessage_anonymous_test.dart +++ b/tests/lib_2/html/postmessage_anonymous_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library postmessage_anonymous_test; diff --git a/tests/lib_2/html/postmessage_structured_test.dart b/tests/lib_2/html/postmessage_structured_test.dart index ce5e39b9aef..432a8a80fcc 100644 --- a/tests/lib_2/html/postmessage_structured_test.dart +++ b/tests/lib_2/html/postmessage_structured_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library postmessage_js_test; import 'dart:async'; diff --git a/tests/lib_2/html/private_extension_member_test.dart b/tests/lib_2/html/private_extension_member_test.dart index 4512d9edf33..5342e09fc4a 100644 --- a/tests/lib_2/html/private_extension_member_test.dart +++ b/tests/lib_2/html/private_extension_member_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'dart:html'; diff --git a/tests/lib_2/html/query_test.dart b/tests/lib_2/html/query_test.dart index dab1cffd834..961ee5cfa54 100644 --- a/tests/lib_2/html/query_test.dart +++ b/tests/lib_2/html/query_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/queryall_test.dart b/tests/lib_2/html/queryall_test.dart index e6a913e07cc..274fb70bb60 100644 --- a/tests/lib_2/html/queryall_test.dart +++ b/tests/lib_2/html/queryall_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/range_test.dart b/tests/lib_2/html/range_test.dart index b2acb8093c5..cf8b44d14e3 100644 --- a/tests/lib_2/html/range_test.dart +++ b/tests/lib_2/html/range_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/request_animation_frame_test.dart b/tests/lib_2/html/request_animation_frame_test.dart index d0c0447b000..fc6f6e9f923 100644 --- a/tests/lib_2/html/request_animation_frame_test.dart +++ b/tests/lib_2/html/request_animation_frame_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library RequestAnimationFrameTest; import 'dart:async'; diff --git a/tests/lib_2/html/rtc_test.dart b/tests/lib_2/html/rtc_test.dart index 6b3c3581adc..1e68cbe57a8 100644 --- a/tests/lib_2/html/rtc_test.dart +++ b/tests/lib_2/html/rtc_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/selectelement_test.dart b/tests/lib_2/html/selectelement_test.dart index 22b19faf473..d1147889ff0 100644 --- a/tests/lib_2/html/selectelement_test.dart +++ b/tests/lib_2/html/selectelement_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/serialized_script_value_test.dart b/tests/lib_2/html/serialized_script_value_test.dart index e6e2ed92944..925563ad5ff 100644 --- a/tests/lib_2/html/serialized_script_value_test.dart +++ b/tests/lib_2/html/serialized_script_value_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/shadow_dom_test.dart b/tests/lib_2/html/shadow_dom_test.dart index 75859d62ac1..effebe01412 100644 --- a/tests/lib_2/html/shadow_dom_test.dart +++ b/tests/lib_2/html/shadow_dom_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/shadowroot_test.dart b/tests/lib_2/html/shadowroot_test.dart index 85c4ac1a7d0..d548064ec79 100644 --- a/tests/lib_2/html/shadowroot_test.dart +++ b/tests/lib_2/html/shadowroot_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/speechrecognition_test.dart b/tests/lib_2/html/speechrecognition_test.dart index 066faf03d05..15b2a9baab4 100644 --- a/tests/lib_2/html/speechrecognition_test.dart +++ b/tests/lib_2/html/speechrecognition_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/storage_promise_test.dart b/tests/lib_2/html/storage_promise_test.dart index 870c6f1beea..e6cc39c095d 100644 --- a/tests/lib_2/html/storage_promise_test.dart +++ b/tests/lib_2/html/storage_promise_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library interactive_test; import 'dart:async'; diff --git a/tests/lib_2/html/storage_test.dart b/tests/lib_2/html/storage_test.dart index b6b07dacb0c..6fb0f92b960 100644 --- a/tests/lib_2/html/storage_test.dart +++ b/tests/lib_2/html/storage_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/streams_test.dart b/tests/lib_2/html/streams_test.dart index 713a6e6ad09..22a39f517c2 100644 --- a/tests/lib_2/html/streams_test.dart +++ b/tests/lib_2/html/streams_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:async'; import 'dart:html'; diff --git a/tests/lib_2/html/svg_test.dart b/tests/lib_2/html/svg_test.dart index a4996a05116..77c092a2a05 100644 --- a/tests/lib_2/html/svg_test.dart +++ b/tests/lib_2/html/svg_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:svg' as svg; diff --git a/tests/lib_2/html/svgelement_test.dart b/tests/lib_2/html/svgelement_test.dart index a8c6be6b2cc..a16740e5acc 100644 --- a/tests/lib_2/html/svgelement_test.dart +++ b/tests/lib_2/html/svgelement_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:svg' as svg; diff --git a/tests/lib_2/html/table_test.dart b/tests/lib_2/html/table_test.dart index cb7a4e2d722..65b40e59490 100644 --- a/tests/lib_2/html/table_test.dart +++ b/tests/lib_2/html/table_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/text_event_test.dart b/tests/lib_2/html/text_event_test.dart index 26c7a2a07f1..911e45d2af2 100644 --- a/tests/lib_2/html/text_event_test.dart +++ b/tests/lib_2/html/text_event_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/touchevent_test.dart b/tests/lib_2/html/touchevent_test.dart index d91abb9cf6f..4df7b4ac9e5 100644 --- a/tests/lib_2/html/touchevent_test.dart +++ b/tests/lib_2/html/touchevent_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/track_element_constructor_test.dart b/tests/lib_2/html/track_element_constructor_test.dart index aed7624f9c3..21201dc7694 100644 --- a/tests/lib_2/html/track_element_constructor_test.dart +++ b/tests/lib_2/html/track_element_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A regression test for dart2js generating illegal JavaScript code // dynamically in non-csp mode. The name of the field "defaultValue" // in JavaScript is "default". This meant that dart2js would create a diff --git a/tests/lib_2/html/transferables_test.dart b/tests/lib_2/html/transferables_test.dart index 1f516435ebd..01006a2b2f0 100644 --- a/tests/lib_2/html/transferables_test.dart +++ b/tests/lib_2/html/transferables_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library TransferableTest; import 'dart:async'; diff --git a/tests/lib_2/html/transition_event_test.dart b/tests/lib_2/html/transition_event_test.dart index 52595929461..2025f307210 100644 --- a/tests/lib_2/html/transition_event_test.dart +++ b/tests/lib_2/html/transition_event_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library transition_event_test; import 'dart:html'; diff --git a/tests/lib_2/html/trusted_html_tree_sanitizer_test.dart b/tests/lib_2/html/trusted_html_tree_sanitizer_test.dart index ac6eae610f5..64b85158fc7 100644 --- a/tests/lib_2/html/trusted_html_tree_sanitizer_test.dart +++ b/tests/lib_2/html/trusted_html_tree_sanitizer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// This tests HTML validation and sanitization, which is very important /// for prevent XSS or other attacks. If you suppress this, or parts of it /// please make it a critical bug and bring it to the attention of the diff --git a/tests/lib_2/html/typed_arrays_1_test.dart b/tests/lib_2/html/typed_arrays_1_test.dart index 9f974dc5662..b5b9f35b289 100644 --- a/tests/lib_2/html/typed_arrays_1_test.dart +++ b/tests/lib_2/html/typed_arrays_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/typed_arrays_2_test.dart b/tests/lib_2/html/typed_arrays_2_test.dart index 51bd8c7e0a8..c941c163d71 100644 --- a/tests/lib_2/html/typed_arrays_2_test.dart +++ b/tests/lib_2/html/typed_arrays_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/typed_arrays_3_test.dart b/tests/lib_2/html/typed_arrays_3_test.dart index 7a07f86366a..86d0115e65a 100644 --- a/tests/lib_2/html/typed_arrays_3_test.dart +++ b/tests/lib_2/html/typed_arrays_3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/typed_arrays_4_test.dart b/tests/lib_2/html/typed_arrays_4_test.dart index ba8ee162039..90010f1d4c7 100644 --- a/tests/lib_2/html/typed_arrays_4_test.dart +++ b/tests/lib_2/html/typed_arrays_4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/typed_arrays_5_test.dart b/tests/lib_2/html/typed_arrays_5_test.dart index e7b1e9b33e3..43dfec67992 100644 --- a/tests/lib_2/html/typed_arrays_5_test.dart +++ b/tests/lib_2/html/typed_arrays_5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/typed_arrays_arraybuffer_test.dart b/tests/lib_2/html/typed_arrays_arraybuffer_test.dart index 784a9e27263..120ae7260e7 100644 --- a/tests/lib_2/html/typed_arrays_arraybuffer_test.dart +++ b/tests/lib_2/html/typed_arrays_arraybuffer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/typed_arrays_dataview_test.dart b/tests/lib_2/html/typed_arrays_dataview_test.dart index e774a6d061a..6fb847ab59f 100644 --- a/tests/lib_2/html/typed_arrays_dataview_test.dart +++ b/tests/lib_2/html/typed_arrays_dataview_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/typed_arrays_range_checks_test.dart b/tests/lib_2/html/typed_arrays_range_checks_test.dart index f6d8dbf9b04..b47ec92e20f 100644 --- a/tests/lib_2/html/typed_arrays_range_checks_test.dart +++ b/tests/lib_2/html/typed_arrays_range_checks_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/typed_arrays_simd_test.dart b/tests/lib_2/html/typed_arrays_simd_test.dart index 3f4919a6f27..2be5121b7f9 100644 --- a/tests/lib_2/html/typed_arrays_simd_test.dart +++ b/tests/lib_2/html/typed_arrays_simd_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:typed_data'; diff --git a/tests/lib_2/html/typing_test.dart b/tests/lib_2/html/typing_test.dart index 2ea9eefab95..de19258eb9b 100644 --- a/tests/lib_2/html/typing_test.dart +++ b/tests/lib_2/html/typing_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/unknownelement_test.dart b/tests/lib_2/html/unknownelement_test.dart index 7b324083bd4..9eff9dd8c2f 100644 --- a/tests/lib_2/html/unknownelement_test.dart +++ b/tests/lib_2/html/unknownelement_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/uri_test.dart b/tests/lib_2/html/uri_test.dart index 32ec8659f23..aaeba310dd8 100644 --- a/tests/lib_2/html/uri_test.dart +++ b/tests/lib_2/html/uri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/url_test.dart b/tests/lib_2/html/url_test.dart index 201f52386b8..ca23e005e80 100644 --- a/tests/lib_2/html/url_test.dart +++ b/tests/lib_2/html/url_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library url_test; import 'dart:async'; diff --git a/tests/lib_2/html/utils.dart b/tests/lib_2/html/utils.dart index 876bc27b795..8ac2e912b50 100644 --- a/tests/lib_2/html/utils.dart +++ b/tests/lib_2/html/utils.dart @@ -11,4 +11,6 @@ /// directory to import. // TODO(rnystrom): If the DDC test runner is fixed to use a different module // root that handles "../" imports, move "custom/utils.dart" to here. + +// @dart = 2.9 export 'custom/utils.dart'; diff --git a/tests/lib_2/html/webgl_1_test.dart b/tests/lib_2/html/webgl_1_test.dart index 679d6478d81..92d417f671d 100644 --- a/tests/lib_2/html/webgl_1_test.dart +++ b/tests/lib_2/html/webgl_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:typed_data'; import 'dart:web_gl'; diff --git a/tests/lib_2/html/webgl_extensions_test.dart b/tests/lib_2/html/webgl_extensions_test.dart index cd7d39c3c84..c9b4aa5272e 100644 --- a/tests/lib_2/html/webgl_extensions_test.dart +++ b/tests/lib_2/html/webgl_extensions_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library web_gl_test; import 'dart:html'; diff --git a/tests/lib_2/html/websocket_test.dart b/tests/lib_2/html/websocket_test.dart index 2157e74bc0b..430ac1673ad 100644 --- a/tests/lib_2/html/websocket_test.dart +++ b/tests/lib_2/html/websocket_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library WebSocketTest; import 'dart:html'; diff --git a/tests/lib_2/html/websql_test.dart b/tests/lib_2/html/websql_test.dart index 4c1e34dda53..bcd62318f63 100644 --- a/tests/lib_2/html/websql_test.dart +++ b/tests/lib_2/html/websql_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library WebDBTest; import 'dart:async'; diff --git a/tests/lib_2/html/wheelevent_test.dart b/tests/lib_2/html/wheelevent_test.dart index 2614ae078e0..7c817b0552c 100644 --- a/tests/lib_2/html/wheelevent_test.dart +++ b/tests/lib_2/html/wheelevent_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library wheel_event_test; import 'dart:async'; diff --git a/tests/lib_2/html/window_eq_test.dart b/tests/lib_2/html/window_eq_test.dart index 99389387c29..4da731e3442 100644 --- a/tests/lib_2/html/window_eq_test.dart +++ b/tests/lib_2/html/window_eq_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/window_mangling_test.dart b/tests/lib_2/html/window_mangling_test.dart index f427a34d8f2..686e5aeb2ce 100644 --- a/tests/lib_2/html/window_mangling_test.dart +++ b/tests/lib_2/html/window_mangling_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html' as dom; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/window_nosuchmethod_test.dart b/tests/lib_2/html/window_nosuchmethod_test.dart index 5e3556f80f4..29bf584b89e 100644 --- a/tests/lib_2/html/window_nosuchmethod_test.dart +++ b/tests/lib_2/html/window_nosuchmethod_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html' as dom; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/window_test.dart b/tests/lib_2/html/window_test.dart index ab79e666605..2aa67fcdc39 100644 --- a/tests/lib_2/html/window_test.dart +++ b/tests/lib_2/html/window_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/worker_api_test.dart b/tests/lib_2/html/worker_api_test.dart index 92a019898d5..2db5aa1d495 100644 --- a/tests/lib_2/html/worker_api_test.dart +++ b/tests/lib_2/html/worker_api_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:html'; import 'dart:isolate'; diff --git a/tests/lib_2/html/worker_functional_test.dart b/tests/lib_2/html/worker_functional_test.dart index cf3d5ab8581..090b361529d 100644 --- a/tests/lib_2/html/worker_functional_test.dart +++ b/tests/lib_2/html/worker_functional_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library worker_test; import 'package:async_helper/async_minitest.dart'; diff --git a/tests/lib_2/html/worker_supported_test.dart b/tests/lib_2/html/worker_supported_test.dart index fecb78e4a17..df11390f559 100644 --- a/tests/lib_2/html/worker_supported_test.dart +++ b/tests/lib_2/html/worker_supported_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library worker_test; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/html/wrapping_collections_test.dart b/tests/lib_2/html/wrapping_collections_test.dart index 52e7fb17560..1a30504d244 100644 --- a/tests/lib_2/html/wrapping_collections_test.dart +++ b/tests/lib_2/html/wrapping_collections_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'dart:html_common'; import 'dart:js' as js; diff --git a/tests/lib_2/html/xhr_cross_origin_test.dart b/tests/lib_2/html/xhr_cross_origin_test.dart index bb2a75f927d..5d60cc2797d 100644 --- a/tests/lib_2/html/xhr_cross_origin_test.dart +++ b/tests/lib_2/html/xhr_cross_origin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library XHRCrossOriginTest; import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/html/xhr_test.dart b/tests/lib_2/html/xhr_test.dart index e2a73775685..84fc4a68033 100644 --- a/tests/lib_2/html/xhr_test.dart +++ b/tests/lib_2/html/xhr_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library XHRTest; import 'dart:async'; diff --git a/tests/lib_2/html/xsltprocessor_test.dart b/tests/lib_2/html/xsltprocessor_test.dart index c57befb6754..f6c9927a93c 100644 --- a/tests/lib_2/html/xsltprocessor_test.dart +++ b/tests/lib_2/html/xsltprocessor_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'dart:html'; import 'package:expect/minitest.dart'; diff --git a/tests/lib_2/isolate/appjit_serialization_regression_test.dart b/tests/lib_2/isolate/appjit_serialization_regression_test.dart index e359e9f3b0b..e6f735d645a 100644 --- a/tests/lib_2/isolate/appjit_serialization_regression_test.dart +++ b/tests/lib_2/isolate/appjit_serialization_regression_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:isolate'; main() { diff --git a/tests/lib_2/isolate/bool_from_environment_default_value_test.dart b/tests/lib_2/isolate/bool_from_environment_default_value_test.dart index a1a2d9bbd23..30ea663c8f9 100644 --- a/tests/lib_2/isolate/bool_from_environment_default_value_test.dart +++ b/tests/lib_2/isolate/bool_from_environment_default_value_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/capability_test.dart b/tests/lib_2/isolate/capability_test.dart index 4c09118105a..04c39eef5ca 100644 --- a/tests/lib_2/isolate/capability_test.dart +++ b/tests/lib_2/isolate/capability_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/compile_time_error_test.dart b/tests/lib_2/isolate/compile_time_error_test.dart index 74744c30437..efadcd1dc15 100644 --- a/tests/lib_2/isolate/compile_time_error_test.dart +++ b/tests/lib_2/isolate/compile_time_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/count_test.dart b/tests/lib_2/isolate/count_test.dart index 276862ca4b6..0d92759365f 100644 --- a/tests/lib_2/isolate/count_test.dart +++ b/tests/lib_2/isolate/count_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/cross_isolate_message_test.dart b/tests/lib_2/isolate/cross_isolate_message_test.dart index 3b406cc92fd..f24a36e7069 100644 --- a/tests/lib_2/isolate/cross_isolate_message_test.dart +++ b/tests/lib_2/isolate/cross_isolate_message_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/deferred_in_isolate2_lib.dart b/tests/lib_2/isolate/deferred_in_isolate2_lib.dart index e3fea39a088..c53800d9551 100644 --- a/tests/lib_2/isolate/deferred_in_isolate2_lib.dart +++ b/tests/lib_2/isolate/deferred_in_isolate2_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Used by deferred_in_isolate2_test. library deferred_in_isolate2_lib; diff --git a/tests/lib_2/isolate/deferred_in_isolate2_test.dart b/tests/lib_2/isolate/deferred_in_isolate2_test.dart index 9eddc1c0ded..4a4405b6d14 100644 --- a/tests/lib_2/isolate/deferred_in_isolate2_test.dart +++ b/tests/lib_2/isolate/deferred_in_isolate2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/deferred_in_isolate_app.dart b/tests/lib_2/isolate/deferred_in_isolate_app.dart index 3c1f9dc3e4a..f32b6835702 100644 --- a/tests/lib_2/isolate/deferred_in_isolate_app.dart +++ b/tests/lib_2/isolate/deferred_in_isolate_app.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'deferred_in_isolate_lib.dart' deferred as test; void main(args, msg) { diff --git a/tests/lib_2/isolate/deferred_in_isolate_lib.dart b/tests/lib_2/isolate/deferred_in_isolate_lib.dart index ed7e4750eb1..a618fcfe0ae 100644 --- a/tests/lib_2/isolate/deferred_in_isolate_lib.dart +++ b/tests/lib_2/isolate/deferred_in_isolate_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library deferred_in_isolate_lib; class DeferredObj { diff --git a/tests/lib_2/isolate/deferred_in_isolate_test.dart b/tests/lib_2/isolate/deferred_in_isolate_test.dart index 167815b4cfc..d37817d5f92 100644 --- a/tests/lib_2/isolate/deferred_in_isolate_test.dart +++ b/tests/lib_2/isolate/deferred_in_isolate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/deferred_loaded_lib.dart b/tests/lib_2/isolate/deferred_loaded_lib.dart index 4fcc2d08a96..4541d565558 100644 --- a/tests/lib_2/isolate/deferred_loaded_lib.dart +++ b/tests/lib_2/isolate/deferred_loaded_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class FromChildIsolate { String toString() => 'from child isolate'; int get fld => 10; diff --git a/tests/lib_2/isolate/enum_const_test.dart b/tests/lib_2/isolate/enum_const_test.dart index 3766cb59abb..5ce5c9baa4e 100644 --- a/tests/lib_2/isolate/enum_const_test.dart +++ b/tests/lib_2/isolate/enum_const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/error_at_spawn_test.dart b/tests/lib_2/isolate/error_at_spawn_test.dart index dcb033b7cc7..9af087d4239 100644 --- a/tests/lib_2/isolate/error_at_spawn_test.dart +++ b/tests/lib_2/isolate/error_at_spawn_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/error_at_spawnuri_iso.dart b/tests/lib_2/isolate/error_at_spawnuri_iso.dart index b1650514fac..b2af5e2380c 100644 --- a/tests/lib_2/isolate/error_at_spawnuri_iso.dart +++ b/tests/lib_2/isolate/error_at_spawnuri_iso.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library error_at_spawnuri_iso; main() { diff --git a/tests/lib_2/isolate/error_at_spawnuri_test.dart b/tests/lib_2/isolate/error_at_spawnuri_test.dart index 2c33f1198de..66de29619ec 100644 --- a/tests/lib_2/isolate/error_at_spawnuri_test.dart +++ b/tests/lib_2/isolate/error_at_spawnuri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/error_exit_at_spawn_test.dart b/tests/lib_2/isolate/error_exit_at_spawn_test.dart index 7033c1f22b6..1c493ef4bab 100644 --- a/tests/lib_2/isolate/error_exit_at_spawn_test.dart +++ b/tests/lib_2/isolate/error_exit_at_spawn_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/error_exit_at_spawning_shared.dart b/tests/lib_2/isolate/error_exit_at_spawning_shared.dart index 26c1707f105..c5982e1918e 100644 --- a/tests/lib_2/isolate/error_exit_at_spawning_shared.dart +++ b/tests/lib_2/isolate/error_exit_at_spawning_shared.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library error_exit_at_spawning_shared; import "dart:isolate"; diff --git a/tests/lib_2/isolate/error_exit_at_spawnuri_test.dart b/tests/lib_2/isolate/error_exit_at_spawnuri_test.dart index 7f4f4d65c3c..29330ec644e 100644 --- a/tests/lib_2/isolate/error_exit_at_spawnuri_test.dart +++ b/tests/lib_2/isolate/error_exit_at_spawnuri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/exit_at_spawn_test.dart b/tests/lib_2/isolate/exit_at_spawn_test.dart index 3feb840bc3b..d737c294996 100644 --- a/tests/lib_2/isolate/exit_at_spawn_test.dart +++ b/tests/lib_2/isolate/exit_at_spawn_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/exit_at_spawnuri_iso.dart b/tests/lib_2/isolate/exit_at_spawnuri_iso.dart index 9bc892ee55a..0780b33d72e 100644 --- a/tests/lib_2/isolate/exit_at_spawnuri_iso.dart +++ b/tests/lib_2/isolate/exit_at_spawnuri_iso.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library exit_at_spawn_iso; main() {} diff --git a/tests/lib_2/isolate/exit_at_spawnuri_test.dart b/tests/lib_2/isolate/exit_at_spawnuri_test.dart index e77fe04810c..3813adf2d72 100644 --- a/tests/lib_2/isolate/exit_at_spawnuri_test.dart +++ b/tests/lib_2/isolate/exit_at_spawnuri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/function_send1_test.dart b/tests/lib_2/isolate/function_send1_test.dart index 95e6195175b..a7066003aef 100644 --- a/tests/lib_2/isolate/function_send1_test.dart +++ b/tests/lib_2/isolate/function_send1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/function_send_test.dart b/tests/lib_2/isolate/function_send_test.dart index 93c5f834826..8d243124173 100644 --- a/tests/lib_2/isolate/function_send_test.dart +++ b/tests/lib_2/isolate/function_send_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/handle_error2_test.dart b/tests/lib_2/isolate/handle_error2_test.dart index ec7f11c6921..dd3b1132df1 100644 --- a/tests/lib_2/isolate/handle_error2_test.dart +++ b/tests/lib_2/isolate/handle_error2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/handle_error3_test.dart b/tests/lib_2/isolate/handle_error3_test.dart index 8c24b827180..0f8686313c4 100644 --- a/tests/lib_2/isolate/handle_error3_test.dart +++ b/tests/lib_2/isolate/handle_error3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/handle_error_test.dart b/tests/lib_2/isolate/handle_error_test.dart index c37904aa6cc..6c414dbfdff 100644 --- a/tests/lib_2/isolate/handle_error_test.dart +++ b/tests/lib_2/isolate/handle_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/illegal_msg_function_test.dart b/tests/lib_2/isolate/illegal_msg_function_test.dart index 5fcaf8aa98d..f61432c4b54 100644 --- a/tests/lib_2/isolate/illegal_msg_function_test.dart +++ b/tests/lib_2/isolate/illegal_msg_function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/illegal_msg_mirror_test.dart b/tests/lib_2/isolate/illegal_msg_mirror_test.dart index 7fd70ab9fbd..c2fab9499d9 100644 --- a/tests/lib_2/isolate/illegal_msg_mirror_test.dart +++ b/tests/lib_2/isolate/illegal_msg_mirror_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/int32_length_overflow_test.dart b/tests/lib_2/isolate/int32_length_overflow_test.dart index b7f51cf4eec..5d0273c151d 100644 --- a/tests/lib_2/isolate/int32_length_overflow_test.dart +++ b/tests/lib_2/isolate/int32_length_overflow_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/int_from_environment_default_value_test.dart b/tests/lib_2/isolate/int_from_environment_default_value_test.dart index 7bf07612515..4733aaf521c 100644 --- a/tests/lib_2/isolate/int_from_environment_default_value_test.dart +++ b/tests/lib_2/isolate/int_from_environment_default_value_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/isolate_complex_messages_test.dart b/tests/lib_2/isolate/isolate_complex_messages_test.dart index 606b3af5620..30322a1d915 100644 --- a/tests/lib_2/isolate/isolate_complex_messages_test.dart +++ b/tests/lib_2/isolate/isolate_complex_messages_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/isolate_current_test.dart b/tests/lib_2/isolate/isolate_current_test.dart index b4b0baea82c..38505916956 100644 --- a/tests/lib_2/isolate/isolate_current_test.dart +++ b/tests/lib_2/isolate/isolate_current_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/isolate_import_test.dart b/tests/lib_2/isolate/isolate_import_test.dart index 0438a4e94b6..ff80fcbc7bf 100644 --- a/tests/lib_2/isolate/isolate_import_test.dart +++ b/tests/lib_2/isolate/isolate_import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/isolate_stress_test.dart b/tests/lib_2/isolate/isolate_stress_test.dart index ddd68f2a266..81eb41be4aa 100644 --- a/tests/lib_2/isolate/isolate_stress_test.dart +++ b/tests/lib_2/isolate/isolate_stress_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/issue_21398_child_isolate.dart b/tests/lib_2/isolate/issue_21398_child_isolate.dart index c35fcb20b00..103093296ea 100644 --- a/tests/lib_2/isolate/issue_21398_child_isolate.dart +++ b/tests/lib_2/isolate/issue_21398_child_isolate.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:isolate'; import "package:expect/expect.dart"; diff --git a/tests/lib_2/isolate/issue_21398_child_isolate1.dart b/tests/lib_2/isolate/issue_21398_child_isolate1.dart index 9911733b295..5660cdc2622 100644 --- a/tests/lib_2/isolate/issue_21398_child_isolate1.dart +++ b/tests/lib_2/isolate/issue_21398_child_isolate1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:isolate'; import "package:expect/expect.dart"; diff --git a/tests/lib_2/isolate/issue_21398_child_isolate11.dart b/tests/lib_2/isolate/issue_21398_child_isolate11.dart index fd19d60e53e..3567be22119 100644 --- a/tests/lib_2/isolate/issue_21398_child_isolate11.dart +++ b/tests/lib_2/isolate/issue_21398_child_isolate11.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:isolate'; import "package:expect/expect.dart"; diff --git a/tests/lib_2/isolate/issue_21398_parent_isolate1_test.dart b/tests/lib_2/isolate/issue_21398_parent_isolate1_test.dart index bf21844406b..4207c219567 100644 --- a/tests/lib_2/isolate/issue_21398_parent_isolate1_test.dart +++ b/tests/lib_2/isolate/issue_21398_parent_isolate1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/issue_21398_parent_isolate2_test.dart b/tests/lib_2/isolate/issue_21398_parent_isolate2_test.dart index d092152e2d7..b072fa3306f 100644 --- a/tests/lib_2/isolate/issue_21398_parent_isolate2_test.dart +++ b/tests/lib_2/isolate/issue_21398_parent_isolate2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/issue_21398_parent_isolate_test.dart b/tests/lib_2/isolate/issue_21398_parent_isolate_test.dart index 601c9de6775..9459d31475d 100644 --- a/tests/lib_2/isolate/issue_21398_parent_isolate_test.dart +++ b/tests/lib_2/isolate/issue_21398_parent_isolate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/issue_22778_test.dart b/tests/lib_2/isolate/issue_22778_test.dart index 67d90a2a50c..05df46bbdcf 100644 --- a/tests/lib_2/isolate/issue_22778_test.dart +++ b/tests/lib_2/isolate/issue_22778_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/issue_24243_child1_isolate.dart b/tests/lib_2/isolate/issue_24243_child1_isolate.dart index 4565cd165ce..436b48d3668 100644 --- a/tests/lib_2/isolate/issue_24243_child1_isolate.dart +++ b/tests/lib_2/isolate/issue_24243_child1_isolate.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:isolate'; main(List args, message) { diff --git a/tests/lib_2/isolate/issue_24243_child2_isolate.dart b/tests/lib_2/isolate/issue_24243_child2_isolate.dart index a60330943c7..48fe2ec80f3 100644 --- a/tests/lib_2/isolate/issue_24243_child2_isolate.dart +++ b/tests/lib_2/isolate/issue_24243_child2_isolate.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:isolate'; main(List args, message) { diff --git a/tests/lib_2/isolate/issue_24243_child3_isolate.dart b/tests/lib_2/isolate/issue_24243_child3_isolate.dart index e45930ce508..f5b4442b53b 100644 --- a/tests/lib_2/isolate/issue_24243_child3_isolate.dart +++ b/tests/lib_2/isolate/issue_24243_child3_isolate.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import 'dart:isolate'; diff --git a/tests/lib_2/isolate/issue_24243_parent_isolate_test.dart b/tests/lib_2/isolate/issue_24243_parent_isolate_test.dart index 97e19291fcf..a991a251aa9 100644 --- a/tests/lib_2/isolate/issue_24243_parent_isolate_test.dart +++ b/tests/lib_2/isolate/issue_24243_parent_isolate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/issue_35626_test.dart b/tests/lib_2/isolate/issue_35626_test.dart index 26ee9c69bb0..9e9dbfeaa34 100644 --- a/tests/lib_2/isolate/issue_35626_test.dart +++ b/tests/lib_2/isolate/issue_35626_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/kill2_test.dart b/tests/lib_2/isolate/kill2_test.dart index 08001f702c9..9918c9fee8a 100644 --- a/tests/lib_2/isolate/kill2_test.dart +++ b/tests/lib_2/isolate/kill2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/kill_self_synchronously_test.dart b/tests/lib_2/isolate/kill_self_synchronously_test.dart index a7417070d4d..3ddb461d428 100644 --- a/tests/lib_2/isolate/kill_self_synchronously_test.dart +++ b/tests/lib_2/isolate/kill_self_synchronously_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/kill_self_test.dart b/tests/lib_2/isolate/kill_self_test.dart index 34c81ae4986..e78cb5e06c0 100644 --- a/tests/lib_2/isolate/kill_self_test.dart +++ b/tests/lib_2/isolate/kill_self_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/kill_test.dart b/tests/lib_2/isolate/kill_test.dart index c69b7a1b68f..0e695cf81ff 100644 --- a/tests/lib_2/isolate/kill_test.dart +++ b/tests/lib_2/isolate/kill_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/large_byte_data_leak_test.dart b/tests/lib_2/isolate/large_byte_data_leak_test.dart index fe2fda110ab..7db4ff57e0f 100644 --- a/tests/lib_2/isolate/large_byte_data_leak_test.dart +++ b/tests/lib_2/isolate/large_byte_data_leak_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/large_byte_data_test.dart b/tests/lib_2/isolate/large_byte_data_test.dart index 3861e5cc4b7..16811fa629b 100644 --- a/tests/lib_2/isolate/large_byte_data_test.dart +++ b/tests/lib_2/isolate/large_byte_data_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/mandel_isolate_test.dart b/tests/lib_2/isolate/mandel_isolate_test.dart index c037a64a715..c7da8a99408 100644 --- a/tests/lib_2/isolate/mandel_isolate_test.dart +++ b/tests/lib_2/isolate/mandel_isolate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/message2_test.dart b/tests/lib_2/isolate/message2_test.dart index 422b499163d..ccb33b33b3a 100644 --- a/tests/lib_2/isolate/message2_test.dart +++ b/tests/lib_2/isolate/message2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/message3_test.dart b/tests/lib_2/isolate/message3_test.dart index 8fb1d8badca..b9813bd6015 100644 --- a/tests/lib_2/isolate/message3_test.dart +++ b/tests/lib_2/isolate/message3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/message4_test.dart b/tests/lib_2/isolate/message4_test.dart index 345b21f531c..2d53736d2a5 100644 --- a/tests/lib_2/isolate/message4_test.dart +++ b/tests/lib_2/isolate/message4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/message_const_type_arguments_1_test.dart b/tests/lib_2/isolate/message_const_type_arguments_1_test.dart index 480cda5f5a5..f4ffd0e8cb8 100644 --- a/tests/lib_2/isolate/message_const_type_arguments_1_test.dart +++ b/tests/lib_2/isolate/message_const_type_arguments_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/message_const_type_arguments_2_test.dart b/tests/lib_2/isolate/message_const_type_arguments_2_test.dart index 8398d2bf6c0..46d76d43b03 100644 --- a/tests/lib_2/isolate/message_const_type_arguments_2_test.dart +++ b/tests/lib_2/isolate/message_const_type_arguments_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/message_enum_test.dart b/tests/lib_2/isolate/message_enum_test.dart index 55eb38bfb54..e0fef28abd2 100644 --- a/tests/lib_2/isolate/message_enum_test.dart +++ b/tests/lib_2/isolate/message_enum_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/message_test.dart b/tests/lib_2/isolate/message_test.dart index 0ee5a67df39..b2cdf5aaf25 100644 --- a/tests/lib_2/isolate/message_test.dart +++ b/tests/lib_2/isolate/message_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/mint_maker_test.dart b/tests/lib_2/isolate/mint_maker_test.dart index 3545eebda28..7fd36501c36 100644 --- a/tests/lib_2/isolate/mint_maker_test.dart +++ b/tests/lib_2/isolate/mint_maker_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/native_wrapper_message_test.dart b/tests/lib_2/isolate/native_wrapper_message_test.dart index 4c06821aecc..814a5810a24 100644 --- a/tests/lib_2/isolate/native_wrapper_message_test.dart +++ b/tests/lib_2/isolate/native_wrapper_message_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/nested_spawn2_test.dart b/tests/lib_2/isolate/nested_spawn2_test.dart index f8cf00af15c..6a955ba3b4e 100644 --- a/tests/lib_2/isolate/nested_spawn2_test.dart +++ b/tests/lib_2/isolate/nested_spawn2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/nested_spawn_test.dart b/tests/lib_2/isolate/nested_spawn_test.dart index 952c1923039..095f7905ec5 100644 --- a/tests/lib_2/isolate/nested_spawn_test.dart +++ b/tests/lib_2/isolate/nested_spawn_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/non_fatal_exception_in_timer_callback_test.dart b/tests/lib_2/isolate/non_fatal_exception_in_timer_callback_test.dart index 0d2e8cc011c..352827f36de 100644 --- a/tests/lib_2/isolate/non_fatal_exception_in_timer_callback_test.dart +++ b/tests/lib_2/isolate/non_fatal_exception_in_timer_callback_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/object_leak_test.dart b/tests/lib_2/isolate/object_leak_test.dart index d563786ec45..aee8af3473d 100644 --- a/tests/lib_2/isolate/object_leak_test.dart +++ b/tests/lib_2/isolate/object_leak_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/ondone_test.dart b/tests/lib_2/isolate/ondone_test.dart index 10b039efbaf..2ca9592ca9a 100644 --- a/tests/lib_2/isolate/ondone_test.dart +++ b/tests/lib_2/isolate/ondone_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source is governed by a // BSD-style license that can be found in the LICENSE file. +// @dart = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/package_config_getter_test.dart b/tests/lib_2/isolate/package_config_getter_test.dart index 89b347a8c94..43e279ab732 100644 --- a/tests/lib_2/isolate/package_config_getter_test.dart +++ b/tests/lib_2/isolate/package_config_getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'package:path/path.dart' as path; diff --git a/tests/lib_2/isolate/package_config_test.dart b/tests/lib_2/isolate/package_config_test.dart index c4119b20f39..25b7b48b961 100644 --- a/tests/lib_2/isolate/package_config_test.dart +++ b/tests/lib_2/isolate/package_config_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // VMOptions=--trace_shutdown diff --git a/tests/lib_2/isolate/package_resolve_test.dart b/tests/lib_2/isolate/package_resolve_test.dart index 99cb6f17470..efb4fd6bf39 100644 --- a/tests/lib_2/isolate/package_resolve_test.dart +++ b/tests/lib_2/isolate/package_resolve_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/package_root_test.dart b/tests/lib_2/isolate/package_root_test.dart index 4b3d46b46ac..e29f99bdf10 100644 --- a/tests/lib_2/isolate/package_root_test.dart +++ b/tests/lib_2/isolate/package_root_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/pause_test.dart b/tests/lib_2/isolate/pause_test.dart index 9a28a54aa7b..20a588b28a1 100644 --- a/tests/lib_2/isolate/pause_test.dart +++ b/tests/lib_2/isolate/pause_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/ping_pause_test.dart b/tests/lib_2/isolate/ping_pause_test.dart index d83d55f6516..b96b0b1e839 100644 --- a/tests/lib_2/isolate/ping_pause_test.dart +++ b/tests/lib_2/isolate/ping_pause_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/ping_test.dart b/tests/lib_2/isolate/ping_test.dart index e9a0d051c55..79cad0ec328 100644 --- a/tests/lib_2/isolate/ping_test.dart +++ b/tests/lib_2/isolate/ping_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/port_test.dart b/tests/lib_2/isolate/port_test.dart index 9da0dce4620..14930486c5f 100644 --- a/tests/lib_2/isolate/port_test.dart +++ b/tests/lib_2/isolate/port_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/raw_port_test.dart b/tests/lib_2/isolate/raw_port_test.dart index d0b8695ba76..cd9c7c2d72d 100644 --- a/tests/lib_2/isolate/raw_port_test.dart +++ b/tests/lib_2/isolate/raw_port_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/regress_34752_test.dart b/tests/lib_2/isolate/regress_34752_test.dart index fc171393dee..73902473a48 100644 --- a/tests/lib_2/isolate/regress_34752_test.dart +++ b/tests/lib_2/isolate/regress_34752_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/regress_flutter_22796_test.dart b/tests/lib_2/isolate/regress_flutter_22796_test.dart index f97ca055d7a..1fe759bc93e 100644 --- a/tests/lib_2/isolate/regress_flutter_22796_test.dart +++ b/tests/lib_2/isolate/regress_flutter_22796_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/request_reply_test.dart b/tests/lib_2/isolate/request_reply_test.dart index 3dd9274ff9f..3802b404160 100644 --- a/tests/lib_2/isolate/request_reply_test.dart +++ b/tests/lib_2/isolate/request_reply_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/resolve_package_uri_test.dart b/tests/lib_2/isolate/resolve_package_uri_test.dart index 26a48e27e6a..2cab226c3a4 100644 --- a/tests/lib_2/isolate/resolve_package_uri_test.dart +++ b/tests/lib_2/isolate/resolve_package_uri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/scenarios/automatic_resolution_root/package_resolve_test.dart b/tests/lib_2/isolate/scenarios/automatic_resolution_root/package_resolve_test.dart index eb3cbf7ce09..53ae200332f 100644 --- a/tests/lib_2/isolate/scenarios/automatic_resolution_root/package_resolve_test.dart +++ b/tests/lib_2/isolate/scenarios/automatic_resolution_root/package_resolve_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'dart:isolate'; diff --git a/tests/lib_2/isolate/scenarios/automatic_resolution_spec/package_resolve_test.dart b/tests/lib_2/isolate/scenarios/automatic_resolution_spec/package_resolve_test.dart index dee6d102c39..4e3cbbdc82f 100644 --- a/tests/lib_2/isolate/scenarios/automatic_resolution_spec/package_resolve_test.dart +++ b/tests/lib_2/isolate/scenarios/automatic_resolution_spec/package_resolve_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'dart:isolate'; diff --git a/tests/lib_2/isolate/scenarios/bad_resolve_package/bad_resolve_package_test.dart b/tests/lib_2/isolate/scenarios/bad_resolve_package/bad_resolve_package_test.dart index 5866729b1f0..a17f089520f 100644 --- a/tests/lib_2/isolate/scenarios/bad_resolve_package/bad_resolve_package_test.dart +++ b/tests/lib_2/isolate/scenarios/bad_resolve_package/bad_resolve_package_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=none import 'dart:io'; diff --git a/tests/lib_2/isolate/scenarios/package_data_uri_spec/package_resolve_test.dart b/tests/lib_2/isolate/scenarios/package_data_uri_spec/package_resolve_test.dart index 99cb6f17470..efb4fd6bf39 100644 --- a/tests/lib_2/isolate/scenarios/package_data_uri_spec/package_resolve_test.dart +++ b/tests/lib_2/isolate/scenarios/package_data_uri_spec/package_resolve_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/scenarios/package_relative_root/package_relative_root_test.dart b/tests/lib_2/isolate/scenarios/package_relative_root/package_relative_root_test.dart index 034881b8c0e..49ee7847fa9 100644 --- a/tests/lib_2/isolate/scenarios/package_relative_root/package_relative_root_test.dart +++ b/tests/lib_2/isolate/scenarios/package_relative_root/package_relative_root_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=none import 'dart:io'; diff --git a/tests/lib_2/isolate/scenarios/package_relative_root/packages/bar/bar.dart b/tests/lib_2/isolate/scenarios/package_relative_root/packages/bar/bar.dart index 7fb99e2ffff..93a202c0712 100644 --- a/tests/lib_2/isolate/scenarios/package_relative_root/packages/bar/bar.dart +++ b/tests/lib_2/isolate/scenarios/package_relative_root/packages/bar/bar.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 class Bar { static var value = "Bar1"; } diff --git a/tests/lib_2/isolate/scenarios/package_relative_root/packages/bar/spawned_packages/bar/bar.dart b/tests/lib_2/isolate/scenarios/package_relative_root/packages/bar/spawned_packages/bar/bar.dart index cd6723aff17..d8e06e07fa5 100644 --- a/tests/lib_2/isolate/scenarios/package_relative_root/packages/bar/spawned_packages/bar/bar.dart +++ b/tests/lib_2/isolate/scenarios/package_relative_root/packages/bar/spawned_packages/bar/bar.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 class Bar { static var value = "Bar2"; } diff --git a/tests/lib_2/isolate/scenarios/package_relative_root/packages/bar/spawned_packages/foo/foo.dart b/tests/lib_2/isolate/scenarios/package_relative_root/packages/bar/spawned_packages/foo/foo.dart index ba907d1a7f0..3db42315c0a 100644 --- a/tests/lib_2/isolate/scenarios/package_relative_root/packages/bar/spawned_packages/foo/foo.dart +++ b/tests/lib_2/isolate/scenarios/package_relative_root/packages/bar/spawned_packages/foo/foo.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 class Foo { static var value = "Foo"; } diff --git a/tests/lib_2/isolate/scenarios/package_relative_root/packages/foo/foo.dart b/tests/lib_2/isolate/scenarios/package_relative_root/packages/foo/foo.dart index ba907d1a7f0..3db42315c0a 100644 --- a/tests/lib_2/isolate/scenarios/package_relative_root/packages/foo/foo.dart +++ b/tests/lib_2/isolate/scenarios/package_relative_root/packages/foo/foo.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 class Foo { static var value = "Foo"; } diff --git a/tests/lib_2/isolate/scenarios/package_relative_spec/bar1_package/bar.dart b/tests/lib_2/isolate/scenarios/package_relative_spec/bar1_package/bar.dart index 7fb99e2ffff..93a202c0712 100644 --- a/tests/lib_2/isolate/scenarios/package_relative_spec/bar1_package/bar.dart +++ b/tests/lib_2/isolate/scenarios/package_relative_spec/bar1_package/bar.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 class Bar { static var value = "Bar1"; } diff --git a/tests/lib_2/isolate/scenarios/package_relative_spec/bar2_package/bar.dart b/tests/lib_2/isolate/scenarios/package_relative_spec/bar2_package/bar.dart index cd6723aff17..d8e06e07fa5 100644 --- a/tests/lib_2/isolate/scenarios/package_relative_spec/bar2_package/bar.dart +++ b/tests/lib_2/isolate/scenarios/package_relative_spec/bar2_package/bar.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 class Bar { static var value = "Bar2"; } diff --git a/tests/lib_2/isolate/scenarios/package_relative_spec/foo_package/foo.dart b/tests/lib_2/isolate/scenarios/package_relative_spec/foo_package/foo.dart index ba907d1a7f0..3db42315c0a 100644 --- a/tests/lib_2/isolate/scenarios/package_relative_spec/foo_package/foo.dart +++ b/tests/lib_2/isolate/scenarios/package_relative_spec/foo_package/foo.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 class Foo { static var value = "Foo"; } diff --git a/tests/lib_2/isolate/scenarios/package_relative_spec/package_relative_spec_test.dart b/tests/lib_2/isolate/scenarios/package_relative_spec/package_relative_spec_test.dart index 9e5b603f8f5..a4c96d6ae8f 100644 --- a/tests/lib_2/isolate/scenarios/package_relative_spec/package_relative_spec_test.dart +++ b/tests/lib_2/isolate/scenarios/package_relative_spec/package_relative_spec_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=none import 'dart:io'; diff --git a/tests/lib_2/isolate/scenarios/short_package/flu_package/flu.dart b/tests/lib_2/isolate/scenarios/short_package/flu_package/flu.dart index 5e33f7c5b9d..5fd00ef76fd 100644 --- a/tests/lib_2/isolate/scenarios/short_package/flu_package/flu.dart +++ b/tests/lib_2/isolate/scenarios/short_package/flu_package/flu.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 class Flu { static var value = "Flu"; } diff --git a/tests/lib_2/isolate/scenarios/short_package/short_package_test.dart b/tests/lib_2/isolate/scenarios/short_package/short_package_test.dart index 16ec032107b..66cc30cdb34 100644 --- a/tests/lib_2/isolate/scenarios/short_package/short_package_test.dart +++ b/tests/lib_2/isolate/scenarios/short_package/short_package_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=none import 'dart:io'; diff --git a/tests/lib_2/isolate/send_private_test.dart b/tests/lib_2/isolate/send_private_test.dart index 46114c8abff..f8481ec8dea 100644 --- a/tests/lib_2/isolate/send_private_test.dart +++ b/tests/lib_2/isolate/send_private_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/simple_message_test.dart b/tests/lib_2/isolate/simple_message_test.dart index 677998cddf7..bb549cb6ebf 100644 --- a/tests/lib_2/isolate/simple_message_test.dart +++ b/tests/lib_2/isolate/simple_message_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/spawn_function_custom_class_test.dart b/tests/lib_2/isolate/spawn_function_custom_class_test.dart index 5abcae63be6..45151be266c 100644 --- a/tests/lib_2/isolate/spawn_function_custom_class_test.dart +++ b/tests/lib_2/isolate/spawn_function_custom_class_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/spawn_function_test.dart b/tests/lib_2/isolate/spawn_function_test.dart index 2ad8b872756..b8b7659eeac 100644 --- a/tests/lib_2/isolate/spawn_function_test.dart +++ b/tests/lib_2/isolate/spawn_function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/spawn_generic_test.dart b/tests/lib_2/isolate/spawn_generic_test.dart index 92bd72e45ce..f73b7118667 100644 --- a/tests/lib_2/isolate/spawn_generic_test.dart +++ b/tests/lib_2/isolate/spawn_generic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/spawn_uri__package_uri__test.dart b/tests/lib_2/isolate/spawn_uri__package_uri__test.dart index 61837fc4500..46d4a142e3c 100644 --- a/tests/lib_2/isolate/spawn_uri__package_uri__test.dart +++ b/tests/lib_2/isolate/spawn_uri__package_uri__test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/isolate/spawn_uri_child_isolate.dart b/tests/lib_2/isolate/spawn_uri_child_isolate.dart index 81f40f9bb9d..d73d24431d3 100644 --- a/tests/lib_2/isolate/spawn_uri_child_isolate.dart +++ b/tests/lib_2/isolate/spawn_uri_child_isolate.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Child isolate code to be spawned from a URI to this file. library SpawnUriChildIsolate; diff --git a/tests/lib_2/isolate/spawn_uri_exported_main.dart b/tests/lib_2/isolate/spawn_uri_exported_main.dart index afd0122978d..6878f6e476f 100644 --- a/tests/lib_2/isolate/spawn_uri_exported_main.dart +++ b/tests/lib_2/isolate/spawn_uri_exported_main.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 export "spawn_uri_exported_main_lib.dart"; maine() { diff --git a/tests/lib_2/isolate/spawn_uri_exported_main_lib.dart b/tests/lib_2/isolate/spawn_uri_exported_main_lib.dart index 750046575d5..1410a464cae 100644 --- a/tests/lib_2/isolate/spawn_uri_exported_main_lib.dart +++ b/tests/lib_2/isolate/spawn_uri_exported_main_lib.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library spawn_uri_exported_main_lib; main(args, msg) { diff --git a/tests/lib_2/isolate/spawn_uri_exported_main_test.dart b/tests/lib_2/isolate/spawn_uri_exported_main_test.dart index 93f7c265ddd..ba704e871fe 100644 --- a/tests/lib_2/isolate/spawn_uri_exported_main_test.dart +++ b/tests/lib_2/isolate/spawn_uri_exported_main_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/spawn_uri_fail_test.dart b/tests/lib_2/isolate/spawn_uri_fail_test.dart index 84d54b0d67f..06b6bf508e4 100644 --- a/tests/lib_2/isolate/spawn_uri_fail_test.dart +++ b/tests/lib_2/isolate/spawn_uri_fail_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/spawn_uri_missing_from_isolate_test.dart b/tests/lib_2/isolate/spawn_uri_missing_from_isolate_test.dart index 915ffa4c382..a7f9e7aa862 100644 --- a/tests/lib_2/isolate/spawn_uri_missing_from_isolate_test.dart +++ b/tests/lib_2/isolate/spawn_uri_missing_from_isolate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/spawn_uri_missing_test.dart b/tests/lib_2/isolate/spawn_uri_missing_test.dart index 71644462f7b..83aa2e902b3 100644 --- a/tests/lib_2/isolate/spawn_uri_missing_test.dart +++ b/tests/lib_2/isolate/spawn_uri_missing_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/spawn_uri_multi_test.dart b/tests/lib_2/isolate/spawn_uri_multi_test.dart index 38a22ee88af..83eb11724d4 100644 --- a/tests/lib_2/isolate/spawn_uri_multi_test.dart +++ b/tests/lib_2/isolate/spawn_uri_multi_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/spawn_uri_nested_child1_vm_isolate.dart b/tests/lib_2/isolate/spawn_uri_nested_child1_vm_isolate.dart index 60083570f27..3fc1a33dddf 100644 --- a/tests/lib_2/isolate/spawn_uri_nested_child1_vm_isolate.dart +++ b/tests/lib_2/isolate/spawn_uri_nested_child1_vm_isolate.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Example of nested spawning of isolates from a URI // Note: the following comment is used by test.dart to additionally compile the // other isolate's code. diff --git a/tests/lib_2/isolate/spawn_uri_nested_child2_vm_isolate.dart b/tests/lib_2/isolate/spawn_uri_nested_child2_vm_isolate.dart index a6c90b8fcd2..93df77c1262 100644 --- a/tests/lib_2/isolate/spawn_uri_nested_child2_vm_isolate.dart +++ b/tests/lib_2/isolate/spawn_uri_nested_child2_vm_isolate.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Child isolate code to be spawned from a URI to this file. library NestedSpawnUriChild2Library; diff --git a/tests/lib_2/isolate/spawn_uri_nested_vm_test.dart b/tests/lib_2/isolate/spawn_uri_nested_vm_test.dart index 5da7fa9f789..6ecabb1dac8 100644 --- a/tests/lib_2/isolate/spawn_uri_nested_vm_test.dart +++ b/tests/lib_2/isolate/spawn_uri_nested_vm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/spawn_uri_test.dart b/tests/lib_2/isolate/spawn_uri_test.dart index 0b76b4f4fb3..1698d46dbf0 100644 --- a/tests/lib_2/isolate/spawn_uri_test.dart +++ b/tests/lib_2/isolate/spawn_uri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/spawn_uri_vm_test.dart b/tests/lib_2/isolate/spawn_uri_vm_test.dart index 48d30a2f70b..e64db6448e4 100644 --- a/tests/lib_2/isolate/spawn_uri_vm_test.dart +++ b/tests/lib_2/isolate/spawn_uri_vm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/stacktrace_message_test.dart b/tests/lib_2/isolate/stacktrace_message_test.dart index 41a08209653..4738951b798 100644 --- a/tests/lib_2/isolate/stacktrace_message_test.dart +++ b/tests/lib_2/isolate/stacktrace_message_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:isolate'; import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/lib_2/isolate/start_paused_test.dart b/tests/lib_2/isolate/start_paused_test.dart index 217ebf4618f..30059185f30 100644 --- a/tests/lib_2/isolate/start_paused_test.dart +++ b/tests/lib_2/isolate/start_paused_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/static_function_lib.dart b/tests/lib_2/isolate/static_function_lib.dart index 886284f6b5c..590ee93a650 100644 --- a/tests/lib_2/isolate/static_function_lib.dart +++ b/tests/lib_2/isolate/static_function_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library static_function_testlib; import "dart:isolate" show SendPort; diff --git a/tests/lib_2/isolate/static_function_test.dart b/tests/lib_2/isolate/static_function_test.dart index 9d6946438e4..e213876fcba 100644 --- a/tests/lib_2/isolate/static_function_test.dart +++ b/tests/lib_2/isolate/static_function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/string_from_environment_default_value_test.dart b/tests/lib_2/isolate/string_from_environment_default_value_test.dart index 6c2adfbb121..46c48a5a943 100644 --- a/tests/lib_2/isolate/string_from_environment_default_value_test.dart +++ b/tests/lib_2/isolate/string_from_environment_default_value_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/timer_isolate_test.dart b/tests/lib_2/isolate/timer_isolate_test.dart index b2c98d90955..972f5926691 100644 --- a/tests/lib_2/isolate/timer_isolate_test.dart +++ b/tests/lib_2/isolate/timer_isolate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/timer_multiple_isolates_test.dart b/tests/lib_2/isolate/timer_multiple_isolates_test.dart index 51ec4073c9b..29bab199d9f 100644 --- a/tests/lib_2/isolate/timer_multiple_isolates_test.dart +++ b/tests/lib_2/isolate/timer_multiple_isolates_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/transferable_failed_to_send_test.dart b/tests/lib_2/isolate/transferable_failed_to_send_test.dart index a8d3bcdc3a8..8ee6226c329 100644 --- a/tests/lib_2/isolate/transferable_failed_to_send_test.dart +++ b/tests/lib_2/isolate/transferable_failed_to_send_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/transferable_test.dart b/tests/lib_2/isolate/transferable_test.dart index f8888e73cb6..aef8d976b8d 100644 --- a/tests/lib_2/isolate/transferable_test.dart +++ b/tests/lib_2/isolate/transferable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/typed_message_test.dart b/tests/lib_2/isolate/typed_message_test.dart index 955204dd6ac..0700261a908 100644 --- a/tests/lib_2/isolate/typed_message_test.dart +++ b/tests/lib_2/isolate/typed_message_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // Dart test program for testing isolate communication with diff --git a/tests/lib_2/isolate/unboxed_double_snapshot_writer_test.dart b/tests/lib_2/isolate/unboxed_double_snapshot_writer_test.dart index 132ad6bf7eb..400424fdbb6 100644 --- a/tests/lib_2/isolate/unboxed_double_snapshot_writer_test.dart +++ b/tests/lib_2/isolate/unboxed_double_snapshot_writer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:isolate'; import 'dart:typed_data'; diff --git a/tests/lib_2/isolate/unresolved_ports_test.dart b/tests/lib_2/isolate/unresolved_ports_test.dart index fa41bb46182..e9301231f1b 100644 --- a/tests/lib_2/isolate/unresolved_ports_test.dart +++ b/tests/lib_2/isolate/unresolved_ports_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/isolate/vm_rehash_test.dart b/tests/lib_2/isolate/vm_rehash_test.dart index 6c1065c1bec..b854343c86b 100644 --- a/tests/lib_2/isolate/vm_rehash_test.dart +++ b/tests/lib_2/isolate/vm_rehash_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/lib_2/js/array_test.dart b/tests/lib_2/js/array_test.dart index 30bae97e8e6..4cf555837e7 100644 --- a/tests/lib_2/js/array_test.dart +++ b/tests/lib_2/js/array_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library array_test; diff --git a/tests/lib_2/js/datetime_roundtrip_test.dart b/tests/lib_2/js/datetime_roundtrip_test.dart index 16cd6d04879..daefed809bf 100644 --- a/tests/lib_2/js/datetime_roundtrip_test.dart +++ b/tests/lib_2/js/datetime_roundtrip_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:js'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/js/external_nonjs_static_test.dart b/tests/lib_2/js/external_nonjs_static_test.dart index 3359f0bc091..6635d27fe10 100644 --- a/tests/lib_2/js/external_nonjs_static_test.dart +++ b/tests/lib_2/js/external_nonjs_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Checks for static errors using external without the @JS() annotation, // in a library without a @JS() annotation diff --git a/tests/lib_2/js/external_static_test.dart b/tests/lib_2/js/external_static_test.dart index 9326b9ee282..8ac09be2881 100644 --- a/tests/lib_2/js/external_static_test.dart +++ b/tests/lib_2/js/external_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Checks for static errors using external without the @JS() annotation, // in a library with a @JS() annotation diff --git a/tests/lib_2/js/instanceof_test.dart b/tests/lib_2/js/instanceof_test.dart index 65bbd21a644..a4c3c0de848 100644 --- a/tests/lib_2/js/instanceof_test.dart +++ b/tests/lib_2/js/instanceof_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library instanceof_test; diff --git a/tests/lib_2/js/js_util/async_test.dart b/tests/lib_2/js/js_util/async_test.dart index 9172fe781dd..6a4935893aa 100644 --- a/tests/lib_2/js/js_util/async_test.dart +++ b/tests/lib_2/js/js_util/async_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library js_util_async_test; diff --git a/tests/lib_2/js/js_util/js_prefix_test.dart b/tests/lib_2/js/js_util/js_prefix_test.dart index 47205cb77b8..f74daa58c29 100644 --- a/tests/lib_2/js/js_util/js_prefix_test.dart +++ b/tests/lib_2/js/js_util/js_prefix_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests the functionality of the JS$ prefix for escaping keywords in JS names. // Currently only implemented in dart2js, expected to fail in ddc. diff --git a/tests/lib_2/js/js_util/jsify_test.dart b/tests/lib_2/js/js_util/jsify_test.dart index 5ed916d0a0d..a75dac56ba7 100644 --- a/tests/lib_2/js/js_util/jsify_test.dart +++ b/tests/lib_2/js/js_util/jsify_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests the jsify functionality of the js_util library. @JS() diff --git a/tests/lib_2/js/js_util/promise_reject_null_test.dart b/tests/lib_2/js/js_util/promise_reject_null_test.dart index 70da7f9b55a..86a0a90ec8c 100644 --- a/tests/lib_2/js/js_util/promise_reject_null_test.dart +++ b/tests/lib_2/js/js_util/promise_reject_null_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 @JS() library promise_reject_null_test; diff --git a/tests/lib_2/js/js_util/properties_test.dart b/tests/lib_2/js/js_util/properties_test.dart index ab0b8444990..4437065e39e 100644 --- a/tests/lib_2/js/js_util/properties_test.dart +++ b/tests/lib_2/js/js_util/properties_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests the functionality of object properties with the js_util library. For // js_util tests with HTML objects see tests/lib/html/js_util_test.dart. diff --git a/tests/lib_2/js/method_call_on_object_test.dart b/tests/lib_2/js/method_call_on_object_test.dart index b8eba44192b..518fe994c1e 100644 --- a/tests/lib_2/js/method_call_on_object_test.dart +++ b/tests/lib_2/js/method_call_on_object_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests method calls (typed and dynamic) on various forms of JS objects. @JS() diff --git a/tests/lib_2/js/mock_test.dart b/tests/lib_2/js/mock_test.dart index a33ac5ed097..f8a8030bafc 100644 --- a/tests/lib_2/js/mock_test.dart +++ b/tests/lib_2/js/mock_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library mock_test; diff --git a/tests/lib_2/js/null_test.dart b/tests/lib_2/js/null_test.dart index b5652638737..5c689f3af90 100644 --- a/tests/lib_2/js/null_test.dart +++ b/tests/lib_2/js/null_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library null_test; import 'dart:js'; diff --git a/tests/lib_2/js/parameters_test.dart b/tests/lib_2/js/parameters_test.dart index 4a65a6b1dba..b340cb17254 100644 --- a/tests/lib_2/js/parameters_test.dart +++ b/tests/lib_2/js/parameters_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Tests positional and optional arguments for various JS objects. @JS() diff --git a/tests/lib_2/js/prototype_access_test.dart b/tests/lib_2/js/prototype_access_test.dart index adea05ebcc8..b5499453467 100644 --- a/tests/lib_2/js/prototype_access_test.dart +++ b/tests/lib_2/js/prototype_access_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @JS() library prototest; diff --git a/tests/lib_2/math/call_cmath_box_failure_path_test.dart b/tests/lib_2/math/call_cmath_box_failure_path_test.dart index bf634437379..911ee237e34 100644 --- a/tests/lib_2/math/call_cmath_box_failure_path_test.dart +++ b/tests/lib_2/math/call_cmath_box_failure_path_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization-counter-threshold=-1 --new_gen_semi_max_size=2 // TODO(rnystrom): This looks like a VM-specific test. Move out of diff --git a/tests/lib_2/math/coin_test.dart b/tests/lib_2/math/coin_test.dart index f930426e9c7..a9dcd5da408 100644 --- a/tests/lib_2/math/coin_test.dart +++ b/tests/lib_2/math/coin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that a coin toss with Random.nextBool() is fair. import "package:expect/expect.dart"; diff --git a/tests/lib_2/math/double_pow_test.dart b/tests/lib_2/math/double_pow_test.dart index 4feac67136a..e68380bb6ad 100644 --- a/tests/lib_2/math/double_pow_test.dart +++ b/tests/lib_2/math/double_pow_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=5 --no-background-compilation +// @dart = 2.9 + library math_test; import "package:expect/expect.dart"; diff --git a/tests/lib_2/math/implement_rectangle_test.dart b/tests/lib_2/math/implement_rectangle_test.dart index 3a31ed84331..f4a616790bb 100644 --- a/tests/lib_2/math/implement_rectangle_test.dart +++ b/tests/lib_2/math/implement_rectangle_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:math' hide Rectangle; import 'dart:math' as math show Point, Rectangle, MutableRectangle; import 'package:expect/expect.dart' show Expect; diff --git a/tests/lib_2/math/low_test.dart b/tests/lib_2/math/low_test.dart index f7e906050c3..d25b4ee7ffb 100644 --- a/tests/lib_2/math/low_test.dart +++ b/tests/lib_2/math/low_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that the default PRNG does uniformly distribute values when not using // a power of 2. diff --git a/tests/lib_2/math/math2_test.dart b/tests/lib_2/math/math2_test.dart index 83f0183594c..9ec50717dc6 100644 --- a/tests/lib_2/math/math2_test.dart +++ b/tests/lib_2/math/math2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // We temporarily test both the new math library and the old Math // class. This can easily be simplified once we get rid of the Math // class entirely. diff --git a/tests/lib_2/math/math_parse_double_test.dart b/tests/lib_2/math/math_parse_double_test.dart index a3b0ea5c66b..8aef34fc378 100644 --- a/tests/lib_2/math/math_parse_double_test.dart +++ b/tests/lib_2/math/math_parse_double_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // We temporarily test both the new math library and the old Math // class. This can easily be simplified once we get rid of the Math // class entirely. diff --git a/tests/lib_2/math/math_test.dart b/tests/lib_2/math/math_test.dart index ca329513a31..5d2d71d60c2 100644 --- a/tests/lib_2/math/math_test.dart +++ b/tests/lib_2/math/math_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library math_test; import "package:expect/expect.dart"; diff --git a/tests/lib_2/math/min_max_test.dart b/tests/lib_2/math/min_max_test.dart index 4fb4317f234..57b43e41ec5 100644 --- a/tests/lib_2/math/min_max_test.dart +++ b/tests/lib_2/math/min_max_test.dart @@ -4,6 +4,8 @@ // Dart test for testing Math.min and Math.max. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + library min_max_test; import "package:expect/expect.dart"; diff --git a/tests/lib_2/math/pi_test.dart b/tests/lib_2/math/pi_test.dart index b867132fbe8..cda9e752124 100644 --- a/tests/lib_2/math/pi_test.dart +++ b/tests/lib_2/math/pi_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that the default PRNG does converge towards Pi when doing a Monte Carlo // simulation. diff --git a/tests/lib_2/math/point_test.dart b/tests/lib_2/math/point_test.dart index 7e6979ab448..359e8b1b3f6 100644 --- a/tests/lib_2/math/point_test.dart +++ b/tests/lib_2/math/point_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:math'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/math/random_big_test.dart b/tests/lib_2/math/random_big_test.dart index 25c57e7d6de..826980c98e7 100644 --- a/tests/lib_2/math/random_big_test.dart +++ b/tests/lib_2/math/random_big_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that Random can deal with a seed at upper end of 64-bit range. import "package:expect/expect.dart"; diff --git a/tests/lib_2/math/random_secure_test.dart b/tests/lib_2/math/random_secure_test.dart index a28a215350b..c8f4cc9f5d6 100644 --- a/tests/lib_2/math/random_secure_test.dart +++ b/tests/lib_2/math/random_secure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that the secure random generator does not systematically generates // duplicates. Note that this test is flaky by definition, since duplicates // can occur. They should be extremely rare, though. diff --git a/tests/lib_2/math/random_secure_unsupported_test.dart b/tests/lib_2/math/random_secure_unsupported_test.dart index 7e8744c7885..a408096cb67 100644 --- a/tests/lib_2/math/random_secure_unsupported_test.dart +++ b/tests/lib_2/math/random_secure_unsupported_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that `Random.secure()` throws `UnsupportedError` each time it fails. import "package:expect/expect.dart"; diff --git a/tests/lib_2/math/random_test.dart b/tests/lib_2/math/random_test.dart index 9e663653bd5..4c36c178652 100644 --- a/tests/lib_2/math/random_test.dart +++ b/tests/lib_2/math/random_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that rnd.nextInt with a seed generates the same sequence each time. // Library tag to allow Dartium to run the test. diff --git a/tests/lib_2/math/rectangle_test.dart b/tests/lib_2/math/rectangle_test.dart index 17a6f863a9e..26810235246 100644 --- a/tests/lib_2/math/rectangle_test.dart +++ b/tests/lib_2/math/rectangle_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:math'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/abstract_class_test.dart b/tests/lib_2/mirrors/abstract_class_test.dart index 8cd4fae93f7..529ba51cd99 100644 --- a/tests/lib_2/mirrors/abstract_class_test.dart +++ b/tests/lib_2/mirrors/abstract_class_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.abstract_class_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/abstract_test.dart b/tests/lib_2/mirrors/abstract_test.dart index aad20b2b0db..96cd5b09cca 100644 --- a/tests/lib_2/mirrors/abstract_test.dart +++ b/tests/lib_2/mirrors/abstract_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test abstract classes are retained. library test.abstract_test; diff --git a/tests/lib_2/mirrors/accessor_cache_overflow_test.dart b/tests/lib_2/mirrors/accessor_cache_overflow_test.dart index 5703ea1b124..cc3a1b85239 100644 --- a/tests/lib_2/mirrors/accessor_cache_overflow_test.dart +++ b/tests/lib_2/mirrors/accessor_cache_overflow_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test runs invokes getField and setField enough times to get cached // closures generated and with enough different field names to trip the path // that flushes the closure cache. diff --git a/tests/lib_2/mirrors/apply3_test.dart b/tests/lib_2/mirrors/apply3_test.dart index d96fa0d264e..928171d6759 100644 --- a/tests/lib_2/mirrors/apply3_test.dart +++ b/tests/lib_2/mirrors/apply3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test [Function.apply] on user-defined classes that implement [noSuchMethod]. import "package:expect/expect.dart"; diff --git a/tests/lib_2/mirrors/array_tracing2_test.dart b/tests/lib_2/mirrors/array_tracing2_test.dart index 39411a10b77..9afc4cbe549 100644 --- a/tests/lib_2/mirrors/array_tracing2_test.dart +++ b/tests/lib_2/mirrors/array_tracing2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; class A { diff --git a/tests/lib_2/mirrors/array_tracing3_test.dart b/tests/lib_2/mirrors/array_tracing3_test.dart index 092feacdc82..94ceeb85ac4 100644 --- a/tests/lib_2/mirrors/array_tracing3_test.dart +++ b/tests/lib_2/mirrors/array_tracing3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; class A { diff --git a/tests/lib_2/mirrors/array_tracing_test.dart b/tests/lib_2/mirrors/array_tracing_test.dart index 092feacdc82..94ceeb85ac4 100644 --- a/tests/lib_2/mirrors/array_tracing_test.dart +++ b/tests/lib_2/mirrors/array_tracing_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; class A { diff --git a/tests/lib_2/mirrors/bad_argument_types_test.dart b/tests/lib_2/mirrors/bad_argument_types_test.dart index a6d129f52b5..d10b1d3d8a5 100644 --- a/tests/lib_2/mirrors/bad_argument_types_test.dart +++ b/tests/lib_2/mirrors/bad_argument_types_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/basic_types_in_dart_core_test.dart b/tests/lib_2/mirrors/basic_types_in_dart_core_test.dart index 50e9203b2b8..05c41db71b8 100644 --- a/tests/lib_2/mirrors/basic_types_in_dart_core_test.dart +++ b/tests/lib_2/mirrors/basic_types_in_dart_core_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.basic_types_in_dart_core; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/circular_factory_redirection_test.dart b/tests/lib_2/mirrors/circular_factory_redirection_test.dart index 560ed6e79d1..66474c6a91e 100644 --- a/tests/lib_2/mirrors/circular_factory_redirection_test.dart +++ b/tests/lib_2/mirrors/circular_factory_redirection_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:mirrors"; import "package:expect/expect.dart"; diff --git a/tests/lib_2/mirrors/class_declarations_test.dart b/tests/lib_2/mirrors/class_declarations_test.dart index f0a121cdbbb..fc43a7673d2 100644 --- a/tests/lib_2/mirrors/class_declarations_test.dart +++ b/tests/lib_2/mirrors/class_declarations_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.declarations_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/class_mirror_location_other.dart b/tests/lib_2/mirrors/class_mirror_location_other.dart index eb94d21d6ce..4544b56a2aa 100644 --- a/tests/lib_2/mirrors/class_mirror_location_other.dart +++ b/tests/lib_2/mirrors/class_mirror_location_other.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of test.class_location; class ClassInOtherFile {} diff --git a/tests/lib_2/mirrors/class_mirror_location_test.dart b/tests/lib_2/mirrors/class_mirror_location_test.dart index 3132b0da138..0546c4cda82 100644 --- a/tests/lib_2/mirrors/class_mirror_location_test.dart +++ b/tests/lib_2/mirrors/class_mirror_location_test.dart @@ -1,6 +1,8 @@ // 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. + +// @dart = 2.9 library test.class_location; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/class_mirror_type_variables_data.dart b/tests/lib_2/mirrors/class_mirror_type_variables_data.dart index 00902415901..8607d13a84d 100644 --- a/tests/lib_2/mirrors/class_mirror_type_variables_data.dart +++ b/tests/lib_2/mirrors/class_mirror_type_variables_data.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library class_mirror_type_variables_data; class NoTypeParams {} diff --git a/tests/lib_2/mirrors/class_mirror_type_variables_expect.dart b/tests/lib_2/mirrors/class_mirror_type_variables_expect.dart index 847bd7f6f03..cf30d1c160c 100644 --- a/tests/lib_2/mirrors/class_mirror_type_variables_expect.dart +++ b/tests/lib_2/mirrors/class_mirror_type_variables_expect.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test expectations for 'class_mirror_type_variables_data.dart'. library class_mirror_type_variables_expect; diff --git a/tests/lib_2/mirrors/class_mirror_type_variables_test.dart b/tests/lib_2/mirrors/class_mirror_type_variables_test.dart index 8918de7bbbd..857e8c5dbd2 100644 --- a/tests/lib_2/mirrors/class_mirror_type_variables_test.dart +++ b/tests/lib_2/mirrors/class_mirror_type_variables_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:mirrors"; import "package:expect/expect.dart"; diff --git a/tests/lib_2/mirrors/closure_mirror_import1.dart b/tests/lib_2/mirrors/closure_mirror_import1.dart index c0e41daab02..74fe2cca442 100644 --- a/tests/lib_2/mirrors/closure_mirror_import1.dart +++ b/tests/lib_2/mirrors/closure_mirror_import1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library closure_mirror_import1; export "closure_mirror_import2.dart" show firstGlobalVariableInImport2; diff --git a/tests/lib_2/mirrors/closure_mirror_import2.dart b/tests/lib_2/mirrors/closure_mirror_import2.dart index 9d09d365ee2..ef320e23c25 100644 --- a/tests/lib_2/mirrors/closure_mirror_import2.dart +++ b/tests/lib_2/mirrors/closure_mirror_import2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library closure_mirror_import2; var firstGlobalVariableInImport2 = "firstGlobalVariableInImport2"; diff --git a/tests/lib_2/mirrors/closures_test.dart b/tests/lib_2/mirrors/closures_test.dart index a1e2e93de6c..5e7a4eb172c 100644 --- a/tests/lib_2/mirrors/closures_test.dart +++ b/tests/lib_2/mirrors/closures_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; import 'stringify.dart'; diff --git a/tests/lib_2/mirrors/closurization_equivalence_test.dart b/tests/lib_2/mirrors/closurization_equivalence_test.dart index e1cdbed550b..cd2c3ed8c8e 100644 --- a/tests/lib_2/mirrors/closurization_equivalence_test.dart +++ b/tests/lib_2/mirrors/closurization_equivalence_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/const_evaluation_test.dart b/tests/lib_2/mirrors/const_evaluation_test.dart index be271334d12..ce9b92208cc 100644 --- a/tests/lib_2/mirrors/const_evaluation_test.dart +++ b/tests/lib_2/mirrors/const_evaluation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Check that compile-time evaluation of constants is consistent with runtime // evaluation. diff --git a/tests/lib_2/mirrors/constructor_kinds_test.dart b/tests/lib_2/mirrors/constructor_kinds_test.dart index 185e7d0b87c..8961ed09e4c 100644 --- a/tests/lib_2/mirrors/constructor_kinds_test.dart +++ b/tests/lib_2/mirrors/constructor_kinds_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.constructor_kinds_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/constructor_optional_args_test.dart b/tests/lib_2/mirrors/constructor_optional_args_test.dart index 5592fd2f434..090451b3bc6 100644 --- a/tests/lib_2/mirrors/constructor_optional_args_test.dart +++ b/tests/lib_2/mirrors/constructor_optional_args_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.constructor_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/constructor_private_name_test.dart b/tests/lib_2/mirrors/constructor_private_name_test.dart index c0db651a9f7..4bf909eb12f 100644 --- a/tests/lib_2/mirrors/constructor_private_name_test.dart +++ b/tests/lib_2/mirrors/constructor_private_name_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.constructors_test; // Regression test for C1 bug. diff --git a/tests/lib_2/mirrors/constructors_test.dart b/tests/lib_2/mirrors/constructors_test.dart index 3d821989259..8f532114168 100644 --- a/tests/lib_2/mirrors/constructors_test.dart +++ b/tests/lib_2/mirrors/constructors_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.constructors_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/dart2js_mirrors_test.dart b/tests/lib_2/mirrors/dart2js_mirrors_test.dart index 65c32e3ffa4..f1496004d47 100644 --- a/tests/lib_2/mirrors/dart2js_mirrors_test.dart +++ b/tests/lib_2/mirrors/dart2js_mirrors_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test should be removed when dart2js can pass all mirror tests. // TODO(ahe): Remove this test. diff --git a/tests/lib_2/mirrors/declarations_model.dart b/tests/lib_2/mirrors/declarations_model.dart index f25523f1e76..f6a78935ed1 100644 --- a/tests/lib_2/mirrors/declarations_model.dart +++ b/tests/lib_2/mirrors/declarations_model.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.declarations_model; var libraryVariable; diff --git a/tests/lib_2/mirrors/declarations_model_easier.dart b/tests/lib_2/mirrors/declarations_model_easier.dart index 665b691ec33..26da5b89ff8 100644 --- a/tests/lib_2/mirrors/declarations_model_easier.dart +++ b/tests/lib_2/mirrors/declarations_model_easier.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.declarations_model; var libraryVariable; diff --git a/tests/lib_2/mirrors/declarations_type_test.dart b/tests/lib_2/mirrors/declarations_type_test.dart index 836ce852c9c..829a8f22685 100644 --- a/tests/lib_2/mirrors/declarations_type_test.dart +++ b/tests/lib_2/mirrors/declarations_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for Issue 14972. library test.declarations_type; diff --git a/tests/lib_2/mirrors/deferred_constraints_constants_lib.dart b/tests/lib_2/mirrors/deferred_constraints_constants_lib.dart index cdeec47f791..0217e02b987 100644 --- a/tests/lib_2/mirrors/deferred_constraints_constants_lib.dart +++ b/tests/lib_2/mirrors/deferred_constraints_constants_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { static int staticMethod() => 42; } diff --git a/tests/lib_2/mirrors/deferred_constraints_constants_test.dart b/tests/lib_2/mirrors/deferred_constraints_constants_test.dart index 053bb816f53..d7a25871970 100644 --- a/tests/lib_2/mirrors/deferred_constraints_constants_test.dart +++ b/tests/lib_2/mirrors/deferred_constraints_constants_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'package:async_helper/async_helper.dart'; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/deferred_mirrors_metadata_lib.dart b/tests/lib_2/mirrors/deferred_mirrors_metadata_lib.dart index 80b43b9afae..c4f8d0d2501 100644 --- a/tests/lib_2/mirrors/deferred_mirrors_metadata_lib.dart +++ b/tests/lib_2/mirrors/deferred_mirrors_metadata_lib.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library lib; import "deferred_mirrors_metadata_test.dart"; diff --git a/tests/lib_2/mirrors/deferred_mirrors_metadata_test.dart b/tests/lib_2/mirrors/deferred_mirrors_metadata_test.dart index 02b007d531d..597dd4ecf6e 100644 --- a/tests/lib_2/mirrors/deferred_mirrors_metadata_test.dart +++ b/tests/lib_2/mirrors/deferred_mirrors_metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @A(const B()) library main; diff --git a/tests/lib_2/mirrors/deferred_mirrors_metatarget_lib.dart b/tests/lib_2/mirrors/deferred_mirrors_metatarget_lib.dart index e48c4ccd74d..cf0a6dd8f64 100644 --- a/tests/lib_2/mirrors/deferred_mirrors_metatarget_lib.dart +++ b/tests/lib_2/mirrors/deferred_mirrors_metatarget_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/deferred_mirrors_metatarget_test.dart b/tests/lib_2/mirrors/deferred_mirrors_metatarget_test.dart index f0091c8f328..b78c251fea3 100644 --- a/tests/lib_2/mirrors/deferred_mirrors_metatarget_test.dart +++ b/tests/lib_2/mirrors/deferred_mirrors_metatarget_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test that metaTargets can be reached via the mirrorSystem. import 'package:async_helper/async_helper.dart'; diff --git a/tests/lib_2/mirrors/deferred_mirrors_update_lib.dart b/tests/lib_2/mirrors/deferred_mirrors_update_lib.dart index 02b1f3bd76c..30718d2b88a 100644 --- a/tests/lib_2/mirrors/deferred_mirrors_update_lib.dart +++ b/tests/lib_2/mirrors/deferred_mirrors_update_lib.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library lib; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/deferred_mirrors_update_test.dart b/tests/lib_2/mirrors/deferred_mirrors_update_test.dart index bf1fbbc5426..16af23643fd 100644 --- a/tests/lib_2/mirrors/deferred_mirrors_update_test.dart +++ b/tests/lib_2/mirrors/deferred_mirrors_update_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 library main; // Test that the library-mirrors are updated after loading a deferred library. diff --git a/tests/lib_2/mirrors/deferred_type_other.dart b/tests/lib_2/mirrors/deferred_type_other.dart index 58e7417e9d9..19b5ef7ec8b 100644 --- a/tests/lib_2/mirrors/deferred_type_other.dart +++ b/tests/lib_2/mirrors/deferred_type_other.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library deferred_type_other; class DeferredType {} diff --git a/tests/lib_2/mirrors/deferred_type_test.dart b/tests/lib_2/mirrors/deferred_type_test.dart index 338680df302..806af88ee61 100644 --- a/tests/lib_2/mirrors/deferred_type_test.dart +++ b/tests/lib_2/mirrors/deferred_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library deferred_type; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/delegate_call_through_getter_test.dart b/tests/lib_2/mirrors/delegate_call_through_getter_test.dart index 85040aef902..120555747c5 100644 --- a/tests/lib_2/mirrors/delegate_call_through_getter_test.dart +++ b/tests/lib_2/mirrors/delegate_call_through_getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_call_through_getter; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/delegate_class_test.dart b/tests/lib_2/mirrors/delegate_class_test.dart index 83ee8f079d3..52c62ea8fc8 100644 --- a/tests/lib_2/mirrors/delegate_class_test.dart +++ b/tests/lib_2/mirrors/delegate_class_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.delegate_class; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/delegate_function_invocation_test.dart b/tests/lib_2/mirrors/delegate_function_invocation_test.dart index 5fe88f4bfb1..e77b608e8e6 100644 --- a/tests/lib_2/mirrors/delegate_function_invocation_test.dart +++ b/tests/lib_2/mirrors/delegate_function_invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.delgate_function_invocation; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/delegate_library_test.dart b/tests/lib_2/mirrors/delegate_library_test.dart index a4cf43224d5..ebbf7eb5db9 100644 --- a/tests/lib_2/mirrors/delegate_library_test.dart +++ b/tests/lib_2/mirrors/delegate_library_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.delegate_library; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/delegate_test.dart b/tests/lib_2/mirrors/delegate_test.dart index 4c63f28392d..131acdac418 100644 --- a/tests/lib_2/mirrors/delegate_test.dart +++ b/tests/lib_2/mirrors/delegate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_named_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/disable_tree_shaking_test.dart b/tests/lib_2/mirrors/disable_tree_shaking_test.dart index b34f3523b5a..e4abdbbed58 100644 --- a/tests/lib_2/mirrors/disable_tree_shaking_test.dart +++ b/tests/lib_2/mirrors/disable_tree_shaking_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Ensure that reflection works on methods that would otherwise be // tree-shaken away. diff --git a/tests/lib_2/mirrors/dynamic_load_error.dart b/tests/lib_2/mirrors/dynamic_load_error.dart index f75aaf93f3a..dd88c1c5344 100644 --- a/tests/lib_2/mirrors/dynamic_load_error.dart +++ b/tests/lib_2/mirrors/dynamic_load_error.dart @@ -2,5 +2,7 @@ // 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 = 2.9 + // A top-level parse error: import import import import diff --git a/tests/lib_2/mirrors/dynamic_load_success.dart b/tests/lib_2/mirrors/dynamic_load_success.dart index 1645a923e76..ec6693b2053 100644 --- a/tests/lib_2/mirrors/dynamic_load_success.dart +++ b/tests/lib_2/mirrors/dynamic_load_success.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library dynamic_load_success; int _counter = 0; diff --git a/tests/lib_2/mirrors/dynamic_load_test.dart b/tests/lib_2/mirrors/dynamic_load_test.dart index dddb1ac23dd..5b7d9f02051 100644 --- a/tests/lib_2/mirrors/dynamic_load_test.dart +++ b/tests/lib_2/mirrors/dynamic_load_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/empty.dart b/tests/lib_2/mirrors/empty.dart index e2f6f5e97a2..dd5a50c0c30 100644 --- a/tests/lib_2/mirrors/empty.dart +++ b/tests/lib_2/mirrors/empty.dart @@ -2,5 +2,7 @@ // 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 = 2.9 + // This library has no functions. library empty; diff --git a/tests/lib_2/mirrors/empty_test.dart b/tests/lib_2/mirrors/empty_test.dart index 9e776344832..7d562b4733e 100644 --- a/tests/lib_2/mirrors/empty_test.dart +++ b/tests/lib_2/mirrors/empty_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'empty.dart'; diff --git a/tests/lib_2/mirrors/enum_mirror_test.dart b/tests/lib_2/mirrors/enum_mirror_test.dart index 00de84b8f44..f0c9fd21844 100644 --- a/tests/lib_2/mirrors/enum_mirror_test.dart +++ b/tests/lib_2/mirrors/enum_mirror_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/enum_test.dart b/tests/lib_2/mirrors/enum_test.dart index 318bfe63711..a807b924376 100644 --- a/tests/lib_2/mirrors/enum_test.dart +++ b/tests/lib_2/mirrors/enum_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.enums; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/equality_test.dart b/tests/lib_2/mirrors/equality_test.dart index 0fa6fb421d1..67b0a907eef 100644 --- a/tests/lib_2/mirrors/equality_test.dart +++ b/tests/lib_2/mirrors/equality_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This tests uses the multi-test "ok" feature: // none: Trimmed behaviour. Passing on the VM. // 01: Trimmed version for dart2js. diff --git a/tests/lib_2/mirrors/fake_function_with_call_test.dart b/tests/lib_2/mirrors/fake_function_with_call_test.dart index 43522bcc8c5..ffa10969aac 100644 --- a/tests/lib_2/mirrors/fake_function_with_call_test.dart +++ b/tests/lib_2/mirrors/fake_function_with_call_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:mirrors"; import "package:expect/expect.dart"; diff --git a/tests/lib_2/mirrors/fake_function_without_call_test.dart b/tests/lib_2/mirrors/fake_function_without_call_test.dart index 3d80c03b0cf..9fbeef56ec0 100644 --- a/tests/lib_2/mirrors/fake_function_without_call_test.dart +++ b/tests/lib_2/mirrors/fake_function_without_call_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:mirrors"; import "package:expect/expect.dart"; diff --git a/tests/lib_2/mirrors/field_metadata_test.dart b/tests/lib_2/mirrors/field_metadata_test.dart index 3abc991bd7c..c3e2adefc3e 100644 --- a/tests/lib_2/mirrors/field_metadata_test.dart +++ b/tests/lib_2/mirrors/field_metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/field_type_test.dart b/tests/lib_2/mirrors/field_type_test.dart index 9b2356b12ce..a5b846eff39 100644 --- a/tests/lib_2/mirrors/field_type_test.dart +++ b/tests/lib_2/mirrors/field_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library field_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/function_apply_mirrors_lib.dart b/tests/lib_2/mirrors/function_apply_mirrors_lib.dart index 3c4c510b52d..356f698cb98 100644 --- a/tests/lib_2/mirrors/function_apply_mirrors_lib.dart +++ b/tests/lib_2/mirrors/function_apply_mirrors_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library function_apply_mirrors_lib; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/function_apply_mirrors_test.dart b/tests/lib_2/mirrors/function_apply_mirrors_test.dart index 81d3b9ebaaa..c3aa1239389 100644 --- a/tests/lib_2/mirrors/function_apply_mirrors_test.dart +++ b/tests/lib_2/mirrors/function_apply_mirrors_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Only 'lib' imports mirrors. // Function.apply is resolved, before it is known that mirrors are used. // Dart2js has different implementations of Function.apply for different diff --git a/tests/lib_2/mirrors/function_apply_test.dart b/tests/lib_2/mirrors/function_apply_test.dart index 206d08bc880..22adc986332 100644 --- a/tests/lib_2/mirrors/function_apply_test.dart +++ b/tests/lib_2/mirrors/function_apply_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/function_type_mirror_test.dart b/tests/lib_2/mirrors/function_type_mirror_test.dart index 3b2a5955df9..03e5a254aa6 100644 --- a/tests/lib_2/mirrors/function_type_mirror_test.dart +++ b/tests/lib_2/mirrors/function_type_mirror_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:mirrors"; import "package:expect/expect.dart"; diff --git a/tests/lib_2/mirrors/generic_bounded_by_type_parameter_test.dart b/tests/lib_2/mirrors/generic_bounded_by_type_parameter_test.dart index 894b464285f..8edb952e505 100644 --- a/tests/lib_2/mirrors/generic_bounded_by_type_parameter_test.dart +++ b/tests/lib_2/mirrors/generic_bounded_by_type_parameter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.generic_bounded_by_type_parameter; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generic_bounded_test.dart b/tests/lib_2/mirrors/generic_bounded_test.dart index 83d5a8161ed..4e47e13678e 100644 --- a/tests/lib_2/mirrors/generic_bounded_test.dart +++ b/tests/lib_2/mirrors/generic_bounded_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.generic_bounded; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generic_class_declaration_test.dart b/tests/lib_2/mirrors/generic_class_declaration_test.dart index 79ebee19e86..76b1c190d6d 100644 --- a/tests/lib_2/mirrors/generic_class_declaration_test.dart +++ b/tests/lib_2/mirrors/generic_class_declaration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/generic_f_bounded_mixin_application_test.dart b/tests/lib_2/mirrors/generic_f_bounded_mixin_application_test.dart index 5df9521d44e..2137299a601 100644 --- a/tests/lib_2/mirrors/generic_f_bounded_mixin_application_test.dart +++ b/tests/lib_2/mirrors/generic_f_bounded_mixin_application_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.generic_f_bounded; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generic_f_bounded_test.dart b/tests/lib_2/mirrors/generic_f_bounded_test.dart index 1ddf7e44875..ff863555a46 100644 --- a/tests/lib_2/mirrors/generic_f_bounded_test.dart +++ b/tests/lib_2/mirrors/generic_f_bounded_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.generic_f_bounded; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generic_function_typedef_test.dart b/tests/lib_2/mirrors/generic_function_typedef_test.dart index 6b0d44bc484..0331bd60852 100644 --- a/tests/lib_2/mirrors/generic_function_typedef_test.dart +++ b/tests/lib_2/mirrors/generic_function_typedef_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.generic_function_typedef; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generic_interface_test.dart b/tests/lib_2/mirrors/generic_interface_test.dart index 8b38a3b4bac..a9ad011b26d 100644 --- a/tests/lib_2/mirrors/generic_interface_test.dart +++ b/tests/lib_2/mirrors/generic_interface_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.generic_bounded; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generic_list_test.dart b/tests/lib_2/mirrors/generic_list_test.dart index 79d5e94b345..8b91a6ab5fd 100644 --- a/tests/lib_2/mirrors/generic_list_test.dart +++ b/tests/lib_2/mirrors/generic_list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.superclass; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generic_local_function_test.dart b/tests/lib_2/mirrors/generic_local_function_test.dart index bc56f291140..baf05da467f 100644 --- a/tests/lib_2/mirrors/generic_local_function_test.dart +++ b/tests/lib_2/mirrors/generic_local_function_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.generic_function_typedef; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generic_method_test.dart b/tests/lib_2/mirrors/generic_method_test.dart index fb82bbfb799..3803a6812de 100644 --- a/tests/lib_2/mirrors/generic_method_test.dart +++ b/tests/lib_2/mirrors/generic_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/generic_mixin_applications_test.dart b/tests/lib_2/mirrors/generic_mixin_applications_test.dart index 8a9fec7b764..1bde0faa2e4 100644 --- a/tests/lib_2/mirrors/generic_mixin_applications_test.dart +++ b/tests/lib_2/mirrors/generic_mixin_applications_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.generic_mixin_applications; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generic_mixin_test.dart b/tests/lib_2/mirrors/generic_mixin_test.dart index 480b110337b..7ea8b4e8295 100644 --- a/tests/lib_2/mirrors/generic_mixin_test.dart +++ b/tests/lib_2/mirrors/generic_mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.generic_mixin; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generic_superclass_test.dart b/tests/lib_2/mirrors/generic_superclass_test.dart index 9c4ea678a43..140a9efad66 100644 --- a/tests/lib_2/mirrors/generic_superclass_test.dart +++ b/tests/lib_2/mirrors/generic_superclass_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generic_type_mirror_test.dart b/tests/lib_2/mirrors/generic_type_mirror_test.dart index 97603d5afcd..bddc01a73f3 100644 --- a/tests/lib_2/mirrors/generic_type_mirror_test.dart +++ b/tests/lib_2/mirrors/generic_type_mirror_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:mirrors"; import "package:expect/expect.dart"; diff --git a/tests/lib_2/mirrors/generics_double_substitution_test.dart b/tests/lib_2/mirrors/generics_double_substitution_test.dart index a44fb3a7fd7..d5b922f232b 100644 --- a/tests/lib_2/mirrors/generics_double_substitution_test.dart +++ b/tests/lib_2/mirrors/generics_double_substitution_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.generics_double_substitution; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generics_dynamic_test.dart b/tests/lib_2/mirrors/generics_dynamic_test.dart index 40c82d60c39..0542c085a0d 100644 --- a/tests/lib_2/mirrors/generics_dynamic_test.dart +++ b/tests/lib_2/mirrors/generics_dynamic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/generics_helper.dart b/tests/lib_2/mirrors/generics_helper.dart index da10962e44d..7d7fe5c6ac2 100644 --- a/tests/lib_2/mirrors/generics_helper.dart +++ b/tests/lib_2/mirrors/generics_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library generics_helper; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/generics_special_types_test.dart b/tests/lib_2/mirrors/generics_special_types_test.dart index 49f72ecee05..c73434ca2ee 100644 --- a/tests/lib_2/mirrors/generics_special_types_test.dart +++ b/tests/lib_2/mirrors/generics_special_types_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.generics_special_types; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generics_substitution_test.dart b/tests/lib_2/mirrors/generics_substitution_test.dart index b078c1a031f..8c89b03ec7b 100644 --- a/tests/lib_2/mirrors/generics_substitution_test.dart +++ b/tests/lib_2/mirrors/generics_substitution_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.generics_substitution; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/generics_test.dart b/tests/lib_2/mirrors/generics_test.dart index ce9d8f0d69d..c0ec7faf522 100644 --- a/tests/lib_2/mirrors/generics_test.dart +++ b/tests/lib_2/mirrors/generics_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.type_arguments_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/get_field_cache_test.dart b/tests/lib_2/mirrors/get_field_cache_test.dart index 60c57f5d56a..bfd902adf5a 100644 --- a/tests/lib_2/mirrors/get_field_cache_test.dart +++ b/tests/lib_2/mirrors/get_field_cache_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/get_field_static_test.dart b/tests/lib_2/mirrors/get_field_static_test.dart index 60edc9209f3..54011173d81 100644 --- a/tests/lib_2/mirrors/get_field_static_test.dart +++ b/tests/lib_2/mirrors/get_field_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/get_field_test.dart b/tests/lib_2/mirrors/get_field_test.dart index d2a2d1c8fe3..5118a9ace14 100644 --- a/tests/lib_2/mirrors/get_field_test.dart +++ b/tests/lib_2/mirrors/get_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/get_symbol_name_no_such_method_test.dart b/tests/lib_2/mirrors/get_symbol_name_no_such_method_test.dart index 854dc589c9f..b97647de9e6 100644 --- a/tests/lib_2/mirrors/get_symbol_name_no_such_method_test.dart +++ b/tests/lib_2/mirrors/get_symbol_name_no_such_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test that MirrorSystem.getName works correctly on symbols returned from /// Invocation.memberName. This is especially relevant when minifying. diff --git a/tests/lib_2/mirrors/get_symbol_name_test.dart b/tests/lib_2/mirrors/get_symbol_name_test.dart index 68b3cb176a7..d271906900f 100644 --- a/tests/lib_2/mirrors/get_symbol_name_test.dart +++ b/tests/lib_2/mirrors/get_symbol_name_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors' show MirrorSystem; expect(expected, actual) { diff --git a/tests/lib_2/mirrors/globalized_closures2_test.dart b/tests/lib_2/mirrors/globalized_closures2_test.dart index d4927c997c4..3240c043842 100644 --- a/tests/lib_2/mirrors/globalized_closures2_test.dart +++ b/tests/lib_2/mirrors/globalized_closures2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart2js crashed on this example. It globalized both closures and created // top-level classes for closures (here the globalized_closure{2}). There was a // name-clash (both being named "main_closure") which led to a crash. diff --git a/tests/lib_2/mirrors/globalized_closures_test.dart b/tests/lib_2/mirrors/globalized_closures_test.dart index 93b0bf0d1af..1b348d65060 100644 --- a/tests/lib_2/mirrors/globalized_closures_test.dart +++ b/tests/lib_2/mirrors/globalized_closures_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart2js crashed on this example. It globalized closures and created // top-level classes for closures (here the globalized_closure). There was a // name-clash with the global "main_closure" class which led to a crash. diff --git a/tests/lib_2/mirrors/hierarchy_invariants_test.dart b/tests/lib_2/mirrors/hierarchy_invariants_test.dart index 2ff3dc846c0..4dcf869307e 100644 --- a/tests/lib_2/mirrors/hierarchy_invariants_test.dart +++ b/tests/lib_2/mirrors/hierarchy_invariants_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.hierarchy_invariants_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/hot_get_field_test.dart b/tests/lib_2/mirrors/hot_get_field_test.dart index 65cf2818ac4..719832bdb5b 100644 --- a/tests/lib_2/mirrors/hot_get_field_test.dart +++ b/tests/lib_2/mirrors/hot_get_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.hot_get_field; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/hot_set_field_test.dart b/tests/lib_2/mirrors/hot_set_field_test.dart index cd084d30722..2182eb66155 100644 --- a/tests/lib_2/mirrors/hot_set_field_test.dart +++ b/tests/lib_2/mirrors/hot_set_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.hot_set_field; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/immutable_collections_test.dart b/tests/lib_2/mirrors/immutable_collections_test.dart index ed2f3af1b6a..614b3d93c3f 100644 --- a/tests/lib_2/mirrors/immutable_collections_test.dart +++ b/tests/lib_2/mirrors/immutable_collections_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.immutable_collections; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/inference_and_no_such_method_test.dart b/tests/lib_2/mirrors/inference_and_no_such_method_test.dart index 79dd63560d6..8a0e832b64e 100644 --- a/tests/lib_2/mirrors/inference_and_no_such_method_test.dart +++ b/tests/lib_2/mirrors/inference_and_no_such_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that did type inferencing on parameters // whose type may change at runtime due to an invocation through // [InstanceMirror.delegate]. diff --git a/tests/lib_2/mirrors/inherit_field_test.dart b/tests/lib_2/mirrors/inherit_field_test.dart index d8590ed81ef..0650120991f 100644 --- a/tests/lib_2/mirrors/inherit_field_test.dart +++ b/tests/lib_2/mirrors/inherit_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test inherited fields. library test.inherit_field_test; diff --git a/tests/lib_2/mirrors/inherited_metadata_test.dart b/tests/lib_2/mirrors/inherited_metadata_test.dart index 87a2b4299e9..3cb47218049 100644 --- a/tests/lib_2/mirrors/inherited_metadata_test.dart +++ b/tests/lib_2/mirrors/inherited_metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.mirrors; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/initializing_formals_test.dart b/tests/lib_2/mirrors/initializing_formals_test.dart index 8cc4af1f345..60901a4260b 100644 --- a/tests/lib_2/mirrors/initializing_formals_test.dart +++ b/tests/lib_2/mirrors/initializing_formals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.initializing_formals; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/instance_creation_in_function_annotation_test.dart b/tests/lib_2/mirrors/instance_creation_in_function_annotation_test.dart index bfdd69cd16b..87658225577 100644 --- a/tests/lib_2/mirrors/instance_creation_in_function_annotation_test.dart +++ b/tests/lib_2/mirrors/instance_creation_in_function_annotation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Verify that instance creation expressions inside function // annotations are properly handled. See dartbug.com/23354 diff --git a/tests/lib_2/mirrors/instance_members_easier_test.dart b/tests/lib_2/mirrors/instance_members_easier_test.dart index a017ac00d56..825f21cd816 100644 --- a/tests/lib_2/mirrors/instance_members_easier_test.dart +++ b/tests/lib_2/mirrors/instance_members_easier_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.instance_members; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/instance_members_test.dart b/tests/lib_2/mirrors/instance_members_test.dart index 203c6657c8c..f8fcf0e9f92 100644 --- a/tests/lib_2/mirrors/instance_members_test.dart +++ b/tests/lib_2/mirrors/instance_members_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.instance_members; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/instance_members_unimplemented_interface_test.dart b/tests/lib_2/mirrors/instance_members_unimplemented_interface_test.dart index 5c264105505..7178b7ef4dd 100644 --- a/tests/lib_2/mirrors/instance_members_unimplemented_interface_test.dart +++ b/tests/lib_2/mirrors/instance_members_unimplemented_interface_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.instance_members_unimplemented_interface; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/instance_members_with_override_test.dart b/tests/lib_2/mirrors/instance_members_with_override_test.dart index 1dce0c6b8ba..989b00746b5 100644 --- a/tests/lib_2/mirrors/instance_members_with_override_test.dart +++ b/tests/lib_2/mirrors/instance_members_with_override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.instance_members_with_override; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/instantiate_abstract_class_test.dart b/tests/lib_2/mirrors/instantiate_abstract_class_test.dart index 057b40bad5a..803a10a8cec 100644 --- a/tests/lib_2/mirrors/instantiate_abstract_class_test.dart +++ b/tests/lib_2/mirrors/instantiate_abstract_class_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.instantiate_abstract_class; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/intercepted_cache_test.dart b/tests/lib_2/mirrors/intercepted_cache_test.dart index b38881c6164..26fe5756b56 100644 --- a/tests/lib_2/mirrors/intercepted_cache_test.dart +++ b/tests/lib_2/mirrors/intercepted_cache_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This is a test for a problem in how dart2js cached InstanceMirror.invoke, // etc. The test is using getField, as invoke, setField, and getField all share // the same caching. diff --git a/tests/lib_2/mirrors/intercepted_class_test.dart b/tests/lib_2/mirrors/intercepted_class_test.dart index 57a7737478f..4c3a49061ef 100644 --- a/tests/lib_2/mirrors/intercepted_class_test.dart +++ b/tests/lib_2/mirrors/intercepted_class_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Ensure that classes handled specially by dart2js can be reflected on. library test.intercepted_class_test; diff --git a/tests/lib_2/mirrors/intercepted_object_test.dart b/tests/lib_2/mirrors/intercepted_object_test.dart index ccbffa52990..b43813e889b 100644 --- a/tests/lib_2/mirrors/intercepted_object_test.dart +++ b/tests/lib_2/mirrors/intercepted_object_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Ensure that objects handled specially by dart2js can be reflected on. library test.intercepted_object_test; diff --git a/tests/lib_2/mirrors/intercepted_superclass_test.dart b/tests/lib_2/mirrors/intercepted_superclass_test.dart index a7f48581865..6a01ceca5a4 100644 --- a/tests/lib_2/mirrors/intercepted_superclass_test.dart +++ b/tests/lib_2/mirrors/intercepted_superclass_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.intercepted_superclass_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invocation_cache_test.dart b/tests/lib_2/mirrors/invocation_cache_test.dart index f8ec29cf2f4..d016222ad69 100644 --- a/tests/lib_2/mirrors/invocation_cache_test.dart +++ b/tests/lib_2/mirrors/invocation_cache_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/invocation_fuzz_test.dart b/tests/lib_2/mirrors/invocation_fuzz_test.dart index 5a5cdf20328..63238065d38 100644 --- a/tests/lib_2/mirrors/invocation_fuzz_test.dart +++ b/tests/lib_2/mirrors/invocation_fuzz_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test reflectively enumerates all the methods in the system and tries to // invoke them with various basic values (nulls, ints, etc). This may result in // Dart exceptions or hangs, but should never result in crashes or JavaScript diff --git a/tests/lib_2/mirrors/invocation_mirror_invoke_on2_test.dart b/tests/lib_2/mirrors/invocation_mirror_invoke_on2_test.dart index a7a6d756f28..6bb0365d3de 100644 --- a/tests/lib_2/mirrors/invocation_mirror_invoke_on2_test.dart +++ b/tests/lib_2/mirrors/invocation_mirror_invoke_on2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:mirrors" show reflect; import "package:expect/expect.dart"; diff --git a/tests/lib_2/mirrors/invocation_mirror_invoke_on_test.dart b/tests/lib_2/mirrors/invocation_mirror_invoke_on_test.dart index c1151a303c2..0e121448b9a 100644 --- a/tests/lib_2/mirrors/invocation_mirror_invoke_on_test.dart +++ b/tests/lib_2/mirrors/invocation_mirror_invoke_on_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:mirrors" show reflect; import "package:expect/expect.dart"; diff --git a/tests/lib_2/mirrors/invoke_call_on_closure_test.dart b/tests/lib_2/mirrors/invoke_call_on_closure_test.dart index bb08c379a34..2d0d595e439 100644 --- a/tests/lib_2/mirrors/invoke_call_on_closure_test.dart +++ b/tests/lib_2/mirrors/invoke_call_on_closure_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_call_on_closure; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invoke_call_through_getter_previously_accessed_test.dart b/tests/lib_2/mirrors/invoke_call_through_getter_previously_accessed_test.dart index f1bbc5be3e4..04f8ad4fa05 100644 --- a/tests/lib_2/mirrors/invoke_call_through_getter_previously_accessed_test.dart +++ b/tests/lib_2/mirrors/invoke_call_through_getter_previously_accessed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_call_through_getter; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invoke_call_through_getter_test.dart b/tests/lib_2/mirrors/invoke_call_through_getter_test.dart index 57ff6ddb545..993f43a4fb9 100644 --- a/tests/lib_2/mirrors/invoke_call_through_getter_test.dart +++ b/tests/lib_2/mirrors/invoke_call_through_getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_call_through_getter; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invoke_call_through_implicit_getter_previously_accessed_test.dart b/tests/lib_2/mirrors/invoke_call_through_implicit_getter_previously_accessed_test.dart index 2504ea6c983..63e95bd374a 100644 --- a/tests/lib_2/mirrors/invoke_call_through_implicit_getter_previously_accessed_test.dart +++ b/tests/lib_2/mirrors/invoke_call_through_implicit_getter_previously_accessed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_call_through_implicit_getter; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invoke_call_through_implicit_getter_test.dart b/tests/lib_2/mirrors/invoke_call_through_implicit_getter_test.dart index fd0b481a53a..1e9baeb3cb4 100644 --- a/tests/lib_2/mirrors/invoke_call_through_implicit_getter_test.dart +++ b/tests/lib_2/mirrors/invoke_call_through_implicit_getter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_call_through_implicit_getter; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invoke_closurization2_test.dart b/tests/lib_2/mirrors/invoke_closurization2_test.dart index 28c6f7a7cd0..073f331ccec 100644 --- a/tests/lib_2/mirrors/invoke_closurization2_test.dart +++ b/tests/lib_2/mirrors/invoke_closurization2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_closurization_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invoke_closurization_test.dart b/tests/lib_2/mirrors/invoke_closurization_test.dart index aa079136532..02bf8e0c8d0 100644 --- a/tests/lib_2/mirrors/invoke_closurization_test.dart +++ b/tests/lib_2/mirrors/invoke_closurization_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_closurization_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invoke_import_test.dart b/tests/lib_2/mirrors/invoke_import_test.dart index 7b41c551cc7..616e78f5afd 100644 --- a/tests/lib_2/mirrors/invoke_import_test.dart +++ b/tests/lib_2/mirrors/invoke_import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_import_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invoke_named_test.dart b/tests/lib_2/mirrors/invoke_named_test.dart index 04d547bc3ca..3592b12bdc9 100644 --- a/tests/lib_2/mirrors/invoke_named_test.dart +++ b/tests/lib_2/mirrors/invoke_named_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_named_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invoke_natives_malicious_test.dart b/tests/lib_2/mirrors/invoke_natives_malicious_test.dart index 43ccb5da9c8..cb6881ecc86 100644 --- a/tests/lib_2/mirrors/invoke_natives_malicious_test.dart +++ b/tests/lib_2/mirrors/invoke_natives_malicious_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_natives; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invoke_private_test.dart b/tests/lib_2/mirrors/invoke_private_test.dart index 753dd9e5c46..e4cec36870d 100644 --- a/tests/lib_2/mirrors/invoke_private_test.dart +++ b/tests/lib_2/mirrors/invoke_private_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_private_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invoke_private_wrong_library_test.dart b/tests/lib_2/mirrors/invoke_private_wrong_library_test.dart index f0ded320c6d..828bbdac053 100644 --- a/tests/lib_2/mirrors/invoke_private_wrong_library_test.dart +++ b/tests/lib_2/mirrors/invoke_private_wrong_library_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invoke_test.dart b/tests/lib_2/mirrors/invoke_test.dart index fd5215fd6ec..8d187cb9f4b 100644 --- a/tests/lib_2/mirrors/invoke_test.dart +++ b/tests/lib_2/mirrors/invoke_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/invoke_throws_test.dart b/tests/lib_2/mirrors/invoke_throws_test.dart index 59f5b2f7383..b8d75ac36dc 100644 --- a/tests/lib_2/mirrors/invoke_throws_test.dart +++ b/tests/lib_2/mirrors/invoke_throws_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.invoke_throws_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/io_html_mutual_exclusion_test.dart b/tests/lib_2/mirrors/io_html_mutual_exclusion_test.dart index 087b8a63c95..39a48d9abae 100644 --- a/tests/lib_2/mirrors/io_html_mutual_exclusion_test.dart +++ b/tests/lib_2/mirrors/io_html_mutual_exclusion_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.io_html_mutual_exclusion; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/is_odd_test.dart b/tests/lib_2/mirrors/is_odd_test.dart index 0dc1655c824..63fbf1f8657 100644 --- a/tests/lib_2/mirrors/is_odd_test.dart +++ b/tests/lib_2/mirrors/is_odd_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test that otherwise unused intercepted methods are reified correctly. This /// was a bug in dart2js. library test.is_odd_test; diff --git a/tests/lib_2/mirrors/issue21079_test.dart b/tests/lib_2/mirrors/issue21079_test.dart index c376df0fad5..4d48948cbf1 100644 --- a/tests/lib_2/mirrors/issue21079_test.dart +++ b/tests/lib_2/mirrors/issue21079_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test case for http://dartbug.com/21079 import 'dart:mirrors'; import 'dart:isolate'; diff --git a/tests/lib_2/mirrors/lazy_static_test.dart b/tests/lib_2/mirrors/lazy_static_test.dart index 65ac90929d9..81bd54b3ad8 100644 --- a/tests/lib_2/mirrors/lazy_static_test.dart +++ b/tests/lib_2/mirrors/lazy_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test static members. import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/libraries_test.dart b/tests/lib_2/mirrors/libraries_test.dart index 43566567602..e7082daca95 100644 --- a/tests/lib_2/mirrors/libraries_test.dart +++ b/tests/lib_2/mirrors/libraries_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.libraries_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/library_declarations_test.dart b/tests/lib_2/mirrors/library_declarations_test.dart index 80cd982c8ed..a54a1a3047a 100644 --- a/tests/lib_2/mirrors/library_declarations_test.dart +++ b/tests/lib_2/mirrors/library_declarations_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.library_declarations_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/library_enumeration_deferred_loading_test.dart b/tests/lib_2/mirrors/library_enumeration_deferred_loading_test.dart index 7783b74e9c7..d0009b67439 100644 --- a/tests/lib_2/mirrors/library_enumeration_deferred_loading_test.dart +++ b/tests/lib_2/mirrors/library_enumeration_deferred_loading_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library library_enumeration_deferred_loading; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/library_exports_hidden.dart b/tests/lib_2/mirrors/library_exports_hidden.dart index c1ea0813f74..192262bf69a 100644 --- a/tests/lib_2/mirrors/library_exports_hidden.dart +++ b/tests/lib_2/mirrors/library_exports_hidden.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library library_exports_hidden; export 'library_imports_a.dart' hide somethingFromA, somethingFromBoth; diff --git a/tests/lib_2/mirrors/library_exports_hidden_test.dart b/tests/lib_2/mirrors/library_exports_hidden_test.dart index e69fef4e431..605960f0f88 100644 --- a/tests/lib_2/mirrors/library_exports_hidden_test.dart +++ b/tests/lib_2/mirrors/library_exports_hidden_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.library_exports_hidden; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/library_exports_shown.dart b/tests/lib_2/mirrors/library_exports_shown.dart index 524ab4c1b28..10bb286f809 100644 --- a/tests/lib_2/mirrors/library_exports_shown.dart +++ b/tests/lib_2/mirrors/library_exports_shown.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library library_exports_shown; export 'library_imports_a.dart' show somethingFromA, somethingFromBoth; diff --git a/tests/lib_2/mirrors/library_exports_shown_test.dart b/tests/lib_2/mirrors/library_exports_shown_test.dart index 003de2fce05..714074311ad 100644 --- a/tests/lib_2/mirrors/library_exports_shown_test.dart +++ b/tests/lib_2/mirrors/library_exports_shown_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.library_exports_shown; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/library_import_deferred_loading_test.dart b/tests/lib_2/mirrors/library_import_deferred_loading_test.dart index 9b228273a42..cc193ccd231 100644 --- a/tests/lib_2/mirrors/library_import_deferred_loading_test.dart +++ b/tests/lib_2/mirrors/library_import_deferred_loading_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library library_loading_deferred_loading; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/library_imports_a.dart b/tests/lib_2/mirrors/library_imports_a.dart index afdc329c609..fe85308bf7d 100644 --- a/tests/lib_2/mirrors/library_imports_a.dart +++ b/tests/lib_2/mirrors/library_imports_a.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library library_imports_a; var somethingFromA; diff --git a/tests/lib_2/mirrors/library_imports_b.dart b/tests/lib_2/mirrors/library_imports_b.dart index 493f3239ae4..df0161fe265 100644 --- a/tests/lib_2/mirrors/library_imports_b.dart +++ b/tests/lib_2/mirrors/library_imports_b.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library library_imports_b; var somethingFromB; diff --git a/tests/lib_2/mirrors/library_imports_bad_metadata_test.dart b/tests/lib_2/mirrors/library_imports_bad_metadata_test.dart index 43d873bab70..e0925c96efc 100644 --- a/tests/lib_2/mirrors/library_imports_bad_metadata_test.dart +++ b/tests/lib_2/mirrors/library_imports_bad_metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.library_imports_bad_metadata; @undefined // //# 01: compile-time error diff --git a/tests/lib_2/mirrors/library_imports_deferred_test.dart b/tests/lib_2/mirrors/library_imports_deferred_test.dart index ab2668da781..977564f0528 100644 --- a/tests/lib_2/mirrors/library_imports_deferred_test.dart +++ b/tests/lib_2/mirrors/library_imports_deferred_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.library_imports_deferred; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/library_imports_hidden.dart b/tests/lib_2/mirrors/library_imports_hidden.dart index deccc64ad16..e453ea82a2c 100644 --- a/tests/lib_2/mirrors/library_imports_hidden.dart +++ b/tests/lib_2/mirrors/library_imports_hidden.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library library_imports_hidden; import 'library_imports_a.dart' hide somethingFromA, somethingFromBoth; diff --git a/tests/lib_2/mirrors/library_imports_hidden_test.dart b/tests/lib_2/mirrors/library_imports_hidden_test.dart index edc19e077aa..51e5bfdfd56 100644 --- a/tests/lib_2/mirrors/library_imports_hidden_test.dart +++ b/tests/lib_2/mirrors/library_imports_hidden_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.library_imports_hidden; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/library_imports_metadata.dart b/tests/lib_2/mirrors/library_imports_metadata.dart index 15e0403b1a6..19cea41a7b8 100644 --- a/tests/lib_2/mirrors/library_imports_metadata.dart +++ b/tests/lib_2/mirrors/library_imports_metadata.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library library_imports_metadata; @m1 diff --git a/tests/lib_2/mirrors/library_imports_metadata_test.dart b/tests/lib_2/mirrors/library_imports_metadata_test.dart index ab1c15d66a2..9dda1682c70 100644 --- a/tests/lib_2/mirrors/library_imports_metadata_test.dart +++ b/tests/lib_2/mirrors/library_imports_metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.library_imports; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/library_imports_prefixed.dart b/tests/lib_2/mirrors/library_imports_prefixed.dart index ad50f424766..7023c6b17b7 100644 --- a/tests/lib_2/mirrors/library_imports_prefixed.dart +++ b/tests/lib_2/mirrors/library_imports_prefixed.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library library_imports_prefixed; import 'library_imports_a.dart' as prefixa; diff --git a/tests/lib_2/mirrors/library_imports_prefixed_show_hide.dart b/tests/lib_2/mirrors/library_imports_prefixed_show_hide.dart index ea7c71fa93f..0eb74283e19 100644 --- a/tests/lib_2/mirrors/library_imports_prefixed_show_hide.dart +++ b/tests/lib_2/mirrors/library_imports_prefixed_show_hide.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library library_imports_prefixed_show_hide; import 'library_imports_a.dart' as prefixa show somethingFromA; diff --git a/tests/lib_2/mirrors/library_imports_prefixed_show_hide_test.dart b/tests/lib_2/mirrors/library_imports_prefixed_show_hide_test.dart index a4089c0c81e..bda5f30bff7 100644 --- a/tests/lib_2/mirrors/library_imports_prefixed_show_hide_test.dart +++ b/tests/lib_2/mirrors/library_imports_prefixed_show_hide_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.library_imports_prefixed_show_hide; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/library_imports_prefixed_test.dart b/tests/lib_2/mirrors/library_imports_prefixed_test.dart index 7915fae49ed..a9ad0a23cc0 100644 --- a/tests/lib_2/mirrors/library_imports_prefixed_test.dart +++ b/tests/lib_2/mirrors/library_imports_prefixed_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.library_imports_prefixed; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/library_imports_shown.dart b/tests/lib_2/mirrors/library_imports_shown.dart index 6790902e695..8d27e8ed230 100644 --- a/tests/lib_2/mirrors/library_imports_shown.dart +++ b/tests/lib_2/mirrors/library_imports_shown.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library library_imports_shown; import 'library_imports_a.dart' show somethingFromA, somethingFromBoth; diff --git a/tests/lib_2/mirrors/library_imports_shown_test.dart b/tests/lib_2/mirrors/library_imports_shown_test.dart index 44086e21f8b..eda6bfdea5e 100644 --- a/tests/lib_2/mirrors/library_imports_shown_test.dart +++ b/tests/lib_2/mirrors/library_imports_shown_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.library_imports_shown; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/library_metadata2_lib1.dart b/tests/lib_2/mirrors/library_metadata2_lib1.dart index 75149b362cf..78d4eb3886f 100644 --- a/tests/lib_2/mirrors/library_metadata2_lib1.dart +++ b/tests/lib_2/mirrors/library_metadata2_lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @MyConst() library lib1; diff --git a/tests/lib_2/mirrors/library_metadata2_lib2.dart b/tests/lib_2/mirrors/library_metadata2_lib2.dart index b8a447f07f4..d8e3f1e972c 100644 --- a/tests/lib_2/mirrors/library_metadata2_lib2.dart +++ b/tests/lib_2/mirrors/library_metadata2_lib2.dart @@ -2,5 +2,7 @@ // 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 = 2.9 + @MyConst() library lib2; diff --git a/tests/lib_2/mirrors/library_metadata2_test.dart b/tests/lib_2/mirrors/library_metadata2_test.dart index b6fc2d9ba1a..4840caf9d84 100644 --- a/tests/lib_2/mirrors/library_metadata2_test.dart +++ b/tests/lib_2/mirrors/library_metadata2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'library_metadata2_lib1.dart'; diff --git a/tests/lib_2/mirrors/library_metadata_test.dart b/tests/lib_2/mirrors/library_metadata_test.dart index 2a85166806c..b898e249b5a 100644 --- a/tests/lib_2/mirrors/library_metadata_test.dart +++ b/tests/lib_2/mirrors/library_metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @string @symbol library test.library_metadata_test; diff --git a/tests/lib_2/mirrors/library_metatarget_test.dart b/tests/lib_2/mirrors/library_metatarget_test.dart index 6800bab91b6..683e28a415c 100644 --- a/tests/lib_2/mirrors/library_metatarget_test.dart +++ b/tests/lib_2/mirrors/library_metatarget_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for the combined use of metatargets and library tags. library topLib; diff --git a/tests/lib_2/mirrors/library_metatarget_test_annotations_lib.dart b/tests/lib_2/mirrors/library_metatarget_test_annotations_lib.dart index 9464fa7f1da..38843bc6208 100644 --- a/tests/lib_2/mirrors/library_metatarget_test_annotations_lib.dart +++ b/tests/lib_2/mirrors/library_metatarget_test_annotations_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for the combined use of metatargets and library tags. library annotations; diff --git a/tests/lib_2/mirrors/library_metatarget_test_lib.dart b/tests/lib_2/mirrors/library_metatarget_test_lib.dart index f8126c17478..a5f52913cf0 100644 --- a/tests/lib_2/mirrors/library_metatarget_test_lib.dart +++ b/tests/lib_2/mirrors/library_metatarget_test_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for the combined use of metatargets and library tags. @usedOnlyOnLibrary diff --git a/tests/lib_2/mirrors/library_uri_io_test.dart b/tests/lib_2/mirrors/library_uri_io_test.dart index 302e848e636..029886ed2bc 100644 --- a/tests/lib_2/mirrors/library_uri_io_test.dart +++ b/tests/lib_2/mirrors/library_uri_io_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test library uri for a library read as a file. library MirrorsTest; diff --git a/tests/lib_2/mirrors/library_uri_package_test.dart b/tests/lib_2/mirrors/library_uri_package_test.dart index 01160054cab..38afa904595 100644 --- a/tests/lib_2/mirrors/library_uri_package_test.dart +++ b/tests/lib_2/mirrors/library_uri_package_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test library uri for a library read as a package . library MirrorsTest; diff --git a/tests/lib_2/mirrors/library_with_annotated_declaration.dart b/tests/lib_2/mirrors/library_with_annotated_declaration.dart index 07a498ba2cc..2742f715876 100644 --- a/tests/lib_2/mirrors/library_with_annotated_declaration.dart +++ b/tests/lib_2/mirrors/library_with_annotated_declaration.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @metadata library library_with_annotated_declaration; diff --git a/tests/lib_2/mirrors/library_without_declaration.dart b/tests/lib_2/mirrors/library_without_declaration.dart index d9e1fe4a20f..e6f6ee8160c 100644 --- a/tests/lib_2/mirrors/library_without_declaration.dart +++ b/tests/lib_2/mirrors/library_without_declaration.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // NO LIBRARY DECLARATION class ClassInLibraryWithoutDeclaration {} diff --git a/tests/lib_2/mirrors/list_constructor_test.dart b/tests/lib_2/mirrors/list_constructor_test.dart index 16f3c45b889..cb6db8e79b5 100644 --- a/tests/lib_2/mirrors/list_constructor_test.dart +++ b/tests/lib_2/mirrors/list_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/load_library_test.dart b/tests/lib_2/mirrors/load_library_test.dart index a43d3f24aff..54f4c446697 100644 --- a/tests/lib_2/mirrors/load_library_test.dart +++ b/tests/lib_2/mirrors/load_library_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library load_library; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/local_function_is_static_test.dart b/tests/lib_2/mirrors/local_function_is_static_test.dart index 131fb757507..957979a38ad 100644 --- a/tests/lib_2/mirrors/local_function_is_static_test.dart +++ b/tests/lib_2/mirrors/local_function_is_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.local_function_is_static; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/local_isolate_test.dart b/tests/lib_2/mirrors/local_isolate_test.dart index e619812368e..1ef2d728e9f 100644 --- a/tests/lib_2/mirrors/local_isolate_test.dart +++ b/tests/lib_2/mirrors/local_isolate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the local IsolateMirror. library test.local_isolate_test; diff --git a/tests/lib_2/mirrors/metadata_allowed_values_import.dart b/tests/lib_2/mirrors/metadata_allowed_values_import.dart index 67df4e21ab2..91ef426ada7 100644 --- a/tests/lib_2/mirrors/metadata_allowed_values_import.dart +++ b/tests/lib_2/mirrors/metadata_allowed_values_import.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class Imported { const Imported(); const Imported.named(); diff --git a/tests/lib_2/mirrors/metadata_allowed_values_test.dart b/tests/lib_2/mirrors/metadata_allowed_values_test.dart index 32047304613..527e8b0eba8 100644 --- a/tests/lib_2/mirrors/metadata_allowed_values_test.dart +++ b/tests/lib_2/mirrors/metadata_allowed_values_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.metadata_allowed_values; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/metadata_class_mirror_test.dart b/tests/lib_2/mirrors/metadata_class_mirror_test.dart index 9dab02494e7..f716c6e87fb 100644 --- a/tests/lib_2/mirrors/metadata_class_mirror_test.dart +++ b/tests/lib_2/mirrors/metadata_class_mirror_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for http://dartbug.com/19173 library lib; diff --git a/tests/lib_2/mirrors/metadata_const_map_test.dart b/tests/lib_2/mirrors/metadata_const_map_test.dart index dcf8376e59f..b595925f64a 100644 --- a/tests/lib_2/mirrors/metadata_const_map_test.dart +++ b/tests/lib_2/mirrors/metadata_const_map_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 20776. Tests that the needed classes for the // constant map in the metadata are generated. diff --git a/tests/lib_2/mirrors/metadata_constructed_constant_test.dart b/tests/lib_2/mirrors/metadata_constructed_constant_test.dart index fc7260122a2..6183fabfecb 100644 --- a/tests/lib_2/mirrors/metadata_constructed_constant_test.dart +++ b/tests/lib_2/mirrors/metadata_constructed_constant_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.metadata_constructed_constant_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/metadata_constructor_arguments_test.dart b/tests/lib_2/mirrors/metadata_constructor_arguments_test.dart index 361d0677af2..92bb497a941 100644 --- a/tests/lib_2/mirrors/metadata_constructor_arguments_test.dart +++ b/tests/lib_2/mirrors/metadata_constructor_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for Issue 13817. library test.metadata_constructor_arguments; diff --git a/tests/lib_2/mirrors/metadata_nested_constructor_call_test.dart b/tests/lib_2/mirrors/metadata_nested_constructor_call_test.dart index bb26dcfc2c9..3f821789ddf 100644 --- a/tests/lib_2/mirrors/metadata_nested_constructor_call_test.dart +++ b/tests/lib_2/mirrors/metadata_nested_constructor_call_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for Issue 17141. library test.metadata_nested_constructor_call; diff --git a/tests/lib_2/mirrors/metadata_scope_test.dart b/tests/lib_2/mirrors/metadata_scope_test.dart index 521dee6563a..0ecaeb19427 100644 --- a/tests/lib_2/mirrors/metadata_scope_test.dart +++ b/tests/lib_2/mirrors/metadata_scope_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.metadata_scope; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/metadata_symbol_literal_test.dart b/tests/lib_2/mirrors/metadata_symbol_literal_test.dart index 129d4cd8f1a..7f1b2c13a31 100644 --- a/tests/lib_2/mirrors/metadata_symbol_literal_test.dart +++ b/tests/lib_2/mirrors/metadata_symbol_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/metadata_test.dart b/tests/lib_2/mirrors/metadata_test.dart index d574bc1376b..2f504dd81d1 100644 --- a/tests/lib_2/mirrors/metadata_test.dart +++ b/tests/lib_2/mirrors/metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.metadata_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/metadata_type_literal_test.dart b/tests/lib_2/mirrors/metadata_type_literal_test.dart index 4d567a68e75..37a8446c42b 100644 --- a/tests/lib_2/mirrors/metadata_type_literal_test.dart +++ b/tests/lib_2/mirrors/metadata_type_literal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/method_mirror_extension_test.dart b/tests/lib_2/mirrors/method_mirror_extension_test.dart index 2d68474512c..fcc8b006704 100644 --- a/tests/lib_2/mirrors/method_mirror_extension_test.dart +++ b/tests/lib_2/mirrors/method_mirror_extension_test.dart @@ -2,7 +2,7 @@ // 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. -// SharedOptions=--enable-experiment=extension-methods +// @dart = 2.9 library lib; diff --git a/tests/lib_2/mirrors/method_mirror_location_other.dart b/tests/lib_2/mirrors/method_mirror_location_other.dart index 1747eb9342f..c67207cd85b 100644 --- a/tests/lib_2/mirrors/method_mirror_location_other.dart +++ b/tests/lib_2/mirrors/method_mirror_location_other.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of test.method_location; class ClassInOtherFile { diff --git a/tests/lib_2/mirrors/method_mirror_location_test.dart b/tests/lib_2/mirrors/method_mirror_location_test.dart index 426d3f2c99f..56e2f4fafca 100644 --- a/tests/lib_2/mirrors/method_mirror_location_test.dart +++ b/tests/lib_2/mirrors/method_mirror_location_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.method_location; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/method_mirror_name_test.dart b/tests/lib_2/mirrors/method_mirror_name_test.dart index c428da72f3b..7db957c4778 100644 --- a/tests/lib_2/mirrors/method_mirror_name_test.dart +++ b/tests/lib_2/mirrors/method_mirror_name_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/method_mirror_properties_test.dart b/tests/lib_2/mirrors/method_mirror_properties_test.dart index d2262f16edf..870a3c28250 100644 --- a/tests/lib_2/mirrors/method_mirror_properties_test.dart +++ b/tests/lib_2/mirrors/method_mirror_properties_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/method_mirror_returntype_test.dart b/tests/lib_2/mirrors/method_mirror_returntype_test.dart index 83b5f891080..0a5f38eaf57 100644 --- a/tests/lib_2/mirrors/method_mirror_returntype_test.dart +++ b/tests/lib_2/mirrors/method_mirror_returntype_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/method_mirror_source_line_ending_cr.dart b/tests/lib_2/mirrors/method_mirror_source_line_ending_cr.dart index 45533d47348..c79ce3bff6e 100755 --- a/tests/lib_2/mirrors/method_mirror_source_line_ending_cr.dart +++ b/tests/lib_2/mirrors/method_mirror_source_line_ending_cr.dart @@ -1 +1,17 @@ -// 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. // Note: This test relies on CR line endings in the source file. library line_endings.cr; oneLineCR(x) => x; multiLineCR(y) { return y + 1; } b (){ } +// 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. + +// @dart = 2.9 + +// Note: This test relies on CR line endings in the source file. + +library line_endings.cr; + +oneLineCR(x) => x; +multiLineCR(y) { + return y + 1; +} +b +(){ +} diff --git a/tests/lib_2/mirrors/method_mirror_source_line_ending_crlf.dart b/tests/lib_2/mirrors/method_mirror_source_line_ending_crlf.dart index d93615cd83b..0190f228fd2 100755 --- a/tests/lib_2/mirrors/method_mirror_source_line_ending_crlf.dart +++ b/tests/lib_2/mirrors/method_mirror_source_line_ending_crlf.dart @@ -1,15 +1,17 @@ -// 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. - -// Note: This test relies on CRLF line endings in the source file. - -library line_endings.crlf; - -oneLineCRLF(x) => x; -multiLineCRLF(y) { - return y + 1; -} -c -(){ -} +// 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. + +// @dart = 2.9 + +// Note: This test relies on CRLF line endings in the source file. + +library line_endings.crlf; + +oneLineCRLF(x) => x; +multiLineCRLF(y) { + return y + 1; +} +c +(){ +} diff --git a/tests/lib_2/mirrors/method_mirror_source_line_ending_lf.dart b/tests/lib_2/mirrors/method_mirror_source_line_ending_lf.dart index b805a757a5d..a29352a265b 100755 --- a/tests/lib_2/mirrors/method_mirror_source_line_ending_lf.dart +++ b/tests/lib_2/mirrors/method_mirror_source_line_ending_lf.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Note: This test relies on LF line endings in the source file. library line_endings.lf; diff --git a/tests/lib_2/mirrors/method_mirror_source_line_ending_test.dart b/tests/lib_2/mirrors/method_mirror_source_line_ending_test.dart index 4e4e8a4ba2f..6798c930f0b 100644 --- a/tests/lib_2/mirrors/method_mirror_source_line_ending_test.dart +++ b/tests/lib_2/mirrors/method_mirror_source_line_ending_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Note: These tests rely on specific line endings in the source files. import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/method_mirror_source_other.dart b/tests/lib_2/mirrors/method_mirror_source_other.dart index 37151b62d18..8f6cfe09144 100644 --- a/tests/lib_2/mirrors/method_mirror_source_other.dart +++ b/tests/lib_2/mirrors/method_mirror_source_other.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 main() { print("Blah"); } diff --git a/tests/lib_2/mirrors/method_mirror_source_test.dart b/tests/lib_2/mirrors/method_mirror_source_test.dart index dbfbf5cdd92..4603d9cbeb4 100644 --- a/tests/lib_2/mirrors/method_mirror_source_test.dart +++ b/tests/lib_2/mirrors/method_mirror_source_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Note: This test relies on LF line endings in the source file. import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/mirror_in_static_init_test.dart b/tests/lib_2/mirrors/mirror_in_static_init_test.dart index 4de3ef6c4b7..c88515be0da 100644 --- a/tests/lib_2/mirrors/mirror_in_static_init_test.dart +++ b/tests/lib_2/mirrors/mirror_in_static_init_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Error in class finalization triggered via mirror in a static initializer. // Simply check that we do not crash. // This is a regression test for the VM. diff --git a/tests/lib_2/mirrors/mirrors_nsm_mismatch_test.dart b/tests/lib_2/mirrors/mirrors_nsm_mismatch_test.dart index 2a3637bbdbe..232c7be7795 100644 --- a/tests/lib_2/mirrors/mirrors_nsm_mismatch_test.dart +++ b/tests/lib_2/mirrors/mirrors_nsm_mismatch_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.mirrors_nsm_mismatch; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/mirrors_nsm_test.dart b/tests/lib_2/mirrors/mirrors_nsm_test.dart index d7a772947ae..28979181cc4 100644 --- a/tests/lib_2/mirrors/mirrors_nsm_test.dart +++ b/tests/lib_2/mirrors/mirrors_nsm_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library MirrorsTest; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/mirrors_reader.dart b/tests/lib_2/mirrors/mirrors_reader.dart index b8a5faaad56..4ede2a75156 100644 --- a/tests/lib_2/mirrors/mirrors_reader.dart +++ b/tests/lib_2/mirrors/mirrors_reader.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICESNE file. +// @dart = 2.9 + library mirrors.reader; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/mirrors_reader_test.dart b/tests/lib_2/mirrors/mirrors_reader_test.dart index 81154d65bcc..ec6cbf69aac 100644 --- a/tests/lib_2/mirrors/mirrors_reader_test.dart +++ b/tests/lib_2/mirrors/mirrors_reader_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that everything reachable from a [MirrorSystem] can be accessed. library test.mirrors.reader; diff --git a/tests/lib_2/mirrors/mirrors_resolve_fields_test.dart b/tests/lib_2/mirrors/mirrors_resolve_fields_test.dart index b914dda7701..ab7f95b6c8b 100644 --- a/tests/lib_2/mirrors/mirrors_resolve_fields_test.dart +++ b/tests/lib_2/mirrors/mirrors_resolve_fields_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for dart2js that used to not resolve instance // fields when a class is only instantiated through mirrors. diff --git a/tests/lib_2/mirrors/mirrors_test.dart b/tests/lib_2/mirrors/mirrors_test.dart index e48269e70e1..11f81ec0fe2 100644 --- a/tests/lib_2/mirrors/mirrors_test.dart +++ b/tests/lib_2/mirrors/mirrors_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library MirrorsTest; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/mirrors_visitor.dart b/tests/lib_2/mirrors/mirrors_visitor.dart index a78b7ec1208..002df198cf5 100644 --- a/tests/lib_2/mirrors/mirrors_visitor.dart +++ b/tests/lib_2/mirrors/mirrors_visitor.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library mirrors.visitor; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/mixin_application_test.dart b/tests/lib_2/mirrors/mixin_application_test.dart index 2f616475f6a..00b389b3084 100644 --- a/tests/lib_2/mirrors/mixin_application_test.dart +++ b/tests/lib_2/mirrors/mixin_application_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test uses the multi-test "ok" feature to create two positive tests from // one file. One of these tests fail on dart2js, but pass on the VM, or vice // versa. diff --git a/tests/lib_2/mirrors/mixin_members_test.dart b/tests/lib_2/mirrors/mixin_members_test.dart index ae6db71b442..298eb4f908b 100644 --- a/tests/lib_2/mirrors/mixin_members_test.dart +++ b/tests/lib_2/mirrors/mixin_members_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library mixin_members_test; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/mixin_simple_test.dart b/tests/lib_2/mirrors/mixin_simple_test.dart index f9f0915cd0f..067b1831660 100644 --- a/tests/lib_2/mirrors/mixin_simple_test.dart +++ b/tests/lib_2/mirrors/mixin_simple_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.mixin; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/mixin_test.dart b/tests/lib_2/mirrors/mixin_test.dart index d55d5eb073c..a25bf4732b0 100644 --- a/tests/lib_2/mirrors/mixin_test.dart +++ b/tests/lib_2/mirrors/mixin_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.mixin; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/model.dart b/tests/lib_2/mirrors/model.dart index 508cbf2e2f2..611b6b1633b 100644 --- a/tests/lib_2/mirrors/model.dart +++ b/tests/lib_2/mirrors/model.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.model; var accessorA; diff --git a/tests/lib_2/mirrors/model_test.dart b/tests/lib_2/mirrors/model_test.dart index 1e249010236..47d19870046 100644 --- a/tests/lib_2/mirrors/model_test.dart +++ b/tests/lib_2/mirrors/model_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.model_test; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/new_instance_optional_arguments_test.dart b/tests/lib_2/mirrors/new_instance_optional_arguments_test.dart index 3d50f040472..72adc2b2c32 100644 --- a/tests/lib_2/mirrors/new_instance_optional_arguments_test.dart +++ b/tests/lib_2/mirrors/new_instance_optional_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library mirror_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/new_instance_with_type_arguments_test.dart b/tests/lib_2/mirrors/new_instance_with_type_arguments_test.dart index cf0ee6dd0f0..f7a9c564913 100644 --- a/tests/lib_2/mirrors/new_instance_with_type_arguments_test.dart +++ b/tests/lib_2/mirrors/new_instance_with_type_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.new_instance_with_type_arguments_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/no_metadata_test.dart b/tests/lib_2/mirrors/no_metadata_test.dart index 642dd83634d..1280974f934 100644 --- a/tests/lib_2/mirrors/no_metadata_test.dart +++ b/tests/lib_2/mirrors/no_metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'stringify.dart'; diff --git a/tests/lib_2/mirrors/null2_test.dart b/tests/lib_2/mirrors/null2_test.dart index 4c5590d398f..a1ccee88ffe 100644 --- a/tests/lib_2/mirrors/null2_test.dart +++ b/tests/lib_2/mirrors/null2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.null_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/null_test.dart b/tests/lib_2/mirrors/null_test.dart index f0e154ea849..68d4e0b135f 100644 --- a/tests/lib_2/mirrors/null_test.dart +++ b/tests/lib_2/mirrors/null_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--optimization-counter-threshold=5 import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/operator_test.dart b/tests/lib_2/mirrors/operator_test.dart index a7fafbcb223..0a77b5fa17e 100644 --- a/tests/lib_2/mirrors/operator_test.dart +++ b/tests/lib_2/mirrors/operator_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test operators. library test.operator_test; diff --git a/tests/lib_2/mirrors/optional_parameters_test.dart b/tests/lib_2/mirrors/optional_parameters_test.dart index 10515dd8b9a..3647ef75bdf 100644 --- a/tests/lib_2/mirrors/optional_parameters_test.dart +++ b/tests/lib_2/mirrors/optional_parameters_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for http://dartbug.com/22987. // Ensure that functions whose signature only differs in optionality of // parameters are reflected correctly. diff --git a/tests/lib_2/mirrors/other_declarations_location_test.dart b/tests/lib_2/mirrors/other_declarations_location_test.dart index cbd0b9d6c05..123ab86317f 100644 --- a/tests/lib_2/mirrors/other_declarations_location_test.dart +++ b/tests/lib_2/mirrors/other_declarations_location_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.declarations_location; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/other_library.dart b/tests/lib_2/mirrors/other_library.dart index c1e908f4a8d..baf8c38ef89 100644 --- a/tests/lib_2/mirrors/other_library.dart +++ b/tests/lib_2/mirrors/other_library.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.other_library; topLevelMethod() => 42; diff --git a/tests/lib_2/mirrors/parameter_abstract_test.dart b/tests/lib_2/mirrors/parameter_abstract_test.dart index cf2bd25ce81..d43fd1d53fd 100644 --- a/tests/lib_2/mirrors/parameter_abstract_test.dart +++ b/tests/lib_2/mirrors/parameter_abstract_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/parameter_annotation_mirror_test.dart b/tests/lib_2/mirrors/parameter_annotation_mirror_test.dart index ff4aaa6b4ae..a2184507052 100644 --- a/tests/lib_2/mirrors/parameter_annotation_mirror_test.dart +++ b/tests/lib_2/mirrors/parameter_annotation_mirror_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:mirrors"; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/parameter_is_const_test.dart b/tests/lib_2/mirrors/parameter_is_const_test.dart index c2739e5848a..d1a12a19c25 100644 --- a/tests/lib_2/mirrors/parameter_is_const_test.dart +++ b/tests/lib_2/mirrors/parameter_is_const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.parameter_is_const; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/parameter_metadata_test.dart b/tests/lib_2/mirrors/parameter_metadata_test.dart index f87598391bf..0c6472efae6 100644 --- a/tests/lib_2/mirrors/parameter_metadata_test.dart +++ b/tests/lib_2/mirrors/parameter_metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.parameter_metadata_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/parameter_of_mixin_app_constructor_test.dart b/tests/lib_2/mirrors/parameter_of_mixin_app_constructor_test.dart index 014db1e775e..edb19eee028 100644 --- a/tests/lib_2/mirrors/parameter_of_mixin_app_constructor_test.dart +++ b/tests/lib_2/mirrors/parameter_of_mixin_app_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.parameter_of_mixin_app_constructor; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/parameter_optional_order_test.dart b/tests/lib_2/mirrors/parameter_optional_order_test.dart index a2fa3d487c1..fda3f80a536 100644 --- a/tests/lib_2/mirrors/parameter_optional_order_test.dart +++ b/tests/lib_2/mirrors/parameter_optional_order_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/parameter_test.dart b/tests/lib_2/mirrors/parameter_test.dart index 2a5eff6814c..47095dd3323 100644 --- a/tests/lib_2/mirrors/parameter_test.dart +++ b/tests/lib_2/mirrors/parameter_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This tests uses the multi-test "ok" feature: // none: Desired behaviour, passing on the VM. // 01: Trimmed version for dart2js. diff --git a/tests/lib_2/mirrors/private_class_field_other.dart b/tests/lib_2/mirrors/private_class_field_other.dart index 1a303547a61..d5476ee06bd 100644 --- a/tests/lib_2/mirrors/private_class_field_other.dart +++ b/tests/lib_2/mirrors/private_class_field_other.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class C { static var _privateField = 42; } diff --git a/tests/lib_2/mirrors/private_class_field_test.dart b/tests/lib_2/mirrors/private_class_field_test.dart index ae963e87f34..1b92c77497e 100644 --- a/tests/lib_2/mirrors/private_class_field_test.dart +++ b/tests/lib_2/mirrors/private_class_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test a private field name doesn't match the equivalent private name from // another library. diff --git a/tests/lib_2/mirrors/private_field_helper.dart b/tests/lib_2/mirrors/private_field_helper.dart index df4636edd0e..c328ddc9368 100644 --- a/tests/lib_2/mirrors/private_field_helper.dart +++ b/tests/lib_2/mirrors/private_field_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.mixin; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/private_field_test.dart b/tests/lib_2/mirrors/private_field_test.dart index ae830a9b1e6..f21925b2556 100644 --- a/tests/lib_2/mirrors/private_field_test.dart +++ b/tests/lib_2/mirrors/private_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.mixin; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/private_symbol_mangling_lib.dart b/tests/lib_2/mirrors/private_symbol_mangling_lib.dart index 8d9c93bb0bd..4c40a7ad53f 100644 --- a/tests/lib_2/mirrors/private_symbol_mangling_lib.dart +++ b/tests/lib_2/mirrors/private_symbol_mangling_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library other; var _privateGlobalField = 3; diff --git a/tests/lib_2/mirrors/private_symbol_mangling_test.dart b/tests/lib_2/mirrors/private_symbol_mangling_test.dart index 826d06c8b83..31d10351ad5 100644 --- a/tests/lib_2/mirrors/private_symbol_mangling_test.dart +++ b/tests/lib_2/mirrors/private_symbol_mangling_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library main; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/private_symbol_test.dart b/tests/lib_2/mirrors/private_symbol_test.dart index b6e74af866e..cd2a26546e8 100644 --- a/tests/lib_2/mirrors/private_symbol_test.dart +++ b/tests/lib_2/mirrors/private_symbol_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/private_types_test.dart b/tests/lib_2/mirrors/private_types_test.dart index 4d908e38b0f..b0157d80ad8 100644 --- a/tests/lib_2/mirrors/private_types_test.dart +++ b/tests/lib_2/mirrors/private_types_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.private_types; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/proxy_type_test.dart b/tests/lib_2/mirrors/proxy_type_test.dart index 986ded7be75..8b868829fd7 100644 --- a/tests/lib_2/mirrors/proxy_type_test.dart +++ b/tests/lib_2/mirrors/proxy_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.proxy_type; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/raw_type_test.dart b/tests/lib_2/mirrors/raw_type_test.dart index 3bd49821049..0f34410a3ef 100644 --- a/tests/lib_2/mirrors/raw_type_test.dart +++ b/tests/lib_2/mirrors/raw_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/redirecting_factory_different_type_test.dart b/tests/lib_2/mirrors/redirecting_factory_different_type_test.dart index cb23a9b211c..2f8c9fba2cb 100644 --- a/tests/lib_2/mirrors/redirecting_factory_different_type_test.dart +++ b/tests/lib_2/mirrors/redirecting_factory_different_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library mirror_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/redirecting_factory_reflection_test.dart b/tests/lib_2/mirrors/redirecting_factory_reflection_test.dart index cf5d60b332f..f93ca3e4dfa 100644 --- a/tests/lib_2/mirrors/redirecting_factory_reflection_test.dart +++ b/tests/lib_2/mirrors/redirecting_factory_reflection_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/redirecting_factory_test.dart b/tests/lib_2/mirrors/redirecting_factory_test.dart index 2f5e47a8da4..22a0f0443b4 100644 --- a/tests/lib_2/mirrors/redirecting_factory_test.dart +++ b/tests/lib_2/mirrors/redirecting_factory_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:mirrors"; import "package:expect/expect.dart"; import "stringify.dart"; diff --git a/tests/lib_2/mirrors/reflect_class_test.dart b/tests/lib_2/mirrors/reflect_class_test.dart index ca0b94de8e8..816795537dd 100644 --- a/tests/lib_2/mirrors/reflect_class_test.dart +++ b/tests/lib_2/mirrors/reflect_class_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:mirrors"; import "package:expect/expect.dart"; diff --git a/tests/lib_2/mirrors/reflect_model_test.dart b/tests/lib_2/mirrors/reflect_model_test.dart index 416f041b099..362a6cebe17 100644 --- a/tests/lib_2/mirrors/reflect_model_test.dart +++ b/tests/lib_2/mirrors/reflect_model_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.reflect_model_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/reflect_runtime_type_test.dart b/tests/lib_2/mirrors/reflect_runtime_type_test.dart index a5e96b67aa1..e477b01fc76 100644 --- a/tests/lib_2/mirrors/reflect_runtime_type_test.dart +++ b/tests/lib_2/mirrors/reflect_runtime_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A simple test that ensure that reflection works on runtime types of // instantiated classes. diff --git a/tests/lib_2/mirrors/reflect_two_classes_test.dart b/tests/lib_2/mirrors/reflect_two_classes_test.dart index 65f103beb67..9f98d904b87 100644 --- a/tests/lib_2/mirrors/reflect_two_classes_test.dart +++ b/tests/lib_2/mirrors/reflect_two_classes_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This is a regression test for http://dartbug.com/23054 library index; diff --git a/tests/lib_2/mirrors/reflect_uninstantiated_class_test.dart b/tests/lib_2/mirrors/reflect_uninstantiated_class_test.dart index bfbdadb3c41..e51b8a15b6f 100644 --- a/tests/lib_2/mirrors/reflect_uninstantiated_class_test.dart +++ b/tests/lib_2/mirrors/reflect_uninstantiated_class_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // A simple test that ensure that reflection works on uninstantiated classes. import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/reflected_type_classes_test.dart b/tests/lib_2/mirrors/reflected_type_classes_test.dart index bdc828c3665..0e5c5b8fa80 100644 --- a/tests/lib_2/mirrors/reflected_type_classes_test.dart +++ b/tests/lib_2/mirrors/reflected_type_classes_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.reflected_type_classes; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/reflected_type_function_type_test.dart b/tests/lib_2/mirrors/reflected_type_function_type_test.dart index 53132a3a282..2ed5d7336db 100644 --- a/tests/lib_2/mirrors/reflected_type_function_type_test.dart +++ b/tests/lib_2/mirrors/reflected_type_function_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.reflected_type_function_types; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/reflected_type_generics_test.dart b/tests/lib_2/mirrors/reflected_type_generics_test.dart index e8ca31565e4..e92126bef0b 100644 --- a/tests/lib_2/mirrors/reflected_type_generics_test.dart +++ b/tests/lib_2/mirrors/reflected_type_generics_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.reflected_type_generics_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/reflected_type_helper.dart b/tests/lib_2/mirrors/reflected_type_helper.dart index fb7bf93ec4a..3483f72c55d 100644 --- a/tests/lib_2/mirrors/reflected_type_helper.dart +++ b/tests/lib_2/mirrors/reflected_type_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.reflected_type_helper; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/reflected_type_special_types_test.dart b/tests/lib_2/mirrors/reflected_type_special_types_test.dart index 4fe726124fc..1459ace3d2e 100644 --- a/tests/lib_2/mirrors/reflected_type_special_types_test.dart +++ b/tests/lib_2/mirrors/reflected_type_special_types_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.reflected_type_special_types; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/reflected_type_test.dart b/tests/lib_2/mirrors/reflected_type_test.dart index 4b07e43ce11..d5574180011 100644 --- a/tests/lib_2/mirrors/reflected_type_test.dart +++ b/tests/lib_2/mirrors/reflected_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.reflected_type_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/reflected_type_typedefs_test.dart b/tests/lib_2/mirrors/reflected_type_typedefs_test.dart index 03673d7d04e..0c6335d07e4 100644 --- a/tests/lib_2/mirrors/reflected_type_typedefs_test.dart +++ b/tests/lib_2/mirrors/reflected_type_typedefs_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.reflected_type_typedefs; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/reflected_type_typevars_test.dart b/tests/lib_2/mirrors/reflected_type_typevars_test.dart index a43c0557a28..c06adfb5d21 100644 --- a/tests/lib_2/mirrors/reflected_type_typevars_test.dart +++ b/tests/lib_2/mirrors/reflected_type_typevars_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.reflected_type_type_variables; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/reflectively_instantiate_uninstantiated_class_test.dart b/tests/lib_2/mirrors/reflectively_instantiate_uninstantiated_class_test.dart index 63cbb9938c3..03e86f9f401 100644 --- a/tests/lib_2/mirrors/reflectively_instantiate_uninstantiated_class_test.dart +++ b/tests/lib_2/mirrors/reflectively_instantiate_uninstantiated_class_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Ensure that otherwise uninstantiated classes can be instantiated // reflectively. diff --git a/tests/lib_2/mirrors/regress_13462_0_test.dart b/tests/lib_2/mirrors/regress_13462_0_test.dart index b87bf1f24d7..2798187b176 100644 --- a/tests/lib_2/mirrors/regress_13462_0_test.dart +++ b/tests/lib_2/mirrors/regress_13462_0_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; main() { diff --git a/tests/lib_2/mirrors/regress_13462_1_test.dart b/tests/lib_2/mirrors/regress_13462_1_test.dart index bffdd033426..e0c72a5370a 100644 --- a/tests/lib_2/mirrors/regress_13462_1_test.dart +++ b/tests/lib_2/mirrors/regress_13462_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; main() { diff --git a/tests/lib_2/mirrors/regress_14304_test.dart b/tests/lib_2/mirrors/regress_14304_test.dart index 293fcea281b..cca18409d76 100644 --- a/tests/lib_2/mirrors/regress_14304_test.dart +++ b/tests/lib_2/mirrors/regress_14304_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for Issue 14304. import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/regress_16321_test.dart b/tests/lib_2/mirrors/regress_16321_test.dart index 6ccf0b28ffe..e4419edc7f8 100644 --- a/tests/lib_2/mirrors/regress_16321_test.dart +++ b/tests/lib_2/mirrors/regress_16321_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for Issue 16321. // (Type errors in metadata crashed the VM in checked mode). diff --git a/tests/lib_2/mirrors/regress_18535_test.dart b/tests/lib_2/mirrors/regress_18535_test.dart index 2abb964005a..8efd4b3a8fd 100644 --- a/tests/lib_2/mirrors/regress_18535_test.dart +++ b/tests/lib_2/mirrors/regress_18535_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 18535. import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/regress_19731_test.dart b/tests/lib_2/mirrors/regress_19731_test.dart index 358098e7265..eee31aa55b3 100644 --- a/tests/lib_2/mirrors/regress_19731_test.dart +++ b/tests/lib_2/mirrors/regress_19731_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @metadata library regress_19731; diff --git a/tests/lib_2/mirrors/regress_26187_test.dart b/tests/lib_2/mirrors/regress_26187_test.dart index 6c381c78dfd..2a73596fbc5 100644 --- a/tests/lib_2/mirrors/regress_26187_test.dart +++ b/tests/lib_2/mirrors/regress_26187_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/regress_28255_test.dart b/tests/lib_2/mirrors/regress_28255_test.dart index b127045030f..8b1e91cfa76 100644 --- a/tests/lib_2/mirrors/regress_28255_test.dart +++ b/tests/lib_2/mirrors/regress_28255_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 28255 import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/regress_33259_test.dart b/tests/lib_2/mirrors/regress_33259_test.dart index af2b4ebcd72..3cad482d352 100644 --- a/tests/lib_2/mirrors/regress_33259_test.dart +++ b/tests/lib_2/mirrors/regress_33259_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for http://dartbug.com/33259. import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/regress_34982_test.dart b/tests/lib_2/mirrors/regress_34982_test.dart index f86df29cb45..67c20c744c1 100644 --- a/tests/lib_2/mirrors/regress_34982_test.dart +++ b/tests/lib_2/mirrors/regress_34982_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for http://dartbug.com/34982 import 'dart:mirrors'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/regress_38035_test.dart b/tests/lib_2/mirrors/regress_38035_test.dart index 4e6c25a17db..9ff74ca6721 100644 --- a/tests/lib_2/mirrors/regress_38035_test.dart +++ b/tests/lib_2/mirrors/regress_38035_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for https://github.com/dart-lang/sdk/issues/38035. // // Verifies that static tear-off has correct information about argument types. diff --git a/tests/lib_2/mirrors/relation_assignable_test.dart b/tests/lib_2/mirrors/relation_assignable_test.dart index da4c13d7170..8286d37dbfe 100644 --- a/tests/lib_2/mirrors/relation_assignable_test.dart +++ b/tests/lib_2/mirrors/relation_assignable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.relation_assignable; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/relation_subclass_test.dart b/tests/lib_2/mirrors/relation_subclass_test.dart index 7e83931b8d5..ee034d14f16 100644 --- a/tests/lib_2/mirrors/relation_subclass_test.dart +++ b/tests/lib_2/mirrors/relation_subclass_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.relation_subclass; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/relation_subtype_test.dart b/tests/lib_2/mirrors/relation_subtype_test.dart index a9d165a045a..b578c49bbdc 100644 --- a/tests/lib_2/mirrors/relation_subtype_test.dart +++ b/tests/lib_2/mirrors/relation_subtype_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.relation_subtype; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/repeated_private_anon_mixin_app1.dart b/tests/lib_2/mirrors/repeated_private_anon_mixin_app1.dart index 377cd51367b..635f0939a22 100644 --- a/tests/lib_2/mirrors/repeated_private_anon_mixin_app1.dart +++ b/tests/lib_2/mirrors/repeated_private_anon_mixin_app1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib1; class _S {} diff --git a/tests/lib_2/mirrors/repeated_private_anon_mixin_app2.dart b/tests/lib_2/mirrors/repeated_private_anon_mixin_app2.dart index 36f9d8cacca..15d37a07620 100644 --- a/tests/lib_2/mirrors/repeated_private_anon_mixin_app2.dart +++ b/tests/lib_2/mirrors/repeated_private_anon_mixin_app2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib2; class _S {} diff --git a/tests/lib_2/mirrors/repeated_private_anon_mixin_app_test.dart b/tests/lib_2/mirrors/repeated_private_anon_mixin_app_test.dart index 7a7a5adcaa6..e68eeb0e33c 100644 --- a/tests/lib_2/mirrors/repeated_private_anon_mixin_app_test.dart +++ b/tests/lib_2/mirrors/repeated_private_anon_mixin_app_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.repeated_private_anon_mixin_app; // Regression test for symbol mangling. diff --git a/tests/lib_2/mirrors/return_type_test.dart b/tests/lib_2/mirrors/return_type_test.dart index 65115bd2448..4cc3556b0b4 100644 --- a/tests/lib_2/mirrors/return_type_test.dart +++ b/tests/lib_2/mirrors/return_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test of [MethodMirror.returnType]. library test.return_type_test; diff --git a/tests/lib_2/mirrors/runtime_type_test.dart b/tests/lib_2/mirrors/runtime_type_test.dart index 82c88b6a927..c105b3d7418 100644 --- a/tests/lib_2/mirrors/runtime_type_test.dart +++ b/tests/lib_2/mirrors/runtime_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.runtime_type_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/set_field_with_final_inheritance_test.dart b/tests/lib_2/mirrors/set_field_with_final_inheritance_test.dart index 42812279015..6ad0711dbff 100644 --- a/tests/lib_2/mirrors/set_field_with_final_inheritance_test.dart +++ b/tests/lib_2/mirrors/set_field_with_final_inheritance_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.set_field_with_final_inheritance; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/set_field_with_final_test.dart b/tests/lib_2/mirrors/set_field_with_final_test.dart index d2515fdde4a..1c85ffdb678 100644 --- a/tests/lib_2/mirrors/set_field_with_final_test.dart +++ b/tests/lib_2/mirrors/set_field_with_final_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.set_field_with_final; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/spawn_function_root_library_test.dart b/tests/lib_2/mirrors/spawn_function_root_library_test.dart index f2d7f6c656c..4f069ec9875 100644 --- a/tests/lib_2/mirrors/spawn_function_root_library_test.dart +++ b/tests/lib_2/mirrors/spawn_function_root_library_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/static_const_field_test.dart b/tests/lib_2/mirrors/static_const_field_test.dart index cf8c283ffb2..f15004eb28d 100644 --- a/tests/lib_2/mirrors/static_const_field_test.dart +++ b/tests/lib_2/mirrors/static_const_field_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that static const fields are accessible by reflection. // Regression test for http://dartbug.com/23811. diff --git a/tests/lib_2/mirrors/static_members_easier_test.dart b/tests/lib_2/mirrors/static_members_easier_test.dart index a3912e9563e..a7dd1d5ca86 100644 --- a/tests/lib_2/mirrors/static_members_easier_test.dart +++ b/tests/lib_2/mirrors/static_members_easier_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.static_members; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/static_members_test.dart b/tests/lib_2/mirrors/static_members_test.dart index aad20e7cd2e..bed5f91bdab 100644 --- a/tests/lib_2/mirrors/static_members_test.dart +++ b/tests/lib_2/mirrors/static_members_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.static_members; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/static_metatarget_test.dart b/tests/lib_2/mirrors/static_metatarget_test.dart index 8024db8b280..43b7388f3c8 100644 --- a/tests/lib_2/mirrors/static_metatarget_test.dart +++ b/tests/lib_2/mirrors/static_metatarget_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for the combined use of metatargets and static fields with // annotations. diff --git a/tests/lib_2/mirrors/static_test.dart b/tests/lib_2/mirrors/static_test.dart index 6a2e4feeb92..fc15e8e09f0 100644 --- a/tests/lib_2/mirrors/static_test.dart +++ b/tests/lib_2/mirrors/static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test static members. library lib; diff --git a/tests/lib_2/mirrors/stringify.dart b/tests/lib_2/mirrors/stringify.dart index 954067ccca9..c9247b740d9 100644 --- a/tests/lib_2/mirrors/stringify.dart +++ b/tests/lib_2/mirrors/stringify.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Helper methods for converting a [Mirror] to a [String]. library test.stringify; diff --git a/tests/lib_2/mirrors/superclass2_test.dart b/tests/lib_2/mirrors/superclass2_test.dart index 8a9ec391429..c7575ea9cc8 100644 --- a/tests/lib_2/mirrors/superclass2_test.dart +++ b/tests/lib_2/mirrors/superclass2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.superclass; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/superclass_test.dart b/tests/lib_2/mirrors/superclass_test.dart index ad571beaa53..e500bfa5501 100644 --- a/tests/lib_2/mirrors/superclass_test.dart +++ b/tests/lib_2/mirrors/superclass_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.superclass; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/symbol_validation_test.dart b/tests/lib_2/mirrors/symbol_validation_test.dart index 11a7d9422db..60d78ba4110 100644 --- a/tests/lib_2/mirrors/symbol_validation_test.dart +++ b/tests/lib_2/mirrors/symbol_validation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library symbol_validation_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/syntax_error_test.dart b/tests/lib_2/mirrors/syntax_error_test.dart index 227e7917740..166dbfdd958 100644 --- a/tests/lib_2/mirrors/syntax_error_test.dart +++ b/tests/lib_2/mirrors/syntax_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for Issue 15744 // Also, tests that syntax errors in reflected classes are reported correctly. diff --git a/tests/lib_2/mirrors/synthetic_accessor_properties_test.dart b/tests/lib_2/mirrors/synthetic_accessor_properties_test.dart index 9d1d6e3ce44..6e65b692963 100644 --- a/tests/lib_2/mirrors/synthetic_accessor_properties_test.dart +++ b/tests/lib_2/mirrors/synthetic_accessor_properties_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.synthetic_accessor_properties; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/to_string_test.dart b/tests/lib_2/mirrors/to_string_test.dart index 23a04990f6c..ce657162dbd 100644 --- a/tests/lib_2/mirrors/to_string_test.dart +++ b/tests/lib_2/mirrors/to_string_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.to_string_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/top_level_accessors_test.dart b/tests/lib_2/mirrors/top_level_accessors_test.dart index 269153e6857..826e65a2173 100644 --- a/tests/lib_2/mirrors/top_level_accessors_test.dart +++ b/tests/lib_2/mirrors/top_level_accessors_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.top_level_accessors_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/type_argument_is_type_variable_test.dart b/tests/lib_2/mirrors/type_argument_is_type_variable_test.dart index e9159443e7b..ca11b171220 100644 --- a/tests/lib_2/mirrors/type_argument_is_type_variable_test.dart +++ b/tests/lib_2/mirrors/type_argument_is_type_variable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.type_argument_is_type_variable; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/type_mirror_for_type_test.dart b/tests/lib_2/mirrors/type_mirror_for_type_test.dart index 92e101fe857..65e88996a71 100644 --- a/tests/lib_2/mirrors/type_mirror_for_type_test.dart +++ b/tests/lib_2/mirrors/type_mirror_for_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for the dart2js implementation of runtime types. library test.type_mirror_for_type; diff --git a/tests/lib_2/mirrors/type_variable_is_static_test.dart b/tests/lib_2/mirrors/type_variable_is_static_test.dart index ff7bfa54679..3b093cdd966 100644 --- a/tests/lib_2/mirrors/type_variable_is_static_test.dart +++ b/tests/lib_2/mirrors/type_variable_is_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.type_variable_owner; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/type_variable_owner_test.dart b/tests/lib_2/mirrors/type_variable_owner_test.dart index 8dec68181a8..8913789456c 100644 --- a/tests/lib_2/mirrors/type_variable_owner_test.dart +++ b/tests/lib_2/mirrors/type_variable_owner_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Owner of a type variable should be the declaration of the generic class or // typedef, not an instantiation. diff --git a/tests/lib_2/mirrors/typearguments_mirror_test.dart b/tests/lib_2/mirrors/typearguments_mirror_test.dart index a5474d52b65..07671874127 100644 --- a/tests/lib_2/mirrors/typearguments_mirror_test.dart +++ b/tests/lib_2/mirrors/typearguments_mirror_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/typedef_deferred_library_test.dart b/tests/lib_2/mirrors/typedef_deferred_library_test.dart index 13631887a16..12a33a565b2 100644 --- a/tests/lib_2/mirrors/typedef_deferred_library_test.dart +++ b/tests/lib_2/mirrors/typedef_deferred_library_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library foo; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/typedef_in_signature_test.dart b/tests/lib_2/mirrors/typedef_in_signature_test.dart index 869575006d3..27dbd66bf7a 100644 --- a/tests/lib_2/mirrors/typedef_in_signature_test.dart +++ b/tests/lib_2/mirrors/typedef_in_signature_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.typedef_in_signature_test; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/typedef_library.dart b/tests/lib_2/mirrors/typedef_library.dart index fcb3231612c..640426a0520 100644 --- a/tests/lib_2/mirrors/typedef_library.dart +++ b/tests/lib_2/mirrors/typedef_library.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library bar; typedef G(); diff --git a/tests/lib_2/mirrors/typedef_library_test.dart b/tests/lib_2/mirrors/typedef_library_test.dart index b76878343eb..82e193051c2 100644 --- a/tests/lib_2/mirrors/typedef_library_test.dart +++ b/tests/lib_2/mirrors/typedef_library_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library foo; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/typedef_metadata_test.dart b/tests/lib_2/mirrors/typedef_metadata_test.dart index 7b5e09872d5..ebd1bfce5c8 100644 --- a/tests/lib_2/mirrors/typedef_metadata_test.dart +++ b/tests/lib_2/mirrors/typedef_metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @string @symbol library test.typedef_metadata_test; diff --git a/tests/lib_2/mirrors/typedef_reflected_type_test.dart b/tests/lib_2/mirrors/typedef_reflected_type_test.dart index 7b017f5e25c..546088cd804 100644 --- a/tests/lib_2/mirrors/typedef_reflected_type_test.dart +++ b/tests/lib_2/mirrors/typedef_reflected_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/mirrors/typedef_test.dart b/tests/lib_2/mirrors/typedef_test.dart index b7a152f3b83..f26608dd8a5 100644 --- a/tests/lib_2/mirrors/typedef_test.dart +++ b/tests/lib_2/mirrors/typedef_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test is a multi-test with three positive tests. "01" pass on dart2js, // "02" pass on the VM, and "none" is the correct behavior. // The goal is to remove all "01" and "02" lines. diff --git a/tests/lib_2/mirrors/typevariable_mirror_metadata_test.dart b/tests/lib_2/mirrors/typevariable_mirror_metadata_test.dart index 7d2f69a56e4..c05f397199a 100644 --- a/tests/lib_2/mirrors/typevariable_mirror_metadata_test.dart +++ b/tests/lib_2/mirrors/typevariable_mirror_metadata_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.typevariable_metadata_test; import "dart:mirrors"; diff --git a/tests/lib_2/mirrors/unmangled_type_test.dart b/tests/lib_2/mirrors/unmangled_type_test.dart index b9fa76343dd..1e0874f5118 100644 --- a/tests/lib_2/mirrors/unmangled_type_test.dart +++ b/tests/lib_2/mirrors/unmangled_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/unnamed_library_test.dart b/tests/lib_2/mirrors/unnamed_library_test.dart index 5e6160d349b..f1305d0f3e8 100644 --- a/tests/lib_2/mirrors/unnamed_library_test.dart +++ b/tests/lib_2/mirrors/unnamed_library_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // No library declaration. import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/unnamed_mixin_application_test.dart b/tests/lib_2/mirrors/unnamed_mixin_application_test.dart index d8844955715..a5795f13d8a 100644 --- a/tests/lib_2/mirrors/unnamed_mixin_application_test.dart +++ b/tests/lib_2/mirrors/unnamed_mixin_application_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Test that the forwarding constructors of unnamed mixin applications are /// included for reflection. diff --git a/tests/lib_2/mirrors/variable_is_const_test.dart b/tests/lib_2/mirrors/variable_is_const_test.dart index de3b0cb9c56..a2262363fe8 100644 --- a/tests/lib_2/mirrors/variable_is_const_test.dart +++ b/tests/lib_2/mirrors/variable_is_const_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test.variable_is_const; import 'dart:mirrors'; diff --git a/tests/lib_2/typed_data/byte_data_test.dart b/tests/lib_2/typed_data/byte_data_test.dart index 2b0e3ea3540..9a0adf868e7 100644 --- a/tests/lib_2/typed_data/byte_data_test.dart +++ b/tests/lib_2/typed_data/byte_data_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import "package:expect/expect.dart"; diff --git a/tests/lib_2/typed_data/bytes_builder_test.dart b/tests/lib_2/typed_data/bytes_builder_test.dart index 5c1dd693de0..341ab8da387 100644 --- a/tests/lib_2/typed_data/bytes_builder_test.dart +++ b/tests/lib_2/typed_data/bytes_builder_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:typed_data"; import "package:expect/expect.dart"; diff --git a/tests/lib_2/typed_data/constructor_checks_test.dart b/tests/lib_2/typed_data/constructor_checks_test.dart index 826a4e01be8..b20811782be 100644 --- a/tests/lib_2/typed_data/constructor_checks_test.dart +++ b/tests/lib_2/typed_data/constructor_checks_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/typed_data/endianness_test.dart b/tests/lib_2/typed_data/endianness_test.dart index 2bec2d7a640..7704e3cc10e 100644 --- a/tests/lib_2/typed_data/endianness_test.dart +++ b/tests/lib_2/typed_data/endianness_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import "package:expect/expect.dart"; diff --git a/tests/lib_2/typed_data/float32x4_clamp_test.dart b/tests/lib_2/typed_data/float32x4_clamp_test.dart index 2a9fb329d3a..ba05829195b 100644 --- a/tests/lib_2/typed_data/float32x4_clamp_test.dart +++ b/tests/lib_2/typed_data/float32x4_clamp_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library float32x4_clamp_test; diff --git a/tests/lib_2/typed_data/float32x4_cross_test.dart b/tests/lib_2/typed_data/float32x4_cross_test.dart index 7c905ecafba..3cfaccabd9b 100644 --- a/tests/lib_2/typed_data/float32x4_cross_test.dart +++ b/tests/lib_2/typed_data/float32x4_cross_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library float32x4_cross_test; diff --git a/tests/lib_2/typed_data/float32x4_list_test.dart b/tests/lib_2/typed_data/float32x4_list_test.dart index 4cb29ba2ba4..5b36caae34b 100644 --- a/tests/lib_2/typed_data/float32x4_list_test.dart +++ b/tests/lib_2/typed_data/float32x4_list_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter-threshold=10 --no-background_compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library float32x4_list_test; diff --git a/tests/lib_2/typed_data/float32x4_shuffle_test.dart b/tests/lib_2/typed_data/float32x4_shuffle_test.dart index 418527f706f..402836f88b1 100644 --- a/tests/lib_2/typed_data/float32x4_shuffle_test.dart +++ b/tests/lib_2/typed_data/float32x4_shuffle_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library float32x4_shuffle_test; diff --git a/tests/lib_2/typed_data/float32x4_sign_mask_test.dart b/tests/lib_2/typed_data/float32x4_sign_mask_test.dart index 06a0bb0e3b4..57dac65808d 100644 --- a/tests/lib_2/typed_data/float32x4_sign_mask_test.dart +++ b/tests/lib_2/typed_data/float32x4_sign_mask_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library float32x4_sign_mask; diff --git a/tests/lib_2/typed_data/float32x4_static_test.dart b/tests/lib_2/typed_data/float32x4_static_test.dart index 15ec048da35..5072d7b1655 100644 --- a/tests/lib_2/typed_data/float32x4_static_test.dart +++ b/tests/lib_2/typed_data/float32x4_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Library tag to be able to run in html test framework. library float32x4_static_test; diff --git a/tests/lib_2/typed_data/float32x4_test.dart b/tests/lib_2/typed_data/float32x4_test.dart index fb8dfe5bb3e..e2ca1846de2 100644 --- a/tests/lib_2/typed_data/float32x4_test.dart +++ b/tests/lib_2/typed_data/float32x4_test.dart @@ -4,6 +4,8 @@ // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter-threshold=10 --no-background-compilation // VMOptions=--no-intrinsify +// @dart = 2.9 + // Library tag to be able to run in html test framework. library float32x4_test; diff --git a/tests/lib_2/typed_data/float32x4_transpose_test.dart b/tests/lib_2/typed_data/float32x4_transpose_test.dart index 062cb7bfacd..d82711ef9d9 100644 --- a/tests/lib_2/typed_data/float32x4_transpose_test.dart +++ b/tests/lib_2/typed_data/float32x4_transpose_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library float32x4_transpose_test; diff --git a/tests/lib_2/typed_data/float32x4_two_arg_shuffle_test.dart b/tests/lib_2/typed_data/float32x4_two_arg_shuffle_test.dart index db6c253c224..7ae0214b20e 100644 --- a/tests/lib_2/typed_data/float32x4_two_arg_shuffle_test.dart +++ b/tests/lib_2/typed_data/float32x4_two_arg_shuffle_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library float32x4_two_arg_shuffle_test; diff --git a/tests/lib_2/typed_data/float32x4_unbox_phi_test.dart b/tests/lib_2/typed_data/float32x4_unbox_phi_test.dart index d96b2cfb7f6..d95b0e6c1f5 100644 --- a/tests/lib_2/typed_data/float32x4_unbox_phi_test.dart +++ b/tests/lib_2/typed_data/float32x4_unbox_phi_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library float32x4_unbox_regress_test; diff --git a/tests/lib_2/typed_data/float32x4_unbox_regress_test.dart b/tests/lib_2/typed_data/float32x4_unbox_regress_test.dart index 39559903b2b..421355acda6 100644 --- a/tests/lib_2/typed_data/float32x4_unbox_regress_test.dart +++ b/tests/lib_2/typed_data/float32x4_unbox_regress_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library float32x4_unbox_regress_test; diff --git a/tests/lib_2/typed_data/float64x2_functional_test.dart b/tests/lib_2/typed_data/float64x2_functional_test.dart index 69aa96eaefc..ac794cf43ca 100644 --- a/tests/lib_2/typed_data/float64x2_functional_test.dart +++ b/tests/lib_2/typed_data/float64x2_functional_test.dart @@ -4,6 +4,8 @@ // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter-threshold=10 --no-background-compilation // VMOptions=--no-intrinsify +// @dart = 2.9 + library float64x2_functional_test; import 'dart:typed_data'; diff --git a/tests/lib_2/typed_data/float64x2_typed_list_test.dart b/tests/lib_2/typed_data/float64x2_typed_list_test.dart index 7c43da87dd9..53fef98e673 100644 --- a/tests/lib_2/typed_data/float64x2_typed_list_test.dart +++ b/tests/lib_2/typed_data/float64x2_typed_list_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + library float64x2_typed_list_test; import 'dart:typed_data'; diff --git a/tests/lib_2/typed_data/int32x4_arithmetic_test.dart b/tests/lib_2/typed_data/int32x4_arithmetic_test.dart index f9a740eb536..15cedd8c816 100644 --- a/tests/lib_2/typed_data/int32x4_arithmetic_test.dart +++ b/tests/lib_2/typed_data/int32x4_arithmetic_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library uint32x4_arithmetic_test; diff --git a/tests/lib_2/typed_data/int32x4_list_test.dart b/tests/lib_2/typed_data/int32x4_list_test.dart index 1b03ce6bc39..2a1badc372f 100644 --- a/tests/lib_2/typed_data/int32x4_list_test.dart +++ b/tests/lib_2/typed_data/int32x4_list_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library int32x4_list_test; diff --git a/tests/lib_2/typed_data/int32x4_shuffle_test.dart b/tests/lib_2/typed_data/int32x4_shuffle_test.dart index 6fcad56c533..15ecdef05da 100644 --- a/tests/lib_2/typed_data/int32x4_shuffle_test.dart +++ b/tests/lib_2/typed_data/int32x4_shuffle_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library uint32x4_shuffle_test; diff --git a/tests/lib_2/typed_data/int32x4_sign_mask_test.dart b/tests/lib_2/typed_data/int32x4_sign_mask_test.dart index 522054dece7..03ae84d352c 100644 --- a/tests/lib_2/typed_data/int32x4_sign_mask_test.dart +++ b/tests/lib_2/typed_data/int32x4_sign_mask_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library int32x4_sign_mask; diff --git a/tests/lib_2/typed_data/int32x4_static_test.dart b/tests/lib_2/typed_data/int32x4_static_test.dart index 44ce01cefb4..3add57ef5ec 100644 --- a/tests/lib_2/typed_data/int32x4_static_test.dart +++ b/tests/lib_2/typed_data/int32x4_static_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library int32x4_static_test; import 'dart:typed_data'; diff --git a/tests/lib_2/typed_data/int32x4_test.dart b/tests/lib_2/typed_data/int32x4_test.dart index 1bb9e1647a2..73fb364d439 100644 --- a/tests/lib_2/typed_data/int32x4_test.dart +++ b/tests/lib_2/typed_data/int32x4_test.dart @@ -4,6 +4,8 @@ // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter-threshold=10 --no-background-compilation // VMOptions=--no-intrinsify +// @dart = 2.9 + library int32x4_test; import 'dart:typed_data'; diff --git a/tests/lib_2/typed_data/int64_list_load_store_test.dart b/tests/lib_2/typed_data/int64_list_load_store_test.dart index 7665f58ca8b..1834fccf919 100644 --- a/tests/lib_2/typed_data/int64_list_load_store_test.dart +++ b/tests/lib_2/typed_data/int64_list_load_store_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Test that the compiler's load elimination phase sees interfering writes to // the array's buffer. diff --git a/tests/lib_2/typed_data/native_interceptor_no_own_method_to_intercept_test.dart b/tests/lib_2/typed_data/native_interceptor_no_own_method_to_intercept_test.dart index 6828d6a8549..09178b0afa8 100644 --- a/tests/lib_2/typed_data/native_interceptor_no_own_method_to_intercept_test.dart +++ b/tests/lib_2/typed_data/native_interceptor_no_own_method_to_intercept_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:typed_data'; diff --git a/tests/lib_2/typed_data/setRange_1_test.dart b/tests/lib_2/typed_data/setRange_1_test.dart index f39515c2596..b9363778b5d 100644 --- a/tests/lib_2/typed_data/setRange_1_test.dart +++ b/tests/lib_2/typed_data/setRange_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; import 'setRange_lib.dart'; diff --git a/tests/lib_2/typed_data/setRange_2_test.dart b/tests/lib_2/typed_data/setRange_2_test.dart index efd85f5bada..9e5cb664bc0 100644 --- a/tests/lib_2/typed_data/setRange_2_test.dart +++ b/tests/lib_2/typed_data/setRange_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; import 'setRange_lib.dart'; diff --git a/tests/lib_2/typed_data/setRange_3_test.dart b/tests/lib_2/typed_data/setRange_3_test.dart index 7ac0e01bd1b..a8b9507f237 100644 --- a/tests/lib_2/typed_data/setRange_3_test.dart +++ b/tests/lib_2/typed_data/setRange_3_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; import 'setRange_lib.dart'; diff --git a/tests/lib_2/typed_data/setRange_4_test.dart b/tests/lib_2/typed_data/setRange_4_test.dart index 5ddb26680d2..ba3ad832a38 100644 --- a/tests/lib_2/typed_data/setRange_4_test.dart +++ b/tests/lib_2/typed_data/setRange_4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; import 'setRange_lib.dart'; diff --git a/tests/lib_2/typed_data/setRange_5_test.dart b/tests/lib_2/typed_data/setRange_5_test.dart index fb86cb08f33..052d84d6661 100644 --- a/tests/lib_2/typed_data/setRange_5_test.dart +++ b/tests/lib_2/typed_data/setRange_5_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; import 'setRange_lib.dart'; diff --git a/tests/lib_2/typed_data/setRange_lib.dart b/tests/lib_2/typed_data/setRange_lib.dart index f9b1dfbbef6..2dd9b8e4344 100644 --- a/tests/lib_2/typed_data/setRange_lib.dart +++ b/tests/lib_2/typed_data/setRange_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library setRange_lib; import 'dart:typed_data'; diff --git a/tests/lib_2/typed_data/simd_store_to_load_forward_test.dart b/tests/lib_2/typed_data/simd_store_to_load_forward_test.dart index 3a24ecd3daf..d0c98a64613 100644 --- a/tests/lib_2/typed_data/simd_store_to_load_forward_test.dart +++ b/tests/lib_2/typed_data/simd_store_to_load_forward_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library simd_store_to_load_forward_test; diff --git a/tests/lib_2/typed_data/simd_type_check_removal.dart b/tests/lib_2/typed_data/simd_type_check_removal.dart index 816b546e1e5..0eedfd7f731 100644 --- a/tests/lib_2/typed_data/simd_type_check_removal.dart +++ b/tests/lib_2/typed_data/simd_type_check_removal.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--max_deoptimization_counter_threshold=1000 --optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library simd_store_to_load_forward_test; diff --git a/tests/lib_2/typed_data/simd_type_null_params_test.dart b/tests/lib_2/typed_data/simd_type_null_params_test.dart index 72c31f846a6..c30e4ec01e3 100644 --- a/tests/lib_2/typed_data/simd_type_null_params_test.dart +++ b/tests/lib_2/typed_data/simd_type_null_params_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import "package:expect/expect.dart"; diff --git a/tests/lib_2/typed_data/typed_data_from_list_test.dart b/tests/lib_2/typed_data/typed_data_from_list_test.dart index 9548c737f6e..dc8362ea88f 100644 --- a/tests/lib_2/typed_data/typed_data_from_list_test.dart +++ b/tests/lib_2/typed_data/typed_data_from_list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:collection'; import 'dart:typed_data'; diff --git a/tests/lib_2/typed_data/typed_data_hierarchy_int64_test.dart b/tests/lib_2/typed_data/typed_data_hierarchy_int64_test.dart index 19142ffea6e..fb2b8c2b20b 100644 --- a/tests/lib_2/typed_data/typed_data_hierarchy_int64_test.dart +++ b/tests/lib_2/typed_data/typed_data_hierarchy_int64_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library typed_data_hierarchy_int64_test; diff --git a/tests/lib_2/typed_data/typed_data_hierarchy_test.dart b/tests/lib_2/typed_data/typed_data_hierarchy_test.dart index cdcbec8841e..20707e57cc1 100644 --- a/tests/lib_2/typed_data/typed_data_hierarchy_test.dart +++ b/tests/lib_2/typed_data/typed_data_hierarchy_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + // Library tag to be able to run in html test framework. library typed_data_hierarchy_test; diff --git a/tests/lib_2/typed_data/typed_data_list_test.dart b/tests/lib_2/typed_data/typed_data_list_test.dart index 890f274ca94..3e512d41944 100644 --- a/tests/lib_2/typed_data/typed_data_list_test.dart +++ b/tests/lib_2/typed_data/typed_data_list_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/typed_data/typed_data_load2_test.dart b/tests/lib_2/typed_data/typed_data_load2_test.dart index 3775615f8b1..013e2c6776e 100644 --- a/tests/lib_2/typed_data/typed_data_load2_test.dart +++ b/tests/lib_2/typed_data/typed_data_load2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that the compiler's load elimination phase sees interfering writes to // the array's buffer. diff --git a/tests/lib_2/typed_data/typed_data_load_test.dart b/tests/lib_2/typed_data/typed_data_load_test.dart index 55a08084417..23bfd5dd85f 100644 --- a/tests/lib_2/typed_data/typed_data_load_test.dart +++ b/tests/lib_2/typed_data/typed_data_load_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that the compiler's load elimination phase does not re-use the // value that was stored in a typed array. diff --git a/tests/lib_2/typed_data/typed_data_sublist_type_test.dart b/tests/lib_2/typed_data/typed_data_sublist_type_test.dart index f52ad9f99f8..ca55ed54797 100644 --- a/tests/lib_2/typed_data/typed_data_sublist_type_test.dart +++ b/tests/lib_2/typed_data/typed_data_sublist_type_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/typed_data/typed_data_view_length_test.dart b/tests/lib_2/typed_data/typed_data_view_length_test.dart index 2d42595d62f..1c34db447d8 100644 --- a/tests/lib_2/typed_data/typed_data_view_length_test.dart +++ b/tests/lib_2/typed_data/typed_data_view_length_test.dart @@ -4,6 +4,8 @@ // // Regression test for https://github.com/dart-lang/sdk/issues/43204 +// @dart = 2.9 + import 'dart:typed_data'; import "package:expect/expect.dart"; diff --git a/tests/lib_2/typed_data/typed_data_view_sublist_test.dart b/tests/lib_2/typed_data/typed_data_view_sublist_test.dart index bcc96cb5549..5b8aeb54108 100644 --- a/tests/lib_2/typed_data/typed_data_view_sublist_test.dart +++ b/tests/lib_2/typed_data/typed_data_view_sublist_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/typed_data/typed_list_iterable_test.dart b/tests/lib_2/typed_data/typed_list_iterable_test.dart index 844f535cb96..5f418c0e20a 100644 --- a/tests/lib_2/typed_data/typed_list_iterable_test.dart +++ b/tests/lib_2/typed_data/typed_list_iterable_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/typed_data/unmodifiable_typed_data_test.dart b/tests/lib_2/typed_data/unmodifiable_typed_data_test.dart index 2a04cd7f7cb..7c62f500cb0 100644 --- a/tests/lib_2/typed_data/unmodifiable_typed_data_test.dart +++ b/tests/lib_2/typed_data/unmodifiable_typed_data_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/typed_data/zeroed_allocation_test.dart b/tests/lib_2/typed_data/zeroed_allocation_test.dart index ee5c2296044..3e78a53e931 100644 --- a/tests/lib_2/typed_data/zeroed_allocation_test.dart +++ b/tests/lib_2/typed_data/zeroed_allocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:typed_data'; import 'package:expect/expect.dart'; diff --git a/tests/lib_2/wasm/basic_test.dart b/tests/lib_2/wasm/basic_test.dart index 309f94328a3..858657eec7d 100644 --- a/tests/lib_2/wasm/basic_test.dart +++ b/tests/lib_2/wasm/basic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we can load a wasm module, find a function, and call it. import "package:expect/expect.dart"; diff --git a/tests/lib_2/wasm/corrupted_error_test.dart b/tests/lib_2/wasm/corrupted_error_test.dart index 2b8d3fa6f3f..ed2cc66c160 100644 --- a/tests/lib_2/wasm/corrupted_error_test.dart +++ b/tests/lib_2/wasm/corrupted_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test error thrown when the wasm module is corrupted. import "package:expect/expect.dart"; diff --git a/tests/lib_2/wasm/fn_call_error_test.dart b/tests/lib_2/wasm/fn_call_error_test.dart index 641f91597a1..2364605b1fd 100644 --- a/tests/lib_2/wasm/fn_call_error_test.dart +++ b/tests/lib_2/wasm/fn_call_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test error thrown when a function is called with the wrong args. import "package:expect/expect.dart"; diff --git a/tests/lib_2/wasm/fn_import_error_test.dart b/tests/lib_2/wasm/fn_import_error_test.dart index aeca278487d..b15a1be4c43 100644 --- a/tests/lib_2/wasm/fn_import_error_test.dart +++ b/tests/lib_2/wasm/fn_import_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test errors thrown by function imports. import "package:expect/expect.dart"; diff --git a/tests/lib_2/wasm/fn_import_exception_test.dart b/tests/lib_2/wasm/fn_import_exception_test.dart index c97a68aeb3b..8199023f55a 100644 --- a/tests/lib_2/wasm/fn_import_exception_test.dart +++ b/tests/lib_2/wasm/fn_import_exception_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test throwing exceptions from an imported function. import "package:expect/expect.dart"; diff --git a/tests/lib_2/wasm/fn_import_test.dart b/tests/lib_2/wasm/fn_import_test.dart index 3558c17e4aa..eac6ac00667 100644 --- a/tests/lib_2/wasm/fn_import_test.dart +++ b/tests/lib_2/wasm/fn_import_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we can load a wasm module, find a function, and call it. import "package:expect/expect.dart"; diff --git a/tests/lib_2/wasm/hello_wasi_test.dart b/tests/lib_2/wasm/hello_wasi_test.dart index d862b8968b1..3dd5d43d952 100644 --- a/tests/lib_2/wasm/hello_wasi_test.dart +++ b/tests/lib_2/wasm/hello_wasi_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Variant of hello_world_test that uses the default WASI imports. import "package:async_helper/async_helper.dart"; diff --git a/tests/lib_2/wasm/hello_world_test.dart b/tests/lib_2/wasm/hello_world_test.dart index b3ef2a599f6..3c09a5eb17d 100644 --- a/tests/lib_2/wasm/hello_world_test.dart +++ b/tests/lib_2/wasm/hello_world_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test for hello world built using emscripten with WASI. import "package:expect/expect.dart"; diff --git a/tests/lib_2/wasm/import_error_test.dart b/tests/lib_2/wasm/import_error_test.dart index a06a3a90a91..a1b653675e2 100644 --- a/tests/lib_2/wasm/import_error_test.dart +++ b/tests/lib_2/wasm/import_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test errors thrown by WasmImports. import "package:expect/expect.dart"; diff --git a/tests/lib_2/wasm/memory_error_test.dart b/tests/lib_2/wasm/memory_error_test.dart index f02dc6c9bcf..34825e74433 100644 --- a/tests/lib_2/wasm/memory_error_test.dart +++ b/tests/lib_2/wasm/memory_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test errors thrown by WasmMemory. import "package:expect/expect.dart"; diff --git a/tests/lib_2/wasm/memory_test.dart b/tests/lib_2/wasm/memory_test.dart index 544c6a1ec65..7b58af47703 100644 --- a/tests/lib_2/wasm/memory_test.dart +++ b/tests/lib_2/wasm/memory_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that we can create a WasmMemory, edit it, and grow it. import "package:expect/expect.dart"; diff --git a/tests/lib_2/wasm/numerics_test.dart b/tests/lib_2/wasm/numerics_test.dart index eba9aaa9fa2..2cf73bb19e0 100644 --- a/tests/lib_2/wasm/numerics_test.dart +++ b/tests/lib_2/wasm/numerics_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test numeric types. import "package:expect/expect.dart"; diff --git a/tests/lib_2/wasm/void_test.dart b/tests/lib_2/wasm/void_test.dart index aba9c655fde..22816037f7f 100644 --- a/tests/lib_2/wasm/void_test.dart +++ b/tests/lib_2/wasm/void_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test functions with void return type, and functions that take no args. import "package:expect/expect.dart"; diff --git a/tests/lib_2/wasm/wasi_error_test.dart b/tests/lib_2/wasm/wasi_error_test.dart index 8418dad832a..d1216814d93 100644 --- a/tests/lib_2/wasm/wasi_error_test.dart +++ b/tests/lib_2/wasm/wasi_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test the errors that can be thrown by WASI. import "package:expect/expect.dart"; diff --git a/tests/lib_2/web/mirrors_support_test.dart b/tests/lib_2/web/mirrors_support_test.dart index 78f3648a625..9f4c0b29a1a 100644 --- a/tests/lib_2/web/mirrors_support_test.dart +++ b/tests/lib_2/web/mirrors_support_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // 'dart:mirrors' can no longer be imported, doing so produces a static error. import 'dart:mirrors'; //# 01: compile-time error diff --git a/tests/standalone_2/array_bounds_check_generalization_test.dart b/tests/standalone_2/array_bounds_check_generalization_test.dart index 862123c9912..62e596deffc 100644 --- a/tests/standalone_2/array_bounds_check_generalization_test.dart +++ b/tests/standalone_2/array_bounds_check_generalization_test.dart @@ -6,6 +6,8 @@ // generated during all phases of compilation and deoptimization. // VMOptions=--optimization_counter_threshold=10 --no-use-osr --complete-timeline --no-background_compilation +// @dart = 2.9 + import "package:expect/expect.dart"; test1(a, start, step, N) { diff --git a/tests/standalone_2/assert_assignable_canon_test.dart b/tests/standalone_2/assert_assignable_canon_test.dart index f32f5c8a1b2..00304397086 100644 --- a/tests/standalone_2/assert_assignable_canon_test.dart +++ b/tests/standalone_2/assert_assignable_canon_test.dart @@ -4,6 +4,8 @@ // // VMOptions=--optimization-counter-threshold=10 --no-background-compilation +// @dart = 2.9 + abstract class A> { @pragma('vm:prefer-inline') f(x) => new R(x); diff --git a/tests/standalone_2/byte_array_view_optimized_test.dart b/tests/standalone_2/byte_array_view_optimized_test.dart index 77b22d3b8b4..1de0e7c92d4 100644 --- a/tests/standalone_2/byte_array_view_optimized_test.dart +++ b/tests/standalone_2/byte_array_view_optimized_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test optimization of byte array views on external data. // Library tag to be able to run in html test framework. diff --git a/tests/standalone_2/bytedata_test.dart b/tests/standalone_2/bytedata_test.dart index 7f8acf4766b..5f9e67283f9 100644 --- a/tests/standalone_2/bytedata_test.dart +++ b/tests/standalone_2/bytedata_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing typed data. +// @dart = 2.9 + // Library tag to be able to run in html test framework. library ByteDataTest; diff --git a/tests/standalone_2/causal_async_stack_test.dart b/tests/standalone_2/causal_async_stack_test.dart index 652edb3e208..506621510d8 100644 --- a/tests/standalone_2/causal_async_stack_test.dart +++ b/tests/standalone_2/causal_async_stack_test.dart @@ -4,6 +4,8 @@ // // VMOptions=--lazy-async-stacks +// @dart = 2.9 + import "package:expect/expect.dart"; noop() async => Future.value(null); diff --git a/tests/standalone_2/check_class_cha_test.dart b/tests/standalone_2/check_class_cha_test.dart index 19ed0295c61..aaf70af2f44 100644 --- a/tests/standalone_2/check_class_cha_test.dart +++ b/tests/standalone_2/check_class_cha_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // Class hierarchy on an abstract class diff --git a/tests/standalone_2/check_for_aot_snapshot_jit_test.dart b/tests/standalone_2/check_for_aot_snapshot_jit_test.dart index a1dd29debe9..dc6dbc117a2 100644 --- a/tests/standalone_2/check_for_aot_snapshot_jit_test.dart +++ b/tests/standalone_2/check_for_aot_snapshot_jit_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2020, 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 = 2.9 import 'dart:io'; import 'package:expect/expect.dart'; diff --git a/tests/standalone_2/check_null_cha_test.dart b/tests/standalone_2/check_null_cha_test.dart index fc9c17d56d0..79a474c1e40 100644 --- a/tests/standalone_2/check_null_cha_test.dart +++ b/tests/standalone_2/check_null_cha_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // A class the has a getter also provided by Object diff --git a/tests/standalone_2/constant_left_shift_test.dart b/tests/standalone_2/constant_left_shift_test.dart index 5f87650577e..74927daed12 100644 --- a/tests/standalone_2/constant_left_shift_test.dart +++ b/tests/standalone_2/constant_left_shift_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing left shifts of a constant. +// @dart = 2.9 + import "package:expect/expect.dart"; shiftLeft0(c) => 0 << c; diff --git a/tests/standalone_2/deferred/alpha.dart b/tests/standalone_2/deferred/alpha.dart index 20aac885a0c..12062eaacbb 100644 --- a/tests/standalone_2/deferred/alpha.dart +++ b/tests/standalone_2/deferred/alpha.dart @@ -1,2 +1,4 @@ // beta.dart does not exist! + +// @dart = 2.9 import 'beta.dart'; diff --git a/tests/standalone_2/deferred/exists.dart b/tests/standalone_2/deferred/exists.dart index 26cc193fe6a..4e4b58b5032 100644 --- a/tests/standalone_2/deferred/exists.dart +++ b/tests/standalone_2/deferred/exists.dart @@ -1 +1,3 @@ + +// @dart = 2.9 var x = 99; diff --git a/tests/standalone_2/deferred/transitive_error.dart b/tests/standalone_2/deferred/transitive_error.dart index e5a9af76251..66523fa3df2 100644 --- a/tests/standalone_2/deferred/transitive_error.dart +++ b/tests/standalone_2/deferred/transitive_error.dart @@ -1 +1,3 @@ + +// @dart = 2.9 import 'alpha.dart'; diff --git a/tests/standalone_2/deferred_transitive_import_error_test.dart b/tests/standalone_2/deferred_transitive_import_error_test.dart index 585c9cde691..85dce33b434 100644 --- a/tests/standalone_2/deferred_transitive_import_error_test.dart +++ b/tests/standalone_2/deferred_transitive_import_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; // A deferred library that doesn't exist. import 'package:foo/foo.dart' deferred as foo; diff --git a/tests/standalone_2/deny_listed_test.dart b/tests/standalone_2/deny_listed_test.dart index 2516b207683..0a64df6d4d2 100644 --- a/tests/standalone_2/deny_listed_test.dart +++ b/tests/standalone_2/deny_listed_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Dart test checking that static/instance field shadowing do not conflict. +// @dart = 2.9 + // Test that certain interfaces/classes are denylisted from being // implemented or extended (VM corelib only). diff --git a/tests/standalone_2/deoptimization_test.dart b/tests/standalone_2/deoptimization_test.dart index b60f7893c59..962bac26a2d 100644 --- a/tests/standalone_2/deoptimization_test.dart +++ b/tests/standalone_2/deoptimization_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test deoptimization. +// @dart = 2.9 + import "package:expect/expect.dart"; class SmiCompares { diff --git a/tests/standalone_2/double_hash_distribution_test.dart b/tests/standalone_2/double_hash_distribution_test.dart index 1abf10734cb..ac286e2ba29 100644 --- a/tests/standalone_2/double_hash_distribution_test.dart +++ b/tests/standalone_2/double_hash_distribution_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Test that the distribution of hash codes for doubles is reasonable. // VMOptions=--intrinsify diff --git a/tests/standalone_2/double_smi_comparison_test.dart b/tests/standalone_2/double_smi_comparison_test.dart index fff6015e09e..4bcbe5d73fb 100644 --- a/tests/standalone_2/double_smi_comparison_test.dart +++ b/tests/standalone_2/double_smi_comparison_test.dart @@ -7,6 +7,8 @@ // double without loss of precision. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; equalityFunc(a, b) => a == b; diff --git a/tests/standalone_2/double_temp_test.dart b/tests/standalone_2/double_temp_test.dart index da55ef37981..a0f3093b91d 100644 --- a/tests/standalone_2/double_temp_test.dart +++ b/tests/standalone_2/double_temp_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Test correct usage of inlined double temporary objects. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/standalone_2/double_to_int_test.dart b/tests/standalone_2/double_to_int_test.dart index b798d0804cd..eee93b7a64f 100644 --- a/tests/standalone_2/double_to_int_test.dart +++ b/tests/standalone_2/double_to_int_test.dart @@ -6,6 +6,8 @@ // unless we encounter a non-Smi result, in which case we deoptimize and // optimize it later to DoubleToInt. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/standalone_2/dwarf_stack_trace_obfuscate_test.dart b/tests/standalone_2/dwarf_stack_trace_obfuscate_test.dart index 5750ab5e964..8614b88c7d6 100644 --- a/tests/standalone_2/dwarf_stack_trace_obfuscate_test.dart +++ b/tests/standalone_2/dwarf_stack_trace_obfuscate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// VMOptions=--dwarf-stack-traces --save-debugging-info=dwarf_obfuscate.so --obfuscate import 'dart:io'; @@ -52,13 +54,13 @@ final expectedCallsInfo = >[ DartCallInfo( function: "bar", filename: "dwarf_stack_trace_obfuscate_test.dart", - line: 17, + line: 19, column: 3, inlined: true), DartCallInfo( function: "foo", filename: "dwarf_stack_trace_obfuscate_test.dart", - line: 23, + line: 25, column: 3, inlined: false) ], @@ -67,7 +69,7 @@ final expectedCallsInfo = >[ DartCallInfo( function: "main", filename: "dwarf_stack_trace_obfuscate_test.dart", - line: 29, + line: 31, column: 5, inlined: false) ], diff --git a/tests/standalone_2/dwarf_stack_trace_test.dart b/tests/standalone_2/dwarf_stack_trace_test.dart index 9cf2cb07383..6624b62d2b7 100644 --- a/tests/standalone_2/dwarf_stack_trace_test.dart +++ b/tests/standalone_2/dwarf_stack_trace_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// VMOptions=--dwarf-stack-traces --save-debugging-info=dwarf.so import 'dart:convert'; @@ -138,13 +140,13 @@ final expectedCallsInfo = >[ DartCallInfo( function: "bar", filename: "dwarf_stack_trace_test.dart", - line: 17, + line: 19, column: 3, inlined: true), DartCallInfo( function: "foo", filename: "dwarf_stack_trace_test.dart", - line: 23, + line: 25, column: 3, inlined: false) ], @@ -153,7 +155,7 @@ final expectedCallsInfo = >[ DartCallInfo( function: "main", filename: "dwarf_stack_trace_test.dart", - line: 29, + line: 31, column: 5, inlined: false) ], diff --git a/tests/standalone_2/entrypoints_verification_test.dart b/tests/standalone_2/entrypoints_verification_test.dart index 048f1f31bbf..dcdc7578b69 100644 --- a/tests/standalone_2/entrypoints_verification_test.dart +++ b/tests/standalone_2/entrypoints_verification_test.dart @@ -4,6 +4,8 @@ // // VMOptions=--verify-entry-points=true +// @dart = 2.9 + import 'dart:io'; import 'dart:convert'; import 'dart:math'; diff --git a/tests/standalone_2/env_test.dart b/tests/standalone_2/env_test.dart index 6280f60987d..4e0b7acd930 100644 --- a/tests/standalone_2/env_test.dart +++ b/tests/standalone_2/env_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // SharedOptions=-Dvar -D -D=var -Dvar=invalid -Dvar=valid -Dvar +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/standalone_2/fields_may_be_reset_test.dart b/tests/standalone_2/fields_may_be_reset_test.dart index 3ab6fc62450..7e7f00aaeb3 100644 --- a/tests/standalone_2/fields_may_be_reset_test.dart +++ b/tests/standalone_2/fields_may_be_reset_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--fields_may_be_reset main() { diff --git a/tests/standalone_2/float_array_static_test.dart b/tests/standalone_2/float_array_static_test.dart index 1c89b9658e3..b520ac7f05d 100644 --- a/tests/standalone_2/float_array_static_test.dart +++ b/tests/standalone_2/float_array_static_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing native float arrays. +// @dart = 2.9 + // VMOptions=--optimization_counter_threshold=10 --no-background_compilation // Library tag to be able to run in html test framework. diff --git a/tests/standalone_2/float_array_test.dart b/tests/standalone_2/float_array_test.dart index a7e78421a4b..5ba41fd0d90 100644 --- a/tests/standalone_2/float_array_test.dart +++ b/tests/standalone_2/float_array_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing native float arrays. +// @dart = 2.9 + // VMOptions=--optimization_counter_threshold=10 --no-background_compilation // Library tag to be able to run in html test framework. diff --git a/tests/standalone_2/fragmentation_deferred_load_lib1.dart b/tests/standalone_2/fragmentation_deferred_load_lib1.dart index c561f14cbc8..3749f1a2296 100644 --- a/tests/standalone_2/fragmentation_deferred_load_lib1.dart +++ b/tests/standalone_2/fragmentation_deferred_load_lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + foo() { return "one!"; } diff --git a/tests/standalone_2/fragmentation_deferred_load_lib2.dart b/tests/standalone_2/fragmentation_deferred_load_lib2.dart index 1f01b0f936e..01a47db21bd 100644 --- a/tests/standalone_2/fragmentation_deferred_load_lib2.dart +++ b/tests/standalone_2/fragmentation_deferred_load_lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + foo() { return "two!"; } diff --git a/tests/standalone_2/fragmentation_deferred_load_lib3.dart b/tests/standalone_2/fragmentation_deferred_load_lib3.dart index 77d32646e06..30095f40cf0 100644 --- a/tests/standalone_2/fragmentation_deferred_load_lib3.dart +++ b/tests/standalone_2/fragmentation_deferred_load_lib3.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + foo() { return "three!"; } diff --git a/tests/standalone_2/fragmentation_deferred_load_test.dart b/tests/standalone_2/fragmentation_deferred_load_test.dart index 8e0ecc32e8a..998f6581810 100644 --- a/tests/standalone_2/fragmentation_deferred_load_test.dart +++ b/tests/standalone_2/fragmentation_deferred_load_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--use_compactor // Each loading unit creates more image pages in the heap, which unfortunately diff --git a/tests/standalone_2/fragmentation_test.dart b/tests/standalone_2/fragmentation_test.dart index f24ea098327..80961dca3ef 100644 --- a/tests/standalone_2/fragmentation_test.dart +++ b/tests/standalone_2/fragmentation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Deliberately fragment the heap and test that GC peformance does not // break down. See https://github.com/dart-lang/sdk/issues/29588 // Normally runs in about 6-7 seconds on an x64 machine, using about 2.5Gbytes diff --git a/tests/standalone_2/fragmentation_typed_data_test.dart b/tests/standalone_2/fragmentation_typed_data_test.dart index 0d00fb2e9f7..ce9141925d7 100644 --- a/tests/standalone_2/fragmentation_typed_data_test.dart +++ b/tests/standalone_2/fragmentation_typed_data_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // See fragmentation_test.dart for more information. // // VMOptions=--no_concurrent_mark --no_concurrent_sweep diff --git a/tests/standalone_2/http_launch_data/http_isolate_main.dart b/tests/standalone_2/http_launch_data/http_isolate_main.dart index ad6306ab1e0..61b2f0fcc6f 100644 --- a/tests/standalone_2/http_launch_data/http_isolate_main.dart +++ b/tests/standalone_2/http_launch_data/http_isolate_main.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:isolate'; main(List args, SendPort replyTo) { diff --git a/tests/standalone_2/http_launch_data/http_spawn_main.dart b/tests/standalone_2/http_launch_data/http_spawn_main.dart index e6b1a24ff79..c7817c551d0 100644 --- a/tests/standalone_2/http_launch_data/http_spawn_main.dart +++ b/tests/standalone_2/http_launch_data/http_spawn_main.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library http_launch_main; import 'dart:isolate'; diff --git a/tests/standalone_2/http_launch_data/the_packages/simple/simple.dart b/tests/standalone_2/http_launch_data/the_packages/simple/simple.dart index 1a7e7e0fa49..1ade2d2c1f7 100644 --- a/tests/standalone_2/http_launch_data/the_packages/simple/simple.dart +++ b/tests/standalone_2/http_launch_data/the_packages/simple/simple.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library simple; String getSimpleString() => 'hello'; diff --git a/tests/standalone_2/http_launch_test.dart b/tests/standalone_2/http_launch_test.dart index 62b49667e95..8a6d37be131 100644 --- a/tests/standalone_2/http_launch_test.dart +++ b/tests/standalone_2/http_launch_test.dart @@ -17,6 +17,8 @@ // *) Automatically resolving package_root when script is fetched over HTTP. // *) Spawning a URI over HTTP. +// @dart = 2.9 + library http_launch_test; import 'dart:async'; diff --git a/tests/standalone_2/int_array_deopt.dart b/tests/standalone_2/int_array_deopt.dart index 7a2b9698a1b..a1b416d1f7c 100644 --- a/tests/standalone_2/int_array_deopt.dart +++ b/tests/standalone_2/int_array_deopt.dart @@ -4,6 +4,8 @@ // // Dart deoptimization of Uint32Array and Int32Array loads. +// @dart = 2.9 + import 'dart:typed_data'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/int_array_load_elimination_test.dart b/tests/standalone_2/int_array_load_elimination_test.dart index 4e8dea6a3c4..2371a53b175 100644 --- a/tests/standalone_2/int_array_load_elimination_test.dart +++ b/tests/standalone_2/int_array_load_elimination_test.dart @@ -4,6 +4,8 @@ // // Test correct load elimination for scalar lists. +// @dart = 2.9 + // TODO: remove once bug 2264 fixed. library int_array_load_elimination; diff --git a/tests/standalone_2/int_array_test.dart b/tests/standalone_2/int_array_test.dart index 30d326ac9b5..bb79faf203f 100644 --- a/tests/standalone_2/int_array_test.dart +++ b/tests/standalone_2/int_array_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing native int arrays. +// @dart = 2.9 + // Library tag to be able to run in html test framework. library IntArrayTest; diff --git a/tests/standalone_2/int_list_test.dart b/tests/standalone_2/int_list_test.dart index c719f4d14b0..8fc0a5e2d9e 100644 --- a/tests/standalone_2/int_list_test.dart +++ b/tests/standalone_2/int_list_test.dart @@ -7,6 +7,8 @@ // // VMOptions=--optimization-counter-threshold=5 --no-use-osr --no-background-compilation +// @dart = 2.9 + import 'dart:typed_data'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/addlatexhash_test.dart b/tests/standalone_2/io/addlatexhash_test.dart index cbfc92d574d..1236bf9288e 100755 --- a/tests/standalone_2/io/addlatexhash_test.dart +++ b/tests/standalone_2/io/addlatexhash_test.dart @@ -3,6 +3,8 @@ // 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 = 2.9 + // testing ../../../tools/addlatexhash.dart import 'dart:io'; diff --git a/tests/standalone_2/io/address_lookup_test.dart b/tests/standalone_2/io/address_lookup_test.dart index 74b76c5c256..594a0c73294 100644 --- a/tests/standalone_2/io/address_lookup_test.dart +++ b/tests/standalone_2/io/address_lookup_test.dart @@ -5,6 +5,8 @@ // Verifies that one can provide timeout handler for InternetAddress.lookup, // which was reported broken https://github.com/dart-lang/sdk/issues/45542. +// @dart = 2.9 + import "dart:io"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/ansi_supported_test.dart b/tests/standalone_2/io/ansi_supported_test.dart index 643ae7a95b7..c17820a03a2 100644 --- a/tests/standalone_2/io/ansi_supported_test.dart +++ b/tests/standalone_2/io/ansi_supported_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/arguments_test.dart b/tests/standalone_2/io/arguments_test.dart index 9148217c24d..7a93297bcfe 100644 --- a/tests/standalone_2/io/arguments_test.dart +++ b/tests/standalone_2/io/arguments_test.dart @@ -4,6 +4,8 @@ // // DartOptions=10 arguments_test 20 +// @dart = 2.9 + import "package:expect/expect.dart"; main(List args) { diff --git a/tests/standalone_2/io/async_catch_errors_test.dart b/tests/standalone_2/io/async_catch_errors_test.dart index c039ad83c2e..b5db4c09c27 100644 --- a/tests/standalone_2/io/async_catch_errors_test.dart +++ b/tests/standalone_2/io/async_catch_errors_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/client_socket_add_close_error_test.dart b/tests/standalone_2/io/client_socket_add_close_error_test.dart index b7ebf2c88c7..e43294d4941 100644 --- a/tests/standalone_2/io/client_socket_add_close_error_test.dart +++ b/tests/standalone_2/io/client_socket_add_close_error_test.dart @@ -4,6 +4,8 @@ // // Tests socket exceptions. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/client_socket_add_close_no_error_test.dart b/tests/standalone_2/io/client_socket_add_close_no_error_test.dart index 7b92acce018..53f0be78490 100644 --- a/tests/standalone_2/io/client_socket_add_close_no_error_test.dart +++ b/tests/standalone_2/io/client_socket_add_close_no_error_test.dart @@ -4,6 +4,8 @@ // // Tests socket exceptions. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/client_socket_add_close_result_error_test.dart b/tests/standalone_2/io/client_socket_add_close_result_error_test.dart index 58ff72f4d2d..be388261b9c 100644 --- a/tests/standalone_2/io/client_socket_add_close_result_error_test.dart +++ b/tests/standalone_2/io/client_socket_add_close_result_error_test.dart @@ -4,6 +4,8 @@ // // Tests socket exceptions. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/client_socket_add_destroy_no_error_test.dart b/tests/standalone_2/io/client_socket_add_destroy_no_error_test.dart index 66d7da15cb9..25211838823 100644 --- a/tests/standalone_2/io/client_socket_add_destroy_no_error_test.dart +++ b/tests/standalone_2/io/client_socket_add_destroy_no_error_test.dart @@ -4,6 +4,8 @@ // // Tests socket exceptions. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/client_socket_destory_no_error_test.dart b/tests/standalone_2/io/client_socket_destory_no_error_test.dart index 37aaf491c90..ba92ce1eb74 100644 --- a/tests/standalone_2/io/client_socket_destory_no_error_test.dart +++ b/tests/standalone_2/io/client_socket_destory_no_error_test.dart @@ -4,6 +4,8 @@ // // Tests socket exceptions. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/client_socket_exception_test.dart b/tests/standalone_2/io/client_socket_exception_test.dart index b6c53a284aa..7bcccf828dc 100644 --- a/tests/standalone_2/io/client_socket_exception_test.dart +++ b/tests/standalone_2/io/client_socket_exception_test.dart @@ -4,6 +4,8 @@ // // Tests socket exceptions. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/compile_all_test.dart b/tests/standalone_2/io/compile_all_test.dart index f82e9af4d11..4715afea76b 100644 --- a/tests/standalone_2/io/compile_all_test.dart +++ b/tests/standalone_2/io/compile_all_test.dart @@ -7,6 +7,8 @@ // // VMOptions=--compile_all +// @dart = 2.9 + import "dart:io"; main() => null; diff --git a/tests/standalone_2/io/console_unicode_test.dart b/tests/standalone_2/io/console_unicode_test.dart index 7284b5fa681..349afb601ef 100644 --- a/tests/standalone_2/io/console_unicode_test.dart +++ b/tests/standalone_2/io/console_unicode_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:convert'; import 'dart:io'; diff --git a/tests/standalone_2/io/create_recursive_test.dart b/tests/standalone_2/io/create_recursive_test.dart index a4be8500cd6..b9da3db1b8d 100644 --- a/tests/standalone_2/io/create_recursive_test.dart +++ b/tests/standalone_2/io/create_recursive_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'dart:async'; diff --git a/tests/standalone_2/io/dart_std_io_pipe_script.dart b/tests/standalone_2/io/dart_std_io_pipe_script.dart index 1742df83791..888a9920d5c 100644 --- a/tests/standalone_2/io/dart_std_io_pipe_script.dart +++ b/tests/standalone_2/io/dart_std_io_pipe_script.dart @@ -4,6 +4,8 @@ // // Utility script to echo stdin to stdout or stderr or both. +// @dart = 2.9 + import "dart:io"; main(List arguments) { diff --git a/tests/standalone_2/io/dart_std_io_pipe_test.dart b/tests/standalone_2/io/dart_std_io_pipe_test.dart index 6a7002a72ba..2e63e1a09f5 100644 --- a/tests/standalone_2/io/dart_std_io_pipe_test.dart +++ b/tests/standalone_2/io/dart_std_io_pipe_test.dart @@ -10,6 +10,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:io"; import "process_test_util.dart"; diff --git a/tests/standalone_2/io/delete_symlink_test.dart b/tests/standalone_2/io/delete_symlink_test.dart index 1a8c149b88b..d926db12422 100644 --- a/tests/standalone_2/io/delete_symlink_test.dart +++ b/tests/standalone_2/io/delete_symlink_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/directory_chdir_test.dart b/tests/standalone_2/io/directory_chdir_test.dart index fe0d1acb440..d45fd0a1652 100644 --- a/tests/standalone_2/io/directory_chdir_test.dart +++ b/tests/standalone_2/io/directory_chdir_test.dart @@ -4,6 +4,8 @@ // // Directory listing test. +// @dart = 2.9 + import "dart:io"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/directory_create_race_test.dart b/tests/standalone_2/io/directory_create_race_test.dart index 973511c3b06..65ca9d867f4 100644 --- a/tests/standalone_2/io/directory_create_race_test.dart +++ b/tests/standalone_2/io/directory_create_race_test.dart @@ -7,6 +7,8 @@ // issue https://code.google.com/p/dart/issues/detail?id=7679 in revisions // without the fix for this issue. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/directory_error_test.dart b/tests/standalone_2/io/directory_error_test.dart index 892b0a64885..5cdd73b4fbc 100644 --- a/tests/standalone_2/io/directory_error_test.dart +++ b/tests/standalone_2/io/directory_error_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing error handling in directory I/O. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/directory_fuzz_test.dart b/tests/standalone_2/io/directory_fuzz_test.dart index 9d3dcae3f7f..227058d6ba5 100644 --- a/tests/standalone_2/io/directory_fuzz_test.dart +++ b/tests/standalone_2/io/directory_fuzz_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // 'fuzz' test the directory APIs by providing unexpected type // arguments. The test passes if the VM does not crash. diff --git a/tests/standalone_2/io/directory_list_nonexistent_test.dart b/tests/standalone_2/io/directory_list_nonexistent_test.dart index c3e92f1ee69..ab182f24153 100644 --- a/tests/standalone_2/io/directory_list_nonexistent_test.dart +++ b/tests/standalone_2/io/directory_list_nonexistent_test.dart @@ -7,6 +7,8 @@ // TODO(7157): Merge this test into directory_test.dart testListNonExistent() // when it no longer crashes on Windows, when issue 7157 is resolved. +// @dart = 2.9 + import "dart:io"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/directory_list_pause_test.dart b/tests/standalone_2/io/directory_list_pause_test.dart index 159b769e1b0..d09528b544e 100644 --- a/tests/standalone_2/io/directory_list_pause_test.dart +++ b/tests/standalone_2/io/directory_list_pause_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/directory_list_sync_test.dart b/tests/standalone_2/io/directory_list_sync_test.dart index 0df5081240f..ec63715adbd 100644 --- a/tests/standalone_2/io/directory_list_sync_test.dart +++ b/tests/standalone_2/io/directory_list_sync_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; void testList() { diff --git a/tests/standalone_2/io/directory_non_ascii_sync_test.dart b/tests/standalone_2/io/directory_non_ascii_sync_test.dart index df2283fc0c5..f7902cbdf5c 100644 --- a/tests/standalone_2/io/directory_non_ascii_sync_test.dart +++ b/tests/standalone_2/io/directory_non_ascii_sync_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:io'; diff --git a/tests/standalone_2/io/directory_non_ascii_test.dart b/tests/standalone_2/io/directory_non_ascii_test.dart index dc2dcb12024..18dad1f48cb 100644 --- a/tests/standalone_2/io/directory_non_ascii_test.dart +++ b/tests/standalone_2/io/directory_non_ascii_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/directory_test.dart b/tests/standalone_2/io/directory_test.dart index dad3ac541dc..91acf7527b1 100644 --- a/tests/standalone_2/io/directory_test.dart +++ b/tests/standalone_2/io/directory_test.dart @@ -4,6 +4,8 @@ // // Directory listing test. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/directory_uri_test.dart b/tests/standalone_2/io/directory_uri_test.dart index df94d9561cc..3bc12586c85 100644 --- a/tests/standalone_2/io/directory_uri_test.dart +++ b/tests/standalone_2/io/directory_uri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/disable_exit_test.dart b/tests/standalone_2/io/disable_exit_test.dart index f9d467d0beb..15828908cd0 100644 --- a/tests/standalone_2/io/disable_exit_test.dart +++ b/tests/standalone_2/io/disable_exit_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--disable-exit +// @dart = 2.9 + import "dart:io" as io; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/echo_server_stream_test.dart b/tests/standalone_2/io/echo_server_stream_test.dart index 7b65388872b..6b0b6c73d90 100644 --- a/tests/standalone_2/io/echo_server_stream_test.dart +++ b/tests/standalone_2/io/echo_server_stream_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // diff --git a/tests/standalone_2/io/file_absolute_path_test.dart b/tests/standalone_2/io/file_absolute_path_test.dart index bd5d97e0a2e..e20d29f9032 100644 --- a/tests/standalone_2/io/file_absolute_path_test.dart +++ b/tests/standalone_2/io/file_absolute_path_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing FileSystemEntity.absolute +// @dart = 2.9 + import "package:expect/expect.dart"; import 'dart:io'; diff --git a/tests/standalone_2/io/file_blocking_lock_script.dart b/tests/standalone_2/io/file_blocking_lock_script.dart index 00f8bb527d3..2975afafefa 100644 --- a/tests/standalone_2/io/file_blocking_lock_script.dart +++ b/tests/standalone_2/io/file_blocking_lock_script.dart @@ -4,6 +4,8 @@ // // Script used by the file_lock_test.dart test. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/file_blocking_lock_test.dart b/tests/standalone_2/io/file_blocking_lock_test.dart index 8896fb3e242..e649ebce44f 100644 --- a/tests/standalone_2/io/file_blocking_lock_test.dart +++ b/tests/standalone_2/io/file_blocking_lock_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=file_blocking_lock_script.dart // This test works by spawning a new process running diff --git a/tests/standalone_2/io/file_constructor_test.dart b/tests/standalone_2/io/file_constructor_test.dart index 7a44d9ffed8..8977d3e5764 100644 --- a/tests/standalone_2/io/file_constructor_test.dart +++ b/tests/standalone_2/io/file_constructor_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:io'; diff --git a/tests/standalone_2/io/file_copy_test.dart b/tests/standalone_2/io/file_copy_test.dart index b1c07238178..7d040d6513e 100644 --- a/tests/standalone_2/io/file_copy_test.dart +++ b/tests/standalone_2/io/file_copy_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing File.copy* +// @dart = 2.9 + import 'dart:io'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/file_create_test.dart b/tests/standalone_2/io/file_create_test.dart index 126ac4a5eb9..a11c0120db3 100644 --- a/tests/standalone_2/io/file_create_test.dart +++ b/tests/standalone_2/io/file_create_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing file creation. +// @dart = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/file_error2_test.dart b/tests/standalone_2/io/file_error2_test.dart index 431721117c9..2e3a7bfe8e7 100644 --- a/tests/standalone_2/io/file_error2_test.dart +++ b/tests/standalone_2/io/file_error2_test.dart @@ -11,6 +11,8 @@ // Environment=MSAN_OPTIONS=handle_segv=0:detect_stack_use_after_return=1:allocator_may_return_null=1 // Environment=TSAN_OPTIONS=handle_segv=0:detect_stack_use_after_return=1:allocator_may_return_null=1 +// @dart = 2.9 + import "dart:io"; import "file_error_test.dart" show createTestFile; diff --git a/tests/standalone_2/io/file_error_test.dart b/tests/standalone_2/io/file_error_test.dart index ee80df47320..ee55a0582f0 100644 --- a/tests/standalone_2/io/file_error_test.dart +++ b/tests/standalone_2/io/file_error_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing error handling in file I/O. +// @dart = 2.9 + import "dart:convert"; import "dart:io"; diff --git a/tests/standalone_2/io/file_fuzz_test.dart b/tests/standalone_2/io/file_fuzz_test.dart index 21c09c45368..60a7e5b0dee 100644 --- a/tests/standalone_2/io/file_fuzz_test.dart +++ b/tests/standalone_2/io/file_fuzz_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // 'fuzz' test the file APIs by providing unexpected type arguments. The test // passes if the VM does not crash. diff --git a/tests/standalone_2/io/file_input_stream_test.dart b/tests/standalone_2/io/file_input_stream_test.dart index 68c272ddb7b..68bebe8fc57 100644 --- a/tests/standalone_2/io/file_input_stream_test.dart +++ b/tests/standalone_2/io/file_input_stream_test.dart @@ -7,6 +7,8 @@ // OtherResources=readline_test1.dat // OtherResources=readline_test2.dat +// @dart = 2.9 + import "dart:convert"; import "dart:io"; diff --git a/tests/standalone_2/io/file_lock_test.dart b/tests/standalone_2/io/file_lock_test.dart index f1172231d30..d2cdefb5ca1 100644 --- a/tests/standalone_2/io/file_lock_test.dart +++ b/tests/standalone_2/io/file_lock_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=file_lock_script.dart import 'dart:async'; diff --git a/tests/standalone_2/io/file_long_path_test.dart b/tests/standalone_2/io/file_long_path_test.dart index 454e633d785..2b8d307f1d1 100644 --- a/tests/standalone_2/io/file_long_path_test.dart +++ b/tests/standalone_2/io/file_long_path_test.dart @@ -4,6 +4,8 @@ // // This test is Windows-only. +// @dart = 2.9 + import 'dart:io'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/file_non_ascii_sync_test.dart b/tests/standalone_2/io/file_non_ascii_sync_test.dart index f664797adbb..8e88307bca2 100644 --- a/tests/standalone_2/io/file_non_ascii_sync_test.dart +++ b/tests/standalone_2/io/file_non_ascii_sync_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:io'; diff --git a/tests/standalone_2/io/file_non_ascii_test.dart b/tests/standalone_2/io/file_non_ascii_test.dart index cc465d8d6b3..7c578758737 100644 --- a/tests/standalone_2/io/file_non_ascii_test.dart +++ b/tests/standalone_2/io/file_non_ascii_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/file_output_stream_test.dart b/tests/standalone_2/io/file_output_stream_test.dart index dfd9aa0a9e2..66e1cfd1e2e 100644 --- a/tests/standalone_2/io/file_output_stream_test.dart +++ b/tests/standalone_2/io/file_output_stream_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Testing file input stream, VM-only, standalone test. +// @dart = 2.9 + import "dart:io"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/file_read_encoded_test.dart b/tests/standalone_2/io/file_read_encoded_test.dart index 984b36637a0..a3cc837504f 100644 --- a/tests/standalone_2/io/file_read_encoded_test.dart +++ b/tests/standalone_2/io/file_read_encoded_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; import 'dart:io'; diff --git a/tests/standalone_2/io/file_read_special_device_test.dart b/tests/standalone_2/io/file_read_special_device_test.dart index fcfd9cbb11e..3fc35146872 100644 --- a/tests/standalone_2/io/file_read_special_device_test.dart +++ b/tests/standalone_2/io/file_read_special_device_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=file_read_stdio_script.dart import 'package:expect/expect.dart'; diff --git a/tests/standalone_2/io/file_read_stdio_script.dart b/tests/standalone_2/io/file_read_stdio_script.dart index 948a0ec0c4a..730e4ac557c 100644 --- a/tests/standalone_2/io/file_read_stdio_script.dart +++ b/tests/standalone_2/io/file_read_stdio_script.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; void main() { diff --git a/tests/standalone_2/io/file_relative_long_path_test.dart b/tests/standalone_2/io/file_relative_long_path_test.dart index 0c53ab37a42..5f47224638c 100644 --- a/tests/standalone_2/io/file_relative_long_path_test.dart +++ b/tests/standalone_2/io/file_relative_long_path_test.dart @@ -6,6 +6,8 @@ // representing a long absolute path cannot be used by Windows API. Running this // test without proper support on long path will get an error. +// @dart = 2.9 + import 'dart:io'; const maxPath = 260; diff --git a/tests/standalone_2/io/file_stat_test.dart b/tests/standalone_2/io/file_stat_test.dart index d7f68395578..9af5190440b 100644 --- a/tests/standalone_2/io/file_stat_test.dart +++ b/tests/standalone_2/io/file_stat_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing dart:io FileSystemEntity.Stat(). +// @dart = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/file_stream_test.dart b/tests/standalone_2/io/file_stream_test.dart index 2d3577e8cb7..64c9d416856 100644 --- a/tests/standalone_2/io/file_stream_test.dart +++ b/tests/standalone_2/io/file_stream_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/file_system_async_links_test.dart b/tests/standalone_2/io/file_system_async_links_test.dart index af62ca89289..579f57ea07e 100644 --- a/tests/standalone_2/io/file_system_async_links_test.dart +++ b/tests/standalone_2/io/file_system_async_links_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/file_system_delete_test.dart b/tests/standalone_2/io/file_system_delete_test.dart index 7602c695d48..c469e6386b2 100644 --- a/tests/standalone_2/io/file_system_delete_test.dart +++ b/tests/standalone_2/io/file_system_delete_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/file_system_exists_test.dart b/tests/standalone_2/io/file_system_exists_test.dart index 12a7f19c503..2f37cedaf65 100644 --- a/tests/standalone_2/io/file_system_exists_test.dart +++ b/tests/standalone_2/io/file_system_exists_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:io"; diff --git a/tests/standalone_2/io/file_system_links_test.dart b/tests/standalone_2/io/file_system_links_test.dart index 9af72964091..fd0bc2927fe 100644 --- a/tests/standalone_2/io/file_system_links_test.dart +++ b/tests/standalone_2/io/file_system_links_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/file_system_uri_test.dart b/tests/standalone_2/io/file_system_uri_test.dart index c48706d63ac..f7835ea5260 100644 --- a/tests/standalone_2/io/file_system_uri_test.dart +++ b/tests/standalone_2/io/file_system_uri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/file_system_watcher_test.dart b/tests/standalone_2/io/file_system_watcher_test.dart index bcca9a1cc13..478f7077bbc 100644 --- a/tests/standalone_2/io/file_system_watcher_test.dart +++ b/tests/standalone_2/io/file_system_watcher_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/standalone_2/io/file_test.dart b/tests/standalone_2/io/file_test.dart index 37967e90b50..a3a48235bf6 100644 --- a/tests/standalone_2/io/file_test.dart +++ b/tests/standalone_2/io/file_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing file I/O. +// @dart = 2.9 + // OtherResources=empty_file // OtherResources=file_test.txt // OtherResources=fixed_length_file diff --git a/tests/standalone_2/io/file_typed_data_test.dart b/tests/standalone_2/io/file_typed_data_test.dart index 1e46e49cfb9..19d25e0fea5 100644 --- a/tests/standalone_2/io/file_typed_data_test.dart +++ b/tests/standalone_2/io/file_typed_data_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing file I/O. +// @dart = 2.9 + import 'dart:async'; import 'dart:io'; import 'dart:typed_data'; diff --git a/tests/standalone_2/io/file_uri_test.dart b/tests/standalone_2/io/file_uri_test.dart index 3001b70fb52..9ac712d1891 100644 --- a/tests/standalone_2/io/file_uri_test.dart +++ b/tests/standalone_2/io/file_uri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/file_windows_test.dart b/tests/standalone_2/io/file_windows_test.dart index d0e2ddc4d14..0533a2ae599 100644 --- a/tests/standalone_2/io/file_windows_test.dart +++ b/tests/standalone_2/io/file_windows_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/file_write_as_test.dart b/tests/standalone_2/io/file_write_as_test.dart index 64b2e11e276..b202525dbbc 100644 --- a/tests/standalone_2/io/file_write_as_test.dart +++ b/tests/standalone_2/io/file_write_as_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:collection'; import 'dart:io'; diff --git a/tests/standalone_2/io/file_write_only_test.dart b/tests/standalone_2/io/file_write_only_test.dart index b2ed67d33de..4a2d9cb0d6c 100644 --- a/tests/standalone_2/io/file_write_only_test.dart +++ b/tests/standalone_2/io/file_write_only_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing file I/O. +// @dart = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/fuzz_support.dart b/tests/standalone_2/io/fuzz_support.dart index 4b9d59d5c80..1af4e09aadc 100644 --- a/tests/standalone_2/io/fuzz_support.dart +++ b/tests/standalone_2/io/fuzz_support.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library fuzz_support; import 'package:expect/expect.dart'; diff --git a/tests/standalone_2/io/gzip_format_exception_test.dart b/tests/standalone_2/io/gzip_format_exception_test.dart index 2b00af7c829..06eb87c055e 100644 --- a/tests/standalone_2/io/gzip_format_exception_test.dart +++ b/tests/standalone_2/io/gzip_format_exception_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'package:expect/expect.dart'; diff --git a/tests/standalone_2/io/http_100_continue_test.dart b/tests/standalone_2/io/http_100_continue_test.dart index fb7abae978a..f3ca2d88923 100644 --- a/tests/standalone_2/io/http_100_continue_test.dart +++ b/tests/standalone_2/io/http_100_continue_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import 'dart:convert'; import "dart:io"; diff --git a/tests/standalone_2/io/http_10_test.dart b/tests/standalone_2/io/http_10_test.dart index 92ecc6fdf97..68acbf837fc 100644 --- a/tests/standalone_2/io/http_10_test.dart +++ b/tests/standalone_2/io/http_10_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions= // VMOptions=--short_socket_read // VMOptions=--short_socket_write diff --git a/tests/standalone_2/io/http_advanced_test.dart b/tests/standalone_2/io/http_advanced_test.dart index 62d6b3093bd..c1888706af0 100644 --- a/tests/standalone_2/io/http_advanced_test.dart +++ b/tests/standalone_2/io/http_advanced_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // diff --git a/tests/standalone_2/io/http_auth_digest_test.dart b/tests/standalone_2/io/http_auth_digest_test.dart index 7161cf98eb6..5f708b94630 100644 --- a/tests/standalone_2/io/http_auth_digest_test.dart +++ b/tests/standalone_2/io/http_auth_digest_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:convert/convert.dart"; import "package:crypto/crypto.dart"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/http_auth_test.dart b/tests/standalone_2/io/http_auth_test.dart index 8d4ba43dca8..231b1823bca 100644 --- a/tests/standalone_2/io/http_auth_test.dart +++ b/tests/standalone_2/io/http_auth_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:crypto/crypto.dart"; import "package:expect/expect.dart"; import 'dart:async'; diff --git a/tests/standalone_2/io/http_ban_http_embedder_test.dart b/tests/standalone_2/io/http_ban_http_embedder_test.dart index 7fd3cb3f6b1..d40500f8b37 100644 --- a/tests/standalone_2/io/http_ban_http_embedder_test.dart +++ b/tests/standalone_2/io/http_ban_http_embedder_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // SharedOptions=-Ddart.library.io.allow_http=false import 'dart:async'; diff --git a/tests/standalone_2/io/http_ban_http_normal_test.dart b/tests/standalone_2/io/http_ban_http_normal_test.dart index 118dd4cc0e1..adb4708585b 100644 --- a/tests/standalone_2/io/http_ban_http_normal_test.dart +++ b/tests/standalone_2/io/http_ban_http_normal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/http_basic_test.dart b/tests/standalone_2/io/http_basic_test.dart index 73b9e34b985..4356479a74d 100644 --- a/tests/standalone_2/io/http_basic_test.dart +++ b/tests/standalone_2/io/http_basic_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // diff --git a/tests/standalone_2/io/http_big_header_test.dart b/tests/standalone_2/io/http_big_header_test.dart index e5d25fbcb8f..80acde653b5 100644 --- a/tests/standalone_2/io/http_big_header_test.dart +++ b/tests/standalone_2/io/http_big_header_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'package:expect/expect.dart'; diff --git a/tests/standalone_2/io/http_bind_test.dart b/tests/standalone_2/io/http_bind_test.dart index 502a012ea80..7e03b64cfaa 100644 --- a/tests/standalone_2/io/http_bind_test.dart +++ b/tests/standalone_2/io/http_bind_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; import 'dart:convert'; diff --git a/tests/standalone_2/io/http_client_connect_test.dart b/tests/standalone_2/io/http_client_connect_test.dart index 46380f1303c..884e9de538f 100644 --- a/tests/standalone_2/io/http_client_connect_test.dart +++ b/tests/standalone_2/io/http_client_connect_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/tests/standalone_2/io/http_client_exception_test.dart b/tests/standalone_2/io/http_client_exception_test.dart index 7b5ad9de4d8..22067756dfe 100644 --- a/tests/standalone_2/io/http_client_exception_test.dart +++ b/tests/standalone_2/io/http_client_exception_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import "dart:io"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/http_client_parser_crlfs_tolerant_test.dart b/tests/standalone_2/io/http_client_parser_crlfs_tolerant_test.dart index 1d02c396b29..3ff5d0bb6d1 100644 --- a/tests/standalone_2/io/http_client_parser_crlfs_tolerant_test.dart +++ b/tests/standalone_2/io/http_client_parser_crlfs_tolerant_test.dart @@ -4,6 +4,8 @@ // // Tests that CR*LF sequence works as well as CRLF in http client parser. +// @dart = 2.9 + import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/http_client_request_test.dart b/tests/standalone_2/io/http_client_request_test.dart index dae2b2aae6e..f91b1e5a6b0 100644 --- a/tests/standalone_2/io/http_client_request_test.dart +++ b/tests/standalone_2/io/http_client_request_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; import "dart:typed_data"; diff --git a/tests/standalone_2/io/http_client_stays_alive_test.dart b/tests/standalone_2/io/http_client_stays_alive_test.dart index 37af33a5774..ba1653599ef 100644 --- a/tests/standalone_2/io/http_client_stays_alive_test.dart +++ b/tests/standalone_2/io/http_client_stays_alive_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=http_client_stays_alive_test.dart import 'dart:io'; diff --git a/tests/standalone_2/io/http_close_stack_overflow_test.dart b/tests/standalone_2/io/http_close_stack_overflow_test.dart index 27055f8467b..de4a04e866e 100644 --- a/tests/standalone_2/io/http_close_stack_overflow_test.dart +++ b/tests/standalone_2/io/http_close_stack_overflow_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; // Test that closing a large amount of servers will not lead to a stack diff --git a/tests/standalone_2/io/http_close_test.dart b/tests/standalone_2/io/http_close_test.dart index d07175fd984..6230e47c6c8 100644 --- a/tests/standalone_2/io/http_close_test.dart +++ b/tests/standalone_2/io/http_close_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/http_compression_test.dart b/tests/standalone_2/io/http_compression_test.dart index ca9f2cf6c13..f9aaacbda93 100644 --- a/tests/standalone_2/io/http_compression_test.dart +++ b/tests/standalone_2/io/http_compression_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import 'package:expect/expect.dart'; import 'dart:io'; import 'dart:typed_data'; diff --git a/tests/standalone_2/io/http_connection_close_test.dart b/tests/standalone_2/io/http_connection_close_test.dart index df6d3ea5034..d6efbfb6d56 100644 --- a/tests/standalone_2/io/http_connection_close_test.dart +++ b/tests/standalone_2/io/http_connection_close_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/http_connection_header_test.dart b/tests/standalone_2/io/http_connection_header_test.dart index a42e45811ca..6e87fd45bc4 100644 --- a/tests/standalone_2/io/http_connection_header_test.dart +++ b/tests/standalone_2/io/http_connection_header_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:isolate"; import "dart:io"; diff --git a/tests/standalone_2/io/http_connection_info_test.dart b/tests/standalone_2/io/http_connection_info_test.dart index 81199ddd034..c91e3778904 100644 --- a/tests/standalone_2/io/http_connection_info_test.dart +++ b/tests/standalone_2/io/http_connection_info_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:io"; diff --git a/tests/standalone_2/io/http_content_length_test.dart b/tests/standalone_2/io/http_content_length_test.dart index 15d65204e6a..7b81398f48c 100644 --- a/tests/standalone_2/io/http_content_length_test.dart +++ b/tests/standalone_2/io/http_content_length_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:isolate"; import "dart:io"; diff --git a/tests/standalone_2/io/http_cookie_test.dart b/tests/standalone_2/io/http_cookie_test.dart index 5aa1cf937c6..25a389e9a13 100644 --- a/tests/standalone_2/io/http_cookie_test.dart +++ b/tests/standalone_2/io/http_cookie_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/http_cross_process_test.dart b/tests/standalone_2/io/http_cross_process_test.dart index 598ac685d35..7a5c1b3e982 100644 --- a/tests/standalone_2/io/http_cross_process_test.dart +++ b/tests/standalone_2/io/http_cross_process_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import 'dart:async'; import 'dart:io'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/http_date_test.dart b/tests/standalone_2/io/http_date_test.dart index baa879f1e73..1c365f31939 100644 --- a/tests/standalone_2/io/http_date_test.dart +++ b/tests/standalone_2/io/http_date_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:math"; import "dart:io"; diff --git a/tests/standalone_2/io/http_detach_socket_test.dart b/tests/standalone_2/io/http_detach_socket_test.dart index 4bdbba51ece..bb336908017 100644 --- a/tests/standalone_2/io/http_detach_socket_test.dart +++ b/tests/standalone_2/io/http_detach_socket_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "package:expect/expect.dart"; import "package:async_helper/async_helper.dart"; import "dart:io"; diff --git a/tests/standalone_2/io/http_force_staggered_ipv6_lookup_test.dart b/tests/standalone_2/io/http_force_staggered_ipv6_lookup_test.dart index c64448840da..c3354b589dc 100644 --- a/tests/standalone_2/io/http_force_staggered_ipv6_lookup_test.dart +++ b/tests/standalone_2/io/http_force_staggered_ipv6_lookup_test.dart @@ -5,6 +5,8 @@ // SharedOptions=-Ddart.library.io.force_staggered_ipv6_lookup=true // +// @dart = 2.9 + import "dart:io"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/http_head_test.dart b/tests/standalone_2/io/http_head_test.dart index de19182fc6d..47950c4f736 100644 --- a/tests/standalone_2/io/http_head_test.dart +++ b/tests/standalone_2/io/http_head_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/http_headers_content_length_test.dart b/tests/standalone_2/io/http_headers_content_length_test.dart index 523ac6905c6..6679db278e0 100644 --- a/tests/standalone_2/io/http_headers_content_length_test.dart +++ b/tests/standalone_2/io/http_headers_content_length_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/http_headers_state_test.dart b/tests/standalone_2/io/http_headers_state_test.dart index 43447ef70e0..65e2aef9c1a 100644 --- a/tests/standalone_2/io/http_headers_state_test.dart +++ b/tests/standalone_2/io/http_headers_state_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import "dart:isolate"; import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/http_ipv6_test.dart b/tests/standalone_2/io/http_ipv6_test.dart index 4c1c1df29f5..34d755d82f9 100644 --- a/tests/standalone_2/io/http_ipv6_test.dart +++ b/tests/standalone_2/io/http_ipv6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions= // VMOptions=--short_socket_read // VMOptions=--short_socket_write diff --git a/tests/standalone_2/io/http_keep_alive_test.dart b/tests/standalone_2/io/http_keep_alive_test.dart index a0a0d81f096..c56e5eb3fa4 100644 --- a/tests/standalone_2/io/http_keep_alive_test.dart +++ b/tests/standalone_2/io/http_keep_alive_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/http_linklocal_ipv6_test.dart b/tests/standalone_2/io/http_linklocal_ipv6_test.dart index e99162b3f2a..b301afda334 100644 --- a/tests/standalone_2/io/http_linklocal_ipv6_test.dart +++ b/tests/standalone_2/io/http_linklocal_ipv6_test.dart @@ -1,6 +1,8 @@ // Copyright (c) 2019, 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 = 2.9 import 'dart:async'; import 'dart:io'; import 'package:async_helper/async_helper.dart'; diff --git a/tests/standalone_2/io/http_loopback_test.dart b/tests/standalone_2/io/http_loopback_test.dart index 26670916101..a30a409262f 100644 --- a/tests/standalone_2/io/http_loopback_test.dart +++ b/tests/standalone_2/io/http_loopback_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/http_no_reason_phrase_test.dart b/tests/standalone_2/io/http_no_reason_phrase_test.dart index 2a1558e161d..85b800b0564 100644 --- a/tests/standalone_2/io/http_no_reason_phrase_test.dart +++ b/tests/standalone_2/io/http_no_reason_phrase_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions= // VMOptions=--short_socket_read // VMOptions=--short_socket_write diff --git a/tests/standalone_2/io/http_outgoing_size_test.dart b/tests/standalone_2/io/http_outgoing_size_test.dart index 06a33a80922..f8eac1f769d 100644 --- a/tests/standalone_2/io/http_outgoing_size_test.dart +++ b/tests/standalone_2/io/http_outgoing_size_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import 'dart:io'; import 'dart:typed_data'; diff --git a/tests/standalone_2/io/http_override_test.dart b/tests/standalone_2/io/http_override_test.dart index 25d4598f492..668263b6156 100644 --- a/tests/standalone_2/io/http_override_test.dart +++ b/tests/standalone_2/io/http_override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/http_parser_connect_method_test.dart b/tests/standalone_2/io/http_parser_connect_method_test.dart index 03bda12cd37..2a924d78276 100644 --- a/tests/standalone_2/io/http_parser_connect_method_test.dart +++ b/tests/standalone_2/io/http_parser_connect_method_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/http_parser_header_add_test.dart b/tests/standalone_2/io/http_parser_header_add_test.dart index 4421733f4d9..7c86ff247d0 100644 --- a/tests/standalone_2/io/http_parser_header_add_test.dart +++ b/tests/standalone_2/io/http_parser_header_add_test.dart @@ -5,6 +5,8 @@ // Verify that FormatException is thrown when HttpClient userAgent has // invalid value. +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/http_proxy_advanced_test.dart b/tests/standalone_2/io/http_proxy_advanced_test.dart index 231d7ab0adc..a25f77420f3 100644 --- a/tests/standalone_2/io/http_proxy_advanced_test.dart +++ b/tests/standalone_2/io/http_proxy_advanced_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=certificates/server_chain.pem // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem diff --git a/tests/standalone_2/io/http_proxy_close_test.dart b/tests/standalone_2/io/http_proxy_close_test.dart index 2fd39f20e0c..ea07ff54813 100644 --- a/tests/standalone_2/io/http_proxy_close_test.dart +++ b/tests/standalone_2/io/http_proxy_close_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import 'package:expect/expect.dart'; diff --git a/tests/standalone_2/io/http_proxy_configuration_test.dart b/tests/standalone_2/io/http_proxy_configuration_test.dart index c94826a1b8d..19edb8279cb 100644 --- a/tests/standalone_2/io/http_proxy_configuration_test.dart +++ b/tests/standalone_2/io/http_proxy_configuration_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/http_proxy_test.dart b/tests/standalone_2/io/http_proxy_test.dart index a302eb09fce..c3ec4e981bb 100644 --- a/tests/standalone_2/io/http_proxy_test.dart +++ b/tests/standalone_2/io/http_proxy_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=certificates/server_chain.pem // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem diff --git a/tests/standalone_2/io/http_read_test.dart b/tests/standalone_2/io/http_read_test.dart index 4b6d50eab62..0cc4575e22b 100644 --- a/tests/standalone_2/io/http_read_test.dart +++ b/tests/standalone_2/io/http_read_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // diff --git a/tests/standalone_2/io/http_redirect_test.dart b/tests/standalone_2/io/http_redirect_test.dart index ccb95c51596..e168b11b403 100644 --- a/tests/standalone_2/io/http_redirect_test.dart +++ b/tests/standalone_2/io/http_redirect_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/http_request_pipeling_test.dart b/tests/standalone_2/io/http_request_pipeling_test.dart index 4acb06fc721..9d041742ee4 100644 --- a/tests/standalone_2/io/http_request_pipeling_test.dart +++ b/tests/standalone_2/io/http_request_pipeling_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/http_requested_uri_test.dart b/tests/standalone_2/io/http_requested_uri_test.dart index 17fb8894ac2..f35f24d4ca8 100644 --- a/tests/standalone_2/io/http_requested_uri_test.dart +++ b/tests/standalone_2/io/http_requested_uri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/http_response_deadline_test.dart b/tests/standalone_2/io/http_response_deadline_test.dart index 757ec51ea29..dd7f9f90d70 100644 --- a/tests/standalone_2/io/http_response_deadline_test.dart +++ b/tests/standalone_2/io/http_response_deadline_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/http_reuse_server_port_test.dart b/tests/standalone_2/io/http_reuse_server_port_test.dart index afcaf61b95c..57535f3f540 100644 --- a/tests/standalone_2/io/http_reuse_server_port_test.dart +++ b/tests/standalone_2/io/http_reuse_server_port_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/http_server_close_response_after_error_client.dart b/tests/standalone_2/io/http_server_close_response_after_error_client.dart index beee23a88c9..7f9e4081232 100644 --- a/tests/standalone_2/io/http_server_close_response_after_error_client.dart +++ b/tests/standalone_2/io/http_server_close_response_after_error_client.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/http_server_close_response_after_error_test.dart b/tests/standalone_2/io/http_server_close_response_after_error_test.dart index eb45423a420..1945cba414a 100644 --- a/tests/standalone_2/io/http_server_close_response_after_error_test.dart +++ b/tests/standalone_2/io/http_server_close_response_after_error_test.dart @@ -8,6 +8,8 @@ // VMOptions=--short_socket_read --short_socket_write // OtherResources=http_server_close_response_after_error_client.dart +// @dart = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/http_server_early_client_close2_test.dart b/tests/standalone_2/io/http_server_early_client_close2_test.dart index 1a84dfd2960..be3c6a72888 100644 --- a/tests/standalone_2/io/http_server_early_client_close2_test.dart +++ b/tests/standalone_2/io/http_server_early_client_close2_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "dart:isolate"; diff --git a/tests/standalone_2/io/http_server_early_client_close_test.dart b/tests/standalone_2/io/http_server_early_client_close_test.dart index 59841f047dd..f7028bb2116 100644 --- a/tests/standalone_2/io/http_server_early_client_close_test.dart +++ b/tests/standalone_2/io/http_server_early_client_close_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "dart:isolate"; diff --git a/tests/standalone_2/io/http_server_idle_timeout_test.dart b/tests/standalone_2/io/http_server_idle_timeout_test.dart index 247bb6fcce2..e889b03e31c 100644 --- a/tests/standalone_2/io/http_server_idle_timeout_test.dart +++ b/tests/standalone_2/io/http_server_idle_timeout_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "dart:isolate"; diff --git a/tests/standalone_2/io/http_server_response_test.dart b/tests/standalone_2/io/http_server_response_test.dart index 2f2e65785ad..bddcc08fde7 100644 --- a/tests/standalone_2/io/http_server_response_test.dart +++ b/tests/standalone_2/io/http_server_response_test.dart @@ -8,6 +8,8 @@ // VMOptions=--short_socket_read --short_socket_write // OtherResources=http_server_response_test.dart +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/http_server_test.dart b/tests/standalone_2/io/http_server_test.dart index c9910afaef7..c30c141d469 100644 --- a/tests/standalone_2/io/http_server_test.dart +++ b/tests/standalone_2/io/http_server_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:typed_data"; import "dart:io"; diff --git a/tests/standalone_2/io/http_session_test.dart b/tests/standalone_2/io/http_session_test.dart index fa8270de6cd..11e658f579b 100644 --- a/tests/standalone_2/io/http_session_test.dart +++ b/tests/standalone_2/io/http_session_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/http_shutdown_test.dart b/tests/standalone_2/io/http_shutdown_test.dart index c04a5374421..21cbc50daf4 100644 --- a/tests/standalone_2/io/http_shutdown_test.dart +++ b/tests/standalone_2/io/http_shutdown_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/http_stream_close_test.dart b/tests/standalone_2/io/http_stream_close_test.dart index 06b95727817..cd58b1a84a5 100644 --- a/tests/standalone_2/io/http_stream_close_test.dart +++ b/tests/standalone_2/io/http_stream_close_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import "dart:io"; main() { diff --git a/tests/standalone_2/io/https_bad_certificate_test.dart b/tests/standalone_2/io/https_bad_certificate_test.dart index 96b014407d4..dbbc3abbb4f 100644 --- a/tests/standalone_2/io/https_bad_certificate_test.dart +++ b/tests/standalone_2/io/https_bad_certificate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=certificates/server_chain.pem // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem diff --git a/tests/standalone_2/io/https_client_certificate_test.dart b/tests/standalone_2/io/https_client_certificate_test.dart index 93d0f7fac7d..f2da08ae881 100644 --- a/tests/standalone_2/io/https_client_certificate_test.dart +++ b/tests/standalone_2/io/https_client_certificate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/https_client_exception_test.dart b/tests/standalone_2/io/https_client_exception_test.dart index 6735909a963..2820a2e07e9 100644 --- a/tests/standalone_2/io/https_client_exception_test.dart +++ b/tests/standalone_2/io/https_client_exception_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/https_connection_closed_during_handshake_test.dart b/tests/standalone_2/io/https_connection_closed_during_handshake_test.dart index 0d82100cb4a..d31a163b3eb 100644 --- a/tests/standalone_2/io/https_connection_closed_during_handshake_test.dart +++ b/tests/standalone_2/io/https_connection_closed_during_handshake_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--long-ssl-cert-evaluation // OtherResources=localhost.key // OtherResources=localhost.crt diff --git a/tests/standalone_2/io/https_nonblocking_trust_evaluation_test.dart b/tests/standalone_2/io/https_nonblocking_trust_evaluation_test.dart index 402b260049a..7818313dfd0 100644 --- a/tests/standalone_2/io/https_nonblocking_trust_evaluation_test.dart +++ b/tests/standalone_2/io/https_nonblocking_trust_evaluation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--long-ssl-cert-evaluation // This test verifies that dart isolate is not getting blocked during diff --git a/tests/standalone_2/io/https_server_test.dart b/tests/standalone_2/io/https_server_test.dart index fe151bcc367..14b05783a63 100644 --- a/tests/standalone_2/io/https_server_test.dart +++ b/tests/standalone_2/io/https_server_test.dart @@ -6,6 +6,8 @@ // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "dart:isolate"; diff --git a/tests/standalone_2/io/https_unauthorized_client.dart b/tests/standalone_2/io/https_unauthorized_client.dart index 6b7e8f6a74c..4b4c8e49aa1 100644 --- a/tests/standalone_2/io/https_unauthorized_client.dart +++ b/tests/standalone_2/io/https_unauthorized_client.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Client that makes HttpClient secure gets from a server that replies with // a certificate that can't be authenticated. This checks that all the // futures returned from these connection attempts complete (with errors). diff --git a/tests/standalone_2/io/https_unauthorized_test.dart b/tests/standalone_2/io/https_unauthorized_test.dart index ea172bed615..ebb17f7966a 100644 --- a/tests/standalone_2/io/https_unauthorized_test.dart +++ b/tests/standalone_2/io/https_unauthorized_test.dart @@ -9,6 +9,8 @@ // OtherResources=certificates/trusted_certs.pem // OtherResources=https_unauthorized_client.dart +// @dart = 2.9 + // This test verifies that secure connections that fail due to // unauthenticated certificates throw exceptions in HttpClient. diff --git a/tests/standalone_2/io/internet_address_test.dart b/tests/standalone_2/io/internet_address_test.dart index e7af9cd2e08..d65b510698d 100644 --- a/tests/standalone_2/io/internet_address_test.dart +++ b/tests/standalone_2/io/internet_address_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'dart:convert'; import 'dart:typed_data'; diff --git a/tests/standalone_2/io/io_override_test.dart b/tests/standalone_2/io/io_override_test.dart index 3ddb73d8abc..54f0eb44b4c 100644 --- a/tests/standalone_2/io/io_override_test.dart +++ b/tests/standalone_2/io/io_override_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/tests/standalone_2/io/io_sink_test.dart b/tests/standalone_2/io/io_sink_test.dart index daeb99746fa..66f6c47e574 100644 --- a/tests/standalone_2/io/io_sink_test.dart +++ b/tests/standalone_2/io/io_sink_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/issue_22636_test.dart b/tests/standalone_2/io/issue_22636_test.dart index 4bfa9dc146f..adfa9fff4b1 100644 --- a/tests/standalone_2/io/issue_22636_test.dart +++ b/tests/standalone_2/io/issue_22636_test.dart @@ -6,6 +6,8 @@ // closed for read (the other end has closed for write) does not send // an additional READ_CLOSED event. +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/issue_22637_test.dart b/tests/standalone_2/io/issue_22637_test.dart index 0524ce96d7e..a32db424476 100644 --- a/tests/standalone_2/io/issue_22637_test.dart +++ b/tests/standalone_2/io/issue_22637_test.dart @@ -6,6 +6,8 @@ // when the other end is already closed, does not discard unread data // that remains in the connection. +// @dart = 2.9 + import "dart:io"; import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/issue_26954_test.dart b/tests/standalone_2/io/issue_26954_test.dart index f5fca78a5d7..2c4f0ced8bb 100644 --- a/tests/standalone_2/io/issue_26954_test.dart +++ b/tests/standalone_2/io/issue_26954_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:convert'; import 'dart:io'; diff --git a/tests/standalone_2/io/issue_30687_test.dart b/tests/standalone_2/io/issue_30687_test.dart index 96b514de89c..1392012813a 100644 --- a/tests/standalone_2/io/issue_30687_test.dart +++ b/tests/standalone_2/io/issue_30687_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'package:expect/expect.dart'; diff --git a/tests/standalone_2/io/issue_31492_test.dart b/tests/standalone_2/io/issue_31492_test.dart index ed3c67e00cb..836c8aa4caf 100644 --- a/tests/standalone_2/io/issue_31492_test.dart +++ b/tests/standalone_2/io/issue_31492_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Testing that HttpClient throws an exception if a connection is opened after // the client is closed. https://github.com/dart-lang/sdk/issues/31492 diff --git a/tests/standalone_2/io/issue_32052_test.dart b/tests/standalone_2/io/issue_32052_test.dart index b39f816664e..d179195c890 100644 --- a/tests/standalone_2/io/issue_32052_test.dart +++ b/tests/standalone_2/io/issue_32052_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:cli'; diff --git a/tests/standalone_2/io/large_file_read_small_file_test.dart b/tests/standalone_2/io/large_file_read_small_file_test.dart index 2f4c2768110..0f62b12abb0 100644 --- a/tests/standalone_2/io/large_file_read_small_file_test.dart +++ b/tests/standalone_2/io/large_file_read_small_file_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'package:expect/expect.dart'; diff --git a/tests/standalone_2/io/link_async_test.dart b/tests/standalone_2/io/link_async_test.dart index 1884abc4da0..37ccd11be89 100644 --- a/tests/standalone_2/io/link_async_test.dart +++ b/tests/standalone_2/io/link_async_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/link_test.dart b/tests/standalone_2/io/link_test.dart index 3e36111ec06..e2793b0eceb 100644 --- a/tests/standalone_2/io/link_test.dart +++ b/tests/standalone_2/io/link_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:async_helper/async_helper.dart"; import "package:expect/expect.dart"; import "package:path/path.dart"; diff --git a/tests/standalone_2/io/link_uri_test.dart b/tests/standalone_2/io/link_uri_test.dart index 755812b82bf..dd71eddb852 100644 --- a/tests/standalone_2/io/link_uri_test.dart +++ b/tests/standalone_2/io/link_uri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/locale_name_test.dart b/tests/standalone_2/io/locale_name_test.dart index 7298ca75ea4..a94bc18657d 100644 --- a/tests/standalone_2/io/locale_name_test.dart +++ b/tests/standalone_2/io/locale_name_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/many_directory_operations_test.dart b/tests/standalone_2/io/many_directory_operations_test.dart index 7e33403d8e7..319e7b35c23 100644 --- a/tests/standalone_2/io/many_directory_operations_test.dart +++ b/tests/standalone_2/io/many_directory_operations_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing using a lot of native port operations. +// @dart = 2.9 + import "dart:io"; main() { diff --git a/tests/standalone_2/io/many_file_operations_test.dart b/tests/standalone_2/io/many_file_operations_test.dart index 294e9c631af..e688b20c3ab 100644 --- a/tests/standalone_2/io/many_file_operations_test.dart +++ b/tests/standalone_2/io/many_file_operations_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing using a lot of native port operations. +// @dart = 2.9 + import "dart:io"; main() { diff --git a/tests/standalone_2/io/namespace_test.dart b/tests/standalone_2/io/namespace_test.dart index 601278fdb7b..c8190fb2c59 100644 --- a/tests/standalone_2/io/namespace_test.dart +++ b/tests/standalone_2/io/namespace_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/network_interface_test.dart b/tests/standalone_2/io/network_interface_test.dart index bfdd20eecff..55dbfcefa03 100644 --- a/tests/standalone_2/io/network_interface_test.dart +++ b/tests/standalone_2/io/network_interface_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/network_policy_test.dart b/tests/standalone_2/io/network_policy_test.dart index 2f9878da10f..108f1d43d53 100644 --- a/tests/standalone_2/io/network_policy_test.dart +++ b/tests/standalone_2/io/network_policy_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/non_utf8_directory_test.dart b/tests/standalone_2/io/non_utf8_directory_test.dart index 1c58f3f7ebc..380041e12c5 100644 --- a/tests/standalone_2/io/non_utf8_directory_test.dart +++ b/tests/standalone_2/io/non_utf8_directory_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; import 'dart:typed_data'; diff --git a/tests/standalone_2/io/non_utf8_file_test.dart b/tests/standalone_2/io/non_utf8_file_test.dart index 3bdafa1a0b9..21900c5e8e8 100644 --- a/tests/standalone_2/io/non_utf8_file_test.dart +++ b/tests/standalone_2/io/non_utf8_file_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; import 'dart:typed_data'; diff --git a/tests/standalone_2/io/non_utf8_link_test.dart b/tests/standalone_2/io/non_utf8_link_test.dart index aadd30a1184..33c6972e4b8 100644 --- a/tests/standalone_2/io/non_utf8_link_test.dart +++ b/tests/standalone_2/io/non_utf8_link_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/tests/standalone_2/io/non_utf8_output_test.dart b/tests/standalone_2/io/non_utf8_output_test.dart index 241d91bad78..10ffcecd815 100644 --- a/tests/standalone_2/io/non_utf8_output_test.dart +++ b/tests/standalone_2/io/non_utf8_output_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // This test emits non-UTF-8 formatted data. // It should have the test expectation: NonUtf8Output. diff --git a/tests/standalone_2/io/parent_test.dart b/tests/standalone_2/io/parent_test.dart index ab1117a9f7f..cc49664193d 100644 --- a/tests/standalone_2/io/parent_test.dart +++ b/tests/standalone_2/io/parent_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing file I/O. +// @dart = 2.9 + import 'dart:async'; import 'dart:collection'; import 'dart:convert'; diff --git a/tests/standalone_2/io/pipe_server_test.dart b/tests/standalone_2/io/pipe_server_test.dart index a77eeeba5da..56253d5a2a4 100644 --- a/tests/standalone_2/io/pipe_server_test.dart +++ b/tests/standalone_2/io/pipe_server_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // diff --git a/tests/standalone_2/io/platform_os_version_test.dart b/tests/standalone_2/io/platform_os_version_test.dart index fff7335a869..dde94c4958f 100644 --- a/tests/standalone_2/io/platform_os_version_test.dart +++ b/tests/standalone_2/io/platform_os_version_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/platform_resolved_executable_test.dart b/tests/standalone_2/io/platform_resolved_executable_test.dart index a1db3667be9..8a6a68feb66 100644 --- a/tests/standalone_2/io/platform_resolved_executable_test.dart +++ b/tests/standalone_2/io/platform_resolved_executable_test.dart @@ -4,6 +4,8 @@ // // Process test program to test process communication. +// @dart = 2.9 + library PlatformExecutableTest; import "dart:io"; diff --git a/tests/standalone_2/io/platform_test.dart b/tests/standalone_2/io/platform_test.dart index a9a96f29efb..c91fdb51669 100644 --- a/tests/standalone_2/io/platform_test.dart +++ b/tests/standalone_2/io/platform_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/standalone_2/io/print_env.dart b/tests/standalone_2/io/print_env.dart index 4337451f1c3..d9c9f7e1eaf 100644 --- a/tests/standalone_2/io/print_env.dart +++ b/tests/standalone_2/io/print_env.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; main(List arguments) { diff --git a/tests/standalone_2/io/print_sync_script.dart b/tests/standalone_2/io/print_sync_script.dart index ea42729ba33..fa371fb9cfd 100644 --- a/tests/standalone_2/io/print_sync_script.dart +++ b/tests/standalone_2/io/print_sync_script.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; String get bigString { diff --git a/tests/standalone_2/io/print_sync_test.dart b/tests/standalone_2/io/print_sync_test.dart index bf8865f4a01..50288719bfb 100644 --- a/tests/standalone_2/io/print_sync_test.dart +++ b/tests/standalone_2/io/print_sync_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=print_sync_script.dart import 'dart:io'; diff --git a/tests/standalone_2/io/process_broken_pipe_test.dart b/tests/standalone_2/io/process_broken_pipe_test.dart index 7791fd462c5..a4cc238ce93 100644 --- a/tests/standalone_2/io/process_broken_pipe_test.dart +++ b/tests/standalone_2/io/process_broken_pipe_test.dart @@ -4,6 +4,8 @@ // // Process test program to test closed stdin from child process. +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:io"; import "dart:isolate"; diff --git a/tests/standalone_2/io/process_check_arguments_script.dart b/tests/standalone_2/io/process_check_arguments_script.dart index 4c19479fc71..a2c7cb75897 100644 --- a/tests/standalone_2/io/process_check_arguments_script.dart +++ b/tests/standalone_2/io/process_check_arguments_script.dart @@ -4,6 +4,8 @@ // // Utility script to check that arguments are correctly passed from // one dart process to another using the dart:io process interface. + +// @dart = 2.9 import "dart:io"; import "dart:math"; diff --git a/tests/standalone_2/io/process_check_arguments_test.dart b/tests/standalone_2/io/process_check_arguments_test.dart index 366223d5594..74f3cac6c3a 100644 --- a/tests/standalone_2/io/process_check_arguments_test.dart +++ b/tests/standalone_2/io/process_check_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:io"; import "process_test_util.dart"; diff --git a/tests/standalone_2/io/process_detached_test.dart b/tests/standalone_2/io/process_detached_test.dart index 28b4d0cf15f..e73cfc211b8 100644 --- a/tests/standalone_2/io/process_detached_test.dart +++ b/tests/standalone_2/io/process_detached_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=process_detached_script.dart // Process test program to test detached processes. diff --git a/tests/standalone_2/io/process_echo_util.dart b/tests/standalone_2/io/process_echo_util.dart index 1c6d17e8c06..9cf2e520a84 100644 --- a/tests/standalone_2/io/process_echo_util.dart +++ b/tests/standalone_2/io/process_echo_util.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; void main(List arguments) { diff --git a/tests/standalone_2/io/process_environment_test.dart b/tests/standalone_2/io/process_environment_test.dart index 92bdc58d8ab..962d6866c7d 100644 --- a/tests/standalone_2/io/process_environment_test.dart +++ b/tests/standalone_2/io/process_environment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/process_exit_test.dart b/tests/standalone_2/io/process_exit_test.dart index bba1869fc28..f25bf53c18f 100644 --- a/tests/standalone_2/io/process_exit_test.dart +++ b/tests/standalone_2/io/process_exit_test.dart @@ -4,6 +4,8 @@ // // Process test program to test process communication. +// @dart = 2.9 + library ProcessExitTest; import "dart:io"; diff --git a/tests/standalone_2/io/process_info_test.dart b/tests/standalone_2/io/process_info_test.dart index 72f2260a223..c6e6b784caa 100644 --- a/tests/standalone_2/io/process_info_test.dart +++ b/tests/standalone_2/io/process_info_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/process_inherit_stdio_script.dart b/tests/standalone_2/io/process_inherit_stdio_script.dart index c771dab344d..3edd968eb5f 100644 --- a/tests/standalone_2/io/process_inherit_stdio_script.dart +++ b/tests/standalone_2/io/process_inherit_stdio_script.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; import 'dart:isolate'; diff --git a/tests/standalone_2/io/process_inherit_stdio_test.dart b/tests/standalone_2/io/process_inherit_stdio_test.dart index 964440fd440..1d48171b757 100644 --- a/tests/standalone_2/io/process_inherit_stdio_test.dart +++ b/tests/standalone_2/io/process_inherit_stdio_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=process_inherit_stdio_script.dart // Process test program to test 'inherit stdio' processes. diff --git a/tests/standalone_2/io/process_kill_test.dart b/tests/standalone_2/io/process_kill_test.dart index 9816d41115a..c487421629c 100644 --- a/tests/standalone_2/io/process_kill_test.dart +++ b/tests/standalone_2/io/process_kill_test.dart @@ -4,6 +4,8 @@ // // Process test program to test process communication. +// @dart = 2.9 + library ProcessKillTest; import 'dart:io'; diff --git a/tests/standalone_2/io/process_non_ascii_test.dart b/tests/standalone_2/io/process_non_ascii_test.dart index 8944edaead3..60b826bfd38 100644 --- a/tests/standalone_2/io/process_non_ascii_test.dart +++ b/tests/standalone_2/io/process_non_ascii_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/process_path_environment_test.dart b/tests/standalone_2/io/process_path_environment_test.dart index ba9e805334c..e9076c9f27f 100644 --- a/tests/standalone_2/io/process_path_environment_test.dart +++ b/tests/standalone_2/io/process_path_environment_test.dart @@ -5,6 +5,8 @@ // Test that the executable is looked up on the user's PATH when spawning a // process and environment variables are passed in. +// @dart = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/process_path_test.dart b/tests/standalone_2/io/process_path_test.dart index 59fd4889c4e..12261f49286 100644 --- a/tests/standalone_2/io/process_path_test.dart +++ b/tests/standalone_2/io/process_path_test.dart @@ -5,6 +5,8 @@ // Test that the executable is looked up on the user's PATH when spawning a // process. +// @dart = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/process_pid_test.dart b/tests/standalone_2/io/process_pid_test.dart index a9654215a86..7bb3b8dfbd0 100644 --- a/tests/standalone_2/io/process_pid_test.dart +++ b/tests/standalone_2/io/process_pid_test.dart @@ -4,6 +4,8 @@ // // Process test program to test process communication. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/process_run_output_test.dart b/tests/standalone_2/io/process_run_output_test.dart index 08d9bda9485..53186422c16 100644 --- a/tests/standalone_2/io/process_run_output_test.dart +++ b/tests/standalone_2/io/process_run_output_test.dart @@ -5,6 +5,8 @@ // Test script for testing that output is handled correctly for // non-interactive processes started with Process.run. +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:convert"; import "dart:io"; diff --git a/tests/standalone_2/io/process_run_test.dart b/tests/standalone_2/io/process_run_test.dart index a4a470a45ec..5dfe13cfa22 100644 --- a/tests/standalone_2/io/process_run_test.dart +++ b/tests/standalone_2/io/process_run_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/process_segfault_test.dart b/tests/standalone_2/io/process_segfault_test.dart index b7cfa72d5df..9214b197d73 100644 --- a/tests/standalone_2/io/process_segfault_test.dart +++ b/tests/standalone_2/io/process_segfault_test.dart @@ -4,6 +4,8 @@ // // Process test program to test process communication. +// @dart = 2.9 + library ProcessSegfaultTest; import "dart:io"; diff --git a/tests/standalone_2/io/process_set_exit_code_script.dart b/tests/standalone_2/io/process_set_exit_code_script.dart index 38a8075367e..492527c00b5 100644 --- a/tests/standalone_2/io/process_set_exit_code_script.dart +++ b/tests/standalone_2/io/process_set_exit_code_script.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; main() { diff --git a/tests/standalone_2/io/process_set_exit_code_test.dart b/tests/standalone_2/io/process_set_exit_code_test.dart index b67d56cd90d..f09865cbf1b 100644 --- a/tests/standalone_2/io/process_set_exit_code_test.dart +++ b/tests/standalone_2/io/process_set_exit_code_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=process_set_exit_code_script.dart // Process test program to test process communication. diff --git a/tests/standalone_2/io/process_shell_test.dart b/tests/standalone_2/io/process_shell_test.dart index e561315b5e3..2107601c422 100644 --- a/tests/standalone_2/io/process_shell_test.dart +++ b/tests/standalone_2/io/process_shell_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=process_echo_util.dart import "dart:async"; diff --git a/tests/standalone_2/io/process_start_exception_test.dart b/tests/standalone_2/io/process_start_exception_test.dart index 96d150ecedf..fd0a849deff 100644 --- a/tests/standalone_2/io/process_start_exception_test.dart +++ b/tests/standalone_2/io/process_start_exception_test.dart @@ -4,6 +4,8 @@ // // Process test program to errors during startup of the process. +// @dart = 2.9 + import 'dart:async'; import 'dart:io'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/process_std_io_script.dart b/tests/standalone_2/io/process_std_io_script.dart index 8aee620a52d..458a1053da8 100644 --- a/tests/standalone_2/io/process_std_io_script.dart +++ b/tests/standalone_2/io/process_std_io_script.dart @@ -4,6 +4,8 @@ // // Utility script to echo stdin to stdout or stderr or both. +// @dart = 2.9 + import "dart:io"; main(List arguments) { diff --git a/tests/standalone_2/io/process_std_io_script2.dart b/tests/standalone_2/io/process_std_io_script2.dart index 9dc4674b630..480d7a44e4c 100644 --- a/tests/standalone_2/io/process_std_io_script2.dart +++ b/tests/standalone_2/io/process_std_io_script2.dart @@ -5,6 +5,8 @@ // Utility script to echo strings in various formats to stdout or // stderr. +// @dart = 2.9 + import "dart:convert"; import "dart:io"; diff --git a/tests/standalone_2/io/process_stderr_test.dart b/tests/standalone_2/io/process_stderr_test.dart index 0492fe2f80a..07ca9c5adfd 100644 --- a/tests/standalone_2/io/process_stderr_test.dart +++ b/tests/standalone_2/io/process_stderr_test.dart @@ -9,6 +9,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/process_stdin_transform_unsubscribe_script.dart b/tests/standalone_2/io/process_stdin_transform_unsubscribe_script.dart index 6bb369531c9..978372bd533 100644 --- a/tests/standalone_2/io/process_stdin_transform_unsubscribe_script.dart +++ b/tests/standalone_2/io/process_stdin_transform_unsubscribe_script.dart @@ -4,6 +4,8 @@ // // Utility script to echo stdin to stdout or stderr or both. +// @dart = 2.9 + import "dart:convert"; import "dart:io"; diff --git a/tests/standalone_2/io/process_stdin_transform_unsubscribe_test.dart b/tests/standalone_2/io/process_stdin_transform_unsubscribe_test.dart index fa36a064612..4efc963ac1f 100644 --- a/tests/standalone_2/io/process_stdin_transform_unsubscribe_test.dart +++ b/tests/standalone_2/io/process_stdin_transform_unsubscribe_test.dart @@ -9,6 +9,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/process_stdout_test.dart b/tests/standalone_2/io/process_stdout_test.dart index 7d3bc7fe166..a7a19d42999 100644 --- a/tests/standalone_2/io/process_stdout_test.dart +++ b/tests/standalone_2/io/process_stdout_test.dart @@ -9,6 +9,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/process_sync_script.dart b/tests/standalone_2/io/process_sync_script.dart index e89d1a95d91..7014e3ae3c5 100644 --- a/tests/standalone_2/io/process_sync_script.dart +++ b/tests/standalone_2/io/process_sync_script.dart @@ -4,6 +4,8 @@ // // Utility script to generate some output on stdout and stderr. +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "dart:math"; diff --git a/tests/standalone_2/io/process_sync_test.dart b/tests/standalone_2/io/process_sync_test.dart index 90e2335c9a1..0361e3f1afe 100644 --- a/tests/standalone_2/io/process_sync_test.dart +++ b/tests/standalone_2/io/process_sync_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=process_sync_script.dart import "dart:io"; diff --git a/tests/standalone_2/io/process_test_util.dart b/tests/standalone_2/io/process_test_util.dart index 3def7a2a92c..2d727fc80db 100644 --- a/tests/standalone_2/io/process_test_util.dart +++ b/tests/standalone_2/io/process_test_util.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library process_test_util; import "dart:io"; diff --git a/tests/standalone_2/io/process_working_directory_test.dart b/tests/standalone_2/io/process_working_directory_test.dart index 2643fc0da71..983938f0c9f 100644 --- a/tests/standalone_2/io/process_working_directory_test.dart +++ b/tests/standalone_2/io/process_working_directory_test.dart @@ -4,6 +4,8 @@ // // Process working directory test. +// @dart = 2.9 + library ProcessWorkingDirectoryTest; import "dart:io"; diff --git a/tests/standalone_2/io/raw_datagram_read_all_test.dart b/tests/standalone_2/io/raw_datagram_read_all_test.dart index 9d3b8efc154..d8f9fabc7cf 100644 --- a/tests/standalone_2/io/raw_datagram_read_all_test.dart +++ b/tests/standalone_2/io/raw_datagram_read_all_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; import "dart:typed_data"; diff --git a/tests/standalone_2/io/raw_datagram_socket_test.dart b/tests/standalone_2/io/raw_datagram_socket_test.dart index 848861b8089..bd382a47131 100644 --- a/tests/standalone_2/io/raw_datagram_socket_test.dart +++ b/tests/standalone_2/io/raw_datagram_socket_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; import "dart:typed_data"; diff --git a/tests/standalone_2/io/raw_datagram_zero_length_test.dart b/tests/standalone_2/io/raw_datagram_zero_length_test.dart index 29936352cc1..989d8dfd256 100644 --- a/tests/standalone_2/io/raw_datagram_zero_length_test.dart +++ b/tests/standalone_2/io/raw_datagram_zero_length_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; import "dart:typed_data"; diff --git a/tests/standalone_2/io/raw_secure_server_closing_test.dart b/tests/standalone_2/io/raw_secure_server_closing_test.dart index 8ad7c100331..c96a2e92ba5 100644 --- a/tests/standalone_2/io/raw_secure_server_closing_test.dart +++ b/tests/standalone_2/io/raw_secure_server_closing_test.dart @@ -10,6 +10,8 @@ // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/raw_secure_server_socket_test.dart b/tests/standalone_2/io/raw_secure_server_socket_test.dart index 51afb74af2f..7c1c749f945 100644 --- a/tests/standalone_2/io/raw_secure_server_socket_test.dart +++ b/tests/standalone_2/io/raw_secure_server_socket_test.dart @@ -12,6 +12,8 @@ // OtherResources=certificates/untrusted_server_chain.pem // OtherResources=certificates/untrusted_server_key.pem +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/raw_secure_socket_pause_test.dart b/tests/standalone_2/io/raw_secure_socket_pause_test.dart index 34cbfe4ad12..9f91fcba6b7 100644 --- a/tests/standalone_2/io/raw_secure_socket_pause_test.dart +++ b/tests/standalone_2/io/raw_secure_socket_pause_test.dart @@ -10,6 +10,8 @@ // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "dart:isolate"; diff --git a/tests/standalone_2/io/raw_secure_socket_test.dart b/tests/standalone_2/io/raw_secure_socket_test.dart index c2ab9fc819d..8a95a873ad5 100644 --- a/tests/standalone_2/io/raw_secure_socket_test.dart +++ b/tests/standalone_2/io/raw_secure_socket_test.dart @@ -10,6 +10,8 @@ // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "dart:isolate"; diff --git a/tests/standalone_2/io/raw_server_socket_cancel_test.dart b/tests/standalone_2/io/raw_server_socket_cancel_test.dart index ccdb93b64a3..ff2f82ba359 100644 --- a/tests/standalone_2/io/raw_server_socket_cancel_test.dart +++ b/tests/standalone_2/io/raw_server_socket_cancel_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/raw_socket_cross_process_test.dart b/tests/standalone_2/io/raw_socket_cross_process_test.dart index 4ad4d04e489..34684edf212 100644 --- a/tests/standalone_2/io/raw_socket_cross_process_test.dart +++ b/tests/standalone_2/io/raw_socket_cross_process_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import 'dart:async'; import 'dart:io'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/raw_socket_test.dart b/tests/standalone_2/io/raw_socket_test.dart index 385b7209f3a..97a7d03b7f0 100644 --- a/tests/standalone_2/io/raw_socket_test.dart +++ b/tests/standalone_2/io/raw_socket_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/raw_socket_typed_data_test.dart b/tests/standalone_2/io/raw_socket_typed_data_test.dart index df31f7356e8..7d5b715e93e 100644 --- a/tests/standalone_2/io/raw_socket_typed_data_test.dart +++ b/tests/standalone_2/io/raw_socket_typed_data_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "dart:typed_data"; diff --git a/tests/standalone_2/io/raw_socket_write_destroy_test.dart b/tests/standalone_2/io/raw_socket_write_destroy_test.dart index 557163ea09f..96810dad621 100644 --- a/tests/standalone_2/io/raw_socket_write_destroy_test.dart +++ b/tests/standalone_2/io/raw_socket_write_destroy_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "dart:isolate"; diff --git a/tests/standalone_2/io/raw_synchronous_socket_test.dart b/tests/standalone_2/io/raw_synchronous_socket_test.dart index 61eaab39e2e..1aa56d8eebd 100644 --- a/tests/standalone_2/io/raw_synchronous_socket_test.dart +++ b/tests/standalone_2/io/raw_synchronous_socket_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/standalone_2/io/read_into_const_list_test.dart b/tests/standalone_2/io/read_into_const_list_test.dart index 14f1d8f1d3d..715031bf5cb 100644 --- a/tests/standalone_2/io/read_into_const_list_test.dart +++ b/tests/standalone_2/io/read_into_const_list_test.dart @@ -4,6 +4,8 @@ // // OtherResources=readline_test1.dat +// @dart = 2.9 + // Regression test for missing immutability check in the ListSet // methods in the API. This allowed overwriting const Lists. diff --git a/tests/standalone_2/io/regress_10026_test.dart b/tests/standalone_2/io/regress_10026_test.dart index 3a527a3d30c..c1590614b0a 100644 --- a/tests/standalone_2/io/regress_10026_test.dart +++ b/tests/standalone_2/io/regress_10026_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/tests/standalone_2/io/regress_21160_test.dart b/tests/standalone_2/io/regress_21160_test.dart index 94d5f6cd5a9..f32433ca129 100644 --- a/tests/standalone_2/io/regress_21160_test.dart +++ b/tests/standalone_2/io/regress_21160_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=certificates/server_chain.pem // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem diff --git a/tests/standalone_2/io/regress_21987_test.dart b/tests/standalone_2/io/regress_21987_test.dart index 7cc6308f56e..932937b5254 100644 --- a/tests/standalone_2/io/regress_21987_test.dart +++ b/tests/standalone_2/io/regress_21987_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/regress_7191_script.dart b/tests/standalone_2/io/regress_7191_script.dart index 4387bb8fb80..b0542c2d67b 100644 --- a/tests/standalone_2/io/regress_7191_script.dart +++ b/tests/standalone_2/io/regress_7191_script.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'dart:isolate'; diff --git a/tests/standalone_2/io/regress_7191_test.dart b/tests/standalone_2/io/regress_7191_test.dart index 8477956ac58..8c40f361dcc 100644 --- a/tests/standalone_2/io/regress_7191_test.dart +++ b/tests/standalone_2/io/regress_7191_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=regress_7191_script.dart // Regression test for http://dartbug.com/7191. diff --git a/tests/standalone_2/io/regress_7679_test.dart b/tests/standalone_2/io/regress_7679_test.dart index 720e607e3d8..47008cdf302 100644 --- a/tests/standalone_2/io/regress_7679_test.dart +++ b/tests/standalone_2/io/regress_7679_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:io'; diff --git a/tests/standalone_2/io/regress_8828_test.dart b/tests/standalone_2/io/regress_8828_test.dart index 22225c8e581..a4a23ddcbf2 100644 --- a/tests/standalone_2/io/regress_8828_test.dart +++ b/tests/standalone_2/io/regress_8828_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions= // VMOptions=--short_socket_read // VMOptions=--short_socket_write diff --git a/tests/standalone_2/io/regress_9194_test.dart b/tests/standalone_2/io/regress_9194_test.dart index c6ca92f9496..2423347867c 100644 --- a/tests/standalone_2/io/regress_9194_test.dart +++ b/tests/standalone_2/io/regress_9194_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'dart:io'; diff --git a/tests/standalone_2/io/regress_flutter_57125_test.dart b/tests/standalone_2/io/regress_flutter_57125_test.dart index 1e71b831e9d..ef1f5c704f3 100644 --- a/tests/standalone_2/io/regress_flutter_57125_test.dart +++ b/tests/standalone_2/io/regress_flutter_57125_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// Tests that an exception on a non-socket _NativeSocket, e.g. a pipe to /// another process, is properly thrown as a SocketException. This test confirms /// the absence of a regression during the dart:io null safety migration where diff --git a/tests/standalone_2/io/resolve_symbolic_links_test.dart b/tests/standalone_2/io/resolve_symbolic_links_test.dart index 57561db453d..58ddf69d064 100644 --- a/tests/standalone_2/io/resolve_symbolic_links_test.dart +++ b/tests/standalone_2/io/resolve_symbolic_links_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing FileSystemEntity.resolveSymbolicLinks +// @dart = 2.9 + import "package:expect/expect.dart"; import "package:path/path.dart"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/secure_bad_certificate_test.dart b/tests/standalone_2/io/secure_bad_certificate_test.dart index e00231356ae..4fec059df97 100644 --- a/tests/standalone_2/io/secure_bad_certificate_test.dart +++ b/tests/standalone_2/io/secure_bad_certificate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=certificates/server_chain.pem // OtherResources=certificates/server_key.pem // OtherResources=certificates/bad_server_chain.pem diff --git a/tests/standalone_2/io/secure_builtin_roots_test.dart b/tests/standalone_2/io/secure_builtin_roots_test.dart index 2b1ddee8e3d..858fcde58af 100644 --- a/tests/standalone_2/io/secure_builtin_roots_test.dart +++ b/tests/standalone_2/io/secure_builtin_roots_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "dart:async"; diff --git a/tests/standalone_2/io/secure_client_raw_server_test.dart b/tests/standalone_2/io/secure_client_raw_server_test.dart index 6f3a6bf085b..1ee4cb617d2 100644 --- a/tests/standalone_2/io/secure_client_raw_server_test.dart +++ b/tests/standalone_2/io/secure_client_raw_server_test.dart @@ -10,6 +10,8 @@ // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/secure_client_server_test.dart b/tests/standalone_2/io/secure_client_server_test.dart index c8cb48ed8da..3190c98ad57 100644 --- a/tests/standalone_2/io/secure_client_server_test.dart +++ b/tests/standalone_2/io/secure_client_server_test.dart @@ -10,6 +10,8 @@ // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/secure_multiple_client_server_test.dart b/tests/standalone_2/io/secure_multiple_client_server_test.dart index 1f53af8af54..d2b6f6be347 100644 --- a/tests/standalone_2/io/secure_multiple_client_server_test.dart +++ b/tests/standalone_2/io/secure_multiple_client_server_test.dart @@ -10,6 +10,8 @@ // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/secure_server_client_certificate_test.dart b/tests/standalone_2/io/secure_server_client_certificate_test.dart index 7c7da85e404..6b1b0e0b3d8 100644 --- a/tests/standalone_2/io/secure_server_client_certificate_test.dart +++ b/tests/standalone_2/io/secure_server_client_certificate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=certificates/server_chain.pem // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem diff --git a/tests/standalone_2/io/secure_server_closing_test.dart b/tests/standalone_2/io/secure_server_closing_test.dart index 7068d0e9d5c..82440faece9 100644 --- a/tests/standalone_2/io/secure_server_closing_test.dart +++ b/tests/standalone_2/io/secure_server_closing_test.dart @@ -10,6 +10,8 @@ // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/secure_server_socket_test.dart b/tests/standalone_2/io/secure_server_socket_test.dart index 933cc16bdb8..010b8ac6706 100644 --- a/tests/standalone_2/io/secure_server_socket_test.dart +++ b/tests/standalone_2/io/secure_server_socket_test.dart @@ -10,6 +10,8 @@ // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/secure_session_resume_test.dart b/tests/standalone_2/io/secure_session_resume_test.dart index 8f7ae8a4586..fee24daaa7d 100644 --- a/tests/standalone_2/io/secure_session_resume_test.dart +++ b/tests/standalone_2/io/secure_session_resume_test.dart @@ -19,6 +19,8 @@ // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem +// @dart = 2.9 + import "dart:async"; import "dart:io"; import "dart:isolate"; diff --git a/tests/standalone_2/io/secure_socket_alpn_test.dart b/tests/standalone_2/io/secure_socket_alpn_test.dart index 5fbc814bac9..b6321bb2ad8 100644 --- a/tests/standalone_2/io/secure_socket_alpn_test.dart +++ b/tests/standalone_2/io/secure_socket_alpn_test.dart @@ -6,6 +6,8 @@ // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem +// @dart = 2.9 + import 'dart:io'; import 'dart:convert'; diff --git a/tests/standalone_2/io/secure_socket_argument_test.dart b/tests/standalone_2/io/secure_socket_argument_test.dart index 676801e3f28..f8871097f6f 100644 --- a/tests/standalone_2/io/secure_socket_argument_test.dart +++ b/tests/standalone_2/io/secure_socket_argument_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:io"; diff --git a/tests/standalone_2/io/secure_socket_renegotiate_client.dart b/tests/standalone_2/io/secure_socket_renegotiate_client.dart index 9986c3e317f..c8ae0bbeac7 100644 --- a/tests/standalone_2/io/secure_socket_renegotiate_client.dart +++ b/tests/standalone_2/io/secure_socket_renegotiate_client.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Client for secure_socket_renegotiate_test, that runs in a subprocess. // The test verifies that client certificates work, if the client and server // are in separate processes, and that connection renegotiation can request diff --git a/tests/standalone_2/io/secure_socket_renegotiate_test.dart b/tests/standalone_2/io/secure_socket_renegotiate_test.dart index 5ef9edfe442..36cb3a2b50f 100644 --- a/tests/standalone_2/io/secure_socket_renegotiate_test.dart +++ b/tests/standalone_2/io/secure_socket_renegotiate_test.dart @@ -6,6 +6,8 @@ // OtherResources=certificates/server_key.pem // OtherResources=secure_socket_renegotiate_client.dart +// @dart = 2.9 + // This test verifies that client certificates work, if the client and server // are in separate processes, and that connection renegotiation works, and // can request a client certificate to be sent. diff --git a/tests/standalone_2/io/secure_socket_test.dart b/tests/standalone_2/io/secure_socket_test.dart index 442fa192cdc..284551840cc 100644 --- a/tests/standalone_2/io/secure_socket_test.dart +++ b/tests/standalone_2/io/secure_socket_test.dart @@ -13,6 +13,8 @@ // OtherResources=certificates/server_key.p12 // OtherResources=certificates/trusted_certs.p12 +// @dart = 2.9 + import "package:async_helper/async_helper.dart"; import "package:expect/expect.dart"; import "package:path/path.dart"; diff --git a/tests/standalone_2/io/secure_unauthorized_client.dart b/tests/standalone_2/io/secure_unauthorized_client.dart index c830c9677c8..1199e928a20 100644 --- a/tests/standalone_2/io/secure_unauthorized_client.dart +++ b/tests/standalone_2/io/secure_unauthorized_client.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Client for secure_bad_certificate_test, that runs in a subprocess. // The test verifies that the client bad certificate callback works. diff --git a/tests/standalone_2/io/secure_unauthorized_test.dart b/tests/standalone_2/io/secure_unauthorized_test.dart index 2ea739b54f7..f61ffdcbc6f 100644 --- a/tests/standalone_2/io/secure_unauthorized_test.dart +++ b/tests/standalone_2/io/secure_unauthorized_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=certificates/untrusted_server_chain.pem // OtherResources=certificates/untrusted_server_key.pem // OtherResources=certificates/trusted_certs.pem diff --git a/tests/standalone_2/io/server_socket_close_listen_test.dart b/tests/standalone_2/io/server_socket_close_listen_test.dart index cfeb11aa24a..f9ffe231522 100644 --- a/tests/standalone_2/io/server_socket_close_listen_test.dart +++ b/tests/standalone_2/io/server_socket_close_listen_test.dart @@ -4,6 +4,8 @@ // // Tests socket exceptions. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/server_socket_exception_test.dart b/tests/standalone_2/io/server_socket_exception_test.dart index 16d1c34b288..e8b306b5bd5 100644 --- a/tests/standalone_2/io/server_socket_exception_test.dart +++ b/tests/standalone_2/io/server_socket_exception_test.dart @@ -4,6 +4,8 @@ // // Tests socket exceptions. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/server_socket_listen_close_test.dart b/tests/standalone_2/io/server_socket_listen_close_test.dart index 5a1fb71d266..4acb074a5e0 100644 --- a/tests/standalone_2/io/server_socket_listen_close_test.dart +++ b/tests/standalone_2/io/server_socket_listen_close_test.dart @@ -4,6 +4,8 @@ // // Tests socket exceptions. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/shared_socket_test.dart b/tests/standalone_2/io/shared_socket_test.dart index 67be96480dc..e4248bdb9a6 100644 --- a/tests/standalone_2/io/shared_socket_test.dart +++ b/tests/standalone_2/io/shared_socket_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/standalone_2/io/signal_test_script.dart b/tests/standalone_2/io/signal_test_script.dart index 772c2afc424..add04da7a69 100644 --- a/tests/standalone_2/io/signal_test_script.dart +++ b/tests/standalone_2/io/signal_test_script.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "dart:async"; diff --git a/tests/standalone_2/io/signals_exception_test.dart b/tests/standalone_2/io/signals_exception_test.dart index 28f552e3aff..09c6a0263de 100644 --- a/tests/standalone_2/io/signals_exception_test.dart +++ b/tests/standalone_2/io/signals_exception_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/signals_test.dart b/tests/standalone_2/io/signals_test.dart index 2c1620e0081..36943b42ead 100644 --- a/tests/standalone_2/io/signals_test.dart +++ b/tests/standalone_2/io/signals_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=signal_test_script.dart // OtherResources=signals_test_script.dart diff --git a/tests/standalone_2/io/signals_test_script.dart b/tests/standalone_2/io/signals_test_script.dart index b5b521006df..e15cf12fb37 100644 --- a/tests/standalone_2/io/signals_test_script.dart +++ b/tests/standalone_2/io/signals_test_script.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; void main(args) { diff --git a/tests/standalone_2/io/sleep_test.dart b/tests/standalone_2/io/sleep_test.dart index ef5d20c61cb..03a186d0104 100644 --- a/tests/standalone_2/io/sleep_test.dart +++ b/tests/standalone_2/io/sleep_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'package:expect/expect.dart'; diff --git a/tests/standalone_2/io/snapshot_fail_script.dart b/tests/standalone_2/io/snapshot_fail_script.dart index 86099d89d42..2fd8809ea45 100644 --- a/tests/standalone_2/io/snapshot_fail_script.dart +++ b/tests/standalone_2/io/snapshot_fail_script.dart @@ -2,5 +2,7 @@ // 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 = 2.9 + main() { print("Oops!"); diff --git a/tests/standalone_2/io/snapshot_fail_test.dart b/tests/standalone_2/io/snapshot_fail_test.dart index ca4a6d0d80a..47595ff99c3 100644 --- a/tests/standalone_2/io/snapshot_fail_test.dart +++ b/tests/standalone_2/io/snapshot_fail_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Dart test making sure we don't create an empty snapshot file when there // is an error in the script. diff --git a/tests/standalone_2/io/socket_arguments_test.dart b/tests/standalone_2/io/socket_arguments_test.dart index 251adc6fefb..bf30a75bc2f 100644 --- a/tests/standalone_2/io/socket_arguments_test.dart +++ b/tests/standalone_2/io/socket_arguments_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_bind_test.dart b/tests/standalone_2/io/socket_bind_test.dart index 0cc540e0df9..33288307728 100644 --- a/tests/standalone_2/io/socket_bind_test.dart +++ b/tests/standalone_2/io/socket_bind_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/socket_cancel_connect_test.dart b/tests/standalone_2/io/socket_cancel_connect_test.dart index 7a2e112dea0..aecacdd7022 100644 --- a/tests/standalone_2/io/socket_cancel_connect_test.dart +++ b/tests/standalone_2/io/socket_cancel_connect_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_close_test.dart b/tests/standalone_2/io/socket_close_test.dart index 65689237c49..16a285a83fe 100644 --- a/tests/standalone_2/io/socket_close_test.dart +++ b/tests/standalone_2/io/socket_close_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // diff --git a/tests/standalone_2/io/socket_connect_consume_close_test.dart b/tests/standalone_2/io/socket_connect_consume_close_test.dart index 20a078e109e..956353abe1b 100644 --- a/tests/standalone_2/io/socket_connect_consume_close_test.dart +++ b/tests/standalone_2/io/socket_connect_consume_close_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_connect_consume_write_close_test.dart b/tests/standalone_2/io/socket_connect_consume_write_close_test.dart index 3dc0ab5272f..28a253bad30 100644 --- a/tests/standalone_2/io/socket_connect_consume_write_close_test.dart +++ b/tests/standalone_2/io/socket_connect_consume_write_close_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_connect_immediate_destory_test.dart b/tests/standalone_2/io/socket_connect_immediate_destory_test.dart index 955f3733928..611eaf8e83e 100644 --- a/tests/standalone_2/io/socket_connect_immediate_destory_test.dart +++ b/tests/standalone_2/io/socket_connect_immediate_destory_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_connect_stream_close_test.dart b/tests/standalone_2/io/socket_connect_stream_close_test.dart index 6c9fcc208ad..9ca3dfcd44a 100644 --- a/tests/standalone_2/io/socket_connect_stream_close_test.dart +++ b/tests/standalone_2/io/socket_connect_stream_close_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_connect_stream_data_close_cancel_test.dart b/tests/standalone_2/io/socket_connect_stream_data_close_cancel_test.dart index fa921d7bc63..833a223b3bc 100644 --- a/tests/standalone_2/io/socket_connect_stream_data_close_cancel_test.dart +++ b/tests/standalone_2/io/socket_connect_stream_data_close_cancel_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_connect_stream_data_close_test.dart b/tests/standalone_2/io/socket_connect_stream_data_close_test.dart index ddce584ddfc..34ade735c52 100644 --- a/tests/standalone_2/io/socket_connect_stream_data_close_test.dart +++ b/tests/standalone_2/io/socket_connect_stream_data_close_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_connect_timeout_test.dart b/tests/standalone_2/io/socket_connect_timeout_test.dart index d507a2ae74d..4f07d242c73 100644 --- a/tests/standalone_2/io/socket_connect_timeout_test.dart +++ b/tests/standalone_2/io/socket_connect_timeout_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_cross_process_test.dart b/tests/standalone_2/io/socket_cross_process_test.dart index 295f21615b6..e2355dc98df 100644 --- a/tests/standalone_2/io/socket_cross_process_test.dart +++ b/tests/standalone_2/io/socket_cross_process_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import "package:expect/expect.dart"; import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/socket_finalizer_test.dart b/tests/standalone_2/io/socket_finalizer_test.dart index e973a382f29..a0cf8946bcf 100644 --- a/tests/standalone_2/io/socket_finalizer_test.dart +++ b/tests/standalone_2/io/socket_finalizer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // diff --git a/tests/standalone_2/io/socket_from_raw_path_test.dart b/tests/standalone_2/io/socket_from_raw_path_test.dart index 794f075e1e7..1102a3c4ff2 100644 --- a/tests/standalone_2/io/socket_from_raw_path_test.dart +++ b/tests/standalone_2/io/socket_from_raw_path_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/tests/standalone_2/io/socket_hang_test.dart b/tests/standalone_2/io/socket_hang_test.dart index 810d2a1dd35..96dedb4d2ee 100644 --- a/tests/standalone_2/io/socket_hang_test.dart +++ b/tests/standalone_2/io/socket_hang_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'package:expect/expect.dart'; diff --git a/tests/standalone_2/io/socket_info_ipv4_test.dart b/tests/standalone_2/io/socket_info_ipv4_test.dart index 64e373f4c31..5be32f894eb 100644 --- a/tests/standalone_2/io/socket_info_ipv4_test.dart +++ b/tests/standalone_2/io/socket_info_ipv4_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_info_ipv6_test.dart b/tests/standalone_2/io/socket_info_ipv6_test.dart index 7c15b7d2daa..90e176181fd 100644 --- a/tests/standalone_2/io/socket_info_ipv6_test.dart +++ b/tests/standalone_2/io/socket_info_ipv6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; import "dart:typed_data"; diff --git a/tests/standalone_2/io/socket_invalid_arguments_test.dart b/tests/standalone_2/io/socket_invalid_arguments_test.dart index 3e8b8896c4e..691538d2fe6 100644 --- a/tests/standalone_2/io/socket_invalid_arguments_test.dart +++ b/tests/standalone_2/io/socket_invalid_arguments_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/socket_invalid_bind_test.dart b/tests/standalone_2/io/socket_invalid_bind_test.dart index f19d5510673..efa9e658538 100644 --- a/tests/standalone_2/io/socket_invalid_bind_test.dart +++ b/tests/standalone_2/io/socket_invalid_bind_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_ipv6_test.dart b/tests/standalone_2/io/socket_ipv6_test.dart index 4fb14cd97fe..6366d0c0cd6 100644 --- a/tests/standalone_2/io/socket_ipv6_test.dart +++ b/tests/standalone_2/io/socket_ipv6_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'dart:async'; diff --git a/tests/standalone_2/io/socket_many_connections_test.dart b/tests/standalone_2/io/socket_many_connections_test.dart index fd20d343815..0f53fe27696 100644 --- a/tests/standalone_2/io/socket_many_connections_test.dart +++ b/tests/standalone_2/io/socket_many_connections_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // diff --git a/tests/standalone_2/io/socket_port_test.dart b/tests/standalone_2/io/socket_port_test.dart index e7a24ec1606..29c856a1c80 100644 --- a/tests/standalone_2/io/socket_port_test.dart +++ b/tests/standalone_2/io/socket_port_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_simple_bind_test.dart b/tests/standalone_2/io/socket_simple_bind_test.dart index 661815d5d0b..9a060941ae4 100644 --- a/tests/standalone_2/io/socket_simple_bind_test.dart +++ b/tests/standalone_2/io/socket_simple_bind_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_source_address_test.dart b/tests/standalone_2/io/socket_source_address_test.dart index 4fe8b39bf75..57efc5afbc9 100644 --- a/tests/standalone_2/io/socket_source_address_test.dart +++ b/tests/standalone_2/io/socket_source_address_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/socket_upgrade_to_secure_test.dart b/tests/standalone_2/io/socket_upgrade_to_secure_test.dart index 9209f34085b..9bcb3794332 100644 --- a/tests/standalone_2/io/socket_upgrade_to_secure_test.dart +++ b/tests/standalone_2/io/socket_upgrade_to_secure_test.dart @@ -10,6 +10,8 @@ // OtherResources=certificates/server_key.pem // OtherResources=certificates/trusted_certs.pem +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/stdin_has_terminal_test.dart b/tests/standalone_2/io/stdin_has_terminal_test.dart index 2b9cae1f8ae..675eeb90de1 100644 --- a/tests/standalone_2/io/stdin_has_terminal_test.dart +++ b/tests/standalone_2/io/stdin_has_terminal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/stdin_sync_test.dart b/tests/standalone_2/io/stdin_sync_test.dart index 612b8a5393e..9976e601670 100644 --- a/tests/standalone_2/io/stdin_sync_test.dart +++ b/tests/standalone_2/io/stdin_sync_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=stdin_sync_script.dart import "dart:convert"; diff --git a/tests/standalone_2/io/stdio_implicit_close_script.dart b/tests/standalone_2/io/stdio_implicit_close_script.dart index 2b09e2f53ed..cbb8519c8d0 100644 --- a/tests/standalone_2/io/stdio_implicit_close_script.dart +++ b/tests/standalone_2/io/stdio_implicit_close_script.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; void main(List arguments) { diff --git a/tests/standalone_2/io/stdio_implicit_close_test.dart b/tests/standalone_2/io/stdio_implicit_close_test.dart index f2834179985..787ee731b68 100644 --- a/tests/standalone_2/io/stdio_implicit_close_test.dart +++ b/tests/standalone_2/io/stdio_implicit_close_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=stdio_implicit_close_script.dart import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/stdio_nonblocking_script.dart b/tests/standalone_2/io/stdio_nonblocking_script.dart index fa608c4a9bc..a398a10b5f8 100644 --- a/tests/standalone_2/io/stdio_nonblocking_script.dart +++ b/tests/standalone_2/io/stdio_nonblocking_script.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/stdio_nonblocking_test.dart b/tests/standalone_2/io/stdio_nonblocking_test.dart index 22d65de047a..41f2117d1ce 100644 --- a/tests/standalone_2/io/stdio_nonblocking_test.dart +++ b/tests/standalone_2/io/stdio_nonblocking_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=stdio_nonblocking_script.dart import "dart:convert"; diff --git a/tests/standalone_2/io/stdio_socket_finalizer_test.dart b/tests/standalone_2/io/stdio_socket_finalizer_test.dart index e458c557c3c..b42a0233b42 100644 --- a/tests/standalone_2/io/stdio_socket_finalizer_test.dart +++ b/tests/standalone_2/io/stdio_socket_finalizer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // diff --git a/tests/standalone_2/io/stdout_close_test.dart b/tests/standalone_2/io/stdout_close_test.dart index 128c230725c..0e771a1932d 100644 --- a/tests/standalone_2/io/stdout_close_test.dart +++ b/tests/standalone_2/io/stdout_close_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:io"; diff --git a/tests/standalone_2/io/stdout_stderr_non_blocking_test.dart b/tests/standalone_2/io/stdout_stderr_non_blocking_test.dart index 2be201fb39e..5c546d7d54c 100644 --- a/tests/standalone_2/io/stdout_stderr_non_blocking_test.dart +++ b/tests/standalone_2/io/stdout_stderr_non_blocking_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:async"; import "dart:convert"; diff --git a/tests/standalone_2/io/stdout_stderr_terminal_test.dart b/tests/standalone_2/io/stdout_stderr_terminal_test.dart index 9de52d64773..c65b627e51a 100644 --- a/tests/standalone_2/io/stdout_stderr_terminal_test.dart +++ b/tests/standalone_2/io/stdout_stderr_terminal_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/io/stdout_stderr_test.dart b/tests/standalone_2/io/stdout_stderr_test.dart index a6a76576a1a..5d8f9b82856 100644 --- a/tests/standalone_2/io/stdout_stderr_test.dart +++ b/tests/standalone_2/io/stdout_stderr_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import "dart:async"; import "dart:convert"; diff --git a/tests/standalone_2/io/stream_pipe_test.dart b/tests/standalone_2/io/stream_pipe_test.dart index de11c0aa25a..a8e44545fc6 100644 --- a/tests/standalone_2/io/stream_pipe_test.dart +++ b/tests/standalone_2/io/stream_pipe_test.dart @@ -9,6 +9,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:io"; import "package:async_helper/async_helper.dart"; diff --git a/tests/standalone_2/io/system_encoding_test.dart b/tests/standalone_2/io/system_encoding_test.dart index 40a6bf617d4..5ec13adcb0d 100644 --- a/tests/standalone_2/io/system_encoding_test.dart +++ b/tests/standalone_2/io/system_encoding_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'dart:convert'; diff --git a/tests/standalone_2/io/test_extension.dart b/tests/standalone_2/io/test_extension.dart index beed87c69a3..2cf249ae883 100644 --- a/tests/standalone_2/io/test_extension.dart +++ b/tests/standalone_2/io/test_extension.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test_extension; import "dart-ext:test_extension"; diff --git a/tests/standalone_2/io/test_extension_fail_test.dart b/tests/standalone_2/io/test_extension_fail_test.dart index d6941e37681..e4f664c2efa 100644 --- a/tests/standalone_2/io/test_extension_fail_test.dart +++ b/tests/standalone_2/io/test_extension_fail_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing native extensions. +// @dart = 2.9 + // OtherResources=test_extension.dart // OtherResources=test_extension_fail_tester.dart // OtherResources=test_relative_extension.dart diff --git a/tests/standalone_2/io/test_extension_test.dart b/tests/standalone_2/io/test_extension_test.dart index e2a11e642a1..9e0babada8d 100644 --- a/tests/standalone_2/io/test_extension_test.dart +++ b/tests/standalone_2/io/test_extension_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing native extensions. +// @dart = 2.9 + // OtherResources=test_extension.dart // OtherResources=test_extension_tester.dart diff --git a/tests/standalone_2/io/test_relative_extension.dart b/tests/standalone_2/io/test_relative_extension.dart index 79f9489c1c3..85a2c3797f7 100644 --- a/tests/standalone_2/io/test_relative_extension.dart +++ b/tests/standalone_2/io/test_relative_extension.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test_extension; import "dart-ext:extension/test_extension"; diff --git a/tests/standalone_2/io/test_relative_extension_fail_tester.dart b/tests/standalone_2/io/test_relative_extension_fail_tester.dart index ad37cf09dd6..0afdd441f4a 100644 --- a/tests/standalone_2/io/test_relative_extension_fail_tester.dart +++ b/tests/standalone_2/io/test_relative_extension_fail_tester.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library test_extension_test; import "dart:async"; diff --git a/tests/standalone_2/io/test_utils.dart b/tests/standalone_2/io/test_utils.dart index fb3b3efecef..0a36318f374 100644 --- a/tests/standalone_2/io/test_utils.dart +++ b/tests/standalone_2/io/test_utils.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/io/testing_server.dart b/tests/standalone_2/io/testing_server.dart index 189939986c5..7ee3a104773 100644 --- a/tests/standalone_2/io/testing_server.dart +++ b/tests/standalone_2/io/testing_server.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + part of ServerTest; abstract class TestingServer { diff --git a/tests/standalone_2/io/unix_socket_test.dart b/tests/standalone_2/io/unix_socket_test.dart index 05f672cc93a..4e558c8d381 100644 --- a/tests/standalone_2/io/unix_socket_test.dart +++ b/tests/standalone_2/io/unix_socket_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; import 'dart:convert'; diff --git a/tests/standalone_2/io/unknown_host_test.dart b/tests/standalone_2/io/unknown_host_test.dart index 636bdfba030..4142e7db1f9 100644 --- a/tests/standalone_2/io/unknown_host_test.dart +++ b/tests/standalone_2/io/unknown_host_test.dart @@ -4,6 +4,8 @@ // // Tests socket exceptions. +// @dart = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/uri_platform_test.dart b/tests/standalone_2/io/uri_platform_test.dart index f2d26dc6dc5..bb2c6e970f6 100644 --- a/tests/standalone_2/io/uri_platform_test.dart +++ b/tests/standalone_2/io/uri_platform_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; import 'package:path/path.dart' as path; import "dart:io"; diff --git a/tests/standalone_2/io/wait_for_error_test.dart b/tests/standalone_2/io/wait_for_error_test.dart index a3b71c5a3b5..adcfd69b4f2 100644 --- a/tests/standalone_2/io/wait_for_error_test.dart +++ b/tests/standalone_2/io/wait_for_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:cli'; diff --git a/tests/standalone_2/io/wait_for_event_helper.dart b/tests/standalone_2/io/wait_for_event_helper.dart index e79ff13c608..9ce312a240f 100644 --- a/tests/standalone_2/io/wait_for_event_helper.dart +++ b/tests/standalone_2/io/wait_for_event_helper.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:mirrors'; import 'dart:cli'; diff --git a/tests/standalone_2/io/wait_for_event_isolate_test.dart b/tests/standalone_2/io/wait_for_event_isolate_test.dart index 15b970f571a..f3638ec1310 100644 --- a/tests/standalone_2/io/wait_for_event_isolate_test.dart +++ b/tests/standalone_2/io/wait_for_event_isolate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/standalone_2/io/wait_for_event_microtask_test.dart b/tests/standalone_2/io/wait_for_event_microtask_test.dart index b7072658d3d..39c430a3399 100644 --- a/tests/standalone_2/io/wait_for_event_microtask_test.dart +++ b/tests/standalone_2/io/wait_for_event_microtask_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:cli'; diff --git a/tests/standalone_2/io/wait_for_event_nested_microtask_test.dart b/tests/standalone_2/io/wait_for_event_nested_microtask_test.dart index cb11bf97d55..4ecd9cd3635 100644 --- a/tests/standalone_2/io/wait_for_event_nested_microtask_test.dart +++ b/tests/standalone_2/io/wait_for_event_nested_microtask_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:cli'; diff --git a/tests/standalone_2/io/wait_for_event_nested_timer_microtask_test.dart b/tests/standalone_2/io/wait_for_event_nested_timer_microtask_test.dart index 7fbac171645..3496dd3d2b0 100644 --- a/tests/standalone_2/io/wait_for_event_nested_timer_microtask_test.dart +++ b/tests/standalone_2/io/wait_for_event_nested_timer_microtask_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:cli'; diff --git a/tests/standalone_2/io/wait_for_event_nested_timer_test.dart b/tests/standalone_2/io/wait_for_event_nested_timer_test.dart index 6971952ec5d..b457906e3e3 100644 --- a/tests/standalone_2/io/wait_for_event_nested_timer_test.dart +++ b/tests/standalone_2/io/wait_for_event_nested_timer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:cli'; diff --git a/tests/standalone_2/io/wait_for_event_nested_waits_test.dart b/tests/standalone_2/io/wait_for_event_nested_waits_test.dart index 0701996d4e9..91ec2c3ecfe 100644 --- a/tests/standalone_2/io/wait_for_event_nested_waits_test.dart +++ b/tests/standalone_2/io/wait_for_event_nested_waits_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:cli'; diff --git a/tests/standalone_2/io/wait_for_event_timer_test.dart b/tests/standalone_2/io/wait_for_event_timer_test.dart index 5ce0a645bb9..336e4148323 100644 --- a/tests/standalone_2/io/wait_for_event_timer_test.dart +++ b/tests/standalone_2/io/wait_for_event_timer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:cli'; diff --git a/tests/standalone_2/io/wait_for_event_zone_caught_error_test.dart b/tests/standalone_2/io/wait_for_event_zone_caught_error_test.dart index 90484e033e5..8119ebe8595 100644 --- a/tests/standalone_2/io/wait_for_event_zone_caught_error_test.dart +++ b/tests/standalone_2/io/wait_for_event_zone_caught_error_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:cli'; diff --git a/tests/standalone_2/io/wait_for_event_zone_test.dart b/tests/standalone_2/io/wait_for_event_zone_test.dart index b6a7825ad7a..7e7224a12c2 100644 --- a/tests/standalone_2/io/wait_for_event_zone_test.dart +++ b/tests/standalone_2/io/wait_for_event_zone_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:cli'; diff --git a/tests/standalone_2/io/wait_for_exception_test.dart b/tests/standalone_2/io/wait_for_exception_test.dart index 6c83553cfb7..9167920ed17 100644 --- a/tests/standalone_2/io/wait_for_exception_test.dart +++ b/tests/standalone_2/io/wait_for_exception_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:cli'; diff --git a/tests/standalone_2/io/wait_for_test.dart b/tests/standalone_2/io/wait_for_test.dart index a8ac543d7e7..11ccee8dba3 100644 --- a/tests/standalone_2/io/wait_for_test.dart +++ b/tests/standalone_2/io/wait_for_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:mirrors'; import 'dart:cli'; diff --git a/tests/standalone_2/io/wait_for_timeout_test.dart b/tests/standalone_2/io/wait_for_timeout_test.dart index 2b239fa29f3..de1b2468397 100644 --- a/tests/standalone_2/io/wait_for_timeout_test.dart +++ b/tests/standalone_2/io/wait_for_timeout_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:cli'; diff --git a/tests/standalone_2/io/web_socket_compression_test.dart b/tests/standalone_2/io/web_socket_compression_test.dart index 7ea3baa2a1d..59310623366 100644 --- a/tests/standalone_2/io/web_socket_compression_test.dart +++ b/tests/standalone_2/io/web_socket_compression_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:convert"; import "dart:io"; diff --git a/tests/standalone_2/io/web_socket_pipe_test.dart b/tests/standalone_2/io/web_socket_pipe_test.dart index 7705c34c187..9805b702b4f 100644 --- a/tests/standalone_2/io/web_socket_pipe_test.dart +++ b/tests/standalone_2/io/web_socket_pipe_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/web_socket_protocol_test.dart b/tests/standalone_2/io/web_socket_protocol_test.dart index edbb1b211e6..a7fe64d7de1 100644 --- a/tests/standalone_2/io/web_socket_protocol_test.dart +++ b/tests/standalone_2/io/web_socket_protocol_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/web_socket_test.dart b/tests/standalone_2/io/web_socket_test.dart index 11cd47f3b62..a931549c512 100644 --- a/tests/standalone_2/io/web_socket_test.dart +++ b/tests/standalone_2/io/web_socket_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "dart:async"; import "dart:convert"; import "dart:io"; diff --git a/tests/standalone_2/io/web_socket_typed_data_test.dart b/tests/standalone_2/io/web_socket_typed_data_test.dart index 595ca60aae8..903797b38ec 100644 --- a/tests/standalone_2/io/web_socket_typed_data_test.dart +++ b/tests/standalone_2/io/web_socket_typed_data_test.dart @@ -7,6 +7,8 @@ // VMOptions=--short_socket_write // VMOptions=--short_socket_read --short_socket_write +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/windows_environment_script.dart b/tests/standalone_2/io/windows_environment_script.dart index f142163b480..a5d19f8c2dd 100644 --- a/tests/standalone_2/io/windows_environment_script.dart +++ b/tests/standalone_2/io/windows_environment_script.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; main() { diff --git a/tests/standalone_2/io/windows_environment_test.dart b/tests/standalone_2/io/windows_environment_test.dart index f5fbe556a5f..d7b5173a173 100644 --- a/tests/standalone_2/io/windows_environment_test.dart +++ b/tests/standalone_2/io/windows_environment_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=windows_environment_script.dart import 'package:path/path.dart'; diff --git a/tests/standalone_2/io/windows_file_system_async_links_test.dart b/tests/standalone_2/io/windows_file_system_async_links_test.dart index 4810d259abd..d654e240a9a 100644 --- a/tests/standalone_2/io/windows_file_system_async_links_test.dart +++ b/tests/standalone_2/io/windows_file_system_async_links_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:async"; import "dart:io"; diff --git a/tests/standalone_2/io/windows_file_system_links_test.dart b/tests/standalone_2/io/windows_file_system_links_test.dart index dcbc571c67a..c7b1027f71a 100644 --- a/tests/standalone_2/io/windows_file_system_links_test.dart +++ b/tests/standalone_2/io/windows_file_system_links_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import 'package:expect/expect.dart'; diff --git a/tests/standalone_2/io/zlib_test.dart b/tests/standalone_2/io/zlib_test.dart index 55dc44dff82..64335abd695 100644 --- a/tests/standalone_2/io/zlib_test.dart +++ b/tests/standalone_2/io/zlib_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; import 'dart:typed_data'; diff --git a/tests/standalone_2/left_shift_bit_and_op_test.dart b/tests/standalone_2/left_shift_bit_and_op_test.dart index 9140ceb9e4f..1f96dbee108 100644 --- a/tests/standalone_2/left_shift_bit_and_op_test.dart +++ b/tests/standalone_2/left_shift_bit_and_op_test.dart @@ -4,6 +4,8 @@ // // Tests optimizing (a << b) & c if c is a Smi constant. +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/standalone_2/link_natives_lazily_test.dart b/tests/standalone_2/link_natives_lazily_test.dart index 35a53a13411..3bcfd8844c9 100644 --- a/tests/standalone_2/link_natives_lazily_test.dart +++ b/tests/standalone_2/link_natives_lazily_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--link_natives_lazily main() { diff --git a/tests/standalone_2/map_insert_remove_oom_test.dart b/tests/standalone_2/map_insert_remove_oom_test.dart index 143fd18ab4b..22483022334 100644 --- a/tests/standalone_2/map_insert_remove_oom_test.dart +++ b/tests/standalone_2/map_insert_remove_oom_test.dart @@ -12,6 +12,8 @@ // // Test that compaction does occur on repeated add/remove. +// @dart = 2.9 + main() { var x = {}; for (int i = 0; i < 1000000; i++) { diff --git a/tests/standalone_2/medium_integer_test.dart b/tests/standalone_2/medium_integer_test.dart index 28532f9b43e..302da260dfb 100644 --- a/tests/standalone_2/medium_integer_test.dart +++ b/tests/standalone_2/medium_integer_test.dart @@ -4,6 +4,8 @@ // Testing Mints. Note that the tests may not work on 64-bit machines, // as Smi's would be used to represent many of the numbers. +// @dart = 2.9 + library MediumIntegerTest; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/no_allow_absolute_addresses_test.dart b/tests/standalone_2/no_allow_absolute_addresses_test.dart index e013c5e80a7..11ba0337156 100644 --- a/tests/standalone_2/no_allow_absolute_addresses_test.dart +++ b/tests/standalone_2/no_allow_absolute_addresses_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no_allow_absolute_addresses main() { diff --git a/tests/standalone_2/no_lazy_dispatchers_test.dart b/tests/standalone_2/no_lazy_dispatchers_test.dart index f45ba1c402d..96a4c5ec50f 100644 --- a/tests/standalone_2/no_lazy_dispatchers_test.dart +++ b/tests/standalone_2/no_lazy_dispatchers_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no_lazy_dispatchers main() { diff --git a/tests/standalone_2/no_profiler_test.dart b/tests/standalone_2/no_profiler_test.dart index 0b612d1700b..46028fac5d8 100644 --- a/tests/standalone_2/no_profiler_test.dart +++ b/tests/standalone_2/no_profiler_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no_profiler main() { diff --git a/tests/standalone_2/no_such_method_error_with_invocation_test.dart b/tests/standalone_2/no_such_method_error_with_invocation_test.dart index 9d8dc17ccce..b72b3c0a118 100644 --- a/tests/standalone_2/no_such_method_error_with_invocation_test.dart +++ b/tests/standalone_2/no_such_method_error_with_invocation_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/standalone_2/no_support_ast_printer_test.dart b/tests/standalone_2/no_support_ast_printer_test.dart index bbffe225493..0bfd5e38f8f 100644 --- a/tests/standalone_2/no_support_ast_printer_test.dart +++ b/tests/standalone_2/no_support_ast_printer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no-support_ast_printer main() { diff --git a/tests/standalone_2/no_support_debugger_test.dart b/tests/standalone_2/no_support_debugger_test.dart index fb20c9ab95d..943b592de16 100644 --- a/tests/standalone_2/no_support_debugger_test.dart +++ b/tests/standalone_2/no_support_debugger_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no-support_debugger main() { diff --git a/tests/standalone_2/no_support_disassembler_test.dart b/tests/standalone_2/no_support_disassembler_test.dart index 2f0aca0308f..621f7e6a598 100644 --- a/tests/standalone_2/no_support_disassembler_test.dart +++ b/tests/standalone_2/no_support_disassembler_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no_support_disassembler main() { diff --git a/tests/standalone_2/no_support_il_printer_test.dart b/tests/standalone_2/no_support_il_printer_test.dart index 4ebba33e30a..3f31e40cf6d 100644 --- a/tests/standalone_2/no_support_il_printer_test.dart +++ b/tests/standalone_2/no_support_il_printer_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no-support_il_printer main() { diff --git a/tests/standalone_2/no_support_service_test.dart b/tests/standalone_2/no_support_service_test.dart index 2431dbc2fd0..1b9a8c78943 100644 --- a/tests/standalone_2/no_support_service_test.dart +++ b/tests/standalone_2/no_support_service_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no-support_service main() { diff --git a/tests/standalone_2/no_support_timeline_test.dart b/tests/standalone_2/no_support_timeline_test.dart index c15a4419f75..e7d1c8b6c25 100644 --- a/tests/standalone_2/no_support_timeline_test.dart +++ b/tests/standalone_2/no_support_timeline_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--no-support_timeline main() { diff --git a/tests/standalone_2/number_identity_test.dart b/tests/standalone_2/number_identity_test.dart index ce9cbfe03eb..62febf2de1f 100644 --- a/tests/standalone_2/number_identity_test.dart +++ b/tests/standalone_2/number_identity_test.dart @@ -6,6 +6,8 @@ // Tests 'identical' for cases that not supported in dart2js (bigint, // disambiguation int/double). +// @dart = 2.9 + import "package:expect/expect.dart"; main() { diff --git a/tests/standalone_2/oom_error_stacktrace_test.dart b/tests/standalone_2/oom_error_stacktrace_test.dart index ffa33ae4d74..388444f48cf 100644 --- a/tests/standalone_2/oom_error_stacktrace_test.dart +++ b/tests/standalone_2/oom_error_stacktrace_test.dart @@ -4,6 +4,8 @@ // Dart test program for testing throw statement // VMOptions=--old_gen_heap_size=512 +// @dart = 2.9 + import "package:expect/expect.dart"; class Helper1 { diff --git a/tests/standalone_2/out_of_memory_recovery_synchronous_test.dart b/tests/standalone_2/out_of_memory_recovery_synchronous_test.dart index 2157fa71e82..a6be6256293 100644 --- a/tests/standalone_2/out_of_memory_recovery_synchronous_test.dart +++ b/tests/standalone_2/out_of_memory_recovery_synchronous_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--old_gen_heap_size=20 import "package:expect/expect.dart"; diff --git a/tests/standalone_2/out_of_memory_recovery_test.dart b/tests/standalone_2/out_of_memory_recovery_test.dart index 05aa4db164c..85f7d3d4522 100644 --- a/tests/standalone_2/out_of_memory_recovery_test.dart +++ b/tests/standalone_2/out_of_memory_recovery_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--old_gen_heap_size=20 import "dart:io"; diff --git a/tests/standalone_2/out_of_memory_slow_growth_test.dart b/tests/standalone_2/out_of_memory_slow_growth_test.dart index e534dc61fb8..f624f102442 100644 --- a/tests/standalone_2/out_of_memory_slow_growth_test.dart +++ b/tests/standalone_2/out_of_memory_slow_growth_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--old_gen_heap_size=20 // VMOptions=--old_gen_heap_size=20 --enable_vm_service --pause_isolates_on_unhandled_exceptions diff --git a/tests/standalone_2/out_of_memory_test.dart b/tests/standalone_2/out_of_memory_test.dart index ce5224b7cd2..73407cb6994 100644 --- a/tests/standalone_2/out_of_memory_test.dart +++ b/tests/standalone_2/out_of_memory_test.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // VMOptions=--old_gen_heap_size=512 +// @dart = 2.9 + import "package:expect/expect.dart"; void main() { diff --git a/tests/standalone_2/out_of_memory_unhandled_exception_test.dart b/tests/standalone_2/out_of_memory_unhandled_exception_test.dart index 7a5935d1175..5f435222587 100644 --- a/tests/standalone_2/out_of_memory_unhandled_exception_test.dart +++ b/tests/standalone_2/out_of_memory_unhandled_exception_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "dart:io"; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/package/invalid_uri_test.dart b/tests/standalone_2/package/invalid_uri_test.dart index c08186015f0..57fb5e28da3 100644 --- a/tests/standalone_2/package/invalid_uri_test.dart +++ b/tests/standalone_2/package/invalid_uri_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library invalid_uri_test; // Should not contain "//". diff --git a/tests/standalone_2/package/package1_test.dart b/tests/standalone_2/package/package1_test.dart index 53c88286f7a..3000ca3313f 100644 --- a/tests/standalone_2/package/package1_test.dart +++ b/tests/standalone_2/package/package1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=none library package1_test; diff --git a/tests/standalone_2/package/package_isolate_test.dart b/tests/standalone_2/package/package_isolate_test.dart index 2a30cb5540c..bfee62b5be4 100644 --- a/tests/standalone_2/package/package_isolate_test.dart +++ b/tests/standalone_2/package/package_isolate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library package_isolate_test; import 'packages/shared.dart' as shared; diff --git a/tests/standalone_2/package/package_test.dart b/tests/standalone_2/package/package_test.dart index 4f7e52b4c44..761493ed92d 100644 --- a/tests/standalone_2/package/package_test.dart +++ b/tests/standalone_2/package/package_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=none library package_test; diff --git a/tests/standalone_2/package/packages/lib1.dart b/tests/standalone_2/package/packages/lib1.dart index f5175a27702..1954e5adf62 100644 --- a/tests/standalone_2/package/packages/lib1.dart +++ b/tests/standalone_2/package/packages/lib1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib1; import 'package:shared.dart'; diff --git a/tests/standalone_2/package/packages/lib2/lib2.dart b/tests/standalone_2/package/packages/lib2/lib2.dart index b649a276361..0571d3fb4b4 100644 --- a/tests/standalone_2/package/packages/lib2/lib2.dart +++ b/tests/standalone_2/package/packages/lib2/lib2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib2; import 'package:shared.dart'; diff --git a/tests/standalone_2/package/packages/lib3/sub/lib3.dart b/tests/standalone_2/package/packages/lib3/sub/lib3.dart index 16bd99f4df1..0b352985529 100644 --- a/tests/standalone_2/package/packages/lib3/sub/lib3.dart +++ b/tests/standalone_2/package/packages/lib3/sub/lib3.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library lib3; import 'package:shared.dart'; diff --git a/tests/standalone_2/package/packages/package1.dart b/tests/standalone_2/package/packages/package1.dart index d0a6081622c..f66fb5bf957 100644 --- a/tests/standalone_2/package/packages/package1.dart +++ b/tests/standalone_2/package/packages/package1.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library package1; import 'package2.dart' as p1; diff --git a/tests/standalone_2/package/packages/package2.dart b/tests/standalone_2/package/packages/package2.dart index 135e16d84e4..8c91e969136 100644 --- a/tests/standalone_2/package/packages/package2.dart +++ b/tests/standalone_2/package/packages/package2.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library package2; class X { diff --git a/tests/standalone_2/package/packages/shared.dart b/tests/standalone_2/package/packages/shared.dart index 5145c426ccc..579d13b6eed 100644 --- a/tests/standalone_2/package/packages/shared.dart +++ b/tests/standalone_2/package/packages/shared.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library shared; var output = ''; diff --git a/tests/standalone_2/package/scenarios/both_dir_and_file/both_dir_and_file_noimports_test.dart b/tests/standalone_2/package/scenarios/both_dir_and_file/both_dir_and_file_noimports_test.dart index 53195a7e2f1..03fa700a04d 100644 --- a/tests/standalone_2/package/scenarios/both_dir_and_file/both_dir_and_file_noimports_test.dart +++ b/tests/standalone_2/package/scenarios/both_dir_and_file/both_dir_and_file_noimports_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=none library both_dir_and_file_noimports_test; diff --git a/tests/standalone_2/package/scenarios/both_dir_and_file/foo/foo.dart b/tests/standalone_2/package/scenarios/both_dir_and_file/foo/foo.dart index 8e60bcd5164..6c5627ac7a6 100644 --- a/tests/standalone_2/package/scenarios/both_dir_and_file/foo/foo.dart +++ b/tests/standalone_2/package/scenarios/both_dir_and_file/foo/foo.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library foo; String bar = 'good'; diff --git a/tests/standalone_2/package/scenarios/both_dir_and_file/packages/foo/foo.dart b/tests/standalone_2/package/scenarios/both_dir_and_file/packages/foo/foo.dart index 53fc2a4100f..6e2309209a7 100644 --- a/tests/standalone_2/package/scenarios/both_dir_and_file/packages/foo/foo.dart +++ b/tests/standalone_2/package/scenarios/both_dir_and_file/packages/foo/foo.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library foo; String bar = 'bad'; diff --git a/tests/standalone_2/package/scenarios/both_dir_and_file/prefers_packages_file_test.dart b/tests/standalone_2/package/scenarios/both_dir_and_file/prefers_packages_file_test.dart index f06fc567dc9..fb5d6db81cf 100644 --- a/tests/standalone_2/package/scenarios/both_dir_and_file/prefers_packages_file_test.dart +++ b/tests/standalone_2/package/scenarios/both_dir_and_file/prefers_packages_file_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=none library prefers_packages_file_test; diff --git a/tests/standalone_2/package/scenarios/empty_packages_file/empty_packages_file_discovery_test.dart b/tests/standalone_2/package/scenarios/empty_packages_file/empty_packages_file_discovery_test.dart index 898a519aa76..eb53520989d 100644 --- a/tests/standalone_2/package/scenarios/empty_packages_file/empty_packages_file_discovery_test.dart +++ b/tests/standalone_2/package/scenarios/empty_packages_file/empty_packages_file_discovery_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=none library empty_packages_file_discovery_test; diff --git a/tests/standalone_2/package/scenarios/empty_packages_file/empty_packages_file_noimports_test.dart b/tests/standalone_2/package/scenarios/empty_packages_file/empty_packages_file_noimports_test.dart index af76de87b61..d539707d049 100644 --- a/tests/standalone_2/package/scenarios/empty_packages_file/empty_packages_file_noimports_test.dart +++ b/tests/standalone_2/package/scenarios/empty_packages_file/empty_packages_file_noimports_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=.packages // We expect this to not cause any errors. An empty packages file is valid, diff --git a/tests/standalone_2/package/scenarios/empty_packages_file/empty_packages_file_option_test.dart b/tests/standalone_2/package/scenarios/empty_packages_file/empty_packages_file_option_test.dart index fbde79f3029..708d8bb0354 100644 --- a/tests/standalone_2/package/scenarios/empty_packages_file/empty_packages_file_option_test.dart +++ b/tests/standalone_2/package/scenarios/empty_packages_file/empty_packages_file_option_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=.packages library empty_packages_file_option_test; diff --git a/tests/standalone_2/package/scenarios/invalid/foo/foo.dart b/tests/standalone_2/package/scenarios/invalid/foo/foo.dart index 8c5c0467904..45d5368e0b8 100644 --- a/tests/standalone_2/package/scenarios/invalid/foo/foo.dart +++ b/tests/standalone_2/package/scenarios/invalid/foo/foo.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library foo; String foo = 'foo'; diff --git a/tests/standalone_2/package/scenarios/invalid/invalid_package_name_test.dart b/tests/standalone_2/package/scenarios/invalid/invalid_package_name_test.dart index 4c278c99dec..3694579481a 100644 --- a/tests/standalone_2/package/scenarios/invalid/invalid_package_name_test.dart +++ b/tests/standalone_2/package/scenarios/invalid/invalid_package_name_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=invalid_package_name.packages library invalid_package_name_test; diff --git a/tests/standalone_2/package/scenarios/invalid/invalid_utf8_test.dart b/tests/standalone_2/package/scenarios/invalid/invalid_utf8_test.dart index 224fc8851df..3ed940c31dd 100644 --- a/tests/standalone_2/package/scenarios/invalid/invalid_utf8_test.dart +++ b/tests/standalone_2/package/scenarios/invalid/invalid_utf8_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=invalid_utf8.packages library invalid_utf8_test; diff --git a/tests/standalone_2/package/scenarios/invalid/non_existent_packages_file_test.dart b/tests/standalone_2/package/scenarios/invalid/non_existent_packages_file_test.dart index dc7380c11c3..329a3b7644e 100644 --- a/tests/standalone_2/package/scenarios/invalid/non_existent_packages_file_test.dart +++ b/tests/standalone_2/package/scenarios/invalid/non_existent_packages_file_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=non_existent.packages library non_existent_packages_file_test; diff --git a/tests/standalone_2/package/scenarios/invalid/same_package_twice_test.dart b/tests/standalone_2/package/scenarios/invalid/same_package_twice_test.dart index acedb40ab8e..5d9a24e8c5e 100644 --- a/tests/standalone_2/package/scenarios/invalid/same_package_twice_test.dart +++ b/tests/standalone_2/package/scenarios/invalid/same_package_twice_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=same_package_twice.packages library same_package_twice_test; diff --git a/tests/standalone_2/package/scenarios/packages_file_in_parent/foo/foo.dart b/tests/standalone_2/package/scenarios/packages_file_in_parent/foo/foo.dart index fed9bd7ef2f..a446b4a58e2 100644 --- a/tests/standalone_2/package/scenarios/packages_file_in_parent/foo/foo.dart +++ b/tests/standalone_2/package/scenarios/packages_file_in_parent/foo/foo.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library foo; String bar = 'hello'; diff --git a/tests/standalone_2/package/scenarios/packages_file_in_parent/sub/packages_file_in_parent_noimports_test.dart b/tests/standalone_2/package/scenarios/packages_file_in_parent/sub/packages_file_in_parent_noimports_test.dart index d5194f14d2a..b448cfd6670 100644 --- a/tests/standalone_2/package/scenarios/packages_file_in_parent/sub/packages_file_in_parent_noimports_test.dart +++ b/tests/standalone_2/package/scenarios/packages_file_in_parent/sub/packages_file_in_parent_noimports_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=none library packages_file_in_parent_noimports_test; diff --git a/tests/standalone_2/package/scenarios/packages_file_in_parent/sub/packages_file_in_parent_test.dart b/tests/standalone_2/package/scenarios/packages_file_in_parent/sub/packages_file_in_parent_test.dart index 0151f194f94..54cf99475f6 100644 --- a/tests/standalone_2/package/scenarios/packages_file_in_parent/sub/packages_file_in_parent_test.dart +++ b/tests/standalone_2/package/scenarios/packages_file_in_parent/sub/packages_file_in_parent_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=none library packages_file_in_parent_test; diff --git a/tests/standalone_2/package/scenarios/packages_file_only/foo/foo.dart b/tests/standalone_2/package/scenarios/packages_file_only/foo/foo.dart index fed9bd7ef2f..a446b4a58e2 100644 --- a/tests/standalone_2/package/scenarios/packages_file_only/foo/foo.dart +++ b/tests/standalone_2/package/scenarios/packages_file_only/foo/foo.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library foo; String bar = 'hello'; diff --git a/tests/standalone_2/package/scenarios/packages_file_only/packages_file_only_noimports_test.dart b/tests/standalone_2/package/scenarios/packages_file_only/packages_file_only_noimports_test.dart index e495256c039..35be09bfdd5 100644 --- a/tests/standalone_2/package/scenarios/packages_file_only/packages_file_only_noimports_test.dart +++ b/tests/standalone_2/package/scenarios/packages_file_only/packages_file_only_noimports_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=none library packages_file_only_noimports_test; diff --git a/tests/standalone_2/package/scenarios/packages_file_only/packages_file_only_test.dart b/tests/standalone_2/package/scenarios/packages_file_only/packages_file_only_test.dart index 554f3b71e23..b57e0911ab9 100644 --- a/tests/standalone_2/package/scenarios/packages_file_only/packages_file_only_test.dart +++ b/tests/standalone_2/package/scenarios/packages_file_only/packages_file_only_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=none library packages_file_only_test; diff --git a/tests/standalone_2/package/scenarios/packages_file_strange_formatting/bar/bar.dart b/tests/standalone_2/package/scenarios/packages_file_strange_formatting/bar/bar.dart index 7ff2cb059f0..6180ca0097a 100644 --- a/tests/standalone_2/package/scenarios/packages_file_strange_formatting/bar/bar.dart +++ b/tests/standalone_2/package/scenarios/packages_file_strange_formatting/bar/bar.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library bar; String bar = 'bar'; diff --git a/tests/standalone_2/package/scenarios/packages_file_strange_formatting/baz/baz.dart b/tests/standalone_2/package/scenarios/packages_file_strange_formatting/baz/baz.dart index 54059cbaad9..597ee72cf3d 100644 --- a/tests/standalone_2/package/scenarios/packages_file_strange_formatting/baz/baz.dart +++ b/tests/standalone_2/package/scenarios/packages_file_strange_formatting/baz/baz.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library baz; String baz = 'baz'; diff --git a/tests/standalone_2/package/scenarios/packages_file_strange_formatting/empty_lines_test.dart b/tests/standalone_2/package/scenarios/packages_file_strange_formatting/empty_lines_test.dart index 665597a8fef..09c5366e044 100644 --- a/tests/standalone_2/package/scenarios/packages_file_strange_formatting/empty_lines_test.dart +++ b/tests/standalone_2/package/scenarios/packages_file_strange_formatting/empty_lines_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=empty_lines.packages library empty_lines_test; diff --git a/tests/standalone_2/package/scenarios/packages_file_strange_formatting/empty_package_dir_test.dart b/tests/standalone_2/package/scenarios/packages_file_strange_formatting/empty_package_dir_test.dart index 2cf07c93e60..854de5d2874 100644 --- a/tests/standalone_2/package/scenarios/packages_file_strange_formatting/empty_package_dir_test.dart +++ b/tests/standalone_2/package/scenarios/packages_file_strange_formatting/empty_package_dir_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=empty_package_dir.packages // In this test, we give a packages file that associates the package 'foo' with diff --git a/tests/standalone_2/package/scenarios/packages_file_strange_formatting/foo/foo.dart b/tests/standalone_2/package/scenarios/packages_file_strange_formatting/foo/foo.dart index 8c5c0467904..45d5368e0b8 100644 --- a/tests/standalone_2/package/scenarios/packages_file_strange_formatting/foo/foo.dart +++ b/tests/standalone_2/package/scenarios/packages_file_strange_formatting/foo/foo.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library foo; String foo = 'foo'; diff --git a/tests/standalone_2/package/scenarios/packages_file_strange_formatting/mixed_line_ends_test.dart b/tests/standalone_2/package/scenarios/packages_file_strange_formatting/mixed_line_ends_test.dart index 3e9ec48c993..6753ec661f2 100644 --- a/tests/standalone_2/package/scenarios/packages_file_strange_formatting/mixed_line_ends_test.dart +++ b/tests/standalone_2/package/scenarios/packages_file_strange_formatting/mixed_line_ends_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=mixed_line_ends.packages library mixed_line_ends_test; diff --git a/tests/standalone_2/package/scenarios/packages_option_only/packages_option_only_noimports_test.dart b/tests/standalone_2/package/scenarios/packages_option_only/packages_option_only_noimports_test.dart index 92e1cac85a2..f4368e79ebc 100644 --- a/tests/standalone_2/package/scenarios/packages_option_only/packages_option_only_noimports_test.dart +++ b/tests/standalone_2/package/scenarios/packages_option_only/packages_option_only_noimports_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=sub/.packages library packages_option_only_noimports_test; diff --git a/tests/standalone_2/package/scenarios/packages_option_only/packages_option_only_test.dart b/tests/standalone_2/package/scenarios/packages_option_only/packages_option_only_test.dart index 47fdcdecd2a..c2f37015abb 100644 --- a/tests/standalone_2/package/scenarios/packages_option_only/packages_option_only_test.dart +++ b/tests/standalone_2/package/scenarios/packages_option_only/packages_option_only_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Packages=sub/.packages library packages_option_only_test; diff --git a/tests/standalone_2/package/scenarios/packages_option_only/sub/foo/foo.dart b/tests/standalone_2/package/scenarios/packages_option_only/sub/foo/foo.dart index fed9bd7ef2f..a446b4a58e2 100644 --- a/tests/standalone_2/package/scenarios/packages_option_only/sub/foo/foo.dart +++ b/tests/standalone_2/package/scenarios/packages_option_only/sub/foo/foo.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library foo; String bar = 'hello'; diff --git a/tests/standalone_2/package/sibling_isolate.dart b/tests/standalone_2/package/sibling_isolate.dart index 134196ec58e..594f549aeb2 100644 --- a/tests/standalone_2/package/sibling_isolate.dart +++ b/tests/standalone_2/package/sibling_isolate.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library sibling_isolate; import 'package:shared.dart' as shared; diff --git a/tests/standalone_2/package/test_folder/folder_isolate.dart b/tests/standalone_2/package/test_folder/folder_isolate.dart index 4a564488ef9..862d7f3d83b 100644 --- a/tests/standalone_2/package/test_folder/folder_isolate.dart +++ b/tests/standalone_2/package/test_folder/folder_isolate.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library folder_isolate; // This is a package that's not available to the main isolate diff --git a/tests/standalone_2/package/test_folder/packages/folder_lib.dart b/tests/standalone_2/package/test_folder/packages/folder_lib.dart index 006fe715096..2af36b8608d 100644 --- a/tests/standalone_2/package/test_folder/packages/folder_lib.dart +++ b/tests/standalone_2/package/test_folder/packages/folder_lib.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library folder_lib; // This is a library that's available to folder_isolate.dart diff --git a/tests/standalone_2/packages_file_test.dart b/tests/standalone_2/packages_file_test.dart index d39c6dc6a04..94132d696c4 100644 --- a/tests/standalone_2/packages_file_test.dart +++ b/tests/standalone_2/packages_file_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/standalone_2/pair_location_remapping_test.dart b/tests/standalone_2/pair_location_remapping_test.dart index 1ee80e3a8bd..a5cf8c96de6 100644 --- a/tests/standalone_2/pair_location_remapping_test.dart +++ b/tests/standalone_2/pair_location_remapping_test.dart @@ -4,6 +4,8 @@ // Test that pair locations are remaped in slow path environments. // VMOptions=--optimization_counter_threshold=10 --no-use-osr --no-background_compilation +// @dart = 2.9 + import "package:expect/expect.dart"; class A { diff --git a/tests/standalone_2/pow_test.dart b/tests/standalone_2/pow_test.dart index 2d6a8e29f01..4c86aadf73f 100644 --- a/tests/standalone_2/pow_test.dart +++ b/tests/standalone_2/pow_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing math's pow. +// @dart = 2.9 + library pow_test; import "package:expect/expect.dart"; diff --git a/tests/standalone_2/priority_queue_stress_test.dart b/tests/standalone_2/priority_queue_stress_test.dart index 76119b731b3..8b3e6b81544 100644 --- a/tests/standalone_2/priority_queue_stress_test.dart +++ b/tests/standalone_2/priority_queue_stress_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + library priority_queue; import 'dart:collection'; diff --git a/tests/standalone_2/regress31114_test.dart b/tests/standalone_2/regress31114_test.dart index 2977a21c967..44ec839f3f7 100644 --- a/tests/standalone_2/regress31114_test.dart +++ b/tests/standalone_2/regress31114_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + /// VMOptions=--background-compilation=false --optimization-counter-threshold=20 import 'pow_test.dart' as test; diff --git a/tests/standalone_2/regress_25335_test.dart b/tests/standalone_2/regress_25335_test.dart index 500cc7f87b1..ecfca4805a8 100644 --- a/tests/standalone_2/regress_25335_test.dart +++ b/tests/standalone_2/regress_25335_test.dart @@ -5,6 +5,8 @@ // Test that canonicalization inserts constants with correct representation. // VMOptions=--optimization-counter-threshold=10 --optimization-filter=bar --no-background-compilation +// @dart = 2.9 + import 'dart:typed_data'; toSigned(v, width) { diff --git a/tests/standalone_2/regress_26031_test.dart b/tests/standalone_2/regress_26031_test.dart index c25454e3e16..fc161c8fddc 100644 --- a/tests/standalone_2/regress_26031_test.dart +++ b/tests/standalone_2/regress_26031_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/standalone_2/regress_28854_1_test.dart b/tests/standalone_2/regress_28854_1_test.dart index 9c2faa62b3d..7b35e3285c6 100644 --- a/tests/standalone_2/regress_28854_1_test.dart +++ b/tests/standalone_2/regress_28854_1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/standalone_2/regress_28854_2_test.dart b/tests/standalone_2/regress_28854_2_test.dart index e2919eaab7f..23c26ebb338 100644 --- a/tests/standalone_2/regress_28854_2_test.dart +++ b/tests/standalone_2/regress_28854_2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups diff --git a/tests/standalone_2/regress_29350_test.dart b/tests/standalone_2/regress_29350_test.dart index fe3b5348321..721d28d2d5d 100644 --- a/tests/standalone_2/regress_29350_test.dart +++ b/tests/standalone_2/regress_29350_test.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 /* * 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 diff --git a/tests/standalone_2/regress_29695_test.dart b/tests/standalone_2/regress_29695_test.dart index 2d8ae75e773..30970d0ce18 100644 --- a/tests/standalone_2/regress_29695_test.dart +++ b/tests/standalone_2/regress_29695_test.dart @@ -5,6 +5,8 @@ // Test that type tests are not misoptimized. // VMOptions=--optimization-counter-threshold=1000 --optimization-filter=IsAnInt +// @dart = 2.9 + main() { train(); if (IsAnInt("This is not an int")) throw "oops"; diff --git a/tests/standalone_2/regress_41329_absolute_test.dart b/tests/standalone_2/regress_41329_absolute_test.dart index 5798cbc8939..f56ecf6ee6d 100644 --- a/tests/standalone_2/regress_41329_absolute_test.dart +++ b/tests/standalone_2/regress_41329_absolute_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'package:expect/expect.dart'; diff --git a/tests/standalone_2/regress_41329_relative_test.dart b/tests/standalone_2/regress_41329_relative_test.dart index e35e126cb1c..1d16994b241 100644 --- a/tests/standalone_2/regress_41329_relative_test.dart +++ b/tests/standalone_2/regress_41329_relative_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:io'; import 'package:expect/expect.dart'; diff --git a/tests/standalone_2/regress_42092_script.dart b/tests/standalone_2/regress_42092_script.dart index da357adda5a..5b925e93702 100644 --- a/tests/standalone_2/regress_42092_script.dart +++ b/tests/standalone_2/regress_42092_script.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:io'; diff --git a/tests/standalone_2/regress_42092_test.dart b/tests/standalone_2/regress_42092_test.dart index a33d91fd543..ba742d623f1 100644 --- a/tests/standalone_2/regress_42092_test.dart +++ b/tests/standalone_2/regress_42092_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'dart:convert'; import 'dart:io'; diff --git a/tests/standalone_2/slowpath_safepoints_test.dart b/tests/standalone_2/slowpath_safepoints_test.dart index c983e623131..b8f0f2a1b97 100644 --- a/tests/standalone_2/slowpath_safepoints_test.dart +++ b/tests/standalone_2/slowpath_safepoints_test.dart @@ -5,6 +5,8 @@ // alive. // VMOptions=--optimization-counter-threshold=5 --no-inline_alloc --no-background-compilation +// @dart = 2.9 + class C { final next; C(this.next); diff --git a/tests/standalone_2/typed_array_int64_uint64_test.dart b/tests/standalone_2/typed_array_int64_uint64_test.dart index fb6bd2d3f06..3153df9ac6c 100644 --- a/tests/standalone_2/typed_array_int64_uint64_test.dart +++ b/tests/standalone_2/typed_array_int64_uint64_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // diff --git a/tests/standalone_2/typed_array_test.dart b/tests/standalone_2/typed_array_test.dart index d443da95a47..0f08a805d1f 100644 --- a/tests/standalone_2/typed_array_test.dart +++ b/tests/standalone_2/typed_array_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // diff --git a/tests/standalone_2/typed_data_isolate_test.dart b/tests/standalone_2/typed_data_isolate_test.dart index 80efe406d24..bf2eaa422f0 100644 --- a/tests/standalone_2/typed_data_isolate_test.dart +++ b/tests/standalone_2/typed_data_isolate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // VMOptions=--enable-isolate-groups --experimental-enable-isolate-groups-jit // VMOptions=--no-enable-isolate-groups // diff --git a/tests/standalone_2/typed_data_test.dart b/tests/standalone_2/typed_data_test.dart index 9e263bcd188..b96621093ed 100644 --- a/tests/standalone_2/typed_data_test.dart +++ b/tests/standalone_2/typed_data_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing typed data. +// @dart = 2.9 + // VMOptions=--optimization_counter_threshold=10 --no-background_compilation // Library tag to be able to run in html test framework. diff --git a/tests/standalone_2/typed_data_view_test.dart b/tests/standalone_2/typed_data_view_test.dart index cfcfb73b37c..f8f2eeb3153 100644 --- a/tests/standalone_2/typed_data_view_test.dart +++ b/tests/standalone_2/typed_data_view_test.dart @@ -4,6 +4,8 @@ // // Dart test program for testing typed data. +// @dart = 2.9 + // Library tag to be able to run in html test framework. library TypedDataTest; diff --git a/tests/standalone_2/unboxed_int_converter_test.dart b/tests/standalone_2/unboxed_int_converter_test.dart index 5cbaa4dbd88..28fb00309c3 100644 --- a/tests/standalone_2/unboxed_int_converter_test.dart +++ b/tests/standalone_2/unboxed_int_converter_test.dart @@ -4,6 +4,8 @@ // Test UnboxedIntConverter for int32. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// @dart = 2.9 + import "package:expect/expect.dart"; import "dart:typed_data"; diff --git a/tests/standalone_2/verbose_gc_to_bmu_script.dart b/tests/standalone_2/verbose_gc_to_bmu_script.dart index 33e488c0106..af3728f57fe 100644 --- a/tests/standalone_2/verbose_gc_to_bmu_script.dart +++ b/tests/standalone_2/verbose_gc_to_bmu_script.dart @@ -3,6 +3,8 @@ // BSD-style license that can be found in the LICENSE file. // Testing GC, issue 1469. +// @dart = 2.9 + main() { var div; for (int i = 0; i < 200; ++i) { diff --git a/tests/standalone_2/verbose_gc_to_bmu_test.dart b/tests/standalone_2/verbose_gc_to_bmu_test.dart index 860e5eb09d5..73fa2e2be6a 100644 --- a/tests/standalone_2/verbose_gc_to_bmu_test.dart +++ b/tests/standalone_2/verbose_gc_to_bmu_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // OtherResources=verbose_gc_to_bmu_script.dart // This test forks a second vm process that runs the BMU tool and verifies that diff --git a/tests/web_2/42088_test.dart b/tests/web_2/42088_test.dart index 2a63dfb0d1e..353791703e0 100644 --- a/tests/web_2/42088_test.dart +++ b/tests/web_2/42088_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for issue 42088. class Foo {} diff --git a/tests/web_2/42501_test.dart b/tests/web_2/42501_test.dart index ae894135331..7babd8c089b 100644 --- a/tests/web_2/42501_test.dart +++ b/tests/web_2/42501_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; typedef F = num Function(); diff --git a/tests/web_2/42531_test.dart b/tests/web_2/42531_test.dart index 7bc9b586074..aee4ec5f1af 100644 --- a/tests/web_2/42531_test.dart +++ b/tests/web_2/42531_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; // Regression test for badly named generator body. diff --git a/tests/web_2/constant_folding2_test.dart b/tests/web_2/constant_folding2_test.dart index b8fbee41724..3fc8e719770 100644 --- a/tests/web_2/constant_folding2_test.dart +++ b/tests/web_2/constant_folding2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'dart:async'; import 'package:expect/expect.dart'; @@ -63,4 +65,4 @@ main() { test(d0, d1, d2, d3, d4); test(e0, e1, e2, e3, e4); test(f0, f1, f2, f3, f4); -} \ No newline at end of file +} diff --git a/tests/web_2/constant_truncate_test.dart b/tests/web_2/constant_truncate_test.dart index 9d2c4ded4cf..8fbe6b43a00 100644 --- a/tests/web_2/constant_truncate_test.dart +++ b/tests/web_2/constant_truncate_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + const a0 = 0 ~/ 0; //# a0: compile-time error const a1 = 0.0 ~/ 0; //# a1: compile-time error const a2 = -0.0 ~/ 0; //# a2: compile-time error diff --git a/tests/web_2/deferred_inheritance_lib1.dart b/tests/web_2/deferred_inheritance_lib1.dart index 8e7e9a5f247..27d7c8b1562 100644 --- a/tests/web_2/deferred_inheritance_lib1.dart +++ b/tests/web_2/deferred_inheritance_lib1.dart @@ -1,3 +1,5 @@ + +// @dart = 2.9 import 'deferred_inheritance_lib2.dart'; class C extends A {} diff --git a/tests/web_2/deferred_inheritance_lib2.dart b/tests/web_2/deferred_inheritance_lib2.dart index a869c284952..c2ba23be936 100644 --- a/tests/web_2/deferred_inheritance_lib2.dart +++ b/tests/web_2/deferred_inheritance_lib2.dart @@ -1 +1,3 @@ + +// @dart = 2.9 class A {} diff --git a/tests/web_2/internal/platform_environment_variable1_test.dart b/tests/web_2/internal/platform_environment_variable1_test.dart index 35d67bdd758..204c6eab3df 100644 --- a/tests/web_2/internal/platform_environment_variable1_test.dart +++ b/tests/web_2/internal/platform_environment_variable1_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // SharedOptions=-Ddart2js.test.platform.environment.variable=hello import 'dart:_js_helper' show testingGetPlatformEnvironmentVariable; diff --git a/tests/web_2/internal/platform_environment_variable2_test.dart b/tests/web_2/internal/platform_environment_variable2_test.dart index 5cb56e97b75..b8ad8aa12c9 100644 --- a/tests/web_2/internal/platform_environment_variable2_test.dart +++ b/tests/web_2/internal/platform_environment_variable2_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // No -D options. import 'dart:_js_helper' show testingGetPlatformEnvironmentVariable; diff --git a/tests/web_2/internal/rti/required_named_parameters_test.dart b/tests/web_2/internal/rti/required_named_parameters_test.dart index ccf3f7d29bb..eee8630b056 100644 --- a/tests/web_2/internal/rti/required_named_parameters_test.dart +++ b/tests/web_2/internal/rti/required_named_parameters_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Requirements=nnbd import 'dart:_rti' as rti; diff --git a/tests/web_2/regress/41781_test.dart b/tests/web_2/regress/41781_test.dart index f4f6ac85f7f..ac628441ab5 100644 --- a/tests/web_2/regress/41781_test.dart +++ b/tests/web_2/regress/41781_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + @pragma('dart2js:noInline') test(List a, List b) { return [ diff --git a/tests/web_2/regress/44818_test.dart b/tests/web_2/regress/44818_test.dart index 22f2491b0cc..24b252f8278 100644 --- a/tests/web_2/regress/44818_test.dart +++ b/tests/web_2/regress/44818_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import 'package:expect/expect.dart'; // Regression test for mis-optimized (a / b).runtimeType. diff --git a/tests/web_2/regress/if_method_call_test.dart b/tests/web_2/regress/if_method_call_test.dart index 2938c703935..62f20ed6349 100644 --- a/tests/web_2/regress/if_method_call_test.dart +++ b/tests/web_2/regress/if_method_call_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + // Regression test for bug in dart2js type promotion. import 'package:expect/expect.dart'; diff --git a/tests/web_2/regress_42281_test.dart b/tests/web_2/regress_42281_test.dart index 8b8ce2e07aa..30714f547e7 100644 --- a/tests/web_2/regress_42281_test.dart +++ b/tests/web_2/regress_42281_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + class ComponentFactory { @pragma('dart2js:noInline') Type get componentType => T; diff --git a/tests/web_2/sync_star_element_rti_need_test.dart b/tests/web_2/sync_star_element_rti_need_test.dart index d82ee2830d7..b532eaa6f52 100644 --- a/tests/web_2/sync_star_element_rti_need_test.dart +++ b/tests/web_2/sync_star_element_rti_need_test.dart @@ -2,6 +2,8 @@ // 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 = 2.9 + import "package:expect/expect.dart"; main() {