From d0a22190845dc300a5b4097701189084f74a8c87 Mon Sep 17 00:00:00 2001 From: Chloe Stefantsova Date: Tue, 26 Nov 2024 06:29:50 +0000 Subject: [PATCH] [cfe] Enable 'getter-setter-error' flag in CFE unit tests Change-Id: I7f7201a26e1ce1b9ba7afab0cb4e56827de76194 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/397162 Reviewed-by: Johnni Winther Commit-Queue: Chloe Stefantsova --- .../src/type_inference/inference_visitor.dart | 8 +- .../test/coverage_suite_expected.dart | 10 +- .../test/testing/folder_options.dart | 1 + ...in_class_core_libraries.dart.strong.expect | 4 +- ..._core_libraries.dart.strong.modular.expect | 4 +- ..._core_libraries.dart.strong.outline.expect | 4 +- ...ric_usage_type_variable.dart.strong.expect | 8 +- ...e_type_variable.dart.strong.modular.expect | 8 +- ...e_type_variable.dart.strong.outline.expect | 8 +- ...pe_variable.dart.strong.transformed.expect | 8 +- ...neric_usage_type_variable.dart.weak.expect | 8 +- ...type_variable.dart.weak.transformed.expect | 8 +- .../mixin_super/main.dart.strong.expect | 48 +-- .../main.dart.strong.modular.expect | 48 +-- .../main.dart.strong.outline.expect | 48 +-- .../main.dart.strong.transformed.expect | 48 +-- .../dart2js/mixin_super/main.dart.weak.expect | 48 +-- .../main.dart.weak.transformed.expect | 48 +-- .../issue52452.dart.strong.expect | 4 +- .../issue52452.dart.strong.expect | 4 +- .../issue52452.dart.strong.modular.expect | 4 +- .../issue52452.dart.strong.outline.expect | 4 +- .../issue52452.dart.strong.transformed.expect | 4 +- .../mixin_super/main.dart.strong.expect | 48 +-- .../main.dart.strong.modular.expect | 48 +-- .../main.dart.strong.outline.expect | 48 +-- .../main.dart.strong.transformed.expect | 48 +-- .../conflicting_elements.dart.strong.expect | 4 +- ...icting_elements.dart.strong.modular.expect | 4 +- ...icting_elements.dart.strong.outline.expect | 4 +- .../enhanced_enums/declared_hashcode.dart | 2 +- .../declared_hashcode.dart.strong.expect | 7 - ...clared_hashcode.dart.strong.modular.expect | 7 - ...clared_hashcode.dart.strong.outline.expect | 7 - .../enhanced_enums/declared_index.dart | 2 +- .../declared_index.dart.strong.expect | 7 - .../declared_index.dart.strong.modular.expect | 7 - .../declared_index.dart.strong.outline.expect | 7 - .../enhanced_enums/declared_values.dart | 2 +- .../declared_values.dart.strong.expect | 9 - ...declared_values.dart.strong.modular.expect | 9 - ...declared_values.dart.strong.outline.expect | 9 - ...ared_values.dart.strong.transformed.expect | 9 - ..._implementers_with_restricted_members.dart | 8 +- ...with_restricted_members.dart.strong.expect | 28 -- ...tricted_members.dart.strong.modular.expect | 28 -- ...tricted_members.dart.strong.outline.expect | 28 -- ...ted_members.dart.strong.transformed.expect | 28 -- .../setter_getter_type_check.dart | 2 +- ...etter_getter_type_check.dart.strong.expect | 11 - ...tter_type_check.dart.strong.modular.expect | 11 - ...tter_type_check.dart.strong.outline.expect | 11 - ..._type_check.dart.strong.transformed.expect | 11 - .../implements_conflicts.dart.strong.expect | 17 - ...ments_conflicts.dart.strong.modular.expect | 17 - ...ments_conflicts.dart.strong.outline.expect | 17 - ...s_conflicts.dart.strong.transformed.expect | 17 - ...tract_super_application.dart.strong.expect | 8 +- ...per_application.dart.strong.modular.expect | 8 +- ...per_application.dart.strong.outline.expect | 8 +- ...application.dart.strong.transformed.expect | 12 +- .../hierarchy/conflict.dart.strong.expect | 24 +- .../conflict.dart.strong.modular.expect | 24 +- .../conflict.dart.strong.outline.expect | 24 +- .../getter_setter.dart.strong.expect | 394 ++---------------- .../getter_setter.dart.strong.modular.expect | 394 ++---------------- .../getter_setter.dart.strong.outline.expect | 394 ++---------------- .../hierarchy/mix_in_field.dart.strong.expect | 8 +- .../mix_in_field.dart.strong.modular.expect | 8 +- .../mix_in_field.dart.strong.outline.expect | 8 +- ...ix_in_field.dart.strong.transformed.expect | 8 +- .../no_such_method.dart.strong.expect | 68 +-- .../no_such_method.dart.strong.modular.expect | 68 +-- .../no_such_method.dart.strong.outline.expect | 110 ++--- ...such_method.dart.strong.transformed.expect | 68 +-- .../general/issue46389.dart.strong.expect | 4 +- .../issue46389.dart.strong.modular.expect | 4 +- .../issue46389.dart.strong.outline.expect | 4 +- .../issue46389.dart.strong.transformed.expect | 4 +- .../mixin_super/main.dart.strong.expect | 48 +-- .../main.dart.strong.modular.expect | 48 +-- .../main.dart.strong.outline.expect | 48 +-- .../main.dart.strong.transformed.expect | 48 +-- .../pre_feature/declared_hashcode.dart | 11 + .../declared_hashcode.dart.strong.expect | 38 ++ ...clared_hashcode.dart.strong.modular.expect | 38 ++ ...clared_hashcode.dart.strong.outline.expect | 31 ++ ...ed_hashcode.dart.strong.transformed.expect | 38 ++ ...lared_hashcode.dart.textual_outline.expect | 7 + ...hcode.dart.textual_outline_modelled.expect | 7 + .../pre_feature/declared_index.dart | 11 + .../declared_index.dart.strong.expect | 38 ++ .../declared_index.dart.strong.modular.expect | 38 ++ .../declared_index.dart.strong.outline.expect | 31 ++ ...lared_index.dart.strong.transformed.expect | 38 ++ ...declared_index.dart.textual_outline.expect | 7 + ...index.dart.textual_outline_modelled.expect | 7 + .../pre_feature/declared_values.dart | 11 + .../declared_values.dart.strong.expect | 40 ++ ...declared_values.dart.strong.modular.expect | 40 ++ ...declared_values.dart.strong.outline.expect | 33 ++ ...ared_values.dart.strong.transformed.expect | 40 ++ ...eclared_values.dart.textual_outline.expect | 7 + ...alues.dart.textual_outline_modelled.expect | 7 + ..._implementers_with_restricted_members.dart | 15 + ...with_restricted_members.dart.strong.expect | 46 ++ ...tricted_members.dart.strong.modular.expect | 46 ++ ...tricted_members.dart.strong.outline.expect | 49 +++ ...ted_members.dart.strong.transformed.expect | 46 ++ ...ricted_members.dart.textual_outline.expect | 11 + ...mbers.dart.textual_outline_modelled.expect | 11 + .../getter_vs_setter_type_late.dart | 13 + ...ter_vs_setter_type_late.dart.strong.expect | 26 ++ ...etter_type_late.dart.strong.modular.expect | 26 ++ ...etter_type_late.dart.strong.outline.expect | 24 ++ ...r_type_late.dart.strong.transformed.expect | 26 ++ ...tter_type_late.dart.textual_outline.expect | 9 + ..._late.dart.textual_outline_modelled.expect | 9 + .../pre_feature/setter_getter_type_check.dart | 11 + ...etter_getter_type_check.dart.strong.expect | 39 ++ ...tter_type_check.dart.strong.modular.expect | 39 ++ ...tter_type_check.dart.strong.outline.expect | 32 ++ ..._type_check.dart.strong.transformed.expect | 39 ++ ...ter_type_check.dart.textual_outline.expect | 7 + ...check.dart.textual_outline_modelled.expect | 7 + .../pre_feature/top_level_properties.dart | 21 + .../top_level_properties.dart.strong.expect | 43 ++ ...evel_properties.dart.strong.modular.expect | 43 ++ ...evel_properties.dart.strong.outline.expect | 39 ++ ..._properties.dart.strong.transformed.expect | 43 ++ ...vel_properties.dart.textual_outline.expect | 17 + ...rties.dart.textual_outline_modelled.expect | 17 + ...field_getter_and_setter.dart.strong.expect | 17 - ...tter_and_setter.dart.strong.modular.expect | 17 - ...tter_and_setter.dart.strong.outline.expect | 17 - ..._and_setter.dart.strong.transformed.expect | 17 - ..._getter_setter_mismatch.dart.strong.expect | 7 - ...setter_mismatch.dart.strong.modular.expect | 7 - ...setter_mismatch.dart.strong.outline.expect | 7 - ...er_mismatch.dart.strong.transformed.expect | 7 - ...ield_override_accessors.dart.strong.expect | 9 - ...rride_accessors.dart.strong.modular.expect | 9 - ...rride_accessors.dart.strong.outline.expect | 9 - ...e_accessors.dart.strong.transformed.expect | 9 - ...roperty_assign_combiner.dart.strong.expect | 12 - ...assign_combiner.dart.strong.modular.expect | 12 - ...assign_combiner.dart.strong.outline.expect | 12 - ...gn_combiner.dart.strong.transformed.expect | 12 - .../static_assign_combiner.dart.strong.expect | 12 - ...assign_combiner.dart.strong.modular.expect | 12 - ...assign_combiner.dart.strong.outline.expect | 12 - ...gn_combiner.dart.strong.transformed.expect | 12 - .../getter_vs_setter_type.dart.strong.expect | 14 - ..._vs_setter_type.dart.strong.modular.expect | 14 - ..._vs_setter_type.dart.strong.outline.expect | 14 - ...setter_type.dart.strong.transformed.expect | 14 - .../getter_vs_setter_type.dart.strong.expect | 90 ---- ..._vs_setter_type.dart.strong.modular.expect | 90 ---- ..._vs_setter_type.dart.strong.outline.expect | 90 ---- .../nnbd/getter_vs_setter_type_late.dart | 2 +- ...ter_vs_setter_type_late.dart.strong.expect | 14 - ...etter_type_late.dart.strong.modular.expect | 14 - ...etter_type_late.dart.strong.outline.expect | 14 - ...r_type_late.dart.strong.transformed.expect | 14 - ...ter_vs_setter_type_nnbd.dart.strong.expect | 90 ---- ...etter_type_nnbd.dart.strong.modular.expect | 90 ---- ...etter_type_nnbd.dart.strong.outline.expect | 90 ---- ...r_type_nnbd.dart.strong.transformed.expect | 90 ---- .../nnbd/issue40945.dart.strong.expect | 10 - .../issue40945.dart.strong.modular.expect | 10 - .../issue40945.dart.strong.outline.expect | 10 - .../issue40945.dart.strong.transformed.expect | 10 - .../patterns/access_order.dart.strong.expect | 16 +- .../access_order.dart.strong.modular.expect | 16 +- .../access_order.dart.strong.outline.expect | 16 +- ...ccess_order.dart.strong.transformed.expect | 40 +- ...esses_list_element_once.dart.strong.expect | 16 +- ...st_element_once.dart.strong.modular.expect | 16 +- ...st_element_once.dart.strong.outline.expect | 16 +- ...lement_once.dart.strong.transformed.expect | 40 +- .../negative_length.dart.strong.expect | 16 +- ...negative_length.dart.strong.modular.expect | 16 +- ...negative_length.dart.strong.outline.expect | 16 +- ...tive_length.dart.strong.transformed.expect | 40 +- 184 files changed, 2155 insertions(+), 3146 deletions(-) create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.modular.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.transformed.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.textual_outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.textual_outline_modelled.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.modular.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.transformed.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.textual_outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.textual_outline_modelled.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.modular.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.transformed.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.textual_outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.textual_outline_modelled.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.modular.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.transformed.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.textual_outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.textual_outline_modelled.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.modular.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.transformed.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.textual_outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.textual_outline_modelled.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.modular.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.transformed.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.textual_outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.textual_outline_modelled.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.modular.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.transformed.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.textual_outline.expect create mode 100644 pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.textual_outline_modelled.expect diff --git a/pkg/front_end/lib/src/type_inference/inference_visitor.dart b/pkg/front_end/lib/src/type_inference/inference_visitor.dart index 1c4dde67b74..a8ed367d7e3 100644 --- a/pkg/front_end/lib/src/type_inference/inference_visitor.dart +++ b/pkg/front_end/lib/src/type_inference/inference_visitor.dart @@ -11591,9 +11591,7 @@ class InferenceVisitorImpl extends InferenceVisitorBase node.containsKeyTarget = containsKeyTarget.classMember as Procedure; node.containsKeyType = - containsKeyTarget - .getFunctionType(this) - .containsKeyFunctionType; + containsKeyTarget.getFunctionType(this).containsKeyFunctionType; ObjectAccessTarget indexGetTarget = findInterfaceMember( lookupType, indexGetName, node.fileOffset, @@ -11602,9 +11600,7 @@ class InferenceVisitorImpl extends InferenceVisitorBase node.indexGetTarget = indexGetTarget.classMember as Procedure; node.indexGetType = - indexGetTarget - .getFunctionType(this) - .indexGetFunctionType; + indexGetTarget.getFunctionType(this).indexGetFunctionType; } assert(checkStack(node, stackBase, [ diff --git a/pkg/front_end/test/coverage_suite_expected.dart b/pkg/front_end/test/coverage_suite_expected.dart index 61546629b0e..d4217b777d6 100644 --- a/pkg/front_end/test/coverage_suite_expected.dart +++ b/pkg/front_end/test/coverage_suite_expected.dart @@ -670,7 +670,7 @@ const Map _expect = { ), // 100.0%. "package:front_end/src/kernel/hierarchy/members_node.dart": ( - hitCount: 1163, + hitCount: 1167, missCount: 0, ), // 100.0%. @@ -905,7 +905,7 @@ const Map _expect = { ), // 100.0%. "package:front_end/src/source/source_enum_builder.dart": ( - hitCount: 515, + hitCount: 517, missCount: 0, ), // 100.0%. @@ -936,7 +936,7 @@ const Map _expect = { ), // 100.0%. "package:front_end/src/source/source_library_builder.dart": ( - hitCount: 1344, + hitCount: 1347, missCount: 0, ), // 100.0%. @@ -1001,7 +1001,7 @@ const Map _expect = { ), // 100.0%. "package:front_end/src/type_inference/inference_visitor.dart": ( - hitCount: 8249, + hitCount: 8254, missCount: 0, ), // 100.0%. @@ -1016,7 +1016,7 @@ const Map _expect = { ), // 100.0%. "package:front_end/src/type_inference/matching_expressions.dart": ( - hitCount: 519, + hitCount: 521, missCount: 0, ), // 100.0%. diff --git a/pkg/front_end/test/testing/folder_options.dart b/pkg/front_end/test/testing/folder_options.dart index a2b4e54fa6b..490dad1a5c8 100644 --- a/pkg/front_end/test/testing/folder_options.dart +++ b/pkg/front_end/test/testing/folder_options.dart @@ -135,6 +135,7 @@ class SuiteFolderOptions { // Force enable features in development. ExperimentalFlag.nullAwareElements: true, ExperimentalFlag.inferenceUsingBounds: true, + ExperimentalFlag.getterSetterError: true, }; void addForcedExperimentalFlag(String name, ExperimentalFlag flag) { diff --git a/pkg/front_end/testcases/class_modifiers/mixin/mixin_class_core_libraries.dart.strong.expect b/pkg/front_end/testcases/class_modifiers/mixin/mixin_class_core_libraries.dart.strong.expect index 51170b14332..cd299f2d6a5 100644 --- a/pkg/front_end/testcases/class_modifiers/mixin/mixin_class_core_libraries.dart.strong.expect +++ b/pkg/front_end/testcases/class_modifiers/mixin/mixin_class_core_libraries.dart.strong.expect @@ -37,12 +37,12 @@ abstract class _B&Object&Error = core::Object with core::Error /*isAnonymousMixi synthetic constructor •() → self::_B&Object&Error : super core::Object::•() ; + mixin-super-stub get stackTrace() → core::StackTrace? + return super.{core::Error::stackTrace}; mixin-super-stub get _stackTrace() → core::StackTrace? return super.{core::Error::_stackTrace}; mixin-super-stub set _stackTrace(core::StackTrace? value) → void return super.{core::Error::_stackTrace} = value; - mixin-super-stub get stackTrace() → core::StackTrace? - return super.{core::Error::stackTrace}; } class B extends self::_B&Object&Error { synthetic constructor •() → self::B diff --git a/pkg/front_end/testcases/class_modifiers/mixin/mixin_class_core_libraries.dart.strong.modular.expect b/pkg/front_end/testcases/class_modifiers/mixin/mixin_class_core_libraries.dart.strong.modular.expect index 51170b14332..cd299f2d6a5 100644 --- a/pkg/front_end/testcases/class_modifiers/mixin/mixin_class_core_libraries.dart.strong.modular.expect +++ b/pkg/front_end/testcases/class_modifiers/mixin/mixin_class_core_libraries.dart.strong.modular.expect @@ -37,12 +37,12 @@ abstract class _B&Object&Error = core::Object with core::Error /*isAnonymousMixi synthetic constructor •() → self::_B&Object&Error : super core::Object::•() ; + mixin-super-stub get stackTrace() → core::StackTrace? + return super.{core::Error::stackTrace}; mixin-super-stub get _stackTrace() → core::StackTrace? return super.{core::Error::_stackTrace}; mixin-super-stub set _stackTrace(core::StackTrace? value) → void return super.{core::Error::_stackTrace} = value; - mixin-super-stub get stackTrace() → core::StackTrace? - return super.{core::Error::stackTrace}; } class B extends self::_B&Object&Error { synthetic constructor •() → self::B diff --git a/pkg/front_end/testcases/class_modifiers/mixin/mixin_class_core_libraries.dart.strong.outline.expect b/pkg/front_end/testcases/class_modifiers/mixin/mixin_class_core_libraries.dart.strong.outline.expect index 50b4f9f6e0c..2b0dc1c931c 100644 --- a/pkg/front_end/testcases/class_modifiers/mixin/mixin_class_core_libraries.dart.strong.outline.expect +++ b/pkg/front_end/testcases/class_modifiers/mixin/mixin_class_core_libraries.dart.strong.outline.expect @@ -36,12 +36,12 @@ abstract class _B&Object&Error = core::Object with core::Error /*isAnonymousMixi synthetic constructor •() → self::_B&Object&Error : super core::Object::•() ; + mixin-super-stub get stackTrace() → core::StackTrace? + return super.{core::Error::stackTrace}; mixin-super-stub get _stackTrace() → core::StackTrace? return super.{core::Error::_stackTrace}; mixin-super-stub set _stackTrace(core::StackTrace? value) → void return super.{core::Error::_stackTrace} = value; - mixin-super-stub get stackTrace() → core::StackTrace? - return super.{core::Error::stackTrace}; } class B extends self::_B&Object&Error { synthetic constructor •() → self::B diff --git a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.expect b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.expect index e9ebfcf84d7..9ccbc56ed1e 100644 --- a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.expect +++ b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.expect @@ -45,14 +45,14 @@ class C1 extends core::Object implements self::C { return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::List; no-such-method-forwarder set v6(core::List value) → void return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; - no-such-method-forwarder get g() → FutureOr> - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} FutureOr>; - no-such-method-forwarder set g(FutureOr>value) → void - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; no-such-method-forwarder get v7() → Null return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v7", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} Null; no-such-method-forwarder operator +(core::double other) → core::double return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("+", [], [other], #C3, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::double; + no-such-method-forwarder get g() → FutureOr> + return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} FutureOr>; + no-such-method-forwarder set g(FutureOr>value) → void + return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; no-such-method-forwarder method /* signature-type: (self::C, [core::Set>]) → core::Map */ m1(covariant-by-declaration self::C arg1, [core::Set>? arg2 = #C2]) → core::Map return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("m1", [], [arg1, arg2], #C3, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::Map; no-such-method-forwarder method /* signature-type: ({arg1: dynamic, arg2: ((dynamic) → dynamic, dynamic) → core::Map}) → void */ m2({dynamic arg1 = #C2, ((dynamic) → dynamic, dynamic) →? core::Map arg2 = #C2}) → void diff --git a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.modular.expect b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.modular.expect index e9ebfcf84d7..9ccbc56ed1e 100644 --- a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.modular.expect +++ b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.modular.expect @@ -45,14 +45,14 @@ class C1 extends core::Object implements self::C { return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::List; no-such-method-forwarder set v6(core::List value) → void return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; - no-such-method-forwarder get g() → FutureOr> - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} FutureOr>; - no-such-method-forwarder set g(FutureOr>value) → void - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; no-such-method-forwarder get v7() → Null return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v7", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} Null; no-such-method-forwarder operator +(core::double other) → core::double return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("+", [], [other], #C3, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::double; + no-such-method-forwarder get g() → FutureOr> + return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} FutureOr>; + no-such-method-forwarder set g(FutureOr>value) → void + return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; no-such-method-forwarder method /* signature-type: (self::C, [core::Set>]) → core::Map */ m1(covariant-by-declaration self::C arg1, [core::Set>? arg2 = #C2]) → core::Map return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("m1", [], [arg1, arg2], #C3, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::Map; no-such-method-forwarder method /* signature-type: ({arg1: dynamic, arg2: ((dynamic) → dynamic, dynamic) → core::Map}) → void */ m2({dynamic arg1 = #C2, ((dynamic) → dynamic, dynamic) →? core::Map arg2 = #C2}) → void diff --git a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.outline.expect b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.outline.expect index 64db3492e00..0d5d809a249 100644 --- a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.outline.expect +++ b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.outline.expect @@ -42,14 +42,14 @@ class C1 extends core::Object implements self::C { return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6", [], [], const {}, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::List; no-such-method-forwarder set v6(core::List value) → void return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6=", [], [value], const {}, 2)){(core::Invocation) → dynamic}; - no-such-method-forwarder get g() → FutureOr> - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g", [], [], const {}, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} FutureOr>; - no-such-method-forwarder set g(FutureOr>value) → void - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g=", [], [value], const {}, 2)){(core::Invocation) → dynamic}; no-such-method-forwarder get v7() → Null return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v7", [], [], const {}, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} Null; no-such-method-forwarder operator +(core::double other) → core::double return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("+", [], [other], const {}, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::double; + no-such-method-forwarder get g() → FutureOr> + return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g", [], [], const {}, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} FutureOr>; + no-such-method-forwarder set g(FutureOr>value) → void + return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g=", [], [value], const {}, 2)){(core::Invocation) → dynamic}; no-such-method-forwarder method /* signature-type: (self::C, [core::Set>]) → core::Map */ m1(covariant-by-declaration self::C arg1, [core::Set>? arg2]) → core::Map return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("m1", [], [arg1, arg2], const {}, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::Map; no-such-method-forwarder method /* signature-type: ({arg1: dynamic, arg2: ((dynamic) → dynamic, dynamic) → core::Map}) → void */ m2({dynamic arg1, ((dynamic) → dynamic, dynamic) →? core::Map arg2}) → void diff --git a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.transformed.expect b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.transformed.expect index e9ebfcf84d7..9ccbc56ed1e 100644 --- a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.strong.transformed.expect @@ -45,14 +45,14 @@ class C1 extends core::Object implements self::C { return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::List; no-such-method-forwarder set v6(core::List value) → void return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; - no-such-method-forwarder get g() → FutureOr> - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} FutureOr>; - no-such-method-forwarder set g(FutureOr>value) → void - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; no-such-method-forwarder get v7() → Null return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v7", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} Null; no-such-method-forwarder operator +(core::double other) → core::double return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("+", [], [other], #C3, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::double; + no-such-method-forwarder get g() → FutureOr> + return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} FutureOr>; + no-such-method-forwarder set g(FutureOr>value) → void + return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; no-such-method-forwarder method /* signature-type: (self::C, [core::Set>]) → core::Map */ m1(covariant-by-declaration self::C arg1, [core::Set>? arg2 = #C2]) → core::Map return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("m1", [], [arg1, arg2], #C3, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::Map; no-such-method-forwarder method /* signature-type: ({arg1: dynamic, arg2: ((dynamic) → dynamic, dynamic) → core::Map}) → void */ m2({dynamic arg1 = #C2, ((dynamic) → dynamic, dynamic) →? core::Map arg2 = #C2}) → void diff --git a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.expect b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.expect index 94f0fd659a5..3f33827c69e 100644 --- a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.expect +++ b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.expect @@ -45,14 +45,14 @@ class C1 extends core::Object implements self::C { return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::List; no-such-method-forwarder set v6(core::List value) → void return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; - no-such-method-forwarder get g() → FutureOr> - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} FutureOr>; - no-such-method-forwarder set g(FutureOr>value) → void - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; no-such-method-forwarder get v7() → Null return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v7", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} Null; no-such-method-forwarder operator +(core::double other) → core::double return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("+", [], [other], #C3, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::double; + no-such-method-forwarder get g() → FutureOr> + return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} FutureOr>; + no-such-method-forwarder set g(FutureOr>value) → void + return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; no-such-method-forwarder method /* signature-type: (self::C, [core::Set>]) → core::Map */ m1(covariant-by-declaration self::C arg1, [core::Set>? arg2 = #C2]) → core::Map return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("m1", [], [arg1, arg2], #C3, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::Map; no-such-method-forwarder method /* signature-type: ({arg1: dynamic, arg2: ((dynamic) → dynamic, dynamic) → core::Map}) → void */ m2({dynamic arg1 = #C2, ((dynamic) → dynamic, dynamic) →? core::Map arg2 = #C2}) → void diff --git a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.transformed.expect index 94f0fd659a5..3f33827c69e 100644 --- a/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/dart2js/generic_usage_type_variable.dart.weak.transformed.expect @@ -45,14 +45,14 @@ class C1 extends core::Object implements self::C { return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::List; no-such-method-forwarder set v6(core::List value) → void return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v6=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; - no-such-method-forwarder get g() → FutureOr> - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} FutureOr>; - no-such-method-forwarder set g(FutureOr>value) → void - return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; no-such-method-forwarder get v7() → Null return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("v7", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} Null; no-such-method-forwarder operator +(core::double other) → core::double return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("+", [], [other], #C3, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::double; + no-such-method-forwarder get g() → FutureOr> + return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g", [], [], #C3, 1)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} FutureOr>; + no-such-method-forwarder set g(FutureOr>value) → void + return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("g=", [], [value], #C3, 2)){(core::Invocation) → dynamic}; no-such-method-forwarder method /* signature-type: (self::C, [core::Set>]) → core::Map */ m1(covariant-by-declaration self::C arg1, [core::Set>? arg2 = #C2]) → core::Map return this.{self::C1::noSuchMethod}(core::_createInvocationMirror("m1", [], [arg1, arg2], #C3, 0)){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::Map; no-such-method-forwarder method /* signature-type: ({arg1: dynamic, arg2: ((dynamic) → dynamic, dynamic) → core::Map}) → void */ m2({dynamic arg1 = #C2, ((dynamic) → dynamic, dynamic) →? core::Map arg2 = #C2}) → void diff --git a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.expect b/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.expect index 8a3fc2d432d..2ecfec356cf 100644 --- a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.expect +++ b/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.expect @@ -192,6 +192,10 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -200,10 +204,6 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class1b extends self::_Class1b&Class1a&Mixin1 { synthetic constructor •() → self::Class1b @@ -229,6 +229,10 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -237,10 +241,6 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class2b extends self::_Class2b&Class2a&Mixin1 { synthetic constructor •() → self::Class2b @@ -266,6 +266,10 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -274,10 +278,6 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class3b extends self::_Class3b&Class3a&Mixin1 { synthetic constructor •() → self::Class3b @@ -295,6 +295,10 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class4b&Class4a&Mixin2 : super self::Class4a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -319,10 +323,6 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2#AI}; mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class4b extends self::_Class4b&Class4a&Mixin2 { synthetic constructor •() → self::Class4b @@ -340,6 +340,10 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class5b&Class5a&Mixin2 : super self::Class5a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -364,10 +368,6 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2#AI}; mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class5b extends self::_Class5b&Class5a&Mixin2 { synthetic constructor •() → self::Class5b @@ -385,6 +385,10 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class6b&Class6a&Mixin2 : super self::Class6a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -409,10 +413,6 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2#AI}; mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class6b extends self::_Class6b&Class6a&Mixin2 { synthetic constructor •() → self::Class6b diff --git a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.modular.expect b/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.modular.expect index a9a405be362..63188811af5 100644 --- a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.modular.expect +++ b/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.modular.expect @@ -122,6 +122,10 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -130,10 +134,6 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class1b extends self::_Class1b&Class1a&Mixin1 { synthetic constructor •() → self::Class1b @@ -159,6 +159,10 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -167,10 +171,6 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class2b extends self::_Class2b&Class2a&Mixin1 { synthetic constructor •() → self::Class2b @@ -196,6 +196,10 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -204,10 +208,6 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class3b extends self::_Class3b&Class3a&Mixin1 { synthetic constructor •() → self::Class3b @@ -225,6 +225,10 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class4b&Class4a&Mixin2 : super self::Class4a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -241,10 +245,6 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class4b extends self::_Class4b&Class4a&Mixin2 { synthetic constructor •() → self::Class4b @@ -262,6 +262,10 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class5b&Class5a&Mixin2 : super self::Class5a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -278,10 +282,6 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class5b extends self::_Class5b&Class5a&Mixin2 { synthetic constructor •() → self::Class5b @@ -299,6 +299,10 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class6b&Class6a&Mixin2 : super self::Class6a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -315,10 +319,6 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class6b extends self::_Class6b&Class6a&Mixin2 { synthetic constructor •() → self::Class6b diff --git a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.outline.expect b/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.outline.expect index 83543e80cd6..f64d7b1d077 100644 --- a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.outline.expect +++ b/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.outline.expect @@ -41,6 +41,10 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -49,10 +53,6 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class1b extends self::_Class1b&Class1a&Mixin1 { synthetic constructor •() → self::Class1b @@ -76,6 +76,10 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -84,10 +88,6 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class2b extends self::_Class2b&Class2a&Mixin1 { synthetic constructor •() → self::Class2b @@ -111,6 +111,10 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -119,10 +123,6 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class3b extends self::_Class3b&Class3a&Mixin1 { synthetic constructor •() → self::Class3b @@ -138,6 +138,10 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class4b&Class4a&Mixin2 : super self::Class4a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -154,10 +158,6 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class4b extends self::_Class4b&Class4a&Mixin2 { synthetic constructor •() → self::Class4b @@ -173,6 +173,10 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class5b&Class5a&Mixin2 : super self::Class5a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -189,10 +193,6 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class5b extends self::_Class5b&Class5a&Mixin2 { synthetic constructor •() → self::Class5b @@ -208,6 +208,10 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class6b&Class6a&Mixin2 : super self::Class6a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -224,10 +228,6 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class6b extends self::_Class6b&Class6a&Mixin2 { synthetic constructor •() → self::Class6b diff --git a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.transformed.expect b/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.transformed.expect index 80b2c5bb15d..07f4571e106 100644 --- a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/dart2js/mixin_super/main.dart.strong.transformed.expect @@ -209,6 +209,10 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -217,10 +221,6 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class1b extends self::_Class1b&Class1a&Mixin1 { synthetic constructor •() → self::Class1b @@ -246,6 +246,10 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -254,10 +258,6 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class2b extends self::_Class2b&Class2a&Mixin1 { synthetic constructor •() → self::Class2b @@ -283,6 +283,10 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -291,10 +295,6 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class3b extends self::_Class3b&Class3a&Mixin1 { synthetic constructor •() → self::Class3b @@ -312,6 +312,10 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class4b&Class4a&Mixin2 : super self::Class4a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -336,10 +340,6 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2#AI}; mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class4b extends self::_Class4b&Class4a&Mixin2 { synthetic constructor •() → self::Class4b @@ -357,6 +357,10 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class5b&Class5a&Mixin2 : super self::Class5a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -381,10 +385,6 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2#AI}; mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class5b extends self::_Class5b&Class5a&Mixin2 { synthetic constructor •() → self::Class5b @@ -402,6 +402,10 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class6b&Class6a&Mixin2 : super self::Class6a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -426,10 +430,6 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2#AI}; mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class6b extends self::_Class6b&Class6a&Mixin2 { synthetic constructor •() → self::Class6b diff --git a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.weak.expect b/pkg/front_end/testcases/dart2js/mixin_super/main.dart.weak.expect index 8a3fc2d432d..2ecfec356cf 100644 --- a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.weak.expect +++ b/pkg/front_end/testcases/dart2js/mixin_super/main.dart.weak.expect @@ -192,6 +192,10 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -200,10 +204,6 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class1b extends self::_Class1b&Class1a&Mixin1 { synthetic constructor •() → self::Class1b @@ -229,6 +229,10 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -237,10 +241,6 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class2b extends self::_Class2b&Class2a&Mixin1 { synthetic constructor •() → self::Class2b @@ -266,6 +266,10 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -274,10 +278,6 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class3b extends self::_Class3b&Class3a&Mixin1 { synthetic constructor •() → self::Class3b @@ -295,6 +295,10 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class4b&Class4a&Mixin2 : super self::Class4a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -319,10 +323,6 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2#AI}; mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class4b extends self::_Class4b&Class4a&Mixin2 { synthetic constructor •() → self::Class4b @@ -340,6 +340,10 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class5b&Class5a&Mixin2 : super self::Class5a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -364,10 +368,6 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2#AI}; mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class5b extends self::_Class5b&Class5a&Mixin2 { synthetic constructor •() → self::Class5b @@ -385,6 +385,10 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class6b&Class6a&Mixin2 : super self::Class6a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -409,10 +413,6 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2#AI}; mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class6b extends self::_Class6b&Class6a&Mixin2 { synthetic constructor •() → self::Class6b diff --git a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.weak.transformed.expect b/pkg/front_end/testcases/dart2js/mixin_super/main.dart.weak.transformed.expect index 80b2c5bb15d..07f4571e106 100644 --- a/pkg/front_end/testcases/dart2js/mixin_super/main.dart.weak.transformed.expect +++ b/pkg/front_end/testcases/dart2js/mixin_super/main.dart.weak.transformed.expect @@ -209,6 +209,10 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -217,10 +221,6 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class1b extends self::_Class1b&Class1a&Mixin1 { synthetic constructor •() → self::Class1b @@ -246,6 +246,10 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -254,10 +258,6 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class2b extends self::_Class2b&Class2a&Mixin1 { synthetic constructor •() → self::Class2b @@ -283,6 +283,10 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -291,10 +295,6 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class3b extends self::_Class3b&Class3a&Mixin1 { synthetic constructor •() → self::Class3b @@ -312,6 +312,10 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class4b&Class4a&Mixin2 : super self::Class4a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -336,10 +340,6 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2#AI}; mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class4b extends self::_Class4b&Class4a&Mixin2 { synthetic constructor •() → self::Class4b @@ -357,6 +357,10 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class5b&Class5a&Mixin2 : super self::Class5a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -381,10 +385,6 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2#AI}; mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class5b extends self::_Class5b&Class5a&Mixin2 { synthetic constructor •() → self::Class5b @@ -402,6 +402,10 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class6b&Class6a&Mixin2 : super self::Class6a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -426,10 +430,6 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2#AI}; mixin-super-stub set _#Mixin2#field2#AI(core::int value) → void return super.{mai::Mixin2::_#Mixin2#field2#AI} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class6b extends self::_Class6b&Class6a&Mixin2 { synthetic constructor •() → self::Class6b diff --git a/pkg/front_end/testcases/dart2wasm/inference_update_2/issue52452.dart.strong.expect b/pkg/front_end/testcases/dart2wasm/inference_update_2/issue52452.dart.strong.expect index 0cbf33621ad..6e92083a00d 100644 --- a/pkg/front_end/testcases/dart2wasm/inference_update_2/issue52452.dart.strong.expect +++ b/pkg/front_end/testcases/dart2wasm/inference_update_2/issue52452.dart.strong.expect @@ -105,12 +105,12 @@ abstract class _E&B&M1 = self::B with self::M1 /*isAnonymousMixin*/ { return super.{self::M1::_#M1#_f4}; mixin-super-stub set _#M1#_f4(core::int? value) → void return super.{self::M1::_#M1#_f4} = value; + mixin-super-stub get _f4() → core::int? + return super.{self::M1::_f4}; mixin-super-stub get _#M1#_f4#isSet() → core::bool return super.{self::M1::_#M1#_f4#isSet}; mixin-super-stub set _#M1#_f4#isSet(core::bool value) → void return super.{self::M1::_#M1#_f4#isSet} = value; - mixin-super-stub get _f4() → core::int? - return super.{self::M1::_f4}; } class E extends self::_E&B&M1 implements self::D { constructor •(core::int? i) → self::E diff --git a/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.expect b/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.expect index 0cbf33621ad..6e92083a00d 100644 --- a/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.expect +++ b/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.expect @@ -105,12 +105,12 @@ abstract class _E&B&M1 = self::B with self::M1 /*isAnonymousMixin*/ { return super.{self::M1::_#M1#_f4}; mixin-super-stub set _#M1#_f4(core::int? value) → void return super.{self::M1::_#M1#_f4} = value; + mixin-super-stub get _f4() → core::int? + return super.{self::M1::_f4}; mixin-super-stub get _#M1#_f4#isSet() → core::bool return super.{self::M1::_#M1#_f4#isSet}; mixin-super-stub set _#M1#_f4#isSet(core::bool value) → void return super.{self::M1::_#M1#_f4#isSet} = value; - mixin-super-stub get _f4() → core::int? - return super.{self::M1::_f4}; } class E extends self::_E&B&M1 implements self::D { constructor •(core::int? i) → self::E diff --git a/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.modular.expect b/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.modular.expect index 0cbf33621ad..6e92083a00d 100644 --- a/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.modular.expect +++ b/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.modular.expect @@ -105,12 +105,12 @@ abstract class _E&B&M1 = self::B with self::M1 /*isAnonymousMixin*/ { return super.{self::M1::_#M1#_f4}; mixin-super-stub set _#M1#_f4(core::int? value) → void return super.{self::M1::_#M1#_f4} = value; + mixin-super-stub get _f4() → core::int? + return super.{self::M1::_f4}; mixin-super-stub get _#M1#_f4#isSet() → core::bool return super.{self::M1::_#M1#_f4#isSet}; mixin-super-stub set _#M1#_f4#isSet(core::bool value) → void return super.{self::M1::_#M1#_f4#isSet} = value; - mixin-super-stub get _f4() → core::int? - return super.{self::M1::_f4}; } class E extends self::_E&B&M1 implements self::D { constructor •(core::int? i) → self::E diff --git a/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.outline.expect b/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.outline.expect index 77cf2f1f8dc..f63269caf86 100644 --- a/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.outline.expect +++ b/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.outline.expect @@ -80,12 +80,12 @@ abstract class _E&B&M1 = self::B with self::M1 /*isAnonymousMixin*/ { return super.{self::M1::_#M1#_f4}; mixin-super-stub set _#M1#_f4(core::int? value) → void return super.{self::M1::_#M1#_f4} = value; + mixin-super-stub get _f4() → core::int? + return super.{self::M1::_f4}; mixin-super-stub get _#M1#_f4#isSet() → core::bool return super.{self::M1::_#M1#_f4#isSet}; mixin-super-stub set _#M1#_f4#isSet(core::bool value) → void return super.{self::M1::_#M1#_f4#isSet} = value; - mixin-super-stub get _f4() → core::int? - return super.{self::M1::_f4}; } class E extends self::_E&B&M1 implements self::D { constructor •(core::int? i) → self::E diff --git a/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.transformed.expect b/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.transformed.expect index 0cbf33621ad..6e92083a00d 100644 --- a/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/dartdevc/inference_update_2/issue52452.dart.strong.transformed.expect @@ -105,12 +105,12 @@ abstract class _E&B&M1 = self::B with self::M1 /*isAnonymousMixin*/ { return super.{self::M1::_#M1#_f4}; mixin-super-stub set _#M1#_f4(core::int? value) → void return super.{self::M1::_#M1#_f4} = value; + mixin-super-stub get _f4() → core::int? + return super.{self::M1::_f4}; mixin-super-stub get _#M1#_f4#isSet() → core::bool return super.{self::M1::_#M1#_f4#isSet}; mixin-super-stub set _#M1#_f4#isSet(core::bool value) → void return super.{self::M1::_#M1#_f4#isSet} = value; - mixin-super-stub get _f4() → core::int? - return super.{self::M1::_f4}; } class E extends self::_E&B&M1 implements self::D { constructor •(core::int? i) → self::E diff --git a/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.expect b/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.expect index f7a28392920..612f22c5abb 100644 --- a/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.expect +++ b/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.expect @@ -208,6 +208,10 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{self::Mixin1::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -216,10 +220,6 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class1b extends self::_Class1b&Class1a&Mixin1 { synthetic constructor •() → self::Class1b @@ -253,6 +253,10 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{self::Mixin1::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -261,10 +265,6 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class2b extends self::_Class2b&Class2a&Mixin1 { synthetic constructor •() → self::Class2b @@ -298,6 +298,10 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{self::Mixin1::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -306,10 +310,6 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class3b extends self::_Class3b&Class3a&Mixin1 { synthetic constructor •() → self::Class3b @@ -335,6 +335,10 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{mai::Mixin2::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -351,10 +355,6 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2}; mixin-super-stub set _#Mixin2#field2(core::int? value) → void return super.{mai::Mixin2::_#Mixin2#field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class4b extends self::_Class4b&Class4a&Mixin2 { synthetic constructor •() → self::Class4b @@ -380,6 +380,10 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{mai::Mixin2::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -396,10 +400,6 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2}; mixin-super-stub set _#Mixin2#field2(core::int? value) → void return super.{mai::Mixin2::_#Mixin2#field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class5b extends self::_Class5b&Class5a&Mixin2 { synthetic constructor •() → self::Class5b @@ -425,6 +425,10 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{mai::Mixin2::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -441,10 +445,6 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2}; mixin-super-stub set _#Mixin2#field2(core::int? value) → void return super.{mai::Mixin2::_#Mixin2#field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class6b extends self::_Class6b&Class6a&Mixin2 { synthetic constructor •() → self::Class6b diff --git a/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.modular.expect b/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.modular.expect index 445728229c3..5c6f41d3c4a 100644 --- a/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.modular.expect +++ b/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.modular.expect @@ -138,6 +138,10 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{self::Mixin1::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -146,10 +150,6 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class1b extends self::_Class1b&Class1a&Mixin1 { synthetic constructor •() → self::Class1b @@ -183,6 +183,10 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{self::Mixin1::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -191,10 +195,6 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class2b extends self::_Class2b&Class2a&Mixin1 { synthetic constructor •() → self::Class2b @@ -228,6 +228,10 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{self::Mixin1::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -236,10 +240,6 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class3b extends self::_Class3b&Class3a&Mixin1 { synthetic constructor •() → self::Class3b @@ -265,6 +265,10 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{mai::Mixin2::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -281,10 +285,6 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2}; mixin-super-stub set _#Mixin2#field2(core::int? value) → void return super.{mai::Mixin2::_#Mixin2#field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class4b extends self::_Class4b&Class4a&Mixin2 { synthetic constructor •() → self::Class4b @@ -310,6 +310,10 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{mai::Mixin2::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -326,10 +330,6 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2}; mixin-super-stub set _#Mixin2#field2(core::int? value) → void return super.{mai::Mixin2::_#Mixin2#field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class5b extends self::_Class5b&Class5a&Mixin2 { synthetic constructor •() → self::Class5b @@ -355,6 +355,10 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{mai::Mixin2::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -371,10 +375,6 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2}; mixin-super-stub set _#Mixin2#field2(core::int? value) → void return super.{mai::Mixin2::_#Mixin2#field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class6b extends self::_Class6b&Class6a&Mixin2 { synthetic constructor •() → self::Class6b diff --git a/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.outline.expect b/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.outline.expect index dd78911298b..f9875715d1c 100644 --- a/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.outline.expect +++ b/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.outline.expect @@ -53,6 +53,10 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{self::Mixin1::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -61,10 +65,6 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class1b extends self::_Class1b&Class1a&Mixin1 { synthetic constructor •() → self::Class1b @@ -96,6 +96,10 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{self::Mixin1::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -104,10 +108,6 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class2b extends self::_Class2b&Class2a&Mixin1 { synthetic constructor •() → self::Class2b @@ -139,6 +139,10 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{self::Mixin1::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -147,10 +151,6 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class3b extends self::_Class3b&Class3a&Mixin1 { synthetic constructor •() → self::Class3b @@ -174,6 +174,10 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{mai::Mixin2::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -190,10 +194,6 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2}; mixin-super-stub set _#Mixin2#field2(core::int? value) → void return super.{mai::Mixin2::_#Mixin2#field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class4b extends self::_Class4b&Class4a&Mixin2 { synthetic constructor •() → self::Class4b @@ -217,6 +217,10 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{mai::Mixin2::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -233,10 +237,6 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2}; mixin-super-stub set _#Mixin2#field2(core::int? value) → void return super.{mai::Mixin2::_#Mixin2#field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class5b extends self::_Class5b&Class5a&Mixin2 { synthetic constructor •() → self::Class5b @@ -260,6 +260,10 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{mai::Mixin2::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -276,10 +280,6 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2}; mixin-super-stub set _#Mixin2#field2(core::int? value) → void return super.{mai::Mixin2::_#Mixin2#field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class6b extends self::_Class6b&Class6a&Mixin2 { synthetic constructor •() → self::Class6b diff --git a/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.transformed.expect b/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.transformed.expect index f7a28392920..612f22c5abb 100644 --- a/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/dartdevc/mixin_super/main.dart.strong.transformed.expect @@ -208,6 +208,10 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{self::Mixin1::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -216,10 +220,6 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class1b extends self::_Class1b&Class1a&Mixin1 { synthetic constructor •() → self::Class1b @@ -253,6 +253,10 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{self::Mixin1::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -261,10 +265,6 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class2b extends self::_Class2b&Class2a&Mixin1 { synthetic constructor •() → self::Class2b @@ -298,6 +298,10 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{self::Mixin1::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -306,10 +310,6 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class3b extends self::_Class3b&Class3a&Mixin1 { synthetic constructor •() → self::Class3b @@ -335,6 +335,10 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{mai::Mixin2::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -351,10 +355,6 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2}; mixin-super-stub set _#Mixin2#field2(core::int? value) → void return super.{mai::Mixin2::_#Mixin2#field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class4b extends self::_Class4b&Class4a&Mixin2 { synthetic constructor •() → self::Class4b @@ -380,6 +380,10 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{mai::Mixin2::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -396,10 +400,6 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2}; mixin-super-stub set _#Mixin2#field2(core::int? value) → void return super.{mai::Mixin2::_#Mixin2#field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class5b extends self::_Class5b&Class5a&Mixin2 { synthetic constructor •() → self::Class5b @@ -425,6 +425,10 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int field2#param) → void return super.{mai::Mixin2::field2} = field2#param; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -441,10 +445,6 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::_#Mixin2#field2}; mixin-super-stub set _#Mixin2#field2(core::int? value) → void return super.{mai::Mixin2::_#Mixin2#field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class6b extends self::_Class6b&Class6a&Mixin2 { synthetic constructor •() → self::Class6b diff --git a/pkg/front_end/testcases/enhanced_enums/conflicting_elements.dart.strong.expect b/pkg/front_end/testcases/enhanced_enums/conflicting_elements.dart.strong.expect index f150fd60e50..8f9e3dc8901 100644 --- a/pkg/front_end/testcases/enhanced_enums/conflicting_elements.dart.strong.expect +++ b/pkg/front_end/testcases/enhanced_enums/conflicting_elements.dart.strong.expect @@ -163,10 +163,10 @@ abstract class _E9&_Enum&A9 = core::_Enum with self::A9 /*isAnonymousMixin*/ { synthetic constructor •(core::int index, core::String _name) → self::_E9&_Enum&A9 : super core::_Enum::•(index, _name) ; - mixin-super-stub get element() → core::int - return super.{self::A9::element}; mixin-super-stub set element(core::int value) → void return super.{self::A9::element} = value; + mixin-super-stub get element() → core::int + return super.{self::A9::element}; } class E9 extends self::_E9&_Enum&A9 /*isEnum*/ { static const field core::List values = invalid-expression "A constant constructor can't call a non-constant super constructor."; diff --git a/pkg/front_end/testcases/enhanced_enums/conflicting_elements.dart.strong.modular.expect b/pkg/front_end/testcases/enhanced_enums/conflicting_elements.dart.strong.modular.expect index f150fd60e50..8f9e3dc8901 100644 --- a/pkg/front_end/testcases/enhanced_enums/conflicting_elements.dart.strong.modular.expect +++ b/pkg/front_end/testcases/enhanced_enums/conflicting_elements.dart.strong.modular.expect @@ -163,10 +163,10 @@ abstract class _E9&_Enum&A9 = core::_Enum with self::A9 /*isAnonymousMixin*/ { synthetic constructor •(core::int index, core::String _name) → self::_E9&_Enum&A9 : super core::_Enum::•(index, _name) ; - mixin-super-stub get element() → core::int - return super.{self::A9::element}; mixin-super-stub set element(core::int value) → void return super.{self::A9::element} = value; + mixin-super-stub get element() → core::int + return super.{self::A9::element}; } class E9 extends self::_E9&_Enum&A9 /*isEnum*/ { static const field core::List values = invalid-expression "A constant constructor can't call a non-constant super constructor."; diff --git a/pkg/front_end/testcases/enhanced_enums/conflicting_elements.dart.strong.outline.expect b/pkg/front_end/testcases/enhanced_enums/conflicting_elements.dart.strong.outline.expect index 06143192aab..339c439d933 100644 --- a/pkg/front_end/testcases/enhanced_enums/conflicting_elements.dart.strong.outline.expect +++ b/pkg/front_end/testcases/enhanced_enums/conflicting_elements.dart.strong.outline.expect @@ -168,10 +168,10 @@ abstract class _E9&_Enum&A9 = core::_Enum with self::A9 /*isAnonymousMixin*/ { synthetic constructor •(core::int index, core::String _name) → self::_E9&_Enum&A9 : super core::_Enum::•(index, _name) ; - mixin-super-stub get element() → core::int - return super.{self::A9::element}; mixin-super-stub set element(core::int value) → void return super.{self::A9::element} = value; + mixin-super-stub get element() → core::int + return super.{self::A9::element}; } class E9 extends self::_E9&_Enum&A9 /*isEnum*/ { static const field core::List values = const [self::E9::element]; diff --git a/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart b/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart index 2630888780d..500988cc62d 100644 --- a/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart +++ b/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart @@ -49,7 +49,7 @@ enum E7 { enum E8 { element; - void set hashCode(String value) {} // Error. + void set hashCode(String value) {} } enum E9 { diff --git a/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart.strong.expect b/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart.strong.expect index 5f03ed399ac..c03f0b5c4cd 100644 --- a/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart.strong.expect +++ b/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart.strong.expect @@ -66,13 +66,6 @@ library; // int get hashCode => _getHash(this); // ^ // -// pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart:52:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'String' of the setter 'E8.hashCode'. -// void set hashCode(String value) {} // Error. -// ^^^^^^^^ -// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. -// int get hashCode => _getHash(this); -// ^^^^^^^^ -// // pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart:58:14: Error: The return type of the method 'E9.hashCode' is 'double', which does not match the return type, 'int', of the overridden method, 'Object.hashCode'. // Change to a subtype of 'int'. // double get hashCode; // Error. diff --git a/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart.strong.modular.expect b/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart.strong.modular.expect index 5f03ed399ac..c03f0b5c4cd 100644 --- a/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart.strong.modular.expect +++ b/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart.strong.modular.expect @@ -66,13 +66,6 @@ library; // int get hashCode => _getHash(this); // ^ // -// pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart:52:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'String' of the setter 'E8.hashCode'. -// void set hashCode(String value) {} // Error. -// ^^^^^^^^ -// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. -// int get hashCode => _getHash(this); -// ^^^^^^^^ -// // pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart:58:14: Error: The return type of the method 'E9.hashCode' is 'double', which does not match the return type, 'int', of the overridden method, 'Object.hashCode'. // Change to a subtype of 'int'. // double get hashCode; // Error. diff --git a/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart.strong.outline.expect b/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart.strong.outline.expect index e485aad9d46..4afa4cb202b 100644 --- a/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart.strong.outline.expect +++ b/pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart.strong.outline.expect @@ -66,13 +66,6 @@ library; // int get hashCode => _getHash(this); // ^ // -// pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart:52:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'String' of the setter 'E8.hashCode'. -// void set hashCode(String value) {} // Error. -// ^^^^^^^^ -// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. -// int get hashCode => _getHash(this); -// ^^^^^^^^ -// // pkg/front_end/testcases/enhanced_enums/declared_hashcode.dart:58:14: Error: The return type of the method 'E9.hashCode' is 'double', which does not match the return type, 'int', of the overridden method, 'Object.hashCode'. // Change to a subtype of 'int'. // double get hashCode; // Error. diff --git a/pkg/front_end/testcases/enhanced_enums/declared_index.dart b/pkg/front_end/testcases/enhanced_enums/declared_index.dart index db6042d474c..6b551807093 100644 --- a/pkg/front_end/testcases/enhanced_enums/declared_index.dart +++ b/pkg/front_end/testcases/enhanced_enums/declared_index.dart @@ -49,7 +49,7 @@ enum E7 { enum E8 { element; - void set index(String value) {} // Error. + void set index(String value) {} } enum E9 { diff --git a/pkg/front_end/testcases/enhanced_enums/declared_index.dart.strong.expect b/pkg/front_end/testcases/enhanced_enums/declared_index.dart.strong.expect index 8e60c91fb29..d14dace0b25 100644 --- a/pkg/front_end/testcases/enhanced_enums/declared_index.dart.strong.expect +++ b/pkg/front_end/testcases/enhanced_enums/declared_index.dart.strong.expect @@ -66,13 +66,6 @@ library; // final int index; // ^ // -// pkg/front_end/testcases/enhanced_enums/declared_index.dart:52:12: Error: The type 'int' of the inherited field '_Enum.index' is not a subtype of the type 'String' of the setter 'E8.index'. -// void set index(String value) {} // Error. -// ^^^^^ -// sdk/lib/core/enum.dart:*: Context: This is the declaration of the field '_Enum.index'. -// final int index; -// ^^^^^ -// // pkg/front_end/testcases/enhanced_enums/declared_index.dart:58:14: Error: The return type of the method 'E9.index' is 'double', which does not match the return type, 'int', of the overridden method, '_Enum.index'. // Change to a subtype of 'int'. // double get index; // Error. diff --git a/pkg/front_end/testcases/enhanced_enums/declared_index.dart.strong.modular.expect b/pkg/front_end/testcases/enhanced_enums/declared_index.dart.strong.modular.expect index 8e60c91fb29..d14dace0b25 100644 --- a/pkg/front_end/testcases/enhanced_enums/declared_index.dart.strong.modular.expect +++ b/pkg/front_end/testcases/enhanced_enums/declared_index.dart.strong.modular.expect @@ -66,13 +66,6 @@ library; // final int index; // ^ // -// pkg/front_end/testcases/enhanced_enums/declared_index.dart:52:12: Error: The type 'int' of the inherited field '_Enum.index' is not a subtype of the type 'String' of the setter 'E8.index'. -// void set index(String value) {} // Error. -// ^^^^^ -// sdk/lib/core/enum.dart:*: Context: This is the declaration of the field '_Enum.index'. -// final int index; -// ^^^^^ -// // pkg/front_end/testcases/enhanced_enums/declared_index.dart:58:14: Error: The return type of the method 'E9.index' is 'double', which does not match the return type, 'int', of the overridden method, '_Enum.index'. // Change to a subtype of 'int'. // double get index; // Error. diff --git a/pkg/front_end/testcases/enhanced_enums/declared_index.dart.strong.outline.expect b/pkg/front_end/testcases/enhanced_enums/declared_index.dart.strong.outline.expect index 6b990b2e037..b2465ce961c 100644 --- a/pkg/front_end/testcases/enhanced_enums/declared_index.dart.strong.outline.expect +++ b/pkg/front_end/testcases/enhanced_enums/declared_index.dart.strong.outline.expect @@ -66,13 +66,6 @@ library; // final int index; // ^ // -// pkg/front_end/testcases/enhanced_enums/declared_index.dart:52:12: Error: The type 'int' of the inherited field '_Enum.index' is not a subtype of the type 'String' of the setter 'E8.index'. -// void set index(String value) {} // Error. -// ^^^^^ -// sdk/lib/core/enum.dart:*: Context: This is the declaration of the field '_Enum.index'. -// final int index; -// ^^^^^ -// // pkg/front_end/testcases/enhanced_enums/declared_index.dart:58:14: Error: The return type of the method 'E9.index' is 'double', which does not match the return type, 'int', of the overridden method, '_Enum.index'. // Change to a subtype of 'int'. // double get index; // Error. diff --git a/pkg/front_end/testcases/enhanced_enums/declared_values.dart b/pkg/front_end/testcases/enhanced_enums/declared_values.dart index f3ecfd26885..5d5190ddf09 100644 --- a/pkg/front_end/testcases/enhanced_enums/declared_values.dart +++ b/pkg/front_end/testcases/enhanced_enums/declared_values.dart @@ -36,7 +36,7 @@ enum E5 { enum E6 { element; - static void set values(Never x) {} // Error in E6. + static void set values(Never x) {} } enum E7 { diff --git a/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.expect b/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.expect index a000e30b85c..41b5e3e3d8e 100644 --- a/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.expect +++ b/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.expect @@ -25,15 +25,6 @@ library; // void values() {} // Error in E7. // ^^^^^^ // -// pkg/front_end/testcases/enhanced_enums/declared_values.dart:36:6: Error: The type 'List' of the getter 'E6.values' is not a subtype of the type 'Never' of the setter 'E6.values'. -// - 'List' is from 'dart:core'. -// - 'E6' is from 'pkg/front_end/testcases/enhanced_enums/declared_values.dart'. -// enum E6 { -// ^^^^^... -// pkg/front_end/testcases/enhanced_enums/declared_values.dart:39:19: Context: This is the declaration of the setter 'E6.values'. -// static void set values(Never x) {} // Error in E6. -// ^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.modular.expect b/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.modular.expect index a000e30b85c..41b5e3e3d8e 100644 --- a/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.modular.expect +++ b/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.modular.expect @@ -25,15 +25,6 @@ library; // void values() {} // Error in E7. // ^^^^^^ // -// pkg/front_end/testcases/enhanced_enums/declared_values.dart:36:6: Error: The type 'List' of the getter 'E6.values' is not a subtype of the type 'Never' of the setter 'E6.values'. -// - 'List' is from 'dart:core'. -// - 'E6' is from 'pkg/front_end/testcases/enhanced_enums/declared_values.dart'. -// enum E6 { -// ^^^^^... -// pkg/front_end/testcases/enhanced_enums/declared_values.dart:39:19: Context: This is the declaration of the setter 'E6.values'. -// static void set values(Never x) {} // Error in E6. -// ^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.outline.expect b/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.outline.expect index c56486e3192..371f613ea0b 100644 --- a/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.outline.expect +++ b/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.outline.expect @@ -25,15 +25,6 @@ library; // void values() {} // Error in E7. // ^^^^^^ // -// pkg/front_end/testcases/enhanced_enums/declared_values.dart:36:6: Error: The type 'List' of the getter 'E6.values' is not a subtype of the type 'Never' of the setter 'E6.values'. -// - 'List' is from 'dart:core'. -// - 'E6' is from 'pkg/front_end/testcases/enhanced_enums/declared_values.dart'. -// enum E6 { -// ^^^^^... -// pkg/front_end/testcases/enhanced_enums/declared_values.dart:39:19: Context: This is the declaration of the setter 'E6.values'. -// static void set values(Never x) {} // Error in E6. -// ^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.transformed.expect b/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.transformed.expect index a000e30b85c..41b5e3e3d8e 100644 --- a/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/enhanced_enums/declared_values.dart.strong.transformed.expect @@ -25,15 +25,6 @@ library; // void values() {} // Error in E7. // ^^^^^^ // -// pkg/front_end/testcases/enhanced_enums/declared_values.dart:36:6: Error: The type 'List' of the getter 'E6.values' is not a subtype of the type 'Never' of the setter 'E6.values'. -// - 'List' is from 'dart:core'. -// - 'E6' is from 'pkg/front_end/testcases/enhanced_enums/declared_values.dart'. -// enum E6 { -// ^^^^^... -// pkg/front_end/testcases/enhanced_enums/declared_values.dart:39:19: Context: This is the declaration of the setter 'E6.values'. -// static void set values(Never x) {} // Error in E6. -// ^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart b/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart index 142e1abf3f0..b839d473913 100644 --- a/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart +++ b/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart @@ -15,13 +15,13 @@ mixin M1 implements Enum { } abstract class A2 implements Enum { - void set index(String value) {} // Error. - void set hashCode(double value) {} // Error. + void set index(String value) {} + void set hashCode(double value) {} } mixin M2 implements Enum { - void set index(String value) {} // Error. - void set hashCode(double value) {} // Error. + void set index(String value) {} + void set hashCode(double value) {} } abstract class A3 implements Enum { diff --git a/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.expect b/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.expect index ea3d5faf358..befe4ad93ca 100644 --- a/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.expect +++ b/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.expect @@ -58,34 +58,6 @@ library; // hashCode = 3; // Error. // ^^^^^^^^ // -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:18:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'A2.index'. -// void set index(String value) {} // Error. -// ^^^^^ -// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. -// int get index; -// ^^^^^ -// -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:19:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'A2.hashCode'. -// void set hashCode(double value) {} // Error. -// ^^^^^^^^ -// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. -// int get hashCode => _getHash(this); -// ^^^^^^^^ -// -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:23:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'M2.index'. -// void set index(String value) {} // Error. -// ^^^^^ -// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. -// int get index; -// ^^^^^ -// -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:24:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'M2.hashCode'. -// void set hashCode(double value) {} // Error. -// ^^^^^^^^ -// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. -// int get hashCode => _getHash(this); -// ^^^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.modular.expect b/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.modular.expect index ea3d5faf358..befe4ad93ca 100644 --- a/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.modular.expect +++ b/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.modular.expect @@ -58,34 +58,6 @@ library; // hashCode = 3; // Error. // ^^^^^^^^ // -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:18:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'A2.index'. -// void set index(String value) {} // Error. -// ^^^^^ -// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. -// int get index; -// ^^^^^ -// -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:19:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'A2.hashCode'. -// void set hashCode(double value) {} // Error. -// ^^^^^^^^ -// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. -// int get hashCode => _getHash(this); -// ^^^^^^^^ -// -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:23:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'M2.index'. -// void set index(String value) {} // Error. -// ^^^^^ -// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. -// int get index; -// ^^^^^ -// -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:24:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'M2.hashCode'. -// void set hashCode(double value) {} // Error. -// ^^^^^^^^ -// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. -// int get hashCode => _getHash(this); -// ^^^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.outline.expect b/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.outline.expect index f07379456e3..5a79863cbc0 100644 --- a/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.outline.expect +++ b/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.outline.expect @@ -58,34 +58,6 @@ library; // hashCode = 3; // Error. // ^^^^^^^^ // -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:18:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'A2.index'. -// void set index(String value) {} // Error. -// ^^^^^ -// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. -// int get index; -// ^^^^^ -// -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:19:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'A2.hashCode'. -// void set hashCode(double value) {} // Error. -// ^^^^^^^^ -// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. -// int get hashCode => _getHash(this); -// ^^^^^^^^ -// -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:23:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'M2.index'. -// void set index(String value) {} // Error. -// ^^^^^ -// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. -// int get index; -// ^^^^^ -// -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:24:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'M2.hashCode'. -// void set hashCode(double value) {} // Error. -// ^^^^^^^^ -// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. -// int get hashCode => _getHash(this); -// ^^^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.transformed.expect b/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.transformed.expect index ea3d5faf358..befe4ad93ca 100644 --- a/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart.strong.transformed.expect @@ -58,34 +58,6 @@ library; // hashCode = 3; // Error. // ^^^^^^^^ // -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:18:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'A2.index'. -// void set index(String value) {} // Error. -// ^^^^^ -// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. -// int get index; -// ^^^^^ -// -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:19:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'A2.hashCode'. -// void set hashCode(double value) {} // Error. -// ^^^^^^^^ -// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. -// int get hashCode => _getHash(this); -// ^^^^^^^^ -// -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:23:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'M2.index'. -// void set index(String value) {} // Error. -// ^^^^^ -// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. -// int get index; -// ^^^^^ -// -// pkg/front_end/testcases/enhanced_enums/enum_implementers_with_restricted_members.dart:24:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'M2.hashCode'. -// void set hashCode(double value) {} // Error. -// ^^^^^^^^ -// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. -// int get hashCode => _getHash(this); -// ^^^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart b/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart index 5ab89b135bf..71bff97189a 100644 --- a/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart +++ b/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart @@ -7,7 +7,7 @@ enum E { element2(); static void set element(E val) {} // Ok. - static void set element2(E val) {} // Error. + static void set element2(E val) {} // Ok. } main() {} diff --git a/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.expect b/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.expect index 9b2d19cb5cb..55a5ee190b8 100644 --- a/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.expect +++ b/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.expect @@ -1,15 +1,4 @@ library; -// -// Problems in library: -// -// pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart:7:3: Error: The type 'E' of the getter 'E.element2' is not a subtype of the type 'E' of the setter 'E.element2'. -// - 'E' is from 'pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart'. -// element2(); -// ^^^^^^^^ -// pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart:10:19: Context: This is the declaration of the setter 'E.element2'. -// static void set element2(E val) {} // Error. -// ^^^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.modular.expect b/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.modular.expect index 9b2d19cb5cb..55a5ee190b8 100644 --- a/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.modular.expect +++ b/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.modular.expect @@ -1,15 +1,4 @@ library; -// -// Problems in library: -// -// pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart:7:3: Error: The type 'E' of the getter 'E.element2' is not a subtype of the type 'E' of the setter 'E.element2'. -// - 'E' is from 'pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart'. -// element2(); -// ^^^^^^^^ -// pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart:10:19: Context: This is the declaration of the setter 'E.element2'. -// static void set element2(E val) {} // Error. -// ^^^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.outline.expect b/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.outline.expect index aebc1130b99..9876f6d0cc7 100644 --- a/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.outline.expect +++ b/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.outline.expect @@ -1,15 +1,4 @@ library; -// -// Problems in library: -// -// pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart:7:3: Error: The type 'E' of the getter 'E.element2' is not a subtype of the type 'E' of the setter 'E.element2'. -// - 'E' is from 'pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart'. -// element2(); -// ^^^^^^^^ -// pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart:10:19: Context: This is the declaration of the setter 'E.element2'. -// static void set element2(E val) {} // Error. -// ^^^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.transformed.expect b/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.transformed.expect index 9b2d19cb5cb..55a5ee190b8 100644 --- a/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart.strong.transformed.expect @@ -1,15 +1,4 @@ library; -// -// Problems in library: -// -// pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart:7:3: Error: The type 'E' of the getter 'E.element2' is not a subtype of the type 'E' of the setter 'E.element2'. -// - 'E' is from 'pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart'. -// element2(); -// ^^^^^^^^ -// pkg/front_end/testcases/enhanced_enums/setter_getter_type_check.dart:10:19: Context: This is the declaration of the setter 'E.element2'. -// static void set element2(E val) {} // Error. -// ^^^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.expect b/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.expect index c4e6d79db01..df52d276c25 100644 --- a/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.expect +++ b/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.expect @@ -164,13 +164,6 @@ library; // B method2() => new B(); // ^^^^^^^ // -// pkg/front_end/testcases/extension_types/implements_conflicts.dart:89:11: Error: The type 'int' of the getter 'property' is not a subtype of the type 'String' of the setter 'property'. -// int get property => 42; /* Error */ -// ^^^^^^^^ -// pkg/front_end/testcases/extension_types/implements_conflicts.dart:90:12: Context: This is the declaration of the setter 'property'. -// void set property(String value) {} /* Error */ -// ^^^^^^^^ -// import self as self; import "implements_conflicts_lib.dart" as imp; import "dart:core" as core; @@ -663,16 +656,6 @@ library; // void set property(int value) {} // ^^^^^^^^ // -// pkg/front_end/testcases/extension_types/implements_conflicts_lib.dart:100:16: Error: The type 'int' of the inherited getter 'ClassL.property' is not a subtype of the type 'String' of the inherited setter 'ClassM.property'. -// abstract class ClassLM implements ClassL, ClassM {} -// ^ -// pkg/front_end/testcases/extension_types/implements_conflicts_lib.dart:93:11: Context: This is the declaration of the getter 'ClassL.property'. -// int get property => 42; -// ^^^^^^^^ -// pkg/front_end/testcases/extension_types/implements_conflicts_lib.dart:97:12: Context: This is the declaration of the setter 'ClassM.property'. -// void set property(String value) {} -// ^^^^^^^^ -// import self as imp; import "dart:core" as core; diff --git a/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.modular.expect b/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.modular.expect index c4e6d79db01..df52d276c25 100644 --- a/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.modular.expect +++ b/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.modular.expect @@ -164,13 +164,6 @@ library; // B method2() => new B(); // ^^^^^^^ // -// pkg/front_end/testcases/extension_types/implements_conflicts.dart:89:11: Error: The type 'int' of the getter 'property' is not a subtype of the type 'String' of the setter 'property'. -// int get property => 42; /* Error */ -// ^^^^^^^^ -// pkg/front_end/testcases/extension_types/implements_conflicts.dart:90:12: Context: This is the declaration of the setter 'property'. -// void set property(String value) {} /* Error */ -// ^^^^^^^^ -// import self as self; import "implements_conflicts_lib.dart" as imp; import "dart:core" as core; @@ -663,16 +656,6 @@ library; // void set property(int value) {} // ^^^^^^^^ // -// pkg/front_end/testcases/extension_types/implements_conflicts_lib.dart:100:16: Error: The type 'int' of the inherited getter 'ClassL.property' is not a subtype of the type 'String' of the inherited setter 'ClassM.property'. -// abstract class ClassLM implements ClassL, ClassM {} -// ^ -// pkg/front_end/testcases/extension_types/implements_conflicts_lib.dart:93:11: Context: This is the declaration of the getter 'ClassL.property'. -// int get property => 42; -// ^^^^^^^^ -// pkg/front_end/testcases/extension_types/implements_conflicts_lib.dart:97:12: Context: This is the declaration of the setter 'ClassM.property'. -// void set property(String value) {} -// ^^^^^^^^ -// import self as imp; import "dart:core" as core; diff --git a/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.outline.expect b/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.outline.expect index 7be5c2af055..7cd093f1c4c 100644 --- a/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.outline.expect +++ b/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.outline.expect @@ -164,13 +164,6 @@ library; // B method2() => new B(); // ^^^^^^^ // -// pkg/front_end/testcases/extension_types/implements_conflicts.dart:89:11: Error: The type 'int' of the getter 'property' is not a subtype of the type 'String' of the setter 'property'. -// int get property => 42; /* Error */ -// ^^^^^^^^ -// pkg/front_end/testcases/extension_types/implements_conflicts.dart:90:12: Context: This is the declaration of the setter 'property'. -// void set property(String value) {} /* Error */ -// ^^^^^^^^ -// import self as self; import "implements_conflicts_lib.dart" as imp; import "dart:core" as core; @@ -613,16 +606,6 @@ library; // void set property(int value) {} // ^^^^^^^^ // -// pkg/front_end/testcases/extension_types/implements_conflicts_lib.dart:100:16: Error: The type 'int' of the inherited getter 'ClassL.property' is not a subtype of the type 'String' of the inherited setter 'ClassM.property'. -// abstract class ClassLM implements ClassL, ClassM {} -// ^ -// pkg/front_end/testcases/extension_types/implements_conflicts_lib.dart:93:11: Context: This is the declaration of the getter 'ClassL.property'. -// int get property => 42; -// ^^^^^^^^ -// pkg/front_end/testcases/extension_types/implements_conflicts_lib.dart:97:12: Context: This is the declaration of the setter 'ClassM.property'. -// void set property(String value) {} -// ^^^^^^^^ -// import self as imp; import "dart:core" as core; diff --git a/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.transformed.expect b/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.transformed.expect index b0131c9049a..66ba6d71e28 100644 --- a/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/extension_types/implements_conflicts.dart.strong.transformed.expect @@ -164,13 +164,6 @@ library; // B method2() => new B(); // ^^^^^^^ // -// pkg/front_end/testcases/extension_types/implements_conflicts.dart:89:11: Error: The type 'int' of the getter 'property' is not a subtype of the type 'String' of the setter 'property'. -// int get property => 42; /* Error */ -// ^^^^^^^^ -// pkg/front_end/testcases/extension_types/implements_conflicts.dart:90:12: Context: This is the declaration of the setter 'property'. -// void set property(String value) {} /* Error */ -// ^^^^^^^^ -// import self as self; import "implements_conflicts_lib.dart" as imp; import "dart:core" as core; @@ -663,16 +656,6 @@ library; // void set property(int value) {} // ^^^^^^^^ // -// pkg/front_end/testcases/extension_types/implements_conflicts_lib.dart:100:16: Error: The type 'int' of the inherited getter 'ClassL.property' is not a subtype of the type 'String' of the inherited setter 'ClassM.property'. -// abstract class ClassLM implements ClassL, ClassM {} -// ^ -// pkg/front_end/testcases/extension_types/implements_conflicts_lib.dart:93:11: Context: This is the declaration of the getter 'ClassL.property'. -// int get property => 42; -// ^^^^^^^^ -// pkg/front_end/testcases/extension_types/implements_conflicts_lib.dart:97:12: Context: This is the declaration of the setter 'ClassM.property'. -// void set property(String value) {} -// ^^^^^^^^ -// import self as imp; import "dart:core" as core; diff --git a/pkg/front_end/testcases/general/abstract_super_application.dart.strong.expect b/pkg/front_end/testcases/general/abstract_super_application.dart.strong.expect index 4e6e4cf51e5..edacd4c4d9f 100644 --- a/pkg/front_end/testcases/general/abstract_super_application.dart.strong.expect +++ b/pkg/front_end/testcases/general/abstract_super_application.dart.strong.expect @@ -55,12 +55,12 @@ abstract class _Class1&Super&Mixin = self::Super with self::Mixin /*isAnonymousM synthetic constructor •() → self::_Class1&Super&Mixin : super self::Super::•() ; + mixin-super-stub method method() → void + return super.{self::Mixin::method}(); mixin-super-stub get property() → core::int return super.{self::Mixin::property}; mixin-super-stub set property(core::int value) → void return super.{self::Mixin::property} = value; - mixin-super-stub method method() → void - return super.{self::Mixin::method}(); } class Class1 extends self::_Class1&Super&Mixin { synthetic constructor •() → self::Class1 @@ -71,12 +71,12 @@ abstract class _Class2&Object&Mixin = core::Object with self::Mixin /*isAnonymou const synthetic constructor •() → self::_Class2&Object&Mixin : super core::Object::•() ; + mixin-super-stub method method() → void + return super.{self::Mixin::method}(); mixin-super-stub get property() → core::int return super.{self::Mixin::property}; mixin-super-stub set property(core::int value) → void return super.{self::Mixin::property} = value; - mixin-super-stub method method() → void - return super.{self::Mixin::method}(); } class Class2 extends self::_Class2&Object&Mixin implements self::Super { synthetic constructor •() → self::Class2 diff --git a/pkg/front_end/testcases/general/abstract_super_application.dart.strong.modular.expect b/pkg/front_end/testcases/general/abstract_super_application.dart.strong.modular.expect index 4e6e4cf51e5..edacd4c4d9f 100644 --- a/pkg/front_end/testcases/general/abstract_super_application.dart.strong.modular.expect +++ b/pkg/front_end/testcases/general/abstract_super_application.dart.strong.modular.expect @@ -55,12 +55,12 @@ abstract class _Class1&Super&Mixin = self::Super with self::Mixin /*isAnonymousM synthetic constructor •() → self::_Class1&Super&Mixin : super self::Super::•() ; + mixin-super-stub method method() → void + return super.{self::Mixin::method}(); mixin-super-stub get property() → core::int return super.{self::Mixin::property}; mixin-super-stub set property(core::int value) → void return super.{self::Mixin::property} = value; - mixin-super-stub method method() → void - return super.{self::Mixin::method}(); } class Class1 extends self::_Class1&Super&Mixin { synthetic constructor •() → self::Class1 @@ -71,12 +71,12 @@ abstract class _Class2&Object&Mixin = core::Object with self::Mixin /*isAnonymou const synthetic constructor •() → self::_Class2&Object&Mixin : super core::Object::•() ; + mixin-super-stub method method() → void + return super.{self::Mixin::method}(); mixin-super-stub get property() → core::int return super.{self::Mixin::property}; mixin-super-stub set property(core::int value) → void return super.{self::Mixin::property} = value; - mixin-super-stub method method() → void - return super.{self::Mixin::method}(); } class Class2 extends self::_Class2&Object&Mixin implements self::Super { synthetic constructor •() → self::Class2 diff --git a/pkg/front_end/testcases/general/abstract_super_application.dart.strong.outline.expect b/pkg/front_end/testcases/general/abstract_super_application.dart.strong.outline.expect index 0f5a794970f..03572854e0b 100644 --- a/pkg/front_end/testcases/general/abstract_super_application.dart.strong.outline.expect +++ b/pkg/front_end/testcases/general/abstract_super_application.dart.strong.outline.expect @@ -31,12 +31,12 @@ abstract class _Class1&Super&Mixin = self::Super with self::Mixin /*isAnonymousM synthetic constructor •() → self::_Class1&Super&Mixin : super self::Super::•() ; + mixin-super-stub method method() → void + return super.{self::Mixin::method}(); mixin-super-stub get property() → core::int return super.{self::Mixin::property}; mixin-super-stub set property(core::int value) → void return super.{self::Mixin::property} = value; - mixin-super-stub method method() → void - return super.{self::Mixin::method}(); } class Class1 extends self::_Class1&Super&Mixin { synthetic constructor •() → self::Class1 @@ -46,12 +46,12 @@ abstract class _Class2&Object&Mixin = core::Object with self::Mixin /*isAnonymou const synthetic constructor •() → self::_Class2&Object&Mixin : super core::Object::•() ; + mixin-super-stub method method() → void + return super.{self::Mixin::method}(); mixin-super-stub get property() → core::int return super.{self::Mixin::property}; mixin-super-stub set property(core::int value) → void return super.{self::Mixin::property} = value; - mixin-super-stub method method() → void - return super.{self::Mixin::method}(); } class Class2 extends self::_Class2&Object&Mixin implements self::Super { synthetic constructor •() → self::Class2 diff --git a/pkg/front_end/testcases/general/abstract_super_application.dart.strong.transformed.expect b/pkg/front_end/testcases/general/abstract_super_application.dart.strong.transformed.expect index 6a4ca8dc9b7..f008c076ffb 100644 --- a/pkg/front_end/testcases/general/abstract_super_application.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/general/abstract_super_application.dart.strong.transformed.expect @@ -55,15 +55,15 @@ abstract class _Class1&Super&Mixin extends self::Super implements self::Mixin /* synthetic constructor •() → self::_Class1&Super&Mixin : super self::Super::•() ; + method method() → void { + super.{self::Super::method}(); + } get property() → core::int { return super.{self::Super::property}; } set property(core::int value) → void { super.{self::Super::property} = value; } - method method() → void { - super.{self::Super::method}(); - } } class Class1 extends self::_Class1&Super&Mixin { synthetic constructor •() → self::Class1 @@ -74,15 +74,15 @@ abstract class _Class2&Object&Mixin extends core::Object implements self::Mixin const synthetic constructor •() → self::_Class2&Object&Mixin : super core::Object::•() ; + method method() → void { + super.{self::Super::method}(); + } get property() → core::int { return super.{self::Super::property}; } set property(core::int value) → void { super.{self::Super::property} = value; } - method method() → void { - super.{self::Super::method}(); - } } class Class2 extends self::_Class2&Object&Mixin implements self::Super { synthetic constructor •() → self::Class2 diff --git a/pkg/front_end/testcases/general/hierarchy/conflict.dart.strong.expect b/pkg/front_end/testcases/general/hierarchy/conflict.dart.strong.expect index a5a51456643..4ada6dba083 100644 --- a/pkg/front_end/testcases/general/hierarchy/conflict.dart.strong.expect +++ b/pkg/front_end/testcases/general/hierarchy/conflict.dart.strong.expect @@ -248,24 +248,16 @@ abstract class _Class&Super&Mixin = self::Super with self::Mixin /*isAnonymousMi ; mixin-super-stub method mixedInMethodDeclaredSetter() → void return super.{self::Mixin::mixedInMethodDeclaredSetter}(); - mixin-super-stub get mixedInFieldDeclaredMethod() → core::int - return super.{self::Mixin::mixedInFieldDeclaredMethod}; - mixin-super-stub set mixedInFieldDeclaredMethod(core::int value) → void - return super.{self::Mixin::mixedInFieldDeclaredMethod} = value; - mixin-super-stub get mixedInFieldImplementedMethod() → core::int - return super.{self::Mixin::mixedInFieldImplementedMethod}; - mixin-super-stub set mixedInFieldImplementedMethod(core::int value) → void - return super.{self::Mixin::mixedInFieldImplementedMethod} = value; - mixin-super-stub get extendedMethodMixedInField() → core::int - return super.{self::Mixin::extendedMethodMixedInField}; - mixin-super-stub set extendedMethodMixedInField(core::int value) → void - return super.{self::Mixin::extendedMethodMixedInField} = value; mixin-super-stub method mixedInMethodDeclaredGetter() → void return super.{self::Mixin::mixedInMethodDeclaredGetter}(); mixin-super-stub method mixedInMethodDeclaredField() → void return super.{self::Mixin::mixedInMethodDeclaredField}(); mixin-super-stub get mixedInGetterDeclaredMethod() → core::int return super.{self::Mixin::mixedInGetterDeclaredMethod}; + mixin-super-stub get mixedInFieldDeclaredMethod() → core::int + return super.{self::Mixin::mixedInFieldDeclaredMethod}; + mixin-super-stub set mixedInFieldDeclaredMethod(core::int value) → void + return super.{self::Mixin::mixedInFieldDeclaredMethod} = value; mixin-super-stub method mixedInMethodImplementedGetter() → void return super.{self::Mixin::mixedInMethodImplementedGetter}(); mixin-super-stub method mixedInMethodImplementedSetter() → void @@ -274,8 +266,16 @@ abstract class _Class&Super&Mixin = self::Super with self::Mixin /*isAnonymousMi return super.{self::Mixin::mixedInMethodImplementedField}(); mixin-super-stub get mixedInGetterImplementedMethod() → core::int return super.{self::Mixin::mixedInGetterImplementedMethod}; + mixin-super-stub get mixedInFieldImplementedMethod() → core::int + return super.{self::Mixin::mixedInFieldImplementedMethod}; + mixin-super-stub set mixedInFieldImplementedMethod(core::int value) → void + return super.{self::Mixin::mixedInFieldImplementedMethod} = value; mixin-super-stub get extendedMethodMixedInGetter() → core::int return super.{self::Mixin::extendedMethodMixedInGetter}; + mixin-super-stub get extendedMethodMixedInField() → core::int + return super.{self::Mixin::extendedMethodMixedInField}; + mixin-super-stub set extendedMethodMixedInField(core::int value) → void + return super.{self::Mixin::extendedMethodMixedInField} = value; mixin-super-stub method extendedGetterMixedInMethod() → void return super.{self::Mixin::extendedGetterMixedInMethod}(); mixin-super-stub method extendedSetterMixedInMethod() → void diff --git a/pkg/front_end/testcases/general/hierarchy/conflict.dart.strong.modular.expect b/pkg/front_end/testcases/general/hierarchy/conflict.dart.strong.modular.expect index a5a51456643..4ada6dba083 100644 --- a/pkg/front_end/testcases/general/hierarchy/conflict.dart.strong.modular.expect +++ b/pkg/front_end/testcases/general/hierarchy/conflict.dart.strong.modular.expect @@ -248,24 +248,16 @@ abstract class _Class&Super&Mixin = self::Super with self::Mixin /*isAnonymousMi ; mixin-super-stub method mixedInMethodDeclaredSetter() → void return super.{self::Mixin::mixedInMethodDeclaredSetter}(); - mixin-super-stub get mixedInFieldDeclaredMethod() → core::int - return super.{self::Mixin::mixedInFieldDeclaredMethod}; - mixin-super-stub set mixedInFieldDeclaredMethod(core::int value) → void - return super.{self::Mixin::mixedInFieldDeclaredMethod} = value; - mixin-super-stub get mixedInFieldImplementedMethod() → core::int - return super.{self::Mixin::mixedInFieldImplementedMethod}; - mixin-super-stub set mixedInFieldImplementedMethod(core::int value) → void - return super.{self::Mixin::mixedInFieldImplementedMethod} = value; - mixin-super-stub get extendedMethodMixedInField() → core::int - return super.{self::Mixin::extendedMethodMixedInField}; - mixin-super-stub set extendedMethodMixedInField(core::int value) → void - return super.{self::Mixin::extendedMethodMixedInField} = value; mixin-super-stub method mixedInMethodDeclaredGetter() → void return super.{self::Mixin::mixedInMethodDeclaredGetter}(); mixin-super-stub method mixedInMethodDeclaredField() → void return super.{self::Mixin::mixedInMethodDeclaredField}(); mixin-super-stub get mixedInGetterDeclaredMethod() → core::int return super.{self::Mixin::mixedInGetterDeclaredMethod}; + mixin-super-stub get mixedInFieldDeclaredMethod() → core::int + return super.{self::Mixin::mixedInFieldDeclaredMethod}; + mixin-super-stub set mixedInFieldDeclaredMethod(core::int value) → void + return super.{self::Mixin::mixedInFieldDeclaredMethod} = value; mixin-super-stub method mixedInMethodImplementedGetter() → void return super.{self::Mixin::mixedInMethodImplementedGetter}(); mixin-super-stub method mixedInMethodImplementedSetter() → void @@ -274,8 +266,16 @@ abstract class _Class&Super&Mixin = self::Super with self::Mixin /*isAnonymousMi return super.{self::Mixin::mixedInMethodImplementedField}(); mixin-super-stub get mixedInGetterImplementedMethod() → core::int return super.{self::Mixin::mixedInGetterImplementedMethod}; + mixin-super-stub get mixedInFieldImplementedMethod() → core::int + return super.{self::Mixin::mixedInFieldImplementedMethod}; + mixin-super-stub set mixedInFieldImplementedMethod(core::int value) → void + return super.{self::Mixin::mixedInFieldImplementedMethod} = value; mixin-super-stub get extendedMethodMixedInGetter() → core::int return super.{self::Mixin::extendedMethodMixedInGetter}; + mixin-super-stub get extendedMethodMixedInField() → core::int + return super.{self::Mixin::extendedMethodMixedInField}; + mixin-super-stub set extendedMethodMixedInField(core::int value) → void + return super.{self::Mixin::extendedMethodMixedInField} = value; mixin-super-stub method extendedGetterMixedInMethod() → void return super.{self::Mixin::extendedGetterMixedInMethod}(); mixin-super-stub method extendedSetterMixedInMethod() → void diff --git a/pkg/front_end/testcases/general/hierarchy/conflict.dart.strong.outline.expect b/pkg/front_end/testcases/general/hierarchy/conflict.dart.strong.outline.expect index 75b2aa943b9..67ecd603f04 100644 --- a/pkg/front_end/testcases/general/hierarchy/conflict.dart.strong.outline.expect +++ b/pkg/front_end/testcases/general/hierarchy/conflict.dart.strong.outline.expect @@ -289,24 +289,16 @@ abstract class _Class&Super&Mixin = self::Super with self::Mixin /*isAnonymousMi ; mixin-super-stub method mixedInMethodDeclaredSetter() → void return super.{self::Mixin::mixedInMethodDeclaredSetter}(); - mixin-super-stub get mixedInFieldDeclaredMethod() → core::int - return super.{self::Mixin::mixedInFieldDeclaredMethod}; - mixin-super-stub set mixedInFieldDeclaredMethod(core::int value) → void - return super.{self::Mixin::mixedInFieldDeclaredMethod} = value; - mixin-super-stub get mixedInFieldImplementedMethod() → core::int - return super.{self::Mixin::mixedInFieldImplementedMethod}; - mixin-super-stub set mixedInFieldImplementedMethod(core::int value) → void - return super.{self::Mixin::mixedInFieldImplementedMethod} = value; - mixin-super-stub get extendedMethodMixedInField() → core::int - return super.{self::Mixin::extendedMethodMixedInField}; - mixin-super-stub set extendedMethodMixedInField(core::int value) → void - return super.{self::Mixin::extendedMethodMixedInField} = value; mixin-super-stub method mixedInMethodDeclaredGetter() → void return super.{self::Mixin::mixedInMethodDeclaredGetter}(); mixin-super-stub method mixedInMethodDeclaredField() → void return super.{self::Mixin::mixedInMethodDeclaredField}(); mixin-super-stub get mixedInGetterDeclaredMethod() → core::int return super.{self::Mixin::mixedInGetterDeclaredMethod}; + mixin-super-stub get mixedInFieldDeclaredMethod() → core::int + return super.{self::Mixin::mixedInFieldDeclaredMethod}; + mixin-super-stub set mixedInFieldDeclaredMethod(core::int value) → void + return super.{self::Mixin::mixedInFieldDeclaredMethod} = value; mixin-super-stub method mixedInMethodImplementedGetter() → void return super.{self::Mixin::mixedInMethodImplementedGetter}(); mixin-super-stub method mixedInMethodImplementedSetter() → void @@ -315,8 +307,16 @@ abstract class _Class&Super&Mixin = self::Super with self::Mixin /*isAnonymousMi return super.{self::Mixin::mixedInMethodImplementedField}(); mixin-super-stub get mixedInGetterImplementedMethod() → core::int return super.{self::Mixin::mixedInGetterImplementedMethod}; + mixin-super-stub get mixedInFieldImplementedMethod() → core::int + return super.{self::Mixin::mixedInFieldImplementedMethod}; + mixin-super-stub set mixedInFieldImplementedMethod(core::int value) → void + return super.{self::Mixin::mixedInFieldImplementedMethod} = value; mixin-super-stub get extendedMethodMixedInGetter() → core::int return super.{self::Mixin::extendedMethodMixedInGetter}; + mixin-super-stub get extendedMethodMixedInField() → core::int + return super.{self::Mixin::extendedMethodMixedInField}; + mixin-super-stub set extendedMethodMixedInField(core::int value) → void + return super.{self::Mixin::extendedMethodMixedInField} = value; mixin-super-stub method extendedGetterMixedInMethod() → void return super.{self::Mixin::extendedGetterMixedInMethod}(); mixin-super-stub method extendedSetterMixedInMethod() → void diff --git a/pkg/front_end/testcases/general/hierarchy/getter_setter.dart.strong.expect b/pkg/front_end/testcases/general/hierarchy/getter_setter.dart.strong.expect index 2a863655730..ec8c9f3d166 100644 --- a/pkg/front_end/testcases/general/hierarchy/getter_setter.dart.strong.expect +++ b/pkg/front_end/testcases/general/hierarchy/getter_setter.dart.strong.expect @@ -2,34 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the getter 'Super with Mixin.extendedSetterMixedInField' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterMixedInField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:19:12: Context: This is the declaration of the setter 'Super.extendedSetterMixedInField'. -// void set extendedSetterMixedInField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the getter 'Super with Mixin.extendedSetterMixedInGetter' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterMixedInGetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:23:12: Context: This is the declaration of the setter 'Super.extendedSetterMixedInGetter'. -// void set extendedSetterMixedInGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super.extendedGetterMixedInSetter' is not a subtype of the type 'int' of the setter 'Super with Mixin.extendedGetterMixedInSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:11:14: Context: This is the declaration of the getter 'Super.extendedGetterMixedInSetter'. -// String get extendedGetterMixedInSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Super.extendedFieldMixedInSetter' is not a subtype of the type 'int' of the setter 'Super with Mixin.extendedFieldMixedInSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:15:16: Context: This is the declaration of the field 'Super.extendedFieldMixedInSetter'. -// final String extendedFieldMixedInSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// // pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Applying the mixin 'Mixin' to 'Super' introduces an erroneous override of 'extendedGetterMixedInField'. // abstract class Class extends Super // ^^^^^ @@ -41,327 +13,6 @@ library; // String get extendedGetterMixedInField => ''; // ^ // -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:93:16: Error: The type 'String' of the field 'Class.extendedSetterDeclaredField' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterDeclaredField'. -// final String extendedSetterDeclaredField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:18:12: Context: This is the declaration of the setter 'Super.extendedSetterDeclaredField'. -// void set extendedSetterDeclaredField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:94:14: Error: The type 'String' of the getter 'Class.extendedSetterDeclaredGetter' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterDeclaredGetter'. -// String get extendedSetterDeclaredGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:22:12: Context: This is the declaration of the setter 'Super.extendedSetterDeclaredGetter'. -// void set extendedSetterDeclaredGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:99:16: Error: The type 'String' of the field 'Class.mixedInSetterDeclaredField' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.mixedInSetterDeclaredField'. -// final String mixedInSetterDeclaredField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.mixedInSetterDeclaredField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:100:14: Error: The type 'String' of the getter 'Class.mixedInSetterDeclaredGetter' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.mixedInSetterDeclaredGetter'. -// String get mixedInSetterDeclaredGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.mixedInSetterDeclaredGetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:105:16: Error: The type 'String' of the field 'Class.implementedSetterDeclaredField' is not a subtype of the type 'int' of the inherited setter 'Interface1.implementedSetterDeclaredField'. -// final String implementedSetterDeclaredField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:72:12: Context: This is the declaration of the setter 'Interface1.implementedSetterDeclaredField'. -// void set implementedSetterDeclaredField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:106:14: Error: The type 'String' of the getter 'Class.implementedSetterDeclaredGetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.implementedSetterDeclaredGetter'. -// String get implementedSetterDeclaredGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:75:12: Context: This is the declaration of the setter 'Interface1.implementedSetterDeclaredGetter'. -// void set implementedSetterDeclaredGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:108:14: Error: The type 'String' of the getter 'Class.declaredGetterDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.declaredGetterDeclaredSetter'. -// String get declaredGetterDeclaredSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:109:12: Context: This is the declaration of the setter 'Class.declaredGetterDeclaredSetter'. -// void set declaredGetterDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:111:16: Error: The type 'String' of the getter 'Class.declaredFieldDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.declaredFieldDeclaredSetter'. -// final String declaredFieldDeclaredSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:112:12: Context: This is the declaration of the setter 'Class.declaredFieldDeclaredSetter'. -// void set declaredFieldDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:91:12: Error: The type 'String' of the inherited getter 'Super.extendedGetterDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.extendedGetterDeclaredSetter'. -// void set extendedGetterDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:10:14: Context: This is the declaration of the getter 'Super.extendedGetterDeclaredSetter'. -// String get extendedGetterDeclaredSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:92:12: Error: The type 'String' of the inherited field 'Super.extendedFieldDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.extendedFieldDeclaredSetter'. -// void set extendedFieldDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:14:16: Context: This is the declaration of the field 'Super.extendedFieldDeclaredSetter'. -// final String extendedFieldDeclaredSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:97:12: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInGetterDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.mixedInGetterDeclaredSetter'. -// void set mixedInGetterDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInGetterDeclaredSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:98:12: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInFieldDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.mixedInFieldDeclaredSetter'. -// void set mixedInFieldDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInFieldDeclaredSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:103:12: Error: The type 'String' of the inherited getter 'Interface1.implementedGetterDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.implementedGetterDeclaredSetter'. -// void set implementedGetterDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:66:14: Context: This is the declaration of the getter 'Interface1.implementedGetterDeclaredSetter'. -// String get implementedGetterDeclaredSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:104:12: Error: The type 'String' of the inherited field 'Interface1.implementedFieldDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.implementedFieldDeclaredSetter'. -// void set implementedFieldDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:69:16: Context: This is the declaration of the field 'Interface1.implementedFieldDeclaredSetter'. -// final String implementedFieldDeclaredSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.extendedSetterMixedInField' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterMixedInField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.extendedSetterMixedInField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:19:12: Context: This is the declaration of the setter 'Super.extendedSetterMixedInField'. -// void set extendedSetterMixedInField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.extendedSetterMixedInGetter' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterMixedInGetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.extendedSetterMixedInGetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:23:12: Context: This is the declaration of the setter 'Super.extendedSetterMixedInGetter'. -// void set extendedSetterMixedInGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'Mixin.mixedInGetterImplementedField' with incompatible signatures. -// Try adding a declaration of 'Mixin.mixedInGetterImplementedField' to 'Class'. -// abstract class Class extends Super -// ^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:35:14: Context: This is one of the overridden members. -// String get mixedInGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:57:7: Context: This is one of the overridden members. -// int mixedInGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInGetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Interface1.mixedInGetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInGetterImplementedField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:57:7: Context: This is the declaration of the setter 'Interface1.mixedInGetterImplementedField'. -// int mixedInGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInGetterImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.mixedInGetterImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInGetterImplementedSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:58:12: Context: This is the declaration of the setter 'Interface1.mixedInGetterImplementedSetter'. -// void set mixedInGetterImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInFieldImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.mixedInFieldImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInFieldImplementedSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:59:12: Context: This is the declaration of the setter 'Interface1.mixedInFieldImplementedSetter'. -// void set mixedInFieldImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super.extendedGetterMixedInSetter' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.extendedGetterMixedInSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:11:14: Context: This is the declaration of the getter 'Super.extendedGetterMixedInSetter'. -// String get extendedGetterMixedInSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.extendedGetterMixedInSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Super.extendedFieldMixedInSetter' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.extendedFieldMixedInSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:15:16: Context: This is the declaration of the field 'Super.extendedFieldMixedInSetter'. -// final String extendedFieldMixedInSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.extendedFieldMixedInSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'extendedGetterImplementedField' with incompatible signatures. -// Try adding a declaration of 'extendedGetterImplementedField' to 'Class'. -// abstract class Class extends Super -// ^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:8:14: Context: This is one of the overridden members. -// String get extendedGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:51:7: Context: This is one of the overridden members. -// int extendedGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super.extendedGetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Interface1.extendedGetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:8:14: Context: This is the declaration of the getter 'Super.extendedGetterImplementedField'. -// String get extendedGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:51:7: Context: This is the declaration of the setter 'Interface1.extendedGetterImplementedField'. -// int extendedGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super.extendedGetterImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.extendedGetterImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:12:14: Context: This is the declaration of the getter 'Super.extendedGetterImplementedSetter'. -// String get extendedGetterImplementedSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:52:12: Context: This is the declaration of the setter 'Interface1.extendedGetterImplementedSetter'. -// void set extendedGetterImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Super.extendedFieldImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.extendedFieldImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:16:16: Context: This is the declaration of the field 'Super.extendedFieldImplementedSetter'. -// final String extendedFieldImplementedSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:53:12: Context: This is the declaration of the setter 'Interface1.extendedFieldImplementedSetter'. -// void set extendedFieldImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Interface1.mixedInSetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.mixedInSetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:60:16: Context: This is the declaration of the field 'Interface1.mixedInSetterImplementedField'. -// final String mixedInSetterImplementedField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.mixedInSetterImplementedField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface1.mixedInSetterImplementedGetter' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.mixedInSetterImplementedGetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:61:14: Context: This is the declaration of the getter 'Interface1.mixedInSetterImplementedGetter'. -// String get mixedInSetterImplementedGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.mixedInSetterImplementedGetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Interface1.extendedSetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:54:16: Context: This is the declaration of the field 'Interface1.extendedSetterImplementedField'. -// final String extendedSetterImplementedField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:20:12: Context: This is the declaration of the setter 'Super.extendedSetterImplementedField'. -// void set extendedSetterImplementedField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface1.extendedSetterImplementedGetter' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterImplementedGetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:55:14: Context: This is the declaration of the getter 'Interface1.extendedSetterImplementedGetter'. -// String get extendedSetterImplementedGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:24:12: Context: This is the declaration of the setter 'Super.extendedSetterImplementedGetter'. -// void set extendedSetterImplementedGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'implementedGetterImplementedField' with incompatible signatures. -// Try adding a declaration of 'implementedGetterImplementedField' to 'Class'. -// abstract class Class extends Super -// ^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:64:14: Context: This is one of the overridden members. -// String get implementedGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:80:7: Context: This is one of the overridden members. -// int implementedGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface1.implementedGetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Interface2.implementedGetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:64:14: Context: This is the declaration of the getter 'Interface1.implementedGetterImplementedField'. -// String get implementedGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:80:7: Context: This is the declaration of the setter 'Interface2.implementedGetterImplementedField'. -// int implementedGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface1.implementedGetterImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface2.implementedGetterImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:67:14: Context: This is the declaration of the getter 'Interface1.implementedGetterImplementedSetter'. -// String get implementedGetterImplementedSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:81:12: Context: This is the declaration of the setter 'Interface2.implementedGetterImplementedSetter'. -// void set implementedGetterImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Interface1.implementedFieldImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface2.implementedFieldImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:70:16: Context: This is the declaration of the field 'Interface1.implementedFieldImplementedSetter'. -// final String implementedFieldImplementedSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:82:12: Context: This is the declaration of the setter 'Interface2.implementedFieldImplementedSetter'. -// void set implementedFieldImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Interface2.implementedSetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Interface1.implementedSetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:83:16: Context: This is the declaration of the field 'Interface2.implementedSetterImplementedField'. -// final String implementedSetterImplementedField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:73:12: Context: This is the declaration of the setter 'Interface1.implementedSetterImplementedField'. -// void set implementedSetterImplementedField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface2.implementedSetterImplementedGetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.implementedSetterImplementedGetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:84:14: Context: This is the declaration of the getter 'Interface2.implementedSetterImplementedGetter'. -// String get implementedSetterImplementedGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:76:12: Context: This is the declaration of the setter 'Interface1.implementedSetterImplementedGetter'. -// void set implementedSetterImplementedGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// // pkg/front_end/testcases/general/hierarchy/getter_setter.dart:90:7: Error: The return type of the method 'Class.extendedGetterDeclaredField' is 'int', which does not match the return type, 'String', of the overridden method, 'Super.extendedGetterDeclaredField'. // Change to a subtype of 'String'. // int extendedGetterDeclaredField = 0; @@ -386,6 +37,39 @@ library; // String get implementedGetterDeclaredField => ''; // ^ // +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'Mixin.mixedInGetterImplementedField' with incompatible signatures. +// Try adding a declaration of 'Mixin.mixedInGetterImplementedField' to 'Class'. +// abstract class Class extends Super +// ^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:35:14: Context: This is one of the overridden members. +// String get mixedInGetterImplementedField => ''; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:57:7: Context: This is one of the overridden members. +// int mixedInGetterImplementedField = 0; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'extendedGetterImplementedField' with incompatible signatures. +// Try adding a declaration of 'extendedGetterImplementedField' to 'Class'. +// abstract class Class extends Super +// ^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:8:14: Context: This is one of the overridden members. +// String get extendedGetterImplementedField => ''; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:51:7: Context: This is one of the overridden members. +// int extendedGetterImplementedField = 0; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'implementedGetterImplementedField' with incompatible signatures. +// Try adding a declaration of 'implementedGetterImplementedField' to 'Class'. +// abstract class Class extends Super +// ^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:64:14: Context: This is one of the overridden members. +// String get implementedGetterImplementedField => ''; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:80:7: Context: This is one of the overridden members. +// int implementedGetterImplementedField = 0; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// import self as self; import "dart:core" as core; @@ -491,6 +175,8 @@ abstract class _Class&Super&Mixin = self::Super with self::Mixin /*isAnonymousMi return super.{self::Mixin::mixedInGetterDeclaredSetter}; mixin-super-stub get mixedInFieldDeclaredSetter() → core::String return super.{self::Mixin::mixedInFieldDeclaredSetter}; + mixin-super-stub set mixedInSetterDeclaredGetter(core::int value) → void + return super.{self::Mixin::mixedInSetterDeclaredGetter} = value; mixin-super-stub get extendedGetterMixedInField() → core::int return super.{self::Mixin::extendedGetterMixedInField}; mixin-super-stub set extendedGetterMixedInField(core::int value) → void @@ -499,18 +185,16 @@ abstract class _Class&Super&Mixin = self::Super with self::Mixin /*isAnonymousMi return super.{self::Mixin::extendedSetterMixedInField}; mixin-super-stub get extendedSetterMixedInGetter() → core::String return super.{self::Mixin::extendedSetterMixedInGetter}; - mixin-super-stub set extendedGetterMixedInSetter(core::int value) → void - return super.{self::Mixin::extendedGetterMixedInSetter} = value; - mixin-super-stub set extendedFieldMixedInSetter(core::int value) → void - return super.{self::Mixin::extendedFieldMixedInSetter} = value; - mixin-super-stub set mixedInSetterDeclaredGetter(core::int value) → void - return super.{self::Mixin::mixedInSetterDeclaredGetter} = value; mixin-super-stub get mixedInGetterImplementedField() → core::String return super.{self::Mixin::mixedInGetterImplementedField}; mixin-super-stub get mixedInGetterImplementedSetter() → core::String return super.{self::Mixin::mixedInGetterImplementedSetter}; mixin-super-stub get mixedInFieldImplementedSetter() → core::String return super.{self::Mixin::mixedInFieldImplementedSetter}; + mixin-super-stub set extendedGetterMixedInSetter(core::int value) → void + return super.{self::Mixin::extendedGetterMixedInSetter} = value; + mixin-super-stub set extendedFieldMixedInSetter(core::int value) → void + return super.{self::Mixin::extendedFieldMixedInSetter} = value; mixin-super-stub set mixedInSetterImplementedField(core::int value) → void return super.{self::Mixin::mixedInSetterImplementedField} = value; mixin-super-stub set mixedInSetterImplementedGetter(core::int value) → void diff --git a/pkg/front_end/testcases/general/hierarchy/getter_setter.dart.strong.modular.expect b/pkg/front_end/testcases/general/hierarchy/getter_setter.dart.strong.modular.expect index 2a863655730..ec8c9f3d166 100644 --- a/pkg/front_end/testcases/general/hierarchy/getter_setter.dart.strong.modular.expect +++ b/pkg/front_end/testcases/general/hierarchy/getter_setter.dart.strong.modular.expect @@ -2,34 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the getter 'Super with Mixin.extendedSetterMixedInField' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterMixedInField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:19:12: Context: This is the declaration of the setter 'Super.extendedSetterMixedInField'. -// void set extendedSetterMixedInField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the getter 'Super with Mixin.extendedSetterMixedInGetter' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterMixedInGetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:23:12: Context: This is the declaration of the setter 'Super.extendedSetterMixedInGetter'. -// void set extendedSetterMixedInGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super.extendedGetterMixedInSetter' is not a subtype of the type 'int' of the setter 'Super with Mixin.extendedGetterMixedInSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:11:14: Context: This is the declaration of the getter 'Super.extendedGetterMixedInSetter'. -// String get extendedGetterMixedInSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Super.extendedFieldMixedInSetter' is not a subtype of the type 'int' of the setter 'Super with Mixin.extendedFieldMixedInSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:15:16: Context: This is the declaration of the field 'Super.extendedFieldMixedInSetter'. -// final String extendedFieldMixedInSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// // pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Applying the mixin 'Mixin' to 'Super' introduces an erroneous override of 'extendedGetterMixedInField'. // abstract class Class extends Super // ^^^^^ @@ -41,327 +13,6 @@ library; // String get extendedGetterMixedInField => ''; // ^ // -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:93:16: Error: The type 'String' of the field 'Class.extendedSetterDeclaredField' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterDeclaredField'. -// final String extendedSetterDeclaredField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:18:12: Context: This is the declaration of the setter 'Super.extendedSetterDeclaredField'. -// void set extendedSetterDeclaredField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:94:14: Error: The type 'String' of the getter 'Class.extendedSetterDeclaredGetter' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterDeclaredGetter'. -// String get extendedSetterDeclaredGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:22:12: Context: This is the declaration of the setter 'Super.extendedSetterDeclaredGetter'. -// void set extendedSetterDeclaredGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:99:16: Error: The type 'String' of the field 'Class.mixedInSetterDeclaredField' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.mixedInSetterDeclaredField'. -// final String mixedInSetterDeclaredField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.mixedInSetterDeclaredField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:100:14: Error: The type 'String' of the getter 'Class.mixedInSetterDeclaredGetter' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.mixedInSetterDeclaredGetter'. -// String get mixedInSetterDeclaredGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.mixedInSetterDeclaredGetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:105:16: Error: The type 'String' of the field 'Class.implementedSetterDeclaredField' is not a subtype of the type 'int' of the inherited setter 'Interface1.implementedSetterDeclaredField'. -// final String implementedSetterDeclaredField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:72:12: Context: This is the declaration of the setter 'Interface1.implementedSetterDeclaredField'. -// void set implementedSetterDeclaredField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:106:14: Error: The type 'String' of the getter 'Class.implementedSetterDeclaredGetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.implementedSetterDeclaredGetter'. -// String get implementedSetterDeclaredGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:75:12: Context: This is the declaration of the setter 'Interface1.implementedSetterDeclaredGetter'. -// void set implementedSetterDeclaredGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:108:14: Error: The type 'String' of the getter 'Class.declaredGetterDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.declaredGetterDeclaredSetter'. -// String get declaredGetterDeclaredSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:109:12: Context: This is the declaration of the setter 'Class.declaredGetterDeclaredSetter'. -// void set declaredGetterDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:111:16: Error: The type 'String' of the getter 'Class.declaredFieldDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.declaredFieldDeclaredSetter'. -// final String declaredFieldDeclaredSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:112:12: Context: This is the declaration of the setter 'Class.declaredFieldDeclaredSetter'. -// void set declaredFieldDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:91:12: Error: The type 'String' of the inherited getter 'Super.extendedGetterDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.extendedGetterDeclaredSetter'. -// void set extendedGetterDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:10:14: Context: This is the declaration of the getter 'Super.extendedGetterDeclaredSetter'. -// String get extendedGetterDeclaredSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:92:12: Error: The type 'String' of the inherited field 'Super.extendedFieldDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.extendedFieldDeclaredSetter'. -// void set extendedFieldDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:14:16: Context: This is the declaration of the field 'Super.extendedFieldDeclaredSetter'. -// final String extendedFieldDeclaredSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:97:12: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInGetterDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.mixedInGetterDeclaredSetter'. -// void set mixedInGetterDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInGetterDeclaredSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:98:12: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInFieldDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.mixedInFieldDeclaredSetter'. -// void set mixedInFieldDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInFieldDeclaredSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:103:12: Error: The type 'String' of the inherited getter 'Interface1.implementedGetterDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.implementedGetterDeclaredSetter'. -// void set implementedGetterDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:66:14: Context: This is the declaration of the getter 'Interface1.implementedGetterDeclaredSetter'. -// String get implementedGetterDeclaredSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:104:12: Error: The type 'String' of the inherited field 'Interface1.implementedFieldDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.implementedFieldDeclaredSetter'. -// void set implementedFieldDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:69:16: Context: This is the declaration of the field 'Interface1.implementedFieldDeclaredSetter'. -// final String implementedFieldDeclaredSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.extendedSetterMixedInField' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterMixedInField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.extendedSetterMixedInField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:19:12: Context: This is the declaration of the setter 'Super.extendedSetterMixedInField'. -// void set extendedSetterMixedInField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.extendedSetterMixedInGetter' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterMixedInGetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.extendedSetterMixedInGetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:23:12: Context: This is the declaration of the setter 'Super.extendedSetterMixedInGetter'. -// void set extendedSetterMixedInGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'Mixin.mixedInGetterImplementedField' with incompatible signatures. -// Try adding a declaration of 'Mixin.mixedInGetterImplementedField' to 'Class'. -// abstract class Class extends Super -// ^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:35:14: Context: This is one of the overridden members. -// String get mixedInGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:57:7: Context: This is one of the overridden members. -// int mixedInGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInGetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Interface1.mixedInGetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInGetterImplementedField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:57:7: Context: This is the declaration of the setter 'Interface1.mixedInGetterImplementedField'. -// int mixedInGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInGetterImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.mixedInGetterImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInGetterImplementedSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:58:12: Context: This is the declaration of the setter 'Interface1.mixedInGetterImplementedSetter'. -// void set mixedInGetterImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInFieldImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.mixedInFieldImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInFieldImplementedSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:59:12: Context: This is the declaration of the setter 'Interface1.mixedInFieldImplementedSetter'. -// void set mixedInFieldImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super.extendedGetterMixedInSetter' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.extendedGetterMixedInSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:11:14: Context: This is the declaration of the getter 'Super.extendedGetterMixedInSetter'. -// String get extendedGetterMixedInSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.extendedGetterMixedInSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Super.extendedFieldMixedInSetter' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.extendedFieldMixedInSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:15:16: Context: This is the declaration of the field 'Super.extendedFieldMixedInSetter'. -// final String extendedFieldMixedInSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.extendedFieldMixedInSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'extendedGetterImplementedField' with incompatible signatures. -// Try adding a declaration of 'extendedGetterImplementedField' to 'Class'. -// abstract class Class extends Super -// ^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:8:14: Context: This is one of the overridden members. -// String get extendedGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:51:7: Context: This is one of the overridden members. -// int extendedGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super.extendedGetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Interface1.extendedGetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:8:14: Context: This is the declaration of the getter 'Super.extendedGetterImplementedField'. -// String get extendedGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:51:7: Context: This is the declaration of the setter 'Interface1.extendedGetterImplementedField'. -// int extendedGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super.extendedGetterImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.extendedGetterImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:12:14: Context: This is the declaration of the getter 'Super.extendedGetterImplementedSetter'. -// String get extendedGetterImplementedSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:52:12: Context: This is the declaration of the setter 'Interface1.extendedGetterImplementedSetter'. -// void set extendedGetterImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Super.extendedFieldImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.extendedFieldImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:16:16: Context: This is the declaration of the field 'Super.extendedFieldImplementedSetter'. -// final String extendedFieldImplementedSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:53:12: Context: This is the declaration of the setter 'Interface1.extendedFieldImplementedSetter'. -// void set extendedFieldImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Interface1.mixedInSetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.mixedInSetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:60:16: Context: This is the declaration of the field 'Interface1.mixedInSetterImplementedField'. -// final String mixedInSetterImplementedField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.mixedInSetterImplementedField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface1.mixedInSetterImplementedGetter' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.mixedInSetterImplementedGetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:61:14: Context: This is the declaration of the getter 'Interface1.mixedInSetterImplementedGetter'. -// String get mixedInSetterImplementedGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.mixedInSetterImplementedGetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Interface1.extendedSetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:54:16: Context: This is the declaration of the field 'Interface1.extendedSetterImplementedField'. -// final String extendedSetterImplementedField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:20:12: Context: This is the declaration of the setter 'Super.extendedSetterImplementedField'. -// void set extendedSetterImplementedField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface1.extendedSetterImplementedGetter' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterImplementedGetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:55:14: Context: This is the declaration of the getter 'Interface1.extendedSetterImplementedGetter'. -// String get extendedSetterImplementedGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:24:12: Context: This is the declaration of the setter 'Super.extendedSetterImplementedGetter'. -// void set extendedSetterImplementedGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'implementedGetterImplementedField' with incompatible signatures. -// Try adding a declaration of 'implementedGetterImplementedField' to 'Class'. -// abstract class Class extends Super -// ^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:64:14: Context: This is one of the overridden members. -// String get implementedGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:80:7: Context: This is one of the overridden members. -// int implementedGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface1.implementedGetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Interface2.implementedGetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:64:14: Context: This is the declaration of the getter 'Interface1.implementedGetterImplementedField'. -// String get implementedGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:80:7: Context: This is the declaration of the setter 'Interface2.implementedGetterImplementedField'. -// int implementedGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface1.implementedGetterImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface2.implementedGetterImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:67:14: Context: This is the declaration of the getter 'Interface1.implementedGetterImplementedSetter'. -// String get implementedGetterImplementedSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:81:12: Context: This is the declaration of the setter 'Interface2.implementedGetterImplementedSetter'. -// void set implementedGetterImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Interface1.implementedFieldImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface2.implementedFieldImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:70:16: Context: This is the declaration of the field 'Interface1.implementedFieldImplementedSetter'. -// final String implementedFieldImplementedSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:82:12: Context: This is the declaration of the setter 'Interface2.implementedFieldImplementedSetter'. -// void set implementedFieldImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Interface2.implementedSetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Interface1.implementedSetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:83:16: Context: This is the declaration of the field 'Interface2.implementedSetterImplementedField'. -// final String implementedSetterImplementedField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:73:12: Context: This is the declaration of the setter 'Interface1.implementedSetterImplementedField'. -// void set implementedSetterImplementedField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface2.implementedSetterImplementedGetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.implementedSetterImplementedGetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:84:14: Context: This is the declaration of the getter 'Interface2.implementedSetterImplementedGetter'. -// String get implementedSetterImplementedGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:76:12: Context: This is the declaration of the setter 'Interface1.implementedSetterImplementedGetter'. -// void set implementedSetterImplementedGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// // pkg/front_end/testcases/general/hierarchy/getter_setter.dart:90:7: Error: The return type of the method 'Class.extendedGetterDeclaredField' is 'int', which does not match the return type, 'String', of the overridden method, 'Super.extendedGetterDeclaredField'. // Change to a subtype of 'String'. // int extendedGetterDeclaredField = 0; @@ -386,6 +37,39 @@ library; // String get implementedGetterDeclaredField => ''; // ^ // +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'Mixin.mixedInGetterImplementedField' with incompatible signatures. +// Try adding a declaration of 'Mixin.mixedInGetterImplementedField' to 'Class'. +// abstract class Class extends Super +// ^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:35:14: Context: This is one of the overridden members. +// String get mixedInGetterImplementedField => ''; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:57:7: Context: This is one of the overridden members. +// int mixedInGetterImplementedField = 0; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'extendedGetterImplementedField' with incompatible signatures. +// Try adding a declaration of 'extendedGetterImplementedField' to 'Class'. +// abstract class Class extends Super +// ^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:8:14: Context: This is one of the overridden members. +// String get extendedGetterImplementedField => ''; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:51:7: Context: This is one of the overridden members. +// int extendedGetterImplementedField = 0; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'implementedGetterImplementedField' with incompatible signatures. +// Try adding a declaration of 'implementedGetterImplementedField' to 'Class'. +// abstract class Class extends Super +// ^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:64:14: Context: This is one of the overridden members. +// String get implementedGetterImplementedField => ''; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:80:7: Context: This is one of the overridden members. +// int implementedGetterImplementedField = 0; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// import self as self; import "dart:core" as core; @@ -491,6 +175,8 @@ abstract class _Class&Super&Mixin = self::Super with self::Mixin /*isAnonymousMi return super.{self::Mixin::mixedInGetterDeclaredSetter}; mixin-super-stub get mixedInFieldDeclaredSetter() → core::String return super.{self::Mixin::mixedInFieldDeclaredSetter}; + mixin-super-stub set mixedInSetterDeclaredGetter(core::int value) → void + return super.{self::Mixin::mixedInSetterDeclaredGetter} = value; mixin-super-stub get extendedGetterMixedInField() → core::int return super.{self::Mixin::extendedGetterMixedInField}; mixin-super-stub set extendedGetterMixedInField(core::int value) → void @@ -499,18 +185,16 @@ abstract class _Class&Super&Mixin = self::Super with self::Mixin /*isAnonymousMi return super.{self::Mixin::extendedSetterMixedInField}; mixin-super-stub get extendedSetterMixedInGetter() → core::String return super.{self::Mixin::extendedSetterMixedInGetter}; - mixin-super-stub set extendedGetterMixedInSetter(core::int value) → void - return super.{self::Mixin::extendedGetterMixedInSetter} = value; - mixin-super-stub set extendedFieldMixedInSetter(core::int value) → void - return super.{self::Mixin::extendedFieldMixedInSetter} = value; - mixin-super-stub set mixedInSetterDeclaredGetter(core::int value) → void - return super.{self::Mixin::mixedInSetterDeclaredGetter} = value; mixin-super-stub get mixedInGetterImplementedField() → core::String return super.{self::Mixin::mixedInGetterImplementedField}; mixin-super-stub get mixedInGetterImplementedSetter() → core::String return super.{self::Mixin::mixedInGetterImplementedSetter}; mixin-super-stub get mixedInFieldImplementedSetter() → core::String return super.{self::Mixin::mixedInFieldImplementedSetter}; + mixin-super-stub set extendedGetterMixedInSetter(core::int value) → void + return super.{self::Mixin::extendedGetterMixedInSetter} = value; + mixin-super-stub set extendedFieldMixedInSetter(core::int value) → void + return super.{self::Mixin::extendedFieldMixedInSetter} = value; mixin-super-stub set mixedInSetterImplementedField(core::int value) → void return super.{self::Mixin::mixedInSetterImplementedField} = value; mixin-super-stub set mixedInSetterImplementedGetter(core::int value) → void diff --git a/pkg/front_end/testcases/general/hierarchy/getter_setter.dart.strong.outline.expect b/pkg/front_end/testcases/general/hierarchy/getter_setter.dart.strong.outline.expect index 29b6451b33e..9f3ddffed05 100644 --- a/pkg/front_end/testcases/general/hierarchy/getter_setter.dart.strong.outline.expect +++ b/pkg/front_end/testcases/general/hierarchy/getter_setter.dart.strong.outline.expect @@ -2,34 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the getter 'Super with Mixin.extendedSetterMixedInField' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterMixedInField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:19:12: Context: This is the declaration of the setter 'Super.extendedSetterMixedInField'. -// void set extendedSetterMixedInField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the getter 'Super with Mixin.extendedSetterMixedInGetter' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterMixedInGetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:23:12: Context: This is the declaration of the setter 'Super.extendedSetterMixedInGetter'. -// void set extendedSetterMixedInGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super.extendedGetterMixedInSetter' is not a subtype of the type 'int' of the setter 'Super with Mixin.extendedGetterMixedInSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:11:14: Context: This is the declaration of the getter 'Super.extendedGetterMixedInSetter'. -// String get extendedGetterMixedInSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Super.extendedFieldMixedInSetter' is not a subtype of the type 'int' of the setter 'Super with Mixin.extendedFieldMixedInSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:15:16: Context: This is the declaration of the field 'Super.extendedFieldMixedInSetter'. -// final String extendedFieldMixedInSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// // pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Applying the mixin 'Mixin' to 'Super' introduces an erroneous override of 'extendedGetterMixedInField'. // abstract class Class extends Super // ^^^^^ @@ -41,327 +13,6 @@ library; // String get extendedGetterMixedInField => ''; // ^ // -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:93:16: Error: The type 'String' of the field 'Class.extendedSetterDeclaredField' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterDeclaredField'. -// final String extendedSetterDeclaredField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:18:12: Context: This is the declaration of the setter 'Super.extendedSetterDeclaredField'. -// void set extendedSetterDeclaredField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:94:14: Error: The type 'String' of the getter 'Class.extendedSetterDeclaredGetter' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterDeclaredGetter'. -// String get extendedSetterDeclaredGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:22:12: Context: This is the declaration of the setter 'Super.extendedSetterDeclaredGetter'. -// void set extendedSetterDeclaredGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:99:16: Error: The type 'String' of the field 'Class.mixedInSetterDeclaredField' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.mixedInSetterDeclaredField'. -// final String mixedInSetterDeclaredField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.mixedInSetterDeclaredField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:100:14: Error: The type 'String' of the getter 'Class.mixedInSetterDeclaredGetter' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.mixedInSetterDeclaredGetter'. -// String get mixedInSetterDeclaredGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.mixedInSetterDeclaredGetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:105:16: Error: The type 'String' of the field 'Class.implementedSetterDeclaredField' is not a subtype of the type 'int' of the inherited setter 'Interface1.implementedSetterDeclaredField'. -// final String implementedSetterDeclaredField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:72:12: Context: This is the declaration of the setter 'Interface1.implementedSetterDeclaredField'. -// void set implementedSetterDeclaredField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:106:14: Error: The type 'String' of the getter 'Class.implementedSetterDeclaredGetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.implementedSetterDeclaredGetter'. -// String get implementedSetterDeclaredGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:75:12: Context: This is the declaration of the setter 'Interface1.implementedSetterDeclaredGetter'. -// void set implementedSetterDeclaredGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:108:14: Error: The type 'String' of the getter 'Class.declaredGetterDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.declaredGetterDeclaredSetter'. -// String get declaredGetterDeclaredSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:109:12: Context: This is the declaration of the setter 'Class.declaredGetterDeclaredSetter'. -// void set declaredGetterDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:111:16: Error: The type 'String' of the getter 'Class.declaredFieldDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.declaredFieldDeclaredSetter'. -// final String declaredFieldDeclaredSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:112:12: Context: This is the declaration of the setter 'Class.declaredFieldDeclaredSetter'. -// void set declaredFieldDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:91:12: Error: The type 'String' of the inherited getter 'Super.extendedGetterDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.extendedGetterDeclaredSetter'. -// void set extendedGetterDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:10:14: Context: This is the declaration of the getter 'Super.extendedGetterDeclaredSetter'. -// String get extendedGetterDeclaredSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:92:12: Error: The type 'String' of the inherited field 'Super.extendedFieldDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.extendedFieldDeclaredSetter'. -// void set extendedFieldDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:14:16: Context: This is the declaration of the field 'Super.extendedFieldDeclaredSetter'. -// final String extendedFieldDeclaredSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:97:12: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInGetterDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.mixedInGetterDeclaredSetter'. -// void set mixedInGetterDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInGetterDeclaredSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:98:12: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInFieldDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.mixedInFieldDeclaredSetter'. -// void set mixedInFieldDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInFieldDeclaredSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:103:12: Error: The type 'String' of the inherited getter 'Interface1.implementedGetterDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.implementedGetterDeclaredSetter'. -// void set implementedGetterDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:66:14: Context: This is the declaration of the getter 'Interface1.implementedGetterDeclaredSetter'. -// String get implementedGetterDeclaredSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:104:12: Error: The type 'String' of the inherited field 'Interface1.implementedFieldDeclaredSetter' is not a subtype of the type 'int' of the setter 'Class.implementedFieldDeclaredSetter'. -// void set implementedFieldDeclaredSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:69:16: Context: This is the declaration of the field 'Interface1.implementedFieldDeclaredSetter'. -// final String implementedFieldDeclaredSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.extendedSetterMixedInField' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterMixedInField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.extendedSetterMixedInField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:19:12: Context: This is the declaration of the setter 'Super.extendedSetterMixedInField'. -// void set extendedSetterMixedInField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.extendedSetterMixedInGetter' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterMixedInGetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.extendedSetterMixedInGetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:23:12: Context: This is the declaration of the setter 'Super.extendedSetterMixedInGetter'. -// void set extendedSetterMixedInGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'Mixin.mixedInGetterImplementedField' with incompatible signatures. -// Try adding a declaration of 'Mixin.mixedInGetterImplementedField' to 'Class'. -// abstract class Class extends Super -// ^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:35:14: Context: This is one of the overridden members. -// String get mixedInGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:57:7: Context: This is one of the overridden members. -// int mixedInGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInGetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Interface1.mixedInGetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInGetterImplementedField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:57:7: Context: This is the declaration of the setter 'Interface1.mixedInGetterImplementedField'. -// int mixedInGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInGetterImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.mixedInGetterImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInGetterImplementedSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:58:12: Context: This is the declaration of the setter 'Interface1.mixedInGetterImplementedSetter'. -// void set mixedInGetterImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super with Mixin.mixedInFieldImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.mixedInFieldImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the getter 'Super with Mixin.mixedInFieldImplementedSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:59:12: Context: This is the declaration of the setter 'Interface1.mixedInFieldImplementedSetter'. -// void set mixedInFieldImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super.extendedGetterMixedInSetter' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.extendedGetterMixedInSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:11:14: Context: This is the declaration of the getter 'Super.extendedGetterMixedInSetter'. -// String get extendedGetterMixedInSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.extendedGetterMixedInSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Super.extendedFieldMixedInSetter' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.extendedFieldMixedInSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:15:16: Context: This is the declaration of the field 'Super.extendedFieldMixedInSetter'. -// final String extendedFieldMixedInSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.extendedFieldMixedInSetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'extendedGetterImplementedField' with incompatible signatures. -// Try adding a declaration of 'extendedGetterImplementedField' to 'Class'. -// abstract class Class extends Super -// ^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:8:14: Context: This is one of the overridden members. -// String get extendedGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:51:7: Context: This is one of the overridden members. -// int extendedGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super.extendedGetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Interface1.extendedGetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:8:14: Context: This is the declaration of the getter 'Super.extendedGetterImplementedField'. -// String get extendedGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:51:7: Context: This is the declaration of the setter 'Interface1.extendedGetterImplementedField'. -// int extendedGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Super.extendedGetterImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.extendedGetterImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:12:14: Context: This is the declaration of the getter 'Super.extendedGetterImplementedSetter'. -// String get extendedGetterImplementedSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:52:12: Context: This is the declaration of the setter 'Interface1.extendedGetterImplementedSetter'. -// void set extendedGetterImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Super.extendedFieldImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.extendedFieldImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:16:16: Context: This is the declaration of the field 'Super.extendedFieldImplementedSetter'. -// final String extendedFieldImplementedSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:53:12: Context: This is the declaration of the setter 'Interface1.extendedFieldImplementedSetter'. -// void set extendedFieldImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Interface1.mixedInSetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.mixedInSetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:60:16: Context: This is the declaration of the field 'Interface1.mixedInSetterImplementedField'. -// final String mixedInSetterImplementedField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.mixedInSetterImplementedField'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface1.mixedInSetterImplementedGetter' is not a subtype of the type 'int' of the inherited setter 'Super with Mixin.mixedInSetterImplementedGetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:61:14: Context: This is the declaration of the getter 'Interface1.mixedInSetterImplementedGetter'. -// String get mixedInSetterImplementedGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Context: This is the declaration of the setter 'Super with Mixin.mixedInSetterImplementedGetter'. -// abstract class Class extends Super -// ^^^^^^^^^^^^^^^^^^^^... -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Interface1.extendedSetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:54:16: Context: This is the declaration of the field 'Interface1.extendedSetterImplementedField'. -// final String extendedSetterImplementedField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:20:12: Context: This is the declaration of the setter 'Super.extendedSetterImplementedField'. -// void set extendedSetterImplementedField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface1.extendedSetterImplementedGetter' is not a subtype of the type 'int' of the inherited setter 'Super.extendedSetterImplementedGetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:55:14: Context: This is the declaration of the getter 'Interface1.extendedSetterImplementedGetter'. -// String get extendedSetterImplementedGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:24:12: Context: This is the declaration of the setter 'Super.extendedSetterImplementedGetter'. -// void set extendedSetterImplementedGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'implementedGetterImplementedField' with incompatible signatures. -// Try adding a declaration of 'implementedGetterImplementedField' to 'Class'. -// abstract class Class extends Super -// ^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:64:14: Context: This is one of the overridden members. -// String get implementedGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:80:7: Context: This is one of the overridden members. -// int implementedGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface1.implementedGetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Interface2.implementedGetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:64:14: Context: This is the declaration of the getter 'Interface1.implementedGetterImplementedField'. -// String get implementedGetterImplementedField => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:80:7: Context: This is the declaration of the setter 'Interface2.implementedGetterImplementedField'. -// int implementedGetterImplementedField = 0; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface1.implementedGetterImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface2.implementedGetterImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:67:14: Context: This is the declaration of the getter 'Interface1.implementedGetterImplementedSetter'. -// String get implementedGetterImplementedSetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:81:12: Context: This is the declaration of the setter 'Interface2.implementedGetterImplementedSetter'. -// void set implementedGetterImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Interface1.implementedFieldImplementedSetter' is not a subtype of the type 'int' of the inherited setter 'Interface2.implementedFieldImplementedSetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:70:16: Context: This is the declaration of the field 'Interface1.implementedFieldImplementedSetter'. -// final String implementedFieldImplementedSetter = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:82:12: Context: This is the declaration of the setter 'Interface2.implementedFieldImplementedSetter'. -// void set implementedFieldImplementedSetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited field 'Interface2.implementedSetterImplementedField' is not a subtype of the type 'int' of the inherited setter 'Interface1.implementedSetterImplementedField'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:83:16: Context: This is the declaration of the field 'Interface2.implementedSetterImplementedField'. -// final String implementedSetterImplementedField = ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:73:12: Context: This is the declaration of the setter 'Interface1.implementedSetterImplementedField'. -// void set implementedSetterImplementedField(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: The type 'String' of the inherited getter 'Interface2.implementedSetterImplementedGetter' is not a subtype of the type 'int' of the inherited setter 'Interface1.implementedSetterImplementedGetter'. -// abstract class Class extends Super -// ^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:84:14: Context: This is the declaration of the getter 'Interface2.implementedSetterImplementedGetter'. -// String get implementedSetterImplementedGetter => ''; -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:76:12: Context: This is the declaration of the setter 'Interface1.implementedSetterImplementedGetter'. -// void set implementedSetterImplementedGetter(int value) {} -// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -// // pkg/front_end/testcases/general/hierarchy/getter_setter.dart:90:7: Error: The return type of the method 'Class.extendedGetterDeclaredField' is 'int', which does not match the return type, 'String', of the overridden method, 'Super.extendedGetterDeclaredField'. // Change to a subtype of 'String'. // int extendedGetterDeclaredField = 0; @@ -386,6 +37,39 @@ library; // String get implementedGetterDeclaredField => ''; // ^ // +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'Mixin.mixedInGetterImplementedField' with incompatible signatures. +// Try adding a declaration of 'Mixin.mixedInGetterImplementedField' to 'Class'. +// abstract class Class extends Super +// ^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:35:14: Context: This is one of the overridden members. +// String get mixedInGetterImplementedField => ''; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:57:7: Context: This is one of the overridden members. +// int mixedInGetterImplementedField = 0; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'extendedGetterImplementedField' with incompatible signatures. +// Try adding a declaration of 'extendedGetterImplementedField' to 'Class'. +// abstract class Class extends Super +// ^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:8:14: Context: This is one of the overridden members. +// String get extendedGetterImplementedField => ''; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:51:7: Context: This is one of the overridden members. +// int extendedGetterImplementedField = 0; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:87:16: Error: Class 'Class' inherits multiple members named 'implementedGetterImplementedField' with incompatible signatures. +// Try adding a declaration of 'implementedGetterImplementedField' to 'Class'. +// abstract class Class extends Super +// ^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:64:14: Context: This is one of the overridden members. +// String get implementedGetterImplementedField => ''; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// pkg/front_end/testcases/general/hierarchy/getter_setter.dart:80:7: Context: This is one of the overridden members. +// int implementedGetterImplementedField = 0; +// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +// import self as self; import "dart:core" as core; @@ -510,6 +194,8 @@ abstract class _Class&Super&Mixin = self::Super with self::Mixin /*isAnonymousMi return super.{self::Mixin::mixedInGetterDeclaredSetter}; mixin-super-stub get mixedInFieldDeclaredSetter() → core::String return super.{self::Mixin::mixedInFieldDeclaredSetter}; + mixin-super-stub set mixedInSetterDeclaredGetter(core::int value) → void + return super.{self::Mixin::mixedInSetterDeclaredGetter} = value; mixin-super-stub get extendedGetterMixedInField() → core::int return super.{self::Mixin::extendedGetterMixedInField}; mixin-super-stub set extendedGetterMixedInField(core::int value) → void @@ -518,18 +204,16 @@ abstract class _Class&Super&Mixin = self::Super with self::Mixin /*isAnonymousMi return super.{self::Mixin::extendedSetterMixedInField}; mixin-super-stub get extendedSetterMixedInGetter() → core::String return super.{self::Mixin::extendedSetterMixedInGetter}; - mixin-super-stub set extendedGetterMixedInSetter(core::int value) → void - return super.{self::Mixin::extendedGetterMixedInSetter} = value; - mixin-super-stub set extendedFieldMixedInSetter(core::int value) → void - return super.{self::Mixin::extendedFieldMixedInSetter} = value; - mixin-super-stub set mixedInSetterDeclaredGetter(core::int value) → void - return super.{self::Mixin::mixedInSetterDeclaredGetter} = value; mixin-super-stub get mixedInGetterImplementedField() → core::String return super.{self::Mixin::mixedInGetterImplementedField}; mixin-super-stub get mixedInGetterImplementedSetter() → core::String return super.{self::Mixin::mixedInGetterImplementedSetter}; mixin-super-stub get mixedInFieldImplementedSetter() → core::String return super.{self::Mixin::mixedInFieldImplementedSetter}; + mixin-super-stub set extendedGetterMixedInSetter(core::int value) → void + return super.{self::Mixin::extendedGetterMixedInSetter} = value; + mixin-super-stub set extendedFieldMixedInSetter(core::int value) → void + return super.{self::Mixin::extendedFieldMixedInSetter} = value; mixin-super-stub set mixedInSetterImplementedField(core::int value) → void return super.{self::Mixin::mixedInSetterImplementedField} = value; mixin-super-stub set mixedInSetterImplementedGetter(core::int value) → void diff --git a/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.expect b/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.expect index e10650b8f29..400d56dad98 100644 --- a/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.expect +++ b/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.expect @@ -156,8 +156,6 @@ abstract class _ClassMixin&Super&Mixin = self::Super with self::Mixin /*isAnonym return super.{self::Mixin::mixedInConcreteField}; mixin-super-stub set mixedInConcreteField(core::int value) → void return super.{self::Mixin::mixedInConcreteField} = value; - abstract mixin-stub get mixedInAbstractField() → core::int; -> self::Mixin::mixedInAbstractField - abstract mixin-stub set mixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::mixedInAbstractField mixin-super-stub get extendedConcreteMixedInConcreteField() → core::int return super.{self::Mixin::extendedConcreteMixedInConcreteField}; mixin-super-stub set extendedConcreteMixedInConcreteField(core::int value) → void @@ -168,6 +166,8 @@ abstract class _ClassMixin&Super&Mixin = self::Super with self::Mixin /*isAnonym return super.{self::Mixin::extendedAbstractMixedInConcreteField} = value; abstract mixin-stub get extendedConcreteMixedInAbstractField() → core::int; -> self::Mixin::extendedConcreteMixedInAbstractField abstract mixin-stub set extendedConcreteMixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::extendedConcreteMixedInAbstractField + abstract mixin-stub get mixedInAbstractField() → core::int; -> self::Mixin::mixedInAbstractField + abstract mixin-stub set mixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::mixedInAbstractField abstract mixin-stub get extendedAbstractMixedInAbstractField() → core::int; -> self::Mixin::extendedAbstractMixedInAbstractField abstract mixin-stub set extendedAbstractMixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::extendedAbstractMixedInAbstractField } @@ -184,8 +184,6 @@ class NamedMixin = self::Super with self::Mixin { return super.{self::Mixin::mixedInConcreteField}; mixin-super-stub set mixedInConcreteField(core::int value) → void return super.{self::Mixin::mixedInConcreteField} = value; - abstract mixin-stub get mixedInAbstractField() → core::int; -> self::Mixin::mixedInAbstractField - abstract mixin-stub set mixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::mixedInAbstractField mixin-super-stub get extendedConcreteMixedInConcreteField() → core::int return super.{self::Mixin::extendedConcreteMixedInConcreteField}; mixin-super-stub set extendedConcreteMixedInConcreteField(core::int value) → void @@ -196,6 +194,8 @@ class NamedMixin = self::Super with self::Mixin { return super.{self::Mixin::extendedAbstractMixedInConcreteField} = value; abstract mixin-stub get extendedConcreteMixedInAbstractField() → core::int; -> self::Mixin::extendedConcreteMixedInAbstractField abstract mixin-stub set extendedConcreteMixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::extendedConcreteMixedInAbstractField + abstract mixin-stub get mixedInAbstractField() → core::int; -> self::Mixin::mixedInAbstractField + abstract mixin-stub set mixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::mixedInAbstractField abstract mixin-stub get extendedAbstractMixedInAbstractField() → core::int; -> self::Mixin::extendedAbstractMixedInAbstractField abstract mixin-stub set extendedAbstractMixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::extendedAbstractMixedInAbstractField } diff --git a/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.modular.expect b/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.modular.expect index e10650b8f29..400d56dad98 100644 --- a/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.modular.expect +++ b/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.modular.expect @@ -156,8 +156,6 @@ abstract class _ClassMixin&Super&Mixin = self::Super with self::Mixin /*isAnonym return super.{self::Mixin::mixedInConcreteField}; mixin-super-stub set mixedInConcreteField(core::int value) → void return super.{self::Mixin::mixedInConcreteField} = value; - abstract mixin-stub get mixedInAbstractField() → core::int; -> self::Mixin::mixedInAbstractField - abstract mixin-stub set mixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::mixedInAbstractField mixin-super-stub get extendedConcreteMixedInConcreteField() → core::int return super.{self::Mixin::extendedConcreteMixedInConcreteField}; mixin-super-stub set extendedConcreteMixedInConcreteField(core::int value) → void @@ -168,6 +166,8 @@ abstract class _ClassMixin&Super&Mixin = self::Super with self::Mixin /*isAnonym return super.{self::Mixin::extendedAbstractMixedInConcreteField} = value; abstract mixin-stub get extendedConcreteMixedInAbstractField() → core::int; -> self::Mixin::extendedConcreteMixedInAbstractField abstract mixin-stub set extendedConcreteMixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::extendedConcreteMixedInAbstractField + abstract mixin-stub get mixedInAbstractField() → core::int; -> self::Mixin::mixedInAbstractField + abstract mixin-stub set mixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::mixedInAbstractField abstract mixin-stub get extendedAbstractMixedInAbstractField() → core::int; -> self::Mixin::extendedAbstractMixedInAbstractField abstract mixin-stub set extendedAbstractMixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::extendedAbstractMixedInAbstractField } @@ -184,8 +184,6 @@ class NamedMixin = self::Super with self::Mixin { return super.{self::Mixin::mixedInConcreteField}; mixin-super-stub set mixedInConcreteField(core::int value) → void return super.{self::Mixin::mixedInConcreteField} = value; - abstract mixin-stub get mixedInAbstractField() → core::int; -> self::Mixin::mixedInAbstractField - abstract mixin-stub set mixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::mixedInAbstractField mixin-super-stub get extendedConcreteMixedInConcreteField() → core::int return super.{self::Mixin::extendedConcreteMixedInConcreteField}; mixin-super-stub set extendedConcreteMixedInConcreteField(core::int value) → void @@ -196,6 +194,8 @@ class NamedMixin = self::Super with self::Mixin { return super.{self::Mixin::extendedAbstractMixedInConcreteField} = value; abstract mixin-stub get extendedConcreteMixedInAbstractField() → core::int; -> self::Mixin::extendedConcreteMixedInAbstractField abstract mixin-stub set extendedConcreteMixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::extendedConcreteMixedInAbstractField + abstract mixin-stub get mixedInAbstractField() → core::int; -> self::Mixin::mixedInAbstractField + abstract mixin-stub set mixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::mixedInAbstractField abstract mixin-stub get extendedAbstractMixedInAbstractField() → core::int; -> self::Mixin::extendedAbstractMixedInAbstractField abstract mixin-stub set extendedAbstractMixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::extendedAbstractMixedInAbstractField } diff --git a/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.outline.expect b/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.outline.expect index f580b65d7c5..47dac90846f 100644 --- a/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.outline.expect +++ b/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.outline.expect @@ -155,8 +155,6 @@ abstract class _ClassMixin&Super&Mixin = self::Super with self::Mixin /*isAnonym return super.{self::Mixin::mixedInConcreteField}; mixin-super-stub set mixedInConcreteField(core::int value) → void return super.{self::Mixin::mixedInConcreteField} = value; - abstract mixin-stub get mixedInAbstractField() → core::int; -> self::Mixin::mixedInAbstractField - abstract mixin-stub set mixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::mixedInAbstractField mixin-super-stub get extendedConcreteMixedInConcreteField() → core::int return super.{self::Mixin::extendedConcreteMixedInConcreteField}; mixin-super-stub set extendedConcreteMixedInConcreteField(core::int value) → void @@ -167,6 +165,8 @@ abstract class _ClassMixin&Super&Mixin = self::Super with self::Mixin /*isAnonym return super.{self::Mixin::extendedAbstractMixedInConcreteField} = value; abstract mixin-stub get extendedConcreteMixedInAbstractField() → core::int; -> self::Mixin::extendedConcreteMixedInAbstractField abstract mixin-stub set extendedConcreteMixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::extendedConcreteMixedInAbstractField + abstract mixin-stub get mixedInAbstractField() → core::int; -> self::Mixin::mixedInAbstractField + abstract mixin-stub set mixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::mixedInAbstractField abstract mixin-stub get extendedAbstractMixedInAbstractField() → core::int; -> self::Mixin::extendedAbstractMixedInAbstractField abstract mixin-stub set extendedAbstractMixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::extendedAbstractMixedInAbstractField } @@ -182,8 +182,6 @@ class NamedMixin = self::Super with self::Mixin { return super.{self::Mixin::mixedInConcreteField}; mixin-super-stub set mixedInConcreteField(core::int value) → void return super.{self::Mixin::mixedInConcreteField} = value; - abstract mixin-stub get mixedInAbstractField() → core::int; -> self::Mixin::mixedInAbstractField - abstract mixin-stub set mixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::mixedInAbstractField mixin-super-stub get extendedConcreteMixedInConcreteField() → core::int return super.{self::Mixin::extendedConcreteMixedInConcreteField}; mixin-super-stub set extendedConcreteMixedInConcreteField(core::int value) → void @@ -194,6 +192,8 @@ class NamedMixin = self::Super with self::Mixin { return super.{self::Mixin::extendedAbstractMixedInConcreteField} = value; abstract mixin-stub get extendedConcreteMixedInAbstractField() → core::int; -> self::Mixin::extendedConcreteMixedInAbstractField abstract mixin-stub set extendedConcreteMixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::extendedConcreteMixedInAbstractField + abstract mixin-stub get mixedInAbstractField() → core::int; -> self::Mixin::mixedInAbstractField + abstract mixin-stub set mixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::mixedInAbstractField abstract mixin-stub get extendedAbstractMixedInAbstractField() → core::int; -> self::Mixin::extendedAbstractMixedInAbstractField abstract mixin-stub set extendedAbstractMixedInAbstractField(core::int #externalFieldValue) → void; -> self::Mixin::extendedAbstractMixedInAbstractField } diff --git a/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.transformed.expect b/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.transformed.expect index df06ba8b459..69a854dfb21 100644 --- a/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/general/hierarchy/mix_in_field.dart.strong.transformed.expect @@ -155,11 +155,11 @@ abstract class _ClassMixin&Super&Mixin extends self::Super implements self::Mixi synthetic constructor •() → self::_ClassMixin&Super&Mixin : super self::Super::•() ; - abstract get mixedInAbstractField() → core::int; abstract get extendedConcreteMixedInAbstractField() → core::int; + abstract get mixedInAbstractField() → core::int; abstract get extendedAbstractMixedInAbstractField() → core::int; - abstract set mixedInAbstractField(core::int #externalFieldValue) → void; abstract set extendedConcreteMixedInAbstractField(core::int #externalFieldValue) → void; + abstract set mixedInAbstractField(core::int #externalFieldValue) → void; abstract set extendedAbstractMixedInAbstractField(core::int #externalFieldValue) → void; } class ClassMixin extends self::_ClassMixin&Super&Mixin { @@ -174,11 +174,11 @@ class NamedMixin extends self::Super implements self::Mixin /*isEliminatedMixin* synthetic constructor •() → self::NamedMixin : super self::Super::•() ; - abstract get mixedInAbstractField() → core::int; abstract get extendedConcreteMixedInAbstractField() → core::int; + abstract get mixedInAbstractField() → core::int; abstract get extendedAbstractMixedInAbstractField() → core::int; - abstract set mixedInAbstractField(core::int #externalFieldValue) → void; abstract set extendedConcreteMixedInAbstractField(core::int #externalFieldValue) → void; + abstract set mixedInAbstractField(core::int #externalFieldValue) → void; abstract set extendedAbstractMixedInAbstractField(core::int #externalFieldValue) → void; } static method main() → dynamic {} diff --git a/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.expect b/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.expect index b6745a3baaf..661d02a7544 100644 --- a/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.expect +++ b/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.expect @@ -198,14 +198,14 @@ class FromSuperConcrete extends self::SuperConcrete implements self::Interface { synthetic constructor •() → self::FromSuperConcrete : super self::SuperConcrete::•() ; - no-such-method-forwarder get field() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -215,14 +215,14 @@ class FromSuperConcreteAbstract extends self::SuperConcrete implements self::Sup synthetic constructor •() → self::FromSuperConcreteAbstract : super self::SuperConcrete::•() ; - no-such-method-forwarder get field() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -259,14 +259,14 @@ class FromMixinConcrete extends self::_FromMixinConcrete&Object&MixinConcrete im synthetic constructor •() → self::FromMixinConcrete : super self::_FromMixinConcrete&Object&MixinConcrete::•() ; - no-such-method-forwarder get field() → core::int - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -289,14 +289,14 @@ class FromMixinConcreteAbstract extends self::_FromMixinConcreteAbstract&Object& synthetic constructor •() → self::FromMixinConcreteAbstract : super self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::•() ; - no-such-method-forwarder get field() → core::int - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -341,14 +341,14 @@ class DeclaredConcrete extends core::Object implements self::Interface { method noSuchMethod(core::Invocation invocation) → dynamic { return null; } - no-such-method-forwarder get field() → core::int - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -358,13 +358,13 @@ static method main() → dynamic {} constants { #C1 = core::_Override {} - #C2 = #field + #C2 = #method #C3 = [] #C4 = [] #C5 = {} - #C6 = #field= - #C7 = #method - #C8 = #getter + #C6 = #getter + #C7 = #field + #C8 = #field= #C9 = #finalField #C10 = #setter= } diff --git a/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.modular.expect b/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.modular.expect index b6745a3baaf..661d02a7544 100644 --- a/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.modular.expect +++ b/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.modular.expect @@ -198,14 +198,14 @@ class FromSuperConcrete extends self::SuperConcrete implements self::Interface { synthetic constructor •() → self::FromSuperConcrete : super self::SuperConcrete::•() ; - no-such-method-forwarder get field() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -215,14 +215,14 @@ class FromSuperConcreteAbstract extends self::SuperConcrete implements self::Sup synthetic constructor •() → self::FromSuperConcreteAbstract : super self::SuperConcrete::•() ; - no-such-method-forwarder get field() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -259,14 +259,14 @@ class FromMixinConcrete extends self::_FromMixinConcrete&Object&MixinConcrete im synthetic constructor •() → self::FromMixinConcrete : super self::_FromMixinConcrete&Object&MixinConcrete::•() ; - no-such-method-forwarder get field() → core::int - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -289,14 +289,14 @@ class FromMixinConcreteAbstract extends self::_FromMixinConcreteAbstract&Object& synthetic constructor •() → self::FromMixinConcreteAbstract : super self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::•() ; - no-such-method-forwarder get field() → core::int - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -341,14 +341,14 @@ class DeclaredConcrete extends core::Object implements self::Interface { method noSuchMethod(core::Invocation invocation) → dynamic { return null; } - no-such-method-forwarder get field() → core::int - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable([value]), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -358,13 +358,13 @@ static method main() → dynamic {} constants { #C1 = core::_Override {} - #C2 = #field + #C2 = #method #C3 = [] #C4 = [] #C5 = {} - #C6 = #field= - #C7 = #method - #C8 = #getter + #C6 = #getter + #C7 = #field + #C8 = #field= #C9 = #finalField #C10 = #setter= } diff --git a/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.outline.expect b/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.outline.expect index 57f241a79f0..875151db60a 100644 --- a/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.outline.expect +++ b/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.outline.expect @@ -183,14 +183,14 @@ class SuperConcrete extends core::Object { class FromSuperConcrete extends self::SuperConcrete implements self::Interface { synthetic constructor •() → self::FromSuperConcrete ; - no-such-method-forwarder get field() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#method, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#getter, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#finalField, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -199,14 +199,14 @@ class FromSuperConcrete extends self::SuperConcrete implements self::Interface { class FromSuperConcreteAbstract extends self::SuperConcrete implements self::SuperAbstract, self::Interface { synthetic constructor •() → self::FromSuperConcreteAbstract ; - no-such-method-forwarder get field() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#method, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#getter, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#finalField, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -238,14 +238,14 @@ abstract class _FromMixinConcrete&Object&MixinConcrete = core::Object with self: class FromMixinConcrete extends self::_FromMixinConcrete&Object&MixinConcrete implements self::Interface { synthetic constructor •() → self::FromMixinConcrete ; - no-such-method-forwarder get field() → core::int - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#method, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#getter, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#finalField, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -267,14 +267,14 @@ abstract class _FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract = s class FromMixinConcreteAbstract extends self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract implements self::Interface { synthetic constructor •() → self::FromMixinConcreteAbstract ; - no-such-method-forwarder get field() → core::int - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#field, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#field=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#method, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#getter, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#field, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#field=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#finalField, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -311,14 +311,14 @@ class DeclaredConcrete extends core::Object implements self::Interface { @core::override method noSuchMethod(core::Invocation invocation) → dynamic ; - no-such-method-forwarder get field() → core::int - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#method, 0, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#getter, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#field=, 2, const [], core::List::unmodifiable([value]), core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#finalField, 1, const [], const [], core::Map::unmodifiable(const {}))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -330,13 +330,6 @@ static method main() → dynamic Extra constant evaluation status: Evaluated: StaticGet @ org-dartlang-testcase:///no_such_method.dart:20:4 -> InstanceConstant(const _Override{}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> SymbolConstant(#field) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> SymbolConstant(#field=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> MapConstant(const {}) Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> SymbolConstant(#method) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) @@ -345,6 +338,13 @@ Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> SymbolConstant(#field) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> SymbolConstant(#field=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> MapConstant(const {}) Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> SymbolConstant(#finalField) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) @@ -352,13 +352,6 @@ Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> Map Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> SymbolConstant(#setter=) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> ListConstant(const []) Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:26:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> SymbolConstant(#field) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> SymbolConstant(#field=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> MapConstant(const {}) Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> SymbolConstant(#method) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) @@ -367,6 +360,13 @@ Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> SymbolConstant(#field) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> SymbolConstant(#field=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> MapConstant(const {}) Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> SymbolConstant(#finalField) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) @@ -375,13 +375,6 @@ Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> ListConstant(const []) Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:28:7 -> MapConstant(const {}) Evaluated: StaticGet @ org-dartlang-testcase:///no_such_method.dart:38:4 -> InstanceConstant(const _Override{}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> SymbolConstant(#field) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> SymbolConstant(#field=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> MapConstant(const {}) Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> SymbolConstant(#method) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) @@ -390,6 +383,13 @@ Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> SymbolConstant(#field) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> SymbolConstant(#field=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> MapConstant(const {}) Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> SymbolConstant(#finalField) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) @@ -397,13 +397,6 @@ Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> Map Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> SymbolConstant(#setter=) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> ListConstant(const []) Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:44:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> SymbolConstant(#field) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> SymbolConstant(#field=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> MapConstant(const {}) Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> SymbolConstant(#method) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) @@ -412,6 +405,13 @@ Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> SymbolConstant(#field) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> SymbolConstant(#field=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> MapConstant(const {}) Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> SymbolConstant(#finalField) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> ListConstant(const []) @@ -421,13 +421,6 @@ Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> Li Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:46:7 -> MapConstant(const {}) Evaluated: StaticGet @ org-dartlang-testcase:///no_such_method.dart:57:4 -> InstanceConstant(const _Override{}) Evaluated: StaticGet @ org-dartlang-testcase:///no_such_method.dart:70:4 -> InstanceConstant(const _Override{}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> SymbolConstant(#field) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> MapConstant(const {}) -Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> SymbolConstant(#field=) -Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) -Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> MapConstant(const {}) Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> SymbolConstant(#method) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) @@ -436,6 +429,13 @@ Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> SymbolConstant(#field) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> MapConstant(const {}) +Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> SymbolConstant(#field=) +Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) +Evaluated: MapLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> MapConstant(const {}) Evaluated: SymbolLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> SymbolConstant(#finalField) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) Evaluated: ListLiteral @ org-dartlang-testcase:///no_such_method.dart:69:7 -> ListConstant(const []) diff --git a/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.transformed.expect b/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.transformed.expect index 83975daeca3..76691bf7d45 100644 --- a/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/general/hierarchy/no_such_method.dart.strong.transformed.expect @@ -198,14 +198,14 @@ class FromSuperConcrete extends self::SuperConcrete implements self::Interface { synthetic constructor •() → self::FromSuperConcrete : super self::SuperConcrete::•() ; - no-such-method-forwarder get field() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -215,14 +215,14 @@ class FromSuperConcreteAbstract extends self::SuperConcrete implements self::Sup synthetic constructor •() → self::FromSuperConcreteAbstract : super self::SuperConcrete::•() ; - no-such-method-forwarder get field() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::SuperConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -261,14 +261,14 @@ class FromMixinConcrete extends self::_FromMixinConcrete&Object&MixinConcrete im synthetic constructor •() → self::FromMixinConcrete : super self::_FromMixinConcrete&Object&MixinConcrete::•() ; - no-such-method-forwarder get field() → core::int - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::_FromMixinConcrete&Object&MixinConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -293,14 +293,14 @@ class FromMixinConcreteAbstract extends self::_FromMixinConcreteAbstract&Object& synthetic constructor •() → self::FromMixinConcreteAbstract : super self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::•() ; - no-such-method-forwarder get field() → core::int - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::_FromMixinConcreteAbstract&Object&MixinConcrete&MixinAbstract::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -345,14 +345,14 @@ class DeclaredConcrete extends core::Object implements self::Interface { method noSuchMethod(core::Invocation invocation) → dynamic { return null; } - no-such-method-forwarder get field() → core::int - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; - no-such-method-forwarder set field(core::int value) → void - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder method method() → void - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C2, 0, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get getter() → core::int - return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C6, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder get field() → core::int + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C7, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; + no-such-method-forwarder set field(core::int value) → void + return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C8, 2, #C3, core::List::unmodifiable(core::_GrowableList::_literal1(value)), core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic}; no-such-method-forwarder get finalField() → core::int return this.{self::DeclaredConcrete::noSuchMethod}(new core::_InvocationMirror::_withType(#C9, 1, #C3, #C4, core::Map::unmodifiable(#C5))){(core::Invocation) → dynamic} as{TypeError,ForDynamic} core::int; no-such-method-forwarder set setter(core::int value) → void @@ -362,13 +362,13 @@ static method main() → dynamic {} constants { #C1 = core::_Override {} - #C2 = #field + #C2 = #method #C3 = [] #C4 = [] #C5 = {} - #C6 = #field= - #C7 = #method - #C8 = #getter + #C6 = #getter + #C7 = #field + #C8 = #field= #C9 = #finalField #C10 = #setter= } diff --git a/pkg/front_end/testcases/general/issue46389.dart.strong.expect b/pkg/front_end/testcases/general/issue46389.dart.strong.expect index b15f2a206cb..32b4a68e146 100644 --- a/pkg/front_end/testcases/general/issue46389.dart.strong.expect +++ b/pkg/front_end/testcases/general/issue46389.dart.strong.expect @@ -29,12 +29,12 @@ abstract class _C&A&B = self::A with self::B /*isAnonymousMixin*/ { synthetic constructor •() → self::_C&A&B : super self::A::•() ; - forwarding-stub set boz(covariant-by-class core::num x) → void - return super.{self::A::boz} = x as core::int; forwarding-stub method foo(covariant-by-class core::num x) → core::num return super.{self::A::foo}(x as core::int); forwarding-stub method bar({required covariant-by-class core::num x}) → core::num return super.{self::A::bar}(x: x as core::int); + forwarding-stub set boz(covariant-by-class core::num x) → void + return super.{self::A::boz} = x as core::int; forwarding-stub set baz(covariant-by-class core::num x) → void return super.{self::A::baz} = x as core::int; } diff --git a/pkg/front_end/testcases/general/issue46389.dart.strong.modular.expect b/pkg/front_end/testcases/general/issue46389.dart.strong.modular.expect index b15f2a206cb..32b4a68e146 100644 --- a/pkg/front_end/testcases/general/issue46389.dart.strong.modular.expect +++ b/pkg/front_end/testcases/general/issue46389.dart.strong.modular.expect @@ -29,12 +29,12 @@ abstract class _C&A&B = self::A with self::B /*isAnonymousMixin*/ { synthetic constructor •() → self::_C&A&B : super self::A::•() ; - forwarding-stub set boz(covariant-by-class core::num x) → void - return super.{self::A::boz} = x as core::int; forwarding-stub method foo(covariant-by-class core::num x) → core::num return super.{self::A::foo}(x as core::int); forwarding-stub method bar({required covariant-by-class core::num x}) → core::num return super.{self::A::bar}(x: x as core::int); + forwarding-stub set boz(covariant-by-class core::num x) → void + return super.{self::A::boz} = x as core::int; forwarding-stub set baz(covariant-by-class core::num x) → void return super.{self::A::baz} = x as core::int; } diff --git a/pkg/front_end/testcases/general/issue46389.dart.strong.outline.expect b/pkg/front_end/testcases/general/issue46389.dart.strong.outline.expect index fdaa43fd608..564e2f4279c 100644 --- a/pkg/front_end/testcases/general/issue46389.dart.strong.outline.expect +++ b/pkg/front_end/testcases/general/issue46389.dart.strong.outline.expect @@ -23,12 +23,12 @@ abstract class _C&A&B = self::A with self::B /*isAnonymousMixin*/ { synthetic constructor •() → self::_C&A&B : super self::A::•() ; - forwarding-stub set boz(covariant-by-class core::num x) → void - return super.{self::A::boz} = x as core::int; forwarding-stub method foo(covariant-by-class core::num x) → core::num return super.{self::A::foo}(x as core::int); forwarding-stub method bar({required covariant-by-class core::num x}) → core::num return super.{self::A::bar}(x: x as core::int); + forwarding-stub set boz(covariant-by-class core::num x) → void + return super.{self::A::boz} = x as core::int; forwarding-stub set baz(covariant-by-class core::num x) → void return super.{self::A::baz} = x as core::int; } diff --git a/pkg/front_end/testcases/general/issue46389.dart.strong.transformed.expect b/pkg/front_end/testcases/general/issue46389.dart.strong.transformed.expect index 9cd33b0c81f..8a3a8caea6f 100644 --- a/pkg/front_end/testcases/general/issue46389.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/general/issue46389.dart.strong.transformed.expect @@ -29,12 +29,12 @@ abstract class _C&A&B extends self::A implements self::B /*isAnonymou synthetic constructor •() → self::_C&A&B : super self::A::•() ; - set boz(covariant-by-class core::num x) → void - return super.{self::A::boz} = x as core::int; method foo(covariant-by-class core::num x) → core::num return super.{self::A::foo}(x as core::int); method bar({required covariant-by-class core::num x}) → core::num return super.{self::A::bar}(x: x as core::int); + set boz(covariant-by-class core::num x) → void + return super.{self::A::boz} = x as core::int; set baz(covariant-by-class core::num x) → void return super.{self::A::baz} = x as core::int; } diff --git a/pkg/front_end/testcases/general/mixin_super/main.dart.strong.expect b/pkg/front_end/testcases/general/mixin_super/main.dart.strong.expect index 1d4753e8616..cd8b00736ac 100644 --- a/pkg/front_end/testcases/general/mixin_super/main.dart.strong.expect +++ b/pkg/front_end/testcases/general/mixin_super/main.dart.strong.expect @@ -192,6 +192,10 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -200,10 +204,6 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class1b extends self::_Class1b&Class1a&Mixin1 { synthetic constructor •() → self::Class1b @@ -227,6 +227,10 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -235,10 +239,6 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class2b extends self::_Class2b&Class2a&Mixin1 { synthetic constructor •() → self::Class2b @@ -262,6 +262,10 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -270,10 +274,6 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class3b extends self::_Class3b&Class3a&Mixin1 { synthetic constructor •() → self::Class3b @@ -289,6 +289,10 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class4b&Class4a&Mixin2 : super self::Class4a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -305,10 +309,6 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class4b extends self::_Class4b&Class4a&Mixin2 { synthetic constructor •() → self::Class4b @@ -324,6 +324,10 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class5b&Class5a&Mixin2 : super self::Class5a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -340,10 +344,6 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class5b extends self::_Class5b&Class5a&Mixin2 { synthetic constructor •() → self::Class5b @@ -359,6 +359,10 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class6b&Class6a&Mixin2 : super self::Class6a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -375,10 +379,6 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class6b extends self::_Class6b&Class6a&Mixin2 { synthetic constructor •() → self::Class6b diff --git a/pkg/front_end/testcases/general/mixin_super/main.dart.strong.modular.expect b/pkg/front_end/testcases/general/mixin_super/main.dart.strong.modular.expect index 5ab02868778..48d49a8662e 100644 --- a/pkg/front_end/testcases/general/mixin_super/main.dart.strong.modular.expect +++ b/pkg/front_end/testcases/general/mixin_super/main.dart.strong.modular.expect @@ -122,6 +122,10 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -130,10 +134,6 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class1b extends self::_Class1b&Class1a&Mixin1 { synthetic constructor •() → self::Class1b @@ -157,6 +157,10 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -165,10 +169,6 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class2b extends self::_Class2b&Class2a&Mixin1 { synthetic constructor •() → self::Class2b @@ -192,6 +192,10 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -200,10 +204,6 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class3b extends self::_Class3b&Class3a&Mixin1 { synthetic constructor •() → self::Class3b @@ -219,6 +219,10 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class4b&Class4a&Mixin2 : super self::Class4a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -235,10 +239,6 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class4b extends self::_Class4b&Class4a&Mixin2 { synthetic constructor •() → self::Class4b @@ -254,6 +254,10 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class5b&Class5a&Mixin2 : super self::Class5a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -270,10 +274,6 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class5b extends self::_Class5b&Class5a&Mixin2 { synthetic constructor •() → self::Class5b @@ -289,6 +289,10 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class6b&Class6a&Mixin2 : super self::Class6a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -305,10 +309,6 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class6b extends self::_Class6b&Class6a&Mixin2 { synthetic constructor •() → self::Class6b diff --git a/pkg/front_end/testcases/general/mixin_super/main.dart.strong.outline.expect b/pkg/front_end/testcases/general/mixin_super/main.dart.strong.outline.expect index 317c1f38da1..43c04cd2662 100644 --- a/pkg/front_end/testcases/general/mixin_super/main.dart.strong.outline.expect +++ b/pkg/front_end/testcases/general/mixin_super/main.dart.strong.outline.expect @@ -41,6 +41,10 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -49,10 +53,6 @@ abstract class _Class1b&Class1a&Mixin1 = self::Class1a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class1b extends self::_Class1b&Class1a&Mixin1 { synthetic constructor •() → self::Class1b @@ -74,6 +74,10 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -82,10 +86,6 @@ abstract class _Class2b&Class2a&Mixin1 = self::Class2a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class2b extends self::_Class2b&Class2a&Mixin1 { synthetic constructor •() → self::Class2b @@ -107,6 +107,10 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::field2}; mixin-super-stub set field2(core::int value) → void return super.{self::Mixin1::field2} = value; + mixin-super-stub method method1() → void + return super.{self::Mixin1::method1}(); + mixin-super-stub method method2() → void + return super.{self::Mixin1::method2}(); mixin-super-stub get property1() → core::int return super.{self::Mixin1::property1}; mixin-super-stub set property1(core::int value) → void @@ -115,10 +119,6 @@ abstract class _Class3b&Class3a&Mixin1 = self::Class3a with self::Mixin1 /*isAno return super.{self::Mixin1::property2}; mixin-super-stub set property2(core::int value) → void return super.{self::Mixin1::property2} = value; - mixin-super-stub method method1() → void - return super.{self::Mixin1::method1}(); - mixin-super-stub method method2() → void - return super.{self::Mixin1::method2}(); } class Class3b extends self::_Class3b&Class3a&Mixin1 { synthetic constructor •() → self::Class3b @@ -132,6 +132,10 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class4b&Class4a&Mixin2 : super self::Class4a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -148,10 +152,6 @@ abstract class _Class4b&Class4a&Mixin2 = self::Class4a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class4b extends self::_Class4b&Class4a&Mixin2 { synthetic constructor •() → self::Class4b @@ -165,6 +165,10 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class5b&Class5a&Mixin2 : super self::Class5a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -181,10 +185,6 @@ abstract class _Class5b&Class5a&Mixin2 = self::Class5a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class5b extends self::_Class5b&Class5a&Mixin2 { synthetic constructor •() → self::Class5b @@ -198,6 +198,10 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon synthetic constructor •() → self::_Class6b&Class6a&Mixin2 : super self::Class6a::•() ; + mixin-super-stub method method1() → void + return super.{mai::Mixin2::method1}(); + mixin-super-stub method method2() → void + return super.{mai::Mixin2::method2}(); mixin-super-stub get property1() → core::int return super.{mai::Mixin2::property1}; mixin-super-stub set property1(core::int value) → void @@ -214,10 +218,6 @@ abstract class _Class6b&Class6a&Mixin2 = self::Class6a with mai::Mixin2 /*isAnon return super.{mai::Mixin2::field2}; mixin-super-stub set field2(core::int value) → void return super.{mai::Mixin2::field2} = value; - mixin-super-stub method method1() → void - return super.{mai::Mixin2::method1}(); - mixin-super-stub method method2() → void - return super.{mai::Mixin2::method2}(); } class Class6b extends self::_Class6b&Class6a&Mixin2 { synthetic constructor •() → self::Class6b diff --git a/pkg/front_end/testcases/general/mixin_super/main.dart.strong.transformed.expect b/pkg/front_end/testcases/general/mixin_super/main.dart.strong.transformed.expect index 50291fd7338..c07a06132d8 100644 --- a/pkg/front_end/testcases/general/mixin_super/main.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/general/mixin_super/main.dart.strong.transformed.expect @@ -190,16 +190,16 @@ abstract class _Class1b&Class1a&Mixin1 extends self::Class1a implements self::Mi synthetic constructor •() → self::_Class1b&Class1a&Mixin1 : super self::Class1a::•() ; + method method1() → void { + super.{mai::Super1::method1}(); + } + method method2() → void {} get property1() → core::int { return super.{mai::Super1::property1}; } get property2() → core::int { return 42; } - method method1() → void { - super.{mai::Super1::method1}(); - } - method method2() → void {} set property1(core::int value) → void { super.{mai::Super1::property1} = value; } @@ -225,16 +225,16 @@ abstract class _Class2b&Class2a&Mixin1 extends self::Class2a implements self::Mi synthetic constructor •() → self::_Class2b&Class2a&Mixin1 : super self::Class2a::•() ; + method method1() → void { + super.{mai::Super1::method1}(); + } + method method2() → void {} get property1() → core::int { return super.{mai::Super1::property1}; } get property2() → core::int { return 42; } - method method1() → void { - super.{mai::Super1::method1}(); - } - method method2() → void {} set property1(core::int value) → void { super.{mai::Super1::property1} = value; } @@ -260,16 +260,16 @@ abstract class _Class3b&Class3a&Mixin1 extends self::Class3a implements self::Mi synthetic constructor •() → self::_Class3b&Class3a&Mixin1 : super self::Class3a::•() ; + method method1() → void { + super.{mai::Super1::method1}(); + } + method method2() → void {} get property1() → core::int { return super.{mai::Super1::property1}; } get property2() → core::int { return 42; } - method method1() → void { - super.{mai::Super1::method1}(); - } - method method2() → void {} set property1(core::int value) → void { super.{mai::Super1::property1} = value; } @@ -295,16 +295,16 @@ abstract class _Class4b&Class4a&Mixin2 extends self::Class4a implements mai::Mix synthetic constructor •() → self::_Class4b&Class4a&Mixin2 : super self::Class4a::•() ; + method /* from org-dartlang-testcase:///main_lib.dart */ method1() → void { + super.{mai::Super1::method1}(); + } + method /* from org-dartlang-testcase:///main_lib.dart */ method2() → void {} get /* from org-dartlang-testcase:///main_lib.dart */ property1() → core::int { return super.{mai::Super1::property1}; } get /* from org-dartlang-testcase:///main_lib.dart */ property2() → core::int { return 42; } - method /* from org-dartlang-testcase:///main_lib.dart */ method1() → void { - super.{mai::Super1::method1}(); - } - method /* from org-dartlang-testcase:///main_lib.dart */ method2() → void {} set /* from org-dartlang-testcase:///main_lib.dart */ property1(core::int value) → void { super.{mai::Super1::property1} = value; } @@ -330,16 +330,16 @@ abstract class _Class5b&Class5a&Mixin2 extends self::Class5a implements mai::Mix synthetic constructor •() → self::_Class5b&Class5a&Mixin2 : super self::Class5a::•() ; + method /* from org-dartlang-testcase:///main_lib.dart */ method1() → void { + super.{mai::Super1::method1}(); + } + method /* from org-dartlang-testcase:///main_lib.dart */ method2() → void {} get /* from org-dartlang-testcase:///main_lib.dart */ property1() → core::int { return super.{mai::Super1::property1}; } get /* from org-dartlang-testcase:///main_lib.dart */ property2() → core::int { return 42; } - method /* from org-dartlang-testcase:///main_lib.dart */ method1() → void { - super.{mai::Super1::method1}(); - } - method /* from org-dartlang-testcase:///main_lib.dart */ method2() → void {} set /* from org-dartlang-testcase:///main_lib.dart */ property1(core::int value) → void { super.{mai::Super1::property1} = value; } @@ -365,16 +365,16 @@ abstract class _Class6b&Class6a&Mixin2 extends self::Class6a implements mai::Mix synthetic constructor •() → self::_Class6b&Class6a&Mixin2 : super self::Class6a::•() ; + method /* from org-dartlang-testcase:///main_lib.dart */ method1() → void { + super.{mai::Super1::method1}(); + } + method /* from org-dartlang-testcase:///main_lib.dart */ method2() → void {} get /* from org-dartlang-testcase:///main_lib.dart */ property1() → core::int { return super.{mai::Super1::property1}; } get /* from org-dartlang-testcase:///main_lib.dart */ property2() → core::int { return 42; } - method /* from org-dartlang-testcase:///main_lib.dart */ method1() → void { - super.{mai::Super1::method1}(); - } - method /* from org-dartlang-testcase:///main_lib.dart */ method2() → void {} set /* from org-dartlang-testcase:///main_lib.dart */ property1(core::int value) → void { super.{mai::Super1::property1} = value; } diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart new file mode 100644 index 00000000000..eec6c118e83 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart @@ -0,0 +1,11 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// @dart=3.6 + +enum E { + element; + + void set hashCode(String value) {} // Error. +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.expect new file mode 100644 index 00000000000..130c4f60301 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.expect @@ -0,0 +1,38 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart:10:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'String' of the setter 'E.hashCode'. +// void set hashCode(String value) {} // Error. +// ^^^^^^^^ +// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. +// int get hashCode => _getHash(this); +// ^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List values = #C4; + enum-element static const field self::E element = #C3; + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + set hashCode(core::String value) → void {} +} + +constants { + #C1 = 0 + #C2 = "element" + #C3 = self::E {index:#C1, _name:#C2} + #C4 = [#C3] +} + + +Constructor coverage from constants: +org-dartlang-testcase:///declared_hashcode.dart: +- E. (from org-dartlang-testcase:///declared_hashcode.dart:7:6) +- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart) +- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.modular.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.modular.expect new file mode 100644 index 00000000000..130c4f60301 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.modular.expect @@ -0,0 +1,38 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart:10:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'String' of the setter 'E.hashCode'. +// void set hashCode(String value) {} // Error. +// ^^^^^^^^ +// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. +// int get hashCode => _getHash(this); +// ^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List values = #C4; + enum-element static const field self::E element = #C3; + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + set hashCode(core::String value) → void {} +} + +constants { + #C1 = 0 + #C2 = "element" + #C3 = self::E {index:#C1, _name:#C2} + #C4 = [#C3] +} + + +Constructor coverage from constants: +org-dartlang-testcase:///declared_hashcode.dart: +- E. (from org-dartlang-testcase:///declared_hashcode.dart:7:6) +- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart) +- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.outline.expect new file mode 100644 index 00000000000..bd7da9455a3 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.outline.expect @@ -0,0 +1,31 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart:10:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'String' of the setter 'E.hashCode'. +// void set hashCode(String value) {} // Error. +// ^^^^^^^^ +// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. +// int get hashCode => _getHash(this); +// ^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List values = const [self::E::element]; + enum-element static const field self::E element = const self::E::•(0, "element"); + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + set hashCode(core::String value) → void + ; +} + + +Extra constant evaluation status: +Evaluated: ListLiteral @ org-dartlang-testcase:///declared_hashcode.dart:7:6 -> ListConstant(const [const E{_Enum.index: 0, _Enum._name: "element"}]) +Evaluated: ConstructorInvocation @ org-dartlang-testcase:///declared_hashcode.dart:8:3 -> InstanceConstant(const E{_Enum.index: 0, _Enum._name: "element"}) +Extra constant evaluation: evaluated: 7, effectively constant: 2 diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.transformed.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.transformed.expect new file mode 100644 index 00000000000..130c4f60301 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.strong.transformed.expect @@ -0,0 +1,38 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart:10:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'String' of the setter 'E.hashCode'. +// void set hashCode(String value) {} // Error. +// ^^^^^^^^ +// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. +// int get hashCode => _getHash(this); +// ^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List values = #C4; + enum-element static const field self::E element = #C3; + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + set hashCode(core::String value) → void {} +} + +constants { + #C1 = 0 + #C2 = "element" + #C3 = self::E {index:#C1, _name:#C2} + #C4 = [#C3] +} + + +Constructor coverage from constants: +org-dartlang-testcase:///declared_hashcode.dart: +- E. (from org-dartlang-testcase:///declared_hashcode.dart:7:6) +- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart) +- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.textual_outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.textual_outline.expect new file mode 100644 index 00000000000..92488d22e13 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.textual_outline.expect @@ -0,0 +1,7 @@ +// @dart = 3.6 + +enum E { + element; + + void set hashCode(String value) {} +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.textual_outline_modelled.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.textual_outline_modelled.expect new file mode 100644 index 00000000000..92488d22e13 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_hashcode.dart.textual_outline_modelled.expect @@ -0,0 +1,7 @@ +// @dart = 3.6 + +enum E { + element; + + void set hashCode(String value) {} +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart new file mode 100644 index 00000000000..4740149ef8b --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart @@ -0,0 +1,11 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// @dart=3.6 + +enum E { + element; + + void set index(String value) {} // Error. +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.expect new file mode 100644 index 00000000000..0923ff70405 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.expect @@ -0,0 +1,38 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart:10:12: Error: The type 'int' of the inherited field '_Enum.index' is not a subtype of the type 'String' of the setter 'E.index'. +// void set index(String value) {} // Error. +// ^^^^^ +// sdk/lib/core/enum.dart:*: Context: This is the declaration of the field '_Enum.index'. +// final int index; +// ^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List values = #C4; + enum-element static const field self::E element = #C3; + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + set index(core::String value) → void {} +} + +constants { + #C1 = 0 + #C2 = "element" + #C3 = self::E {index:#C1, _name:#C2} + #C4 = [#C3] +} + + +Constructor coverage from constants: +org-dartlang-testcase:///declared_index.dart: +- E. (from org-dartlang-testcase:///declared_index.dart:7:6) +- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart) +- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.modular.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.modular.expect new file mode 100644 index 00000000000..0923ff70405 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.modular.expect @@ -0,0 +1,38 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart:10:12: Error: The type 'int' of the inherited field '_Enum.index' is not a subtype of the type 'String' of the setter 'E.index'. +// void set index(String value) {} // Error. +// ^^^^^ +// sdk/lib/core/enum.dart:*: Context: This is the declaration of the field '_Enum.index'. +// final int index; +// ^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List values = #C4; + enum-element static const field self::E element = #C3; + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + set index(core::String value) → void {} +} + +constants { + #C1 = 0 + #C2 = "element" + #C3 = self::E {index:#C1, _name:#C2} + #C4 = [#C3] +} + + +Constructor coverage from constants: +org-dartlang-testcase:///declared_index.dart: +- E. (from org-dartlang-testcase:///declared_index.dart:7:6) +- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart) +- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.outline.expect new file mode 100644 index 00000000000..d84dec7f99d --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.outline.expect @@ -0,0 +1,31 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart:10:12: Error: The type 'int' of the inherited field '_Enum.index' is not a subtype of the type 'String' of the setter 'E.index'. +// void set index(String value) {} // Error. +// ^^^^^ +// sdk/lib/core/enum.dart:*: Context: This is the declaration of the field '_Enum.index'. +// final int index; +// ^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List values = const [self::E::element]; + enum-element static const field self::E element = const self::E::•(0, "element"); + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + set index(core::String value) → void + ; +} + + +Extra constant evaluation status: +Evaluated: ListLiteral @ org-dartlang-testcase:///declared_index.dart:7:6 -> ListConstant(const [const E{_Enum.index: 0, _Enum._name: "element"}]) +Evaluated: ConstructorInvocation @ org-dartlang-testcase:///declared_index.dart:8:3 -> InstanceConstant(const E{_Enum.index: 0, _Enum._name: "element"}) +Extra constant evaluation: evaluated: 7, effectively constant: 2 diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.transformed.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.transformed.expect new file mode 100644 index 00000000000..0923ff70405 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.strong.transformed.expect @@ -0,0 +1,38 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart:10:12: Error: The type 'int' of the inherited field '_Enum.index' is not a subtype of the type 'String' of the setter 'E.index'. +// void set index(String value) {} // Error. +// ^^^^^ +// sdk/lib/core/enum.dart:*: Context: This is the declaration of the field '_Enum.index'. +// final int index; +// ^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List values = #C4; + enum-element static const field self::E element = #C3; + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + set index(core::String value) → void {} +} + +constants { + #C1 = 0 + #C2 = "element" + #C3 = self::E {index:#C1, _name:#C2} + #C4 = [#C3] +} + + +Constructor coverage from constants: +org-dartlang-testcase:///declared_index.dart: +- E. (from org-dartlang-testcase:///declared_index.dart:7:6) +- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart) +- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.textual_outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.textual_outline.expect new file mode 100644 index 00000000000..1c2b75b61ad --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.textual_outline.expect @@ -0,0 +1,7 @@ +// @dart = 3.6 + +enum E { + element; + + void set index(String value) {} +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.textual_outline_modelled.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.textual_outline_modelled.expect new file mode 100644 index 00000000000..1c2b75b61ad --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_index.dart.textual_outline_modelled.expect @@ -0,0 +1,7 @@ +// @dart = 3.6 + +enum E { + element; + + void set index(String value) {} +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart new file mode 100644 index 00000000000..224fe7b5f51 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart @@ -0,0 +1,11 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// @dart=3.6 + +enum E { + element; + + static void set values(Never x) {} // Error. +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.expect new file mode 100644 index 00000000000..69e433b3420 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.expect @@ -0,0 +1,40 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart:7:6: Error: The type 'List' of the getter 'E.values' is not a subtype of the type 'Never' of the setter 'E.values'. +// - 'List' is from 'dart:core'. +// - 'E' is from 'pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart'. +// enum E { +// ^^^^... +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart:10:19: Context: This is the declaration of the setter 'E.values'. +// static void set values(Never x) {} // Error. +// ^^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List values = #C4; + enum-element static const field self::E element = #C3; + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + static set values(Never x) → void {} +} + +constants { + #C1 = 0 + #C2 = "element" + #C3 = self::E {index:#C1, _name:#C2} + #C4 = [#C3] +} + + +Constructor coverage from constants: +org-dartlang-testcase:///declared_values.dart: +- E. (from org-dartlang-testcase:///declared_values.dart:7:6) +- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart) +- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.modular.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.modular.expect new file mode 100644 index 00000000000..69e433b3420 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.modular.expect @@ -0,0 +1,40 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart:7:6: Error: The type 'List' of the getter 'E.values' is not a subtype of the type 'Never' of the setter 'E.values'. +// - 'List' is from 'dart:core'. +// - 'E' is from 'pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart'. +// enum E { +// ^^^^... +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart:10:19: Context: This is the declaration of the setter 'E.values'. +// static void set values(Never x) {} // Error. +// ^^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List values = #C4; + enum-element static const field self::E element = #C3; + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + static set values(Never x) → void {} +} + +constants { + #C1 = 0 + #C2 = "element" + #C3 = self::E {index:#C1, _name:#C2} + #C4 = [#C3] +} + + +Constructor coverage from constants: +org-dartlang-testcase:///declared_values.dart: +- E. (from org-dartlang-testcase:///declared_values.dart:7:6) +- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart) +- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.outline.expect new file mode 100644 index 00000000000..329583279eb --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.outline.expect @@ -0,0 +1,33 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart:7:6: Error: The type 'List' of the getter 'E.values' is not a subtype of the type 'Never' of the setter 'E.values'. +// - 'List' is from 'dart:core'. +// - 'E' is from 'pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart'. +// enum E { +// ^^^^... +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart:10:19: Context: This is the declaration of the setter 'E.values'. +// static void set values(Never x) {} // Error. +// ^^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List values = const [self::E::element]; + enum-element static const field self::E element = const self::E::•(0, "element"); + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + static set values(Never x) → void + ; +} + + +Extra constant evaluation status: +Evaluated: ListLiteral @ org-dartlang-testcase:///declared_values.dart:7:6 -> ListConstant(const [const E{_Enum.index: 0, _Enum._name: "element"}]) +Evaluated: ConstructorInvocation @ org-dartlang-testcase:///declared_values.dart:8:3 -> InstanceConstant(const E{_Enum.index: 0, _Enum._name: "element"}) +Extra constant evaluation: evaluated: 7, effectively constant: 2 diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.transformed.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.transformed.expect new file mode 100644 index 00000000000..69e433b3420 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.strong.transformed.expect @@ -0,0 +1,40 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart:7:6: Error: The type 'List' of the getter 'E.values' is not a subtype of the type 'Never' of the setter 'E.values'. +// - 'List' is from 'dart:core'. +// - 'E' is from 'pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart'. +// enum E { +// ^^^^... +// pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart:10:19: Context: This is the declaration of the setter 'E.values'. +// static void set values(Never x) {} // Error. +// ^^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List values = #C4; + enum-element static const field self::E element = #C3; + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + static set values(Never x) → void {} +} + +constants { + #C1 = 0 + #C2 = "element" + #C3 = self::E {index:#C1, _name:#C2} + #C4 = [#C3] +} + + +Constructor coverage from constants: +org-dartlang-testcase:///declared_values.dart: +- E. (from org-dartlang-testcase:///declared_values.dart:7:6) +- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart) +- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.textual_outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.textual_outline.expect new file mode 100644 index 00000000000..fd946d51acf --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.textual_outline.expect @@ -0,0 +1,7 @@ +// @dart = 3.6 + +enum E { + element; + + static void set values(Never x) {} +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.textual_outline_modelled.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.textual_outline_modelled.expect new file mode 100644 index 00000000000..fd946d51acf --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/declared_values.dart.textual_outline_modelled.expect @@ -0,0 +1,7 @@ +// @dart = 3.6 + +enum E { + element; + + static void set values(Never x) {} +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart new file mode 100644 index 00000000000..ac25c93cfa5 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart @@ -0,0 +1,15 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// @dart=3.6 + +abstract class A2 implements Enum { + void set index(String value) {} // Error. + void set hashCode(double value) {} // Error. +} + +mixin M2 implements Enum { + void set index(String value) {} // Error. + void set hashCode(double value) {} // Error. +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.expect new file mode 100644 index 00000000000..107691649a6 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.expect @@ -0,0 +1,46 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:8:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'A2.index'. +// void set index(String value) {} // Error. +// ^^^^^ +// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. +// int get index; +// ^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:9:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'A2.hashCode'. +// void set hashCode(double value) {} // Error. +// ^^^^^^^^ +// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. +// int get hashCode => _getHash(this); +// ^^^^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:13:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'M2.index'. +// void set index(String value) {} // Error. +// ^^^^^ +// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. +// int get index; +// ^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:14:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'M2.hashCode'. +// void set hashCode(double value) {} // Error. +// ^^^^^^^^ +// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. +// int get hashCode => _getHash(this); +// ^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +abstract class A2 extends core::Object implements core::Enum { + synthetic constructor •() → self::A2 + : super core::Object::•() + ; + set index(core::String value) → void {} + set hashCode(core::double value) → void {} +} +abstract class M2 extends core::Object implements core::Enum /*isMixinDeclaration*/ { + set index(core::String value) → void {} + set hashCode(core::double value) → void {} +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.modular.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.modular.expect new file mode 100644 index 00000000000..107691649a6 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.modular.expect @@ -0,0 +1,46 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:8:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'A2.index'. +// void set index(String value) {} // Error. +// ^^^^^ +// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. +// int get index; +// ^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:9:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'A2.hashCode'. +// void set hashCode(double value) {} // Error. +// ^^^^^^^^ +// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. +// int get hashCode => _getHash(this); +// ^^^^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:13:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'M2.index'. +// void set index(String value) {} // Error. +// ^^^^^ +// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. +// int get index; +// ^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:14:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'M2.hashCode'. +// void set hashCode(double value) {} // Error. +// ^^^^^^^^ +// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. +// int get hashCode => _getHash(this); +// ^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +abstract class A2 extends core::Object implements core::Enum { + synthetic constructor •() → self::A2 + : super core::Object::•() + ; + set index(core::String value) → void {} + set hashCode(core::double value) → void {} +} +abstract class M2 extends core::Object implements core::Enum /*isMixinDeclaration*/ { + set index(core::String value) → void {} + set hashCode(core::double value) → void {} +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.outline.expect new file mode 100644 index 00000000000..6161d597fa7 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.outline.expect @@ -0,0 +1,49 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:8:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'A2.index'. +// void set index(String value) {} // Error. +// ^^^^^ +// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. +// int get index; +// ^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:9:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'A2.hashCode'. +// void set hashCode(double value) {} // Error. +// ^^^^^^^^ +// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. +// int get hashCode => _getHash(this); +// ^^^^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:13:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'M2.index'. +// void set index(String value) {} // Error. +// ^^^^^ +// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. +// int get index; +// ^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:14:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'M2.hashCode'. +// void set hashCode(double value) {} // Error. +// ^^^^^^^^ +// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. +// int get hashCode => _getHash(this); +// ^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +abstract class A2 extends core::Object implements core::Enum { + synthetic constructor •() → self::A2 + ; + set index(core::String value) → void + ; + set hashCode(core::double value) → void + ; +} +abstract class M2 extends core::Object implements core::Enum /*isMixinDeclaration*/ { + set index(core::String value) → void + ; + set hashCode(core::double value) → void + ; +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.transformed.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.transformed.expect new file mode 100644 index 00000000000..107691649a6 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.strong.transformed.expect @@ -0,0 +1,46 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:8:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'A2.index'. +// void set index(String value) {} // Error. +// ^^^^^ +// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. +// int get index; +// ^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:9:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'A2.hashCode'. +// void set hashCode(double value) {} // Error. +// ^^^^^^^^ +// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. +// int get hashCode => _getHash(this); +// ^^^^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:13:12: Error: The type 'int' of the inherited getter 'Enum.index' is not a subtype of the type 'String' of the setter 'M2.index'. +// void set index(String value) {} // Error. +// ^^^^^ +// sdk/lib/core/enum.dart:*: Context: This is the declaration of the getter 'Enum.index'. +// int get index; +// ^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart:14:12: Error: The type 'int' of the inherited getter 'Object.hashCode' is not a subtype of the type 'double' of the setter 'M2.hashCode'. +// void set hashCode(double value) {} // Error. +// ^^^^^^^^ +// sdk/lib/_internal/vm/lib/object_patch.dart:*: Context: This is the declaration of the getter 'Object.hashCode'. +// int get hashCode => _getHash(this); +// ^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +abstract class A2 extends core::Object implements core::Enum { + synthetic constructor •() → self::A2 + : super core::Object::•() + ; + set index(core::String value) → void {} + set hashCode(core::double value) → void {} +} +abstract class M2 extends core::Object implements core::Enum /*isMixinDeclaration*/ { + set index(core::String value) → void {} + set hashCode(core::double value) → void {} +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.textual_outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.textual_outline.expect new file mode 100644 index 00000000000..578deb1e798 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.textual_outline.expect @@ -0,0 +1,11 @@ +// @dart = 3.6 + +abstract class A2 implements Enum { + void set index(String value) {} + void set hashCode(double value) {} +} + +mixin M2 implements Enum { + void set index(String value) {} + void set hashCode(double value) {} +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.textual_outline_modelled.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.textual_outline_modelled.expect new file mode 100644 index 00000000000..caf956423e0 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/enum_implementers_with_restricted_members.dart.textual_outline_modelled.expect @@ -0,0 +1,11 @@ +// @dart = 3.6 + +abstract class A2 implements Enum { + void set hashCode(double value) {} + void set index(String value) {} +} + +mixin M2 implements Enum { + void set hashCode(double value) {} + void set index(String value) {} +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart new file mode 100644 index 00000000000..37733d584e8 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart @@ -0,0 +1,13 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// @dart=3.6 + +abstract class B1 { + late final int? property6; +} + +abstract class B2 implements B1 { + void set property6(int i); // error +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.expect new file mode 100644 index 00000000000..f9891ef7726 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.expect @@ -0,0 +1,26 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart:12:12: Error: The type 'int?' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. +// void set property6(int i); // error +// ^^^^^^^^^ +// pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart:8:19: Context: This is the declaration of the field 'B1.property6'. +// late final int? property6; +// ^^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +abstract class B1 extends core::Object { + late final [setter] field core::int? property6; + synthetic constructor •() → self::B1 + : super core::Object::•() + ; +} +abstract class B2 extends core::Object implements self::B1 { + synthetic constructor •() → self::B2 + : super core::Object::•() + ; + abstract set property6(core::int i) → void; +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.modular.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.modular.expect new file mode 100644 index 00000000000..f9891ef7726 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.modular.expect @@ -0,0 +1,26 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart:12:12: Error: The type 'int?' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. +// void set property6(int i); // error +// ^^^^^^^^^ +// pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart:8:19: Context: This is the declaration of the field 'B1.property6'. +// late final int? property6; +// ^^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +abstract class B1 extends core::Object { + late final [setter] field core::int? property6; + synthetic constructor •() → self::B1 + : super core::Object::•() + ; +} +abstract class B2 extends core::Object implements self::B1 { + synthetic constructor •() → self::B2 + : super core::Object::•() + ; + abstract set property6(core::int i) → void; +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.outline.expect new file mode 100644 index 00000000000..fa625028fff --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.outline.expect @@ -0,0 +1,24 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart:12:12: Error: The type 'int?' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. +// void set property6(int i); // error +// ^^^^^^^^^ +// pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart:8:19: Context: This is the declaration of the field 'B1.property6'. +// late final int? property6; +// ^^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +abstract class B1 extends core::Object { + late final [setter] field core::int? property6; + synthetic constructor •() → self::B1 + ; +} +abstract class B2 extends core::Object implements self::B1 { + synthetic constructor •() → self::B2 + ; + abstract set property6(core::int i) → void; +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.transformed.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.transformed.expect new file mode 100644 index 00000000000..f9891ef7726 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.strong.transformed.expect @@ -0,0 +1,26 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart:12:12: Error: The type 'int?' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. +// void set property6(int i); // error +// ^^^^^^^^^ +// pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart:8:19: Context: This is the declaration of the field 'B1.property6'. +// late final int? property6; +// ^^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +abstract class B1 extends core::Object { + late final [setter] field core::int? property6; + synthetic constructor •() → self::B1 + : super core::Object::•() + ; +} +abstract class B2 extends core::Object implements self::B1 { + synthetic constructor •() → self::B2 + : super core::Object::•() + ; + abstract set property6(core::int i) → void; +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.textual_outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.textual_outline.expect new file mode 100644 index 00000000000..b0064e5c602 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.textual_outline.expect @@ -0,0 +1,9 @@ +// @dart = 3.6 + +abstract class B1 { + late final int? property6; +} + +abstract class B2 implements B1 { + void set property6(int i); +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.textual_outline_modelled.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.textual_outline_modelled.expect new file mode 100644 index 00000000000..b0064e5c602 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/getter_vs_setter_type_late.dart.textual_outline_modelled.expect @@ -0,0 +1,9 @@ +// @dart = 3.6 + +abstract class B1 { + late final int? property6; +} + +abstract class B2 implements B1 { + void set property6(int i); +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart new file mode 100644 index 00000000000..00f94c9c62f --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart @@ -0,0 +1,11 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// @dart=3.6 + +enum E { + element2(); + + static void set element2(E val) {} // Error. +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.expect new file mode 100644 index 00000000000..2f6348f3263 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.expect @@ -0,0 +1,39 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart:8:3: Error: The type 'E' of the getter 'E.element2' is not a subtype of the type 'E' of the setter 'E.element2'. +// - 'E' is from 'pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart'. +// element2(); +// ^^^^^^^^ +// pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart:10:19: Context: This is the declaration of the setter 'E.element2'. +// static void set element2(E val) {} // Error. +// ^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List> values = #C4; + enum-element static const field self::E element2 = #C3; + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + static set element2(self::E val) → void {} +} + +constants { + #C1 = 0 + #C2 = "element2" + #C3 = self::E {index:#C1, _name:#C2} + #C4 = >[#C3] +} + + +Constructor coverage from constants: +org-dartlang-testcase:///setter_getter_type_check.dart: +- E. (from org-dartlang-testcase:///setter_getter_type_check.dart:7:6) +- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart) +- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.modular.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.modular.expect new file mode 100644 index 00000000000..2f6348f3263 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.modular.expect @@ -0,0 +1,39 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart:8:3: Error: The type 'E' of the getter 'E.element2' is not a subtype of the type 'E' of the setter 'E.element2'. +// - 'E' is from 'pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart'. +// element2(); +// ^^^^^^^^ +// pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart:10:19: Context: This is the declaration of the setter 'E.element2'. +// static void set element2(E val) {} // Error. +// ^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List> values = #C4; + enum-element static const field self::E element2 = #C3; + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + static set element2(self::E val) → void {} +} + +constants { + #C1 = 0 + #C2 = "element2" + #C3 = self::E {index:#C1, _name:#C2} + #C4 = >[#C3] +} + + +Constructor coverage from constants: +org-dartlang-testcase:///setter_getter_type_check.dart: +- E. (from org-dartlang-testcase:///setter_getter_type_check.dart:7:6) +- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart) +- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.outline.expect new file mode 100644 index 00000000000..da17f5b5b74 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.outline.expect @@ -0,0 +1,32 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart:8:3: Error: The type 'E' of the getter 'E.element2' is not a subtype of the type 'E' of the setter 'E.element2'. +// - 'E' is from 'pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart'. +// element2(); +// ^^^^^^^^ +// pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart:10:19: Context: This is the declaration of the setter 'E.element2'. +// static void set element2(E val) {} // Error. +// ^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List> values = const >[self::E::element2]; + enum-element static const field self::E element2 = const self::E::•(0, "element2"); + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + static set element2(self::E val) → void + ; +} + + +Extra constant evaluation status: +Evaluated: ListLiteral @ org-dartlang-testcase:///setter_getter_type_check.dart:7:6 -> ListConstant(const >[const E{_Enum.index: 0, _Enum._name: "element2"}]) +Evaluated: ConstructorInvocation @ org-dartlang-testcase:///setter_getter_type_check.dart:8:3 -> InstanceConstant(const E{_Enum.index: 0, _Enum._name: "element2"}) +Extra constant evaluation: evaluated: 7, effectively constant: 2 diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.transformed.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.transformed.expect new file mode 100644 index 00000000000..2f6348f3263 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.strong.transformed.expect @@ -0,0 +1,39 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart:8:3: Error: The type 'E' of the getter 'E.element2' is not a subtype of the type 'E' of the setter 'E.element2'. +// - 'E' is from 'pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart'. +// element2(); +// ^^^^^^^^ +// pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart:10:19: Context: This is the declaration of the setter 'E.element2'. +// static void set element2(E val) {} // Error. +// ^^^^^^^^ +// +import self as self; +import "dart:core" as core; + +class E extends core::_Enum /*isEnum*/ { + static const field core::List> values = #C4; + enum-element static const field self::E element2 = #C3; + const synthetic constructor •(core::int #index, core::String #name) → self::E + : super core::_Enum::•(#index, #name) + ; + method _enumToString() → core::String + return "E.${this.{core::_Enum::_name}{core::String}}"; + static set element2(self::E val) → void {} +} + +constants { + #C1 = 0 + #C2 = "element2" + #C3 = self::E {index:#C1, _name:#C2} + #C4 = >[#C3] +} + + +Constructor coverage from constants: +org-dartlang-testcase:///setter_getter_type_check.dart: +- E. (from org-dartlang-testcase:///setter_getter_type_check.dart:7:6) +- _Enum. (from org-dartlang-sdk:///sdk/lib/core/enum.dart) +- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart) diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.textual_outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.textual_outline.expect new file mode 100644 index 00000000000..ed340715a74 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.textual_outline.expect @@ -0,0 +1,7 @@ +// @dart = 3.6 + +enum E { + element2(); + + static void set element2(E val) {} +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.textual_outline_modelled.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.textual_outline_modelled.expect new file mode 100644 index 00000000000..ed340715a74 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/setter_getter_type_check.dart.textual_outline_modelled.expect @@ -0,0 +1,7 @@ +// @dart = 3.6 + +enum E { + element2(); + + static void set element2(E val) {} +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart new file mode 100644 index 00000000000..c6970d73ae5 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart @@ -0,0 +1,21 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// @dart=3.6 + +// No getter/setter check due to invalid getter type. +Unknown get foo1 => throw 0; +void set foo1(dynamic value) {} + +// No getter/setter check due to invalid setter type. +Never get foo2 => throw 0; +void set foo2(Unknown value) {} + +// Passing getter/setter check. +String get foo3 => ""; +void set foo3(String value) {} + +// Non-passing getter/setter check. +Symbol get foo4 => #foo4; +void set foo4(double value) {} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.expect new file mode 100644 index 00000000000..6384356a21f --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.expect @@ -0,0 +1,43 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:8:1: Error: Type 'Unknown' not found. +// Unknown get foo1 => throw 0; +// ^^^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:13:15: Error: Type 'Unknown' not found. +// void set foo2(Unknown value) {} +// ^^^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:20:12: Error: The type 'Symbol' of the getter 'foo4' is not a subtype of the type 'double' of the setter 'foo4'. +// - 'Symbol' is from 'dart:core'. +// Symbol get foo4 => #foo4; +// ^^^^ +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:21:10: Context: This is the declaration of the setter 'foo4'. +// void set foo4(double value) {} +// ^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:13:15: Error: 'Unknown' isn't a type. +// void set foo2(Unknown value) {} +// ^^^^^^^ +// +import self as self; +import "dart:core" as core; + +static get foo1() → invalid-type + return throw 0; +static set foo1(dynamic value) → void {} +static get foo2() → Never + return throw 0; +static set foo2(invalid-type value) → void {} +static get foo3() → core::String + return ""; +static set foo3(core::String value) → void {} +static get foo4() → core::Symbol + return #C1; +static set foo4(core::double value) → void {} + +constants { + #C1 = #foo4 +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.modular.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.modular.expect new file mode 100644 index 00000000000..6384356a21f --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.modular.expect @@ -0,0 +1,43 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:8:1: Error: Type 'Unknown' not found. +// Unknown get foo1 => throw 0; +// ^^^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:13:15: Error: Type 'Unknown' not found. +// void set foo2(Unknown value) {} +// ^^^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:20:12: Error: The type 'Symbol' of the getter 'foo4' is not a subtype of the type 'double' of the setter 'foo4'. +// - 'Symbol' is from 'dart:core'. +// Symbol get foo4 => #foo4; +// ^^^^ +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:21:10: Context: This is the declaration of the setter 'foo4'. +// void set foo4(double value) {} +// ^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:13:15: Error: 'Unknown' isn't a type. +// void set foo2(Unknown value) {} +// ^^^^^^^ +// +import self as self; +import "dart:core" as core; + +static get foo1() → invalid-type + return throw 0; +static set foo1(dynamic value) → void {} +static get foo2() → Never + return throw 0; +static set foo2(invalid-type value) → void {} +static get foo3() → core::String + return ""; +static set foo3(core::String value) → void {} +static get foo4() → core::Symbol + return #C1; +static set foo4(core::double value) → void {} + +constants { + #C1 = #foo4 +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.outline.expect new file mode 100644 index 00000000000..90e8bbad498 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.outline.expect @@ -0,0 +1,39 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:8:1: Error: Type 'Unknown' not found. +// Unknown get foo1 => throw 0; +// ^^^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:13:15: Error: Type 'Unknown' not found. +// void set foo2(Unknown value) {} +// ^^^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:20:12: Error: The type 'Symbol' of the getter 'foo4' is not a subtype of the type 'double' of the setter 'foo4'. +// - 'Symbol' is from 'dart:core'. +// Symbol get foo4 => #foo4; +// ^^^^ +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:21:10: Context: This is the declaration of the setter 'foo4'. +// void set foo4(double value) {} +// ^^^^ +// +import self as self; +import "dart:core" as core; + +static get foo1() → invalid-type + ; +static set foo1(dynamic value) → void + ; +static get foo2() → Never + ; +static set foo2(invalid-type value) → void + ; +static get foo3() → core::String + ; +static set foo3(core::String value) → void + ; +static get foo4() → core::Symbol + ; +static set foo4(core::double value) → void + ; diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.transformed.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.transformed.expect new file mode 100644 index 00000000000..6384356a21f --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.strong.transformed.expect @@ -0,0 +1,43 @@ +library; +// +// Problems in library: +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:8:1: Error: Type 'Unknown' not found. +// Unknown get foo1 => throw 0; +// ^^^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:13:15: Error: Type 'Unknown' not found. +// void set foo2(Unknown value) {} +// ^^^^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:20:12: Error: The type 'Symbol' of the getter 'foo4' is not a subtype of the type 'double' of the setter 'foo4'. +// - 'Symbol' is from 'dart:core'. +// Symbol get foo4 => #foo4; +// ^^^^ +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:21:10: Context: This is the declaration of the setter 'foo4'. +// void set foo4(double value) {} +// ^^^^ +// +// pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart:13:15: Error: 'Unknown' isn't a type. +// void set foo2(Unknown value) {} +// ^^^^^^^ +// +import self as self; +import "dart:core" as core; + +static get foo1() → invalid-type + return throw 0; +static set foo1(dynamic value) → void {} +static get foo2() → Never + return throw 0; +static set foo2(invalid-type value) → void {} +static get foo3() → core::String + return ""; +static set foo3(core::String value) → void {} +static get foo4() → core::Symbol + return #C1; +static set foo4(core::double value) → void {} + +constants { + #C1 = #foo4 +} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.textual_outline.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.textual_outline.expect new file mode 100644 index 00000000000..a0ec60eca74 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.textual_outline.expect @@ -0,0 +1,17 @@ +// @dart = 3.6 + +Unknown get foo1 => throw 0; + +void set foo1(dynamic value) {} + +Never get foo2 => throw 0; + +void set foo2(Unknown value) {} + +String get foo3 => ""; + +void set foo3(String value) {} + +Symbol get foo4 => #foo4; + +void set foo4(double value) {} diff --git a/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.textual_outline_modelled.expect b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.textual_outline_modelled.expect new file mode 100644 index 00000000000..0c0d6ed3f12 --- /dev/null +++ b/pkg/front_end/testcases/getter_setter_error/pre_feature/top_level_properties.dart.textual_outline_modelled.expect @@ -0,0 +1,17 @@ +// @dart = 3.6 + +Never get foo2 => throw 0; + +String get foo3 => ""; + +Symbol get foo4 => #foo4; + +Unknown get foo1 => throw 0; + +void set foo1(dynamic value) {} + +void set foo2(Unknown value) {} + +void set foo3(String value) {} + +void set foo4(double value) {} diff --git a/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.expect b/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.expect index 3d274484b88..97ca47cd189 100644 --- a/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.expect +++ b/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.expect @@ -1,21 +1,4 @@ library test; -// -// Problems in library: -// -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:9:11: Error: The type 'int' of the getter 'A.x' is not a subtype of the type 'double' of the setter 'A.x'. -// int get x; -// ^ -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:10:12: Context: This is the declaration of the setter 'A.x'. -// void set x(double value) {} -// ^ -// -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:14:9: Error: The type 'int' of the field 'B.x' is not a subtype of the type 'double' of the inherited setter 'A.x'. -// final x; -// ^ -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:10:12: Context: This is the declaration of the setter 'A.x'. -// void set x(double value) {} -// ^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.modular.expect b/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.modular.expect index 3d274484b88..97ca47cd189 100644 --- a/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.modular.expect +++ b/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.modular.expect @@ -1,21 +1,4 @@ library test; -// -// Problems in library: -// -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:9:11: Error: The type 'int' of the getter 'A.x' is not a subtype of the type 'double' of the setter 'A.x'. -// int get x; -// ^ -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:10:12: Context: This is the declaration of the setter 'A.x'. -// void set x(double value) {} -// ^ -// -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:14:9: Error: The type 'int' of the field 'B.x' is not a subtype of the type 'double' of the inherited setter 'A.x'. -// final x; -// ^ -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:10:12: Context: This is the declaration of the setter 'A.x'. -// void set x(double value) {} -// ^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.outline.expect b/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.outline.expect index b3beb304723..72678b463d9 100644 --- a/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.outline.expect +++ b/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.outline.expect @@ -1,21 +1,4 @@ library test; -// -// Problems in library: -// -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:9:11: Error: The type 'int' of the getter 'A.x' is not a subtype of the type 'double' of the setter 'A.x'. -// int get x; -// ^ -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:10:12: Context: This is the declaration of the setter 'A.x'. -// void set x(double value) {} -// ^ -// -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:14:9: Error: The type 'int' of the field 'B.x' is not a subtype of the type 'double' of the inherited setter 'A.x'. -// final x; -// ^ -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:10:12: Context: This is the declaration of the setter 'A.x'. -// void set x(double value) {} -// ^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.transformed.expect b/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.transformed.expect index 3d274484b88..97ca47cd189 100644 --- a/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart.strong.transformed.expect @@ -1,21 +1,4 @@ library test; -// -// Problems in library: -// -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:9:11: Error: The type 'int' of the getter 'A.x' is not a subtype of the type 'double' of the setter 'A.x'. -// int get x; -// ^ -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:10:12: Context: This is the declaration of the setter 'A.x'. -// void set x(double value) {} -// ^ -// -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:14:9: Error: The type 'int' of the field 'B.x' is not a subtype of the type 'double' of the inherited setter 'A.x'. -// final x; -// ^ -// pkg/front_end/testcases/inference/infer_final_field_getter_and_setter.dart:10:12: Context: This is the declaration of the setter 'A.x'. -// void set x(double value) {} -// ^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.expect b/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.expect index 5ab75471d1b..b6cd90c0d93 100644 --- a/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.expect +++ b/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.expect @@ -13,13 +13,6 @@ library test; // void set x(double value); // ^ // -// pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart:9:11: Error: The type 'int' of the getter 'A.x' is not a subtype of the type 'double' of the setter 'A.x'. -// int get x; -// ^ -// pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart:10:12: Context: This is the declaration of the setter 'A.x'. -// void set x(double value); -// ^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.modular.expect b/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.modular.expect index 5ab75471d1b..b6cd90c0d93 100644 --- a/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.modular.expect +++ b/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.modular.expect @@ -13,13 +13,6 @@ library test; // void set x(double value); // ^ // -// pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart:9:11: Error: The type 'int' of the getter 'A.x' is not a subtype of the type 'double' of the setter 'A.x'. -// int get x; -// ^ -// pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart:10:12: Context: This is the declaration of the setter 'A.x'. -// void set x(double value); -// ^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.outline.expect b/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.outline.expect index 57ff9e78f02..9563b2b337f 100644 --- a/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.outline.expect +++ b/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.outline.expect @@ -13,13 +13,6 @@ library test; // void set x(double value); // ^ // -// pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart:9:11: Error: The type 'int' of the getter 'A.x' is not a subtype of the type 'double' of the setter 'A.x'. -// int get x; -// ^ -// pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart:10:12: Context: This is the declaration of the setter 'A.x'. -// void set x(double value); -// ^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.transformed.expect b/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.transformed.expect index 5ab75471d1b..b6cd90c0d93 100644 --- a/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart.strong.transformed.expect @@ -13,13 +13,6 @@ library test; // void set x(double value); // ^ // -// pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart:9:11: Error: The type 'int' of the getter 'A.x' is not a subtype of the type 'double' of the setter 'A.x'. -// int get x; -// ^ -// pkg/front_end/testcases/inference_new/infer_field_getter_setter_mismatch.dart:10:12: Context: This is the declaration of the setter 'A.x'. -// void set x(double value); -// ^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.expect b/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.expect index ada744cf7d2..1647473a315 100644 --- a/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.expect +++ b/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.expect @@ -24,15 +24,6 @@ library; // void set y(A value); // ^ // -// pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart:6:9: Error: The type 'A' of the getter 'A.x' is not a subtype of the type 'B' of the setter 'A.x'. -// - 'A' is from 'pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart'. -// - 'B' is from 'pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart'. -// A get x; -// ^ -// pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart:7:12: Context: This is the declaration of the setter 'A.x'. -// void set x(B value); -// ^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.modular.expect b/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.modular.expect index ada744cf7d2..1647473a315 100644 --- a/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.modular.expect +++ b/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.modular.expect @@ -24,15 +24,6 @@ library; // void set y(A value); // ^ // -// pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart:6:9: Error: The type 'A' of the getter 'A.x' is not a subtype of the type 'B' of the setter 'A.x'. -// - 'A' is from 'pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart'. -// - 'B' is from 'pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart'. -// A get x; -// ^ -// pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart:7:12: Context: This is the declaration of the setter 'A.x'. -// void set x(B value); -// ^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.outline.expect b/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.outline.expect index 63182e88e38..806a674337b 100644 --- a/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.outline.expect +++ b/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.outline.expect @@ -24,15 +24,6 @@ library; // void set y(A value); // ^ // -// pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart:6:9: Error: The type 'A' of the getter 'A.x' is not a subtype of the type 'B' of the setter 'A.x'. -// - 'A' is from 'pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart'. -// - 'B' is from 'pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart'. -// A get x; -// ^ -// pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart:7:12: Context: This is the declaration of the setter 'A.x'. -// void set x(B value); -// ^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.transformed.expect b/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.transformed.expect index ada744cf7d2..1647473a315 100644 --- a/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart.strong.transformed.expect @@ -24,15 +24,6 @@ library; // void set y(A value); // ^ // -// pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart:6:9: Error: The type 'A' of the getter 'A.x' is not a subtype of the type 'B' of the setter 'A.x'. -// - 'A' is from 'pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart'. -// - 'B' is from 'pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart'. -// A get x; -// ^ -// pkg/front_end/testcases/inference_new/infer_field_override_accessors.dart:7:12: Context: This is the declaration of the setter 'A.x'. -// void set x(B value); -// ^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.expect b/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.expect index ac7010aa484..ff6a1e63e33 100644 --- a/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.expect +++ b/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.expect @@ -1,16 +1,4 @@ library test; -// -// Problems in library: -// -// pkg/front_end/testcases/inference_new/property_assign_combiner.dart:29:9: Error: The type 'A' of the getter 'G.target' is not a subtype of the type 'B' of the setter 'G.target'. -// - 'A' is from 'pkg/front_end/testcases/inference_new/property_assign_combiner.dart'. -// - 'B' is from 'pkg/front_end/testcases/inference_new/property_assign_combiner.dart'. -// A get target => throw ''; -// ^^^^^^ -// pkg/front_end/testcases/inference_new/property_assign_combiner.dart:31:12: Context: This is the declaration of the setter 'G.target'. -// void set target(B value) {} -// ^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.modular.expect b/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.modular.expect index ac7010aa484..ff6a1e63e33 100644 --- a/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.modular.expect +++ b/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.modular.expect @@ -1,16 +1,4 @@ library test; -// -// Problems in library: -// -// pkg/front_end/testcases/inference_new/property_assign_combiner.dart:29:9: Error: The type 'A' of the getter 'G.target' is not a subtype of the type 'B' of the setter 'G.target'. -// - 'A' is from 'pkg/front_end/testcases/inference_new/property_assign_combiner.dart'. -// - 'B' is from 'pkg/front_end/testcases/inference_new/property_assign_combiner.dart'. -// A get target => throw ''; -// ^^^^^^ -// pkg/front_end/testcases/inference_new/property_assign_combiner.dart:31:12: Context: This is the declaration of the setter 'G.target'. -// void set target(B value) {} -// ^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.outline.expect b/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.outline.expect index a469e8176a2..fd5d4fde397 100644 --- a/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.outline.expect +++ b/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.outline.expect @@ -1,16 +1,4 @@ library test; -// -// Problems in library: -// -// pkg/front_end/testcases/inference_new/property_assign_combiner.dart:29:9: Error: The type 'A' of the getter 'G.target' is not a subtype of the type 'B' of the setter 'G.target'. -// - 'A' is from 'pkg/front_end/testcases/inference_new/property_assign_combiner.dart'. -// - 'B' is from 'pkg/front_end/testcases/inference_new/property_assign_combiner.dart'. -// A get target => throw ''; -// ^^^^^^ -// pkg/front_end/testcases/inference_new/property_assign_combiner.dart:31:12: Context: This is the declaration of the setter 'G.target'. -// void set target(B value) {} -// ^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.transformed.expect b/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.transformed.expect index ac7010aa484..ff6a1e63e33 100644 --- a/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference_new/property_assign_combiner.dart.strong.transformed.expect @@ -1,16 +1,4 @@ library test; -// -// Problems in library: -// -// pkg/front_end/testcases/inference_new/property_assign_combiner.dart:29:9: Error: The type 'A' of the getter 'G.target' is not a subtype of the type 'B' of the setter 'G.target'. -// - 'A' is from 'pkg/front_end/testcases/inference_new/property_assign_combiner.dart'. -// - 'B' is from 'pkg/front_end/testcases/inference_new/property_assign_combiner.dart'. -// A get target => throw ''; -// ^^^^^^ -// pkg/front_end/testcases/inference_new/property_assign_combiner.dart:31:12: Context: This is the declaration of the setter 'G.target'. -// void set target(B value) {} -// ^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.expect b/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.expect index 67fb3136998..8d1967feec7 100644 --- a/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.expect +++ b/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.expect @@ -1,16 +1,4 @@ library test; -// -// Problems in library: -// -// pkg/front_end/testcases/inference_new/static_assign_combiner.dart:28:7: Error: The type 'A' of the getter 'target' is not a subtype of the type 'B' of the setter 'target'. -// - 'A' is from 'pkg/front_end/testcases/inference_new/static_assign_combiner.dart'. -// - 'B' is from 'pkg/front_end/testcases/inference_new/static_assign_combiner.dart'. -// A get target => throw ''; -// ^^^^^^ -// pkg/front_end/testcases/inference_new/static_assign_combiner.dart:30:10: Context: This is the declaration of the setter 'target'. -// void set target(B value) {} -// ^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.modular.expect b/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.modular.expect index 67fb3136998..8d1967feec7 100644 --- a/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.modular.expect +++ b/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.modular.expect @@ -1,16 +1,4 @@ library test; -// -// Problems in library: -// -// pkg/front_end/testcases/inference_new/static_assign_combiner.dart:28:7: Error: The type 'A' of the getter 'target' is not a subtype of the type 'B' of the setter 'target'. -// - 'A' is from 'pkg/front_end/testcases/inference_new/static_assign_combiner.dart'. -// - 'B' is from 'pkg/front_end/testcases/inference_new/static_assign_combiner.dart'. -// A get target => throw ''; -// ^^^^^^ -// pkg/front_end/testcases/inference_new/static_assign_combiner.dart:30:10: Context: This is the declaration of the setter 'target'. -// void set target(B value) {} -// ^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.outline.expect b/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.outline.expect index 4f5abfec863..6cec64f9eda 100644 --- a/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.outline.expect +++ b/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.outline.expect @@ -1,16 +1,4 @@ library test; -// -// Problems in library: -// -// pkg/front_end/testcases/inference_new/static_assign_combiner.dart:28:7: Error: The type 'A' of the getter 'target' is not a subtype of the type 'B' of the setter 'target'. -// - 'A' is from 'pkg/front_end/testcases/inference_new/static_assign_combiner.dart'. -// - 'B' is from 'pkg/front_end/testcases/inference_new/static_assign_combiner.dart'. -// A get target => throw ''; -// ^^^^^^ -// pkg/front_end/testcases/inference_new/static_assign_combiner.dart:30:10: Context: This is the declaration of the setter 'target'. -// void set target(B value) {} -// ^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.transformed.expect b/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.transformed.expect index 67fb3136998..8d1967feec7 100644 --- a/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/inference_new/static_assign_combiner.dart.strong.transformed.expect @@ -1,16 +1,4 @@ library test; -// -// Problems in library: -// -// pkg/front_end/testcases/inference_new/static_assign_combiner.dart:28:7: Error: The type 'A' of the getter 'target' is not a subtype of the type 'B' of the setter 'target'. -// - 'A' is from 'pkg/front_end/testcases/inference_new/static_assign_combiner.dart'. -// - 'B' is from 'pkg/front_end/testcases/inference_new/static_assign_combiner.dart'. -// A get target => throw ''; -// ^^^^^^ -// pkg/front_end/testcases/inference_new/static_assign_combiner.dart:30:10: Context: This is the declaration of the setter 'target'. -// void set target(B value) {} -// ^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.expect b/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.expect index da4d81a89f9..05ac4137927 100644 --- a/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.expect +++ b/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.expect @@ -2,13 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:32:12: Error: The type 'int?' of the inherited getter 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:20:19: Context: This is the declaration of the getter 'B1.property6'. -// late final int? property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:32:26: Error: The parameter 'i' of the method 'B2.property6' has type 'int', which does not match the corresponding type, 'int?', in the overridden method, 'B1.property6'. // Change to a supertype of 'int?', or, for a covariant parameter, a subtype. // void set property6(int i); // error @@ -17,13 +10,6 @@ library; // late final int? property6; // ^ // -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:52:12: Error: The type 'int?' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// int? get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:40:12: Context: This is the declaration of the setter 'C1.property6'. -// late int property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:52:12: Error: The return type of the method 'C2.property6' is 'int?', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // int? get property6; // error diff --git a/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.modular.expect b/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.modular.expect index da4d81a89f9..05ac4137927 100644 --- a/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.modular.expect +++ b/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.modular.expect @@ -2,13 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:32:12: Error: The type 'int?' of the inherited getter 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:20:19: Context: This is the declaration of the getter 'B1.property6'. -// late final int? property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:32:26: Error: The parameter 'i' of the method 'B2.property6' has type 'int', which does not match the corresponding type, 'int?', in the overridden method, 'B1.property6'. // Change to a supertype of 'int?', or, for a covariant parameter, a subtype. // void set property6(int i); // error @@ -17,13 +10,6 @@ library; // late final int? property6; // ^ // -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:52:12: Error: The type 'int?' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// int? get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:40:12: Context: This is the declaration of the setter 'C1.property6'. -// late int property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:52:12: Error: The return type of the method 'C2.property6' is 'int?', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // int? get property6; // error diff --git a/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.outline.expect b/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.outline.expect index b36450890b3..2d765df6628 100644 --- a/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.outline.expect +++ b/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.outline.expect @@ -2,13 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:32:12: Error: The type 'int?' of the inherited getter 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:20:19: Context: This is the declaration of the getter 'B1.property6'. -// late final int? property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:32:26: Error: The parameter 'i' of the method 'B2.property6' has type 'int', which does not match the corresponding type, 'int?', in the overridden method, 'B1.property6'. // Change to a supertype of 'int?', or, for a covariant parameter, a subtype. // void set property6(int i); // error @@ -17,13 +10,6 @@ library; // late final int? property6; // ^ // -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:52:12: Error: The type 'int?' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// int? get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:40:12: Context: This is the declaration of the setter 'C1.property6'. -// late int property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:52:12: Error: The return type of the method 'C2.property6' is 'int?', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // int? get property6; // error diff --git a/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.transformed.expect b/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.transformed.expect index da4d81a89f9..05ac4137927 100644 --- a/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart.strong.transformed.expect @@ -2,13 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:32:12: Error: The type 'int?' of the inherited getter 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:20:19: Context: This is the declaration of the getter 'B1.property6'. -// late final int? property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:32:26: Error: The parameter 'i' of the method 'B2.property6' has type 'int', which does not match the corresponding type, 'int?', in the overridden method, 'B1.property6'. // Change to a supertype of 'int?', or, for a covariant parameter, a subtype. // void set property6(int i); // error @@ -17,13 +10,6 @@ library; // late final int? property6; // ^ // -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:52:12: Error: The type 'int?' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// int? get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:40:12: Context: This is the declaration of the setter 'C1.property6'. -// late int property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/late_lowering/getter_vs_setter_type.dart:52:12: Error: The return type of the method 'C2.property6' is 'int?', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // int? get property6; // error diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.expect index 998154df243..2d590e0c586 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.expect @@ -2,48 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:21:11: Error: The type 'num' of the getter 'A.property3' is not a subtype of the type 'int' of the setter 'A.property3'. -// num get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:22:12: Context: This is the declaration of the setter 'A.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:36:18: Error: The type 'num' of the getter 'A.property9' is not a subtype of the type 'int' of the setter 'A.property9'. -// static num get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:37:19: Context: This is the declaration of the setter 'A.property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:61:12: Error: The type 'num' of the inherited getter 'B1.property3' is not a subtype of the type 'int' of the setter 'B2.property3'. -// void set property3(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:45:11: Context: This is the declaration of the getter 'B1.property3'. -// num get property3; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:67:12: Error: The type 'num' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:51:13: Context: This is the declaration of the field 'B1.property6'. -// final num property6; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:89:11: Error: The type 'num' of the getter 'C2.property3' is not a subtype of the type 'int' of the inherited setter 'C1.property3'. -// num get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:75:12: Context: This is the declaration of the setter 'C1.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:97:11: Error: The type 'num' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// num get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:81:7: Context: This is the declaration of the setter 'C1.property6'. -// int property6 = 0; -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:97:11: Error: The return type of the method 'C2.property6' is 'num', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // num get property6; // error @@ -52,54 +10,6 @@ library; // int property6 = 0; // ^ // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:116:16: Error: The type 'num' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D3 implements D1, D2 /* error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:105:11: Context: This is the declaration of the getter 'D1.property3'. -// num get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:113:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:118:16: Error: The type 'num' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D4 implements D3 /* no need for error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:105:11: Context: This is the declaration of the getter 'D1.property3'. -// num get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:113:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:11:9: Error: The type 'num' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// num get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:12:10: Context: This is the declaration of the setter 'property3'. -// void set property3(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:127:11: Error: The type 'num' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// num get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:128:12: Context: This is the declaration of the setter 'property3'. -// void set property3(int i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:136:9: Error: The type 'T' of the getter 'property6' is not a subtype of the type 'S' of the setter 'property6'. -// T get property6 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:137:12: Context: This is the declaration of the setter 'property6'. -// void set property6(S i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:145:18: Error: The type 'num' of the getter 'property9' is not a subtype of the type 'int' of the setter 'property9'. -// static num get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:146:19: Context: This is the declaration of the setter 'property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:130:22: Error: A value of type 'int' can't be returned from a function with return type 'S'. // S get property4 => 0; // ok // ^ diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.modular.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.modular.expect index 998154df243..2d590e0c586 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.modular.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.modular.expect @@ -2,48 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:21:11: Error: The type 'num' of the getter 'A.property3' is not a subtype of the type 'int' of the setter 'A.property3'. -// num get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:22:12: Context: This is the declaration of the setter 'A.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:36:18: Error: The type 'num' of the getter 'A.property9' is not a subtype of the type 'int' of the setter 'A.property9'. -// static num get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:37:19: Context: This is the declaration of the setter 'A.property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:61:12: Error: The type 'num' of the inherited getter 'B1.property3' is not a subtype of the type 'int' of the setter 'B2.property3'. -// void set property3(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:45:11: Context: This is the declaration of the getter 'B1.property3'. -// num get property3; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:67:12: Error: The type 'num' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:51:13: Context: This is the declaration of the field 'B1.property6'. -// final num property6; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:89:11: Error: The type 'num' of the getter 'C2.property3' is not a subtype of the type 'int' of the inherited setter 'C1.property3'. -// num get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:75:12: Context: This is the declaration of the setter 'C1.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:97:11: Error: The type 'num' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// num get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:81:7: Context: This is the declaration of the setter 'C1.property6'. -// int property6 = 0; -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:97:11: Error: The return type of the method 'C2.property6' is 'num', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // num get property6; // error @@ -52,54 +10,6 @@ library; // int property6 = 0; // ^ // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:116:16: Error: The type 'num' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D3 implements D1, D2 /* error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:105:11: Context: This is the declaration of the getter 'D1.property3'. -// num get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:113:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:118:16: Error: The type 'num' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D4 implements D3 /* no need for error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:105:11: Context: This is the declaration of the getter 'D1.property3'. -// num get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:113:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:11:9: Error: The type 'num' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// num get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:12:10: Context: This is the declaration of the setter 'property3'. -// void set property3(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:127:11: Error: The type 'num' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// num get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:128:12: Context: This is the declaration of the setter 'property3'. -// void set property3(int i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:136:9: Error: The type 'T' of the getter 'property6' is not a subtype of the type 'S' of the setter 'property6'. -// T get property6 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:137:12: Context: This is the declaration of the setter 'property6'. -// void set property6(S i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:145:18: Error: The type 'num' of the getter 'property9' is not a subtype of the type 'int' of the setter 'property9'. -// static num get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:146:19: Context: This is the declaration of the setter 'property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:130:22: Error: A value of type 'int' can't be returned from a function with return type 'S'. // S get property4 => 0; // ok // ^ diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.outline.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.outline.expect index 3f6c45e8dc0..2165a2742ce 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.outline.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart.strong.outline.expect @@ -2,48 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:21:11: Error: The type 'num' of the getter 'A.property3' is not a subtype of the type 'int' of the setter 'A.property3'. -// num get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:22:12: Context: This is the declaration of the setter 'A.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:36:18: Error: The type 'num' of the getter 'A.property9' is not a subtype of the type 'int' of the setter 'A.property9'. -// static num get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:37:19: Context: This is the declaration of the setter 'A.property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:61:12: Error: The type 'num' of the inherited getter 'B1.property3' is not a subtype of the type 'int' of the setter 'B2.property3'. -// void set property3(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:45:11: Context: This is the declaration of the getter 'B1.property3'. -// num get property3; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:67:12: Error: The type 'num' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:51:13: Context: This is the declaration of the field 'B1.property6'. -// final num property6; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:89:11: Error: The type 'num' of the getter 'C2.property3' is not a subtype of the type 'int' of the inherited setter 'C1.property3'. -// num get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:75:12: Context: This is the declaration of the setter 'C1.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:97:11: Error: The type 'num' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// num get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:81:7: Context: This is the declaration of the setter 'C1.property6'. -// int property6 = 0; -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:97:11: Error: The return type of the method 'C2.property6' is 'num', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // num get property6; // error @@ -52,54 +10,6 @@ library; // int property6 = 0; // ^ // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:116:16: Error: The type 'num' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D3 implements D1, D2 /* error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:105:11: Context: This is the declaration of the getter 'D1.property3'. -// num get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:113:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:118:16: Error: The type 'num' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D4 implements D3 /* no need for error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:105:11: Context: This is the declaration of the getter 'D1.property3'. -// num get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:113:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:11:9: Error: The type 'num' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// num get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:12:10: Context: This is the declaration of the setter 'property3'. -// void set property3(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:127:11: Error: The type 'num' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// num get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:128:12: Context: This is the declaration of the setter 'property3'. -// void set property3(int i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:136:9: Error: The type 'T' of the getter 'property6' is not a subtype of the type 'S' of the setter 'property6'. -// T get property6 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:137:12: Context: This is the declaration of the setter 'property6'. -// void set property6(S i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:145:18: Error: The type 'num' of the getter 'property9' is not a subtype of the type 'int' of the setter 'property9'. -// static num get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type.dart:146:19: Context: This is the declaration of the setter 'property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart index ca3246a5976..e7d1af1aed1 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart @@ -27,7 +27,7 @@ abstract class B2 implements B1 { void set property5(int? i); // ok - void set property6(int i); // error + void set property6(int i); // ok } abstract class C1 { diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.expect index f2f8befe9ae..c54337b63ef 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.expect @@ -2,20 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:30:12: Error: The type 'int?' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:20:19: Context: This is the declaration of the field 'B1.property6'. -// late final int? property6; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:50:12: Error: The type 'int?' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// int? get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:38:12: Context: This is the declaration of the setter 'C1.property6'. -// late int property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:50:12: Error: The return type of the method 'C2.property6' is 'int?', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // int? get property6; // error diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.modular.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.modular.expect index f2f8befe9ae..c54337b63ef 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.modular.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.modular.expect @@ -2,20 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:30:12: Error: The type 'int?' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:20:19: Context: This is the declaration of the field 'B1.property6'. -// late final int? property6; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:50:12: Error: The type 'int?' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// int? get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:38:12: Context: This is the declaration of the setter 'C1.property6'. -// late int property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:50:12: Error: The return type of the method 'C2.property6' is 'int?', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // int? get property6; // error diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.outline.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.outline.expect index fe260f91d59..77e74456ff3 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.outline.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.outline.expect @@ -2,20 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:30:12: Error: The type 'int?' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:20:19: Context: This is the declaration of the field 'B1.property6'. -// late final int? property6; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:50:12: Error: The type 'int?' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// int? get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:38:12: Context: This is the declaration of the setter 'C1.property6'. -// late int property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:50:12: Error: The return type of the method 'C2.property6' is 'int?', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // int? get property6; // error diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.transformed.expect index f2f8befe9ae..c54337b63ef 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart.strong.transformed.expect @@ -2,20 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:30:12: Error: The type 'int?' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:20:19: Context: This is the declaration of the field 'B1.property6'. -// late final int? property6; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:50:12: Error: The type 'int?' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// int? get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:38:12: Context: This is the declaration of the setter 'C1.property6'. -// late int property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type_late.dart:50:12: Error: The return type of the method 'C2.property6' is 'int?', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // int? get property6; // error diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.expect index 5136f8ee731..ef08cf4a216 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.expect @@ -2,48 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:21:12: Error: The type 'int?' of the getter 'A.property3' is not a subtype of the type 'int' of the setter 'A.property3'. -// int? get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:22:12: Context: This is the declaration of the setter 'A.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:38:19: Error: The type 'int?' of the getter 'A.property9' is not a subtype of the type 'int' of the setter 'A.property9'. -// static int? get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:39:19: Context: This is the declaration of the setter 'A.property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:63:12: Error: The type 'int?' of the inherited getter 'B1.property3' is not a subtype of the type 'int' of the setter 'B2.property3'. -// void set property3(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:47:12: Context: This is the declaration of the getter 'B1.property3'. -// int? get property3; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:69:12: Error: The type 'int?' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:53:14: Context: This is the declaration of the field 'B1.property6'. -// final int? property6; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:93:12: Error: The type 'int?' of the getter 'C2.property3' is not a subtype of the type 'int' of the inherited setter 'C1.property3'. -// int? get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:77:12: Context: This is the declaration of the setter 'C1.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:101:12: Error: The type 'int?' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// int? get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:83:7: Context: This is the declaration of the setter 'C1.property6'. -// int property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:101:12: Error: The return type of the method 'C2.property6' is 'int?', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // int? get property6; // error @@ -52,54 +10,6 @@ library; // int property6; // ^ // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:120:16: Error: The type 'int?' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D3 implements D1, D2 /* error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:109:12: Context: This is the declaration of the getter 'D1.property3'. -// int? get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:117:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:122:16: Error: The type 'int?' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D4 implements D3 /* no need for error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:109:12: Context: This is the declaration of the getter 'D1.property3'. -// int? get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:117:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:11:10: Error: The type 'int?' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// int? get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:12:10: Context: This is the declaration of the setter 'property3'. -// void set property3(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:131:12: Error: The type 'int?' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// int? get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:132:12: Context: This is the declaration of the setter 'property3'. -// void set property3(int i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:143:10: Error: The type 'T?' of the getter 'property6' is not a subtype of the type 'T' of the setter 'property6'. -// T? get property6 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:144:12: Context: This is the declaration of the setter 'property6'. -// void set property6(T i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:152:19: Error: The type 'int?' of the getter 'property9' is not a subtype of the type 'int' of the setter 'property9'. -// static int? get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:153:19: Context: This is the declaration of the setter 'property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:134:23: Error: A value of type 'int' can't be returned from a function with return type 'T'. // T get property4a => 0; // ok // ^ diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.modular.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.modular.expect index 5136f8ee731..ef08cf4a216 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.modular.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.modular.expect @@ -2,48 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:21:12: Error: The type 'int?' of the getter 'A.property3' is not a subtype of the type 'int' of the setter 'A.property3'. -// int? get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:22:12: Context: This is the declaration of the setter 'A.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:38:19: Error: The type 'int?' of the getter 'A.property9' is not a subtype of the type 'int' of the setter 'A.property9'. -// static int? get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:39:19: Context: This is the declaration of the setter 'A.property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:63:12: Error: The type 'int?' of the inherited getter 'B1.property3' is not a subtype of the type 'int' of the setter 'B2.property3'. -// void set property3(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:47:12: Context: This is the declaration of the getter 'B1.property3'. -// int? get property3; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:69:12: Error: The type 'int?' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:53:14: Context: This is the declaration of the field 'B1.property6'. -// final int? property6; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:93:12: Error: The type 'int?' of the getter 'C2.property3' is not a subtype of the type 'int' of the inherited setter 'C1.property3'. -// int? get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:77:12: Context: This is the declaration of the setter 'C1.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:101:12: Error: The type 'int?' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// int? get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:83:7: Context: This is the declaration of the setter 'C1.property6'. -// int property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:101:12: Error: The return type of the method 'C2.property6' is 'int?', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // int? get property6; // error @@ -52,54 +10,6 @@ library; // int property6; // ^ // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:120:16: Error: The type 'int?' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D3 implements D1, D2 /* error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:109:12: Context: This is the declaration of the getter 'D1.property3'. -// int? get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:117:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:122:16: Error: The type 'int?' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D4 implements D3 /* no need for error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:109:12: Context: This is the declaration of the getter 'D1.property3'. -// int? get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:117:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:11:10: Error: The type 'int?' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// int? get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:12:10: Context: This is the declaration of the setter 'property3'. -// void set property3(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:131:12: Error: The type 'int?' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// int? get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:132:12: Context: This is the declaration of the setter 'property3'. -// void set property3(int i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:143:10: Error: The type 'T?' of the getter 'property6' is not a subtype of the type 'T' of the setter 'property6'. -// T? get property6 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:144:12: Context: This is the declaration of the setter 'property6'. -// void set property6(T i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:152:19: Error: The type 'int?' of the getter 'property9' is not a subtype of the type 'int' of the setter 'property9'. -// static int? get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:153:19: Context: This is the declaration of the setter 'property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:134:23: Error: A value of type 'int' can't be returned from a function with return type 'T'. // T get property4a => 0; // ok // ^ diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.outline.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.outline.expect index c58878d10dc..992c38a8f66 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.outline.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.outline.expect @@ -2,48 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:21:12: Error: The type 'int?' of the getter 'A.property3' is not a subtype of the type 'int' of the setter 'A.property3'. -// int? get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:22:12: Context: This is the declaration of the setter 'A.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:38:19: Error: The type 'int?' of the getter 'A.property9' is not a subtype of the type 'int' of the setter 'A.property9'. -// static int? get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:39:19: Context: This is the declaration of the setter 'A.property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:63:12: Error: The type 'int?' of the inherited getter 'B1.property3' is not a subtype of the type 'int' of the setter 'B2.property3'. -// void set property3(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:47:12: Context: This is the declaration of the getter 'B1.property3'. -// int? get property3; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:69:12: Error: The type 'int?' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:53:14: Context: This is the declaration of the field 'B1.property6'. -// final int? property6; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:93:12: Error: The type 'int?' of the getter 'C2.property3' is not a subtype of the type 'int' of the inherited setter 'C1.property3'. -// int? get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:77:12: Context: This is the declaration of the setter 'C1.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:101:12: Error: The type 'int?' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// int? get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:83:7: Context: This is the declaration of the setter 'C1.property6'. -// int property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:101:12: Error: The return type of the method 'C2.property6' is 'int?', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // int? get property6; // error @@ -52,54 +10,6 @@ library; // int property6; // ^ // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:120:16: Error: The type 'int?' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D3 implements D1, D2 /* error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:109:12: Context: This is the declaration of the getter 'D1.property3'. -// int? get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:117:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:122:16: Error: The type 'int?' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D4 implements D3 /* no need for error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:109:12: Context: This is the declaration of the getter 'D1.property3'. -// int? get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:117:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:11:10: Error: The type 'int?' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// int? get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:12:10: Context: This is the declaration of the setter 'property3'. -// void set property3(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:131:12: Error: The type 'int?' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// int? get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:132:12: Context: This is the declaration of the setter 'property3'. -// void set property3(int i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:143:10: Error: The type 'T?' of the getter 'property6' is not a subtype of the type 'T' of the setter 'property6'. -// T? get property6 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:144:12: Context: This is the declaration of the setter 'property6'. -// void set property6(T i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:152:19: Error: The type 'int?' of the getter 'property9' is not a subtype of the type 'int' of the setter 'property9'. -// static int? get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:153:19: Context: This is the declaration of the setter 'property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.transformed.expect index 5136f8ee731..ef08cf4a216 100644 --- a/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart.strong.transformed.expect @@ -2,48 +2,6 @@ library; // // Problems in library: // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:21:12: Error: The type 'int?' of the getter 'A.property3' is not a subtype of the type 'int' of the setter 'A.property3'. -// int? get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:22:12: Context: This is the declaration of the setter 'A.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:38:19: Error: The type 'int?' of the getter 'A.property9' is not a subtype of the type 'int' of the setter 'A.property9'. -// static int? get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:39:19: Context: This is the declaration of the setter 'A.property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:63:12: Error: The type 'int?' of the inherited getter 'B1.property3' is not a subtype of the type 'int' of the setter 'B2.property3'. -// void set property3(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:47:12: Context: This is the declaration of the getter 'B1.property3'. -// int? get property3; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:69:12: Error: The type 'int?' of the inherited field 'B1.property6' is not a subtype of the type 'int' of the setter 'B2.property6'. -// void set property6(int i); // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:53:14: Context: This is the declaration of the field 'B1.property6'. -// final int? property6; -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:93:12: Error: The type 'int?' of the getter 'C2.property3' is not a subtype of the type 'int' of the inherited setter 'C1.property3'. -// int? get property3; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:77:12: Context: This is the declaration of the setter 'C1.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:101:12: Error: The type 'int?' of the getter 'C2.property6' is not a subtype of the type 'int' of the inherited setter 'C1.property6'. -// int? get property6; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:83:7: Context: This is the declaration of the setter 'C1.property6'. -// int property6; -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:101:12: Error: The return type of the method 'C2.property6' is 'int?', which does not match the return type, 'int', of the overridden method, 'C1.property6'. // Change to a subtype of 'int'. // int? get property6; // error @@ -52,54 +10,6 @@ library; // int property6; // ^ // -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:120:16: Error: The type 'int?' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D3 implements D1, D2 /* error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:109:12: Context: This is the declaration of the getter 'D1.property3'. -// int? get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:117:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:122:16: Error: The type 'int?' of the inherited getter 'D1.property3' is not a subtype of the type 'int' of the inherited setter 'D2.property3'. -// abstract class D4 implements D3 /* no need for error on property3 */ {} -// ^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:109:12: Context: This is the declaration of the getter 'D1.property3'. -// int? get property3; -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:117:12: Context: This is the declaration of the setter 'D2.property3'. -// void set property3(int i); -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:11:10: Error: The type 'int?' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// int? get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:12:10: Context: This is the declaration of the setter 'property3'. -// void set property3(int value) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:131:12: Error: The type 'int?' of the getter 'property3' is not a subtype of the type 'int' of the setter 'property3'. -// int? get property3 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:132:12: Context: This is the declaration of the setter 'property3'. -// void set property3(int i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:143:10: Error: The type 'T?' of the getter 'property6' is not a subtype of the type 'T' of the setter 'property6'. -// T? get property6 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:144:12: Context: This is the declaration of the setter 'property6'. -// void set property6(T i) {} -// ^^^^^^^^^ -// -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:152:19: Error: The type 'int?' of the getter 'property9' is not a subtype of the type 'int' of the setter 'property9'. -// static int? get property9 => 0; // error -// ^^^^^^^^^ -// pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:153:19: Context: This is the declaration of the setter 'property9'. -// static void set property9(int value) {} -// ^^^^^^^^^ -// // pkg/front_end/testcases/nnbd/getter_vs_setter_type_nnbd.dart:134:23: Error: A value of type 'int' can't be returned from a function with return type 'T'. // T get property4a => 0; // ok // ^ diff --git a/pkg/front_end/testcases/nnbd/issue40945.dart.strong.expect b/pkg/front_end/testcases/nnbd/issue40945.dart.strong.expect index 85134fc7f5c..ded548c9dd6 100644 --- a/pkg/front_end/testcases/nnbd/issue40945.dart.strong.expect +++ b/pkg/front_end/testcases/nnbd/issue40945.dart.strong.expect @@ -1,14 +1,4 @@ library; -// -// Problems in library: -// -// pkg/front_end/testcases/nnbd/issue40945.dart:7:15: Error: The type 'dynamic' of the getter 'C.test' is not a subtype of the type 'int' of the setter 'C.test'. -// dynamic get test => 3.14; -// ^^^^ -// pkg/front_end/testcases/nnbd/issue40945.dart:6:12: Context: This is the declaration of the setter 'C.test'. -// void set test(int v) {} -// ^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/nnbd/issue40945.dart.strong.modular.expect b/pkg/front_end/testcases/nnbd/issue40945.dart.strong.modular.expect index 85134fc7f5c..ded548c9dd6 100644 --- a/pkg/front_end/testcases/nnbd/issue40945.dart.strong.modular.expect +++ b/pkg/front_end/testcases/nnbd/issue40945.dart.strong.modular.expect @@ -1,14 +1,4 @@ library; -// -// Problems in library: -// -// pkg/front_end/testcases/nnbd/issue40945.dart:7:15: Error: The type 'dynamic' of the getter 'C.test' is not a subtype of the type 'int' of the setter 'C.test'. -// dynamic get test => 3.14; -// ^^^^ -// pkg/front_end/testcases/nnbd/issue40945.dart:6:12: Context: This is the declaration of the setter 'C.test'. -// void set test(int v) {} -// ^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/nnbd/issue40945.dart.strong.outline.expect b/pkg/front_end/testcases/nnbd/issue40945.dart.strong.outline.expect index 705c2db9bc6..5bcb52e2220 100644 --- a/pkg/front_end/testcases/nnbd/issue40945.dart.strong.outline.expect +++ b/pkg/front_end/testcases/nnbd/issue40945.dart.strong.outline.expect @@ -1,14 +1,4 @@ library; -// -// Problems in library: -// -// pkg/front_end/testcases/nnbd/issue40945.dart:7:15: Error: The type 'dynamic' of the getter 'C.test' is not a subtype of the type 'int' of the setter 'C.test'. -// dynamic get test => 3.14; -// ^^^^ -// pkg/front_end/testcases/nnbd/issue40945.dart:6:12: Context: This is the declaration of the setter 'C.test'. -// void set test(int v) {} -// ^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/nnbd/issue40945.dart.strong.transformed.expect b/pkg/front_end/testcases/nnbd/issue40945.dart.strong.transformed.expect index 85134fc7f5c..ded548c9dd6 100644 --- a/pkg/front_end/testcases/nnbd/issue40945.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/nnbd/issue40945.dart.strong.transformed.expect @@ -1,14 +1,4 @@ library; -// -// Problems in library: -// -// pkg/front_end/testcases/nnbd/issue40945.dart:7:15: Error: The type 'dynamic' of the getter 'C.test' is not a subtype of the type 'int' of the setter 'C.test'. -// dynamic get test => 3.14; -// ^^^^ -// pkg/front_end/testcases/nnbd/issue40945.dart:6:12: Context: This is the declaration of the setter 'C.test'. -// void set test(int v) {} -// ^^^^ -// import self as self; import "dart:core" as core; diff --git a/pkg/front_end/testcases/patterns/access_order.dart.strong.expect b/pkg/front_end/testcases/patterns/access_order.dart.strong.expect index f2ba964def9..58d0a9615b7 100644 --- a/pkg/front_end/testcases/patterns/access_order.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/access_order.dart.strong.expect @@ -10,14 +10,6 @@ abstract class _MyList&Object&ListMixin = cor const synthetic constructor •() → self::_MyList&Object&ListMixin : super core::Object::•() ; - mixin-super-stub get first() → self::_MyList&Object&ListMixin::E% - return super.{col::ListBase::first}; - mixin-super-stub set first(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void - return super.{col::ListBase::first} = value; - mixin-super-stub get last() → self::_MyList&Object&ListMixin::E% - return super.{col::ListBase::last}; - mixin-super-stub set last(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void - return super.{col::ListBase::last} = value; mixin-super-stub get iterator() → core::Iterator return super.{col::ListBase::iterator}; mixin-super-stub method elementAt(core::int index) → self::_MyList&Object&ListMixin::E% @@ -30,6 +22,14 @@ abstract class _MyList&Object&ListMixin = cor return super.{col::ListBase::isEmpty}; mixin-super-stub get isNotEmpty() → core::bool return super.{col::ListBase::isNotEmpty}; + mixin-super-stub get first() → self::_MyList&Object&ListMixin::E% + return super.{col::ListBase::first}; + mixin-super-stub set first(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void + return super.{col::ListBase::first} = value; + mixin-super-stub get last() → self::_MyList&Object&ListMixin::E% + return super.{col::ListBase::last}; + mixin-super-stub set last(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void + return super.{col::ListBase::last} = value; mixin-super-stub get single() → self::_MyList&Object&ListMixin::E% return super.{col::ListBase::single}; mixin-super-stub method contains(core::Object? element) → core::bool diff --git a/pkg/front_end/testcases/patterns/access_order.dart.strong.modular.expect b/pkg/front_end/testcases/patterns/access_order.dart.strong.modular.expect index f2ba964def9..58d0a9615b7 100644 --- a/pkg/front_end/testcases/patterns/access_order.dart.strong.modular.expect +++ b/pkg/front_end/testcases/patterns/access_order.dart.strong.modular.expect @@ -10,14 +10,6 @@ abstract class _MyList&Object&ListMixin = cor const synthetic constructor •() → self::_MyList&Object&ListMixin : super core::Object::•() ; - mixin-super-stub get first() → self::_MyList&Object&ListMixin::E% - return super.{col::ListBase::first}; - mixin-super-stub set first(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void - return super.{col::ListBase::first} = value; - mixin-super-stub get last() → self::_MyList&Object&ListMixin::E% - return super.{col::ListBase::last}; - mixin-super-stub set last(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void - return super.{col::ListBase::last} = value; mixin-super-stub get iterator() → core::Iterator return super.{col::ListBase::iterator}; mixin-super-stub method elementAt(core::int index) → self::_MyList&Object&ListMixin::E% @@ -30,6 +22,14 @@ abstract class _MyList&Object&ListMixin = cor return super.{col::ListBase::isEmpty}; mixin-super-stub get isNotEmpty() → core::bool return super.{col::ListBase::isNotEmpty}; + mixin-super-stub get first() → self::_MyList&Object&ListMixin::E% + return super.{col::ListBase::first}; + mixin-super-stub set first(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void + return super.{col::ListBase::first} = value; + mixin-super-stub get last() → self::_MyList&Object&ListMixin::E% + return super.{col::ListBase::last}; + mixin-super-stub set last(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void + return super.{col::ListBase::last} = value; mixin-super-stub get single() → self::_MyList&Object&ListMixin::E% return super.{col::ListBase::single}; mixin-super-stub method contains(core::Object? element) → core::bool diff --git a/pkg/front_end/testcases/patterns/access_order.dart.strong.outline.expect b/pkg/front_end/testcases/patterns/access_order.dart.strong.outline.expect index a907ec3f814..c849ef01f87 100644 --- a/pkg/front_end/testcases/patterns/access_order.dart.strong.outline.expect +++ b/pkg/front_end/testcases/patterns/access_order.dart.strong.outline.expect @@ -10,14 +10,6 @@ abstract class _MyList&Object&ListMixin = cor const synthetic constructor •() → self::_MyList&Object&ListMixin : super core::Object::•() ; - mixin-super-stub get first() → self::_MyList&Object&ListMixin::E% - return super.{col::ListBase::first}; - mixin-super-stub set first(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void - return super.{col::ListBase::first} = value; - mixin-super-stub get last() → self::_MyList&Object&ListMixin::E% - return super.{col::ListBase::last}; - mixin-super-stub set last(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void - return super.{col::ListBase::last} = value; mixin-super-stub get iterator() → core::Iterator return super.{col::ListBase::iterator}; mixin-super-stub method elementAt(core::int index) → self::_MyList&Object&ListMixin::E% @@ -30,6 +22,14 @@ abstract class _MyList&Object&ListMixin = cor return super.{col::ListBase::isEmpty}; mixin-super-stub get isNotEmpty() → core::bool return super.{col::ListBase::isNotEmpty}; + mixin-super-stub get first() → self::_MyList&Object&ListMixin::E% + return super.{col::ListBase::first}; + mixin-super-stub set first(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void + return super.{col::ListBase::first} = value; + mixin-super-stub get last() → self::_MyList&Object&ListMixin::E% + return super.{col::ListBase::last}; + mixin-super-stub set last(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void + return super.{col::ListBase::last} = value; mixin-super-stub get single() → self::_MyList&Object&ListMixin::E% return super.{col::ListBase::single}; mixin-super-stub method contains(core::Object? element) → core::bool diff --git a/pkg/front_end/testcases/patterns/access_order.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/access_order.dart.strong.transformed.expect index 29bcc163041..10f49c0c2c4 100644 --- a/pkg/front_end/testcases/patterns/access_order.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/access_order.dart.strong.transformed.expect @@ -12,26 +12,6 @@ abstract class _MyList&Object&ListMixin exten const synthetic constructor •() → self::_MyList&Object&ListMixin : super core::Object::•() ; - get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ first() → self::_MyList&Object&ListMixin::E% { - if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) - throw _in::IterableElementError::noElement(); - return this.{core::List::[]}(0){(core::int) → self::_MyList&Object&ListMixin::E%}; - } - set /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ first(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void { - if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) - throw _in::IterableElementError::noElement(); - this.{core::List::[]=}(0, value){(core::int, self::_MyList&Object&ListMixin::E%) → void}; - } - get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ last() → self::_MyList&Object&ListMixin::E% { - if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) - throw _in::IterableElementError::noElement(); - return this.{core::List::[]}(this.{core::List::length}{core::int}.{core::num::-}(1){(core::num) → core::int}){(core::int) → self::_MyList&Object&ListMixin::E%}; - } - set /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ last(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void { - if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) - throw _in::IterableElementError::noElement(); - this.{core::List::[]=}(this.{core::List::length}{core::int}.{core::num::-}(1){(core::num) → core::int}, value){(core::int, self::_MyList&Object&ListMixin::E%) → void}; - } @#C3 get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ iterator() → core::Iterator return new _in::ListIterator::•(this); @@ -53,6 +33,26 @@ abstract class _MyList&Object&ListMixin exten return this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0; get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ isNotEmpty() → core::bool return !this.{col::ListBase::isEmpty}{core::bool}; + get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ first() → self::_MyList&Object&ListMixin::E% { + if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) + throw _in::IterableElementError::noElement(); + return this.{core::List::[]}(0){(core::int) → self::_MyList&Object&ListMixin::E%}; + } + set /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ first(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void { + if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) + throw _in::IterableElementError::noElement(); + this.{core::List::[]=}(0, value){(core::int, self::_MyList&Object&ListMixin::E%) → void}; + } + get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ last() → self::_MyList&Object&ListMixin::E% { + if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) + throw _in::IterableElementError::noElement(); + return this.{core::List::[]}(this.{core::List::length}{core::int}.{core::num::-}(1){(core::num) → core::int}){(core::int) → self::_MyList&Object&ListMixin::E%}; + } + set /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ last(covariant-by-class self::_MyList&Object&ListMixin::E% value) → void { + if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) + throw _in::IterableElementError::noElement(); + this.{core::List::[]=}(this.{core::List::length}{core::int}.{core::num::-}(1){(core::num) → core::int}, value){(core::int, self::_MyList&Object&ListMixin::E%) → void}; + } get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ single() → self::_MyList&Object&ListMixin::E% { if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) throw _in::IterableElementError::noElement(); diff --git a/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.expect b/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.expect index 516717d318b..17063cec3ac 100644 --- a/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.expect @@ -10,14 +10,6 @@ abstract class _A&Object&ListMixin = core::Object with col::ListBase const synthetic constructor •() → self::_A&Object&ListMixin : super core::Object::•() ; - mixin-super-stub get first() → core::int - return super.{col::ListBase::first}; - mixin-super-stub set first(covariant-by-class core::int value) → void - return super.{col::ListBase::first} = value; - mixin-super-stub get last() → core::int - return super.{col::ListBase::last}; - mixin-super-stub set last(covariant-by-class core::int value) → void - return super.{col::ListBase::last} = value; mixin-super-stub get iterator() → core::Iterator return super.{col::ListBase::iterator}; mixin-super-stub method elementAt(core::int index) → core::int @@ -30,6 +22,14 @@ abstract class _A&Object&ListMixin = core::Object with col::ListBase return super.{col::ListBase::isEmpty}; mixin-super-stub get isNotEmpty() → core::bool return super.{col::ListBase::isNotEmpty}; + mixin-super-stub get first() → core::int + return super.{col::ListBase::first}; + mixin-super-stub set first(covariant-by-class core::int value) → void + return super.{col::ListBase::first} = value; + mixin-super-stub get last() → core::int + return super.{col::ListBase::last}; + mixin-super-stub set last(covariant-by-class core::int value) → void + return super.{col::ListBase::last} = value; mixin-super-stub get single() → core::int return super.{col::ListBase::single}; mixin-super-stub method contains(core::Object? element) → core::bool diff --git a/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.modular.expect b/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.modular.expect index 516717d318b..17063cec3ac 100644 --- a/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.modular.expect +++ b/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.modular.expect @@ -10,14 +10,6 @@ abstract class _A&Object&ListMixin = core::Object with col::ListBase const synthetic constructor •() → self::_A&Object&ListMixin : super core::Object::•() ; - mixin-super-stub get first() → core::int - return super.{col::ListBase::first}; - mixin-super-stub set first(covariant-by-class core::int value) → void - return super.{col::ListBase::first} = value; - mixin-super-stub get last() → core::int - return super.{col::ListBase::last}; - mixin-super-stub set last(covariant-by-class core::int value) → void - return super.{col::ListBase::last} = value; mixin-super-stub get iterator() → core::Iterator return super.{col::ListBase::iterator}; mixin-super-stub method elementAt(core::int index) → core::int @@ -30,6 +22,14 @@ abstract class _A&Object&ListMixin = core::Object with col::ListBase return super.{col::ListBase::isEmpty}; mixin-super-stub get isNotEmpty() → core::bool return super.{col::ListBase::isNotEmpty}; + mixin-super-stub get first() → core::int + return super.{col::ListBase::first}; + mixin-super-stub set first(covariant-by-class core::int value) → void + return super.{col::ListBase::first} = value; + mixin-super-stub get last() → core::int + return super.{col::ListBase::last}; + mixin-super-stub set last(covariant-by-class core::int value) → void + return super.{col::ListBase::last} = value; mixin-super-stub get single() → core::int return super.{col::ListBase::single}; mixin-super-stub method contains(core::Object? element) → core::bool diff --git a/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.outline.expect b/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.outline.expect index 34968e8c54e..6f5f7f51475 100644 --- a/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.outline.expect +++ b/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.outline.expect @@ -10,14 +10,6 @@ abstract class _A&Object&ListMixin = core::Object with col::ListBase const synthetic constructor •() → self::_A&Object&ListMixin : super core::Object::•() ; - mixin-super-stub get first() → core::int - return super.{col::ListBase::first}; - mixin-super-stub set first(covariant-by-class core::int value) → void - return super.{col::ListBase::first} = value; - mixin-super-stub get last() → core::int - return super.{col::ListBase::last}; - mixin-super-stub set last(covariant-by-class core::int value) → void - return super.{col::ListBase::last} = value; mixin-super-stub get iterator() → core::Iterator return super.{col::ListBase::iterator}; mixin-super-stub method elementAt(core::int index) → core::int @@ -30,6 +22,14 @@ abstract class _A&Object&ListMixin = core::Object with col::ListBase return super.{col::ListBase::isEmpty}; mixin-super-stub get isNotEmpty() → core::bool return super.{col::ListBase::isNotEmpty}; + mixin-super-stub get first() → core::int + return super.{col::ListBase::first}; + mixin-super-stub set first(covariant-by-class core::int value) → void + return super.{col::ListBase::first} = value; + mixin-super-stub get last() → core::int + return super.{col::ListBase::last}; + mixin-super-stub set last(covariant-by-class core::int value) → void + return super.{col::ListBase::last} = value; mixin-super-stub get single() → core::int return super.{col::ListBase::single}; mixin-super-stub method contains(core::Object? element) → core::bool diff --git a/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.transformed.expect b/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.transformed.expect index 88a896efb80..d76b0079c71 100644 --- a/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.transformed.expect +++ b/pkg/front_end/testcases/patterns/matching_and_capturing_accesses_list_element_once.dart.strong.transformed.expect @@ -12,26 +12,6 @@ abstract class _A&Object&ListMixin extends core::Object implements col::ListBase const synthetic constructor •() → self::_A&Object&ListMixin : super core::Object::•() ; - get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ first() → core::int { - if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) - throw _in::IterableElementError::noElement(); - return this.{core::List::[]}(0){(core::int) → core::int}; - } - set /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ first(covariant-by-class core::int value) → void { - if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) - throw _in::IterableElementError::noElement(); - this.{core::List::[]=}(0, value){(core::int, core::int) → void}; - } - get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ last() → core::int { - if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) - throw _in::IterableElementError::noElement(); - return this.{core::List::[]}(this.{core::List::length}{core::int}.{core::num::-}(1){(core::num) → core::int}){(core::int) → core::int}; - } - set /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ last(covariant-by-class core::int value) → void { - if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) - throw _in::IterableElementError::noElement(); - this.{core::List::[]=}(this.{core::List::length}{core::int}.{core::num::-}(1){(core::num) → core::int}, value){(core::int, core::int) → void}; - } @#C3 get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ iterator() → core::Iterator return new _in::ListIterator::•(this); @@ -53,6 +33,26 @@ abstract class _A&Object&ListMixin extends core::Object implements col::ListBase return this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0; get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ isNotEmpty() → core::bool return !this.{col::ListBase::isEmpty}{core::bool}; + get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ first() → core::int { + if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) + throw _in::IterableElementError::noElement(); + return this.{core::List::[]}(0){(core::int) → core::int}; + } + set /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ first(covariant-by-class core::int value) → void { + if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) + throw _in::IterableElementError::noElement(); + this.{core::List::[]=}(0, value){(core::int, core::int) → void}; + } + get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ last() → core::int { + if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) + throw _in::IterableElementError::noElement(); + return this.{core::List::[]}(this.{core::List::length}{core::int}.{core::num::-}(1){(core::num) → core::int}){(core::int) → core::int}; + } + set /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ last(covariant-by-class core::int value) → void { + if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) + throw _in::IterableElementError::noElement(); + this.{core::List::[]=}(this.{core::List::length}{core::int}.{core::num::-}(1){(core::num) → core::int}, value){(core::int, core::int) → void}; + } get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ single() → core::int { if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) throw _in::IterableElementError::noElement(); diff --git a/pkg/front_end/testcases/patterns/negative_length.dart.strong.expect b/pkg/front_end/testcases/patterns/negative_length.dart.strong.expect index 83d0381b77b..3910a93f972 100644 --- a/pkg/front_end/testcases/patterns/negative_length.dart.strong.expect +++ b/pkg/front_end/testcases/patterns/negative_length.dart.strong.expect @@ -10,14 +10,6 @@ abstract class _NegativeLengthList&Object&ListMixin : super core::Object::•() ; - mixin-super-stub get first() → self::_NegativeLengthList&Object&ListMixin::E% - return super.{col::ListBase::first}; - mixin-super-stub set first(covariant-by-class self::_NegativeLengthList&Object&ListMixin::E% value) → void - return super.{col::ListBase::first} = value; - mixin-super-stub get last() → self::_NegativeLengthList&Object&ListMixin::E% - return super.{col::ListBase::last}; - mixin-super-stub set last(covariant-by-class self::_NegativeLengthList&Object&ListMixin::E% value) → void - return super.{col::ListBase::last} = value; mixin-super-stub get iterator() → core::Iterator return super.{col::ListBase::iterator}; mixin-super-stub method elementAt(core::int index) → self::_NegativeLengthList&Object&ListMixin::E% @@ -30,6 +22,14 @@ abstract class _NegativeLengthList&Object&ListMixin : super core::Object::•() ; - mixin-super-stub get first() → self::_NegativeLengthList&Object&ListMixin::E% - return super.{col::ListBase::first}; - mixin-super-stub set first(covariant-by-class self::_NegativeLengthList&Object&ListMixin::E% value) → void - return super.{col::ListBase::first} = value; - mixin-super-stub get last() → self::_NegativeLengthList&Object&ListMixin::E% - return super.{col::ListBase::last}; - mixin-super-stub set last(covariant-by-class self::_NegativeLengthList&Object&ListMixin::E% value) → void - return super.{col::ListBase::last} = value; mixin-super-stub get iterator() → core::Iterator return super.{col::ListBase::iterator}; mixin-super-stub method elementAt(core::int index) → self::_NegativeLengthList&Object&ListMixin::E% @@ -30,6 +22,14 @@ abstract class _NegativeLengthList&Object&ListMixin : super core::Object::•() ; - mixin-super-stub get first() → self::_NegativeLengthList&Object&ListMixin::E% - return super.{col::ListBase::first}; - mixin-super-stub set first(covariant-by-class self::_NegativeLengthList&Object&ListMixin::E% value) → void - return super.{col::ListBase::first} = value; - mixin-super-stub get last() → self::_NegativeLengthList&Object&ListMixin::E% - return super.{col::ListBase::last}; - mixin-super-stub set last(covariant-by-class self::_NegativeLengthList&Object&ListMixin::E% value) → void - return super.{col::ListBase::last} = value; mixin-super-stub get iterator() → core::Iterator return super.{col::ListBase::iterator}; mixin-super-stub method elementAt(core::int index) → self::_NegativeLengthList&Object&ListMixin::E% @@ -30,6 +22,14 @@ abstract class _NegativeLengthList&Object&ListMixin : super core::Object::•() ; - get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ first() → self::_NegativeLengthList&Object&ListMixin::E% { - if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) - throw _in::IterableElementError::noElement(); - return this.{core::List::[]}(0){(core::int) → self::_NegativeLengthList&Object&ListMixin::E%}; - } - set /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ first(covariant-by-class self::_NegativeLengthList&Object&ListMixin::E% value) → void { - if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) - throw _in::IterableElementError::noElement(); - this.{core::List::[]=}(0, value){(core::int, self::_NegativeLengthList&Object&ListMixin::E%) → void}; - } - get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ last() → self::_NegativeLengthList&Object&ListMixin::E% { - if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) - throw _in::IterableElementError::noElement(); - return this.{core::List::[]}(this.{core::List::length}{core::int}.{core::num::-}(1){(core::num) → core::int}){(core::int) → self::_NegativeLengthList&Object&ListMixin::E%}; - } - set /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ last(covariant-by-class self::_NegativeLengthList&Object&ListMixin::E% value) → void { - if(this.{core::List::length}{core::int} =={core::num::==}{(core::Object) → core::bool} 0) - throw _in::IterableElementError::noElement(); - this.{core::List::[]=}(this.{core::List::length}{core::int}.{core::num::-}(1){(core::num) → core::int}, value){(core::int, self::_NegativeLengthList&Object&ListMixin::E%) → void}; - } @#C3 get /* from org-dartlang-sdk:///sdk/lib/collection/list.dart */ iterator() → core::Iterator return new _in::ListIterator::•(this); @@ -53,6 +33,26 @@ abstract class _NegativeLengthList&Object&ListMixin