From 4c0cf74ccde9fc61014b2ca3dcd2bc29e003b108 Mon Sep 17 00:00:00 2001 From: "Sergey G. Grekhov" Date: Wed, 27 Nov 2024 17:15:40 +0200 Subject: [PATCH] Fixes #2996. Update CFE expected errors locations (#2999) --- .../method_and_setter_t01.dart | 15 ++++++------- .../static_member_and_constructor_t01.dart | 16 ++++---------- ...static_member_and_instance_member_t02.dart | 13 +++++------- ...static_member_and_instance_member_t04.dart | 21 ++++--------------- Language/Classes/Constructors/name_t04.dart | 7 ++----- Language/Classes/Constructors/name_t05.dart | 9 +++----- Language/Classes/Constructors/name_t06.dart | 4 +--- .../Classes/Getters/static_getter_t01.dart | 8 +++---- .../Classes/Getters/static_getter_t02.dart | 4 ++-- .../Classes/Setters/static_setter_t01.dart | 11 +++------- ...atic_analysis_extension_types_A03_t01.dart | 8 ------- ...atic_analysis_extension_types_A03_t02.dart | 2 -- ...atic_analysis_extension_types_A03_t05.dart | 4 ---- ...atic_analysis_extension_types_A03_t06.dart | 2 -- .../Wildcards/other_declarations_A05_t06.dart | 3 --- .../Wildcards/other_declarations_A05_t07.dart | 2 ++ .../Wildcards/other_declarations_A05_t08.dart | 2 ++ .../Wildcards/other_declarations_A05_t09.dart | 7 ++++--- .../Wildcards/other_declarations_A05_t10.dart | 2 -- .../Wildcards/other_declarations_A05_t13.dart | 2 -- .../Wildcards/other_declarations_A05_t14.dart | 3 --- .../Wildcards/other_declarations_A05_t15.dart | 2 ++ .../Wildcards/other_declarations_A05_t16.dart | 2 ++ .../Wildcards/other_declarations_A05_t17.dart | 7 ++++--- .../Wildcards/other_declarations_A05_t18.dart | 2 -- .../Wildcards/other_declarations_A05_t21.dart | 2 -- .../Wildcards/other_declarations_A05_t22.dart | 3 --- .../Wildcards/other_declarations_A05_t23.dart | 2 ++ .../Wildcards/other_declarations_A05_t24.dart | 2 ++ .../Wildcards/other_declarations_A05_t25.dart | 8 +++++-- .../Wildcards/other_declarations_A05_t30.dart | 3 --- .../Wildcards/other_declarations_A05_t32.dart | 2 -- .../Wildcards/other_declarations_A05_t33.dart | 6 ------ .../Wildcards/other_declarations_A05_t36.dart | 2 -- .../Wildcards/other_declarations_A05_t37.dart | 2 -- .../Wildcards/other_declarations_A05_t38.dart | 3 --- .../Wildcards/other_declarations_A05_t39.dart | 1 - .../Wildcards/other_declarations_A05_t40.dart | 3 --- .../Wildcards/other_declarations_A05_t41.dart | 6 ------ .../Wildcards/other_declarations_A05_t43.dart | 2 -- .../Wildcards/other_declarations_A05_t44.dart | 8 ------- 41 files changed, 62 insertions(+), 151 deletions(-) diff --git a/Language/Classes/Class_Member_Conflicts/method_and_setter_t01.dart b/Language/Classes/Class_Member_Conflicts/method_and_setter_t01.dart index 57de3abdf3..508b762530 100644 --- a/Language/Classes/Class_Member_Conflicts/method_and_setter_t01.dart +++ b/Language/Classes/Class_Member_Conflicts/method_and_setter_t01.dart @@ -4,8 +4,9 @@ /// @assertion Let C be a class. ... It is a compile-time error if the interface /// of C has a method named n and a setter with basename n. -/// @description Check that it is a compile-time error if the interface -/// of C has a method named n and a setter with basename n. +/// +/// @description Check that it is a compile-time error if the interface of class +/// `C` has a method named `n` and a setter with basename `n`. /// @author sgrekhov@unipro.ru class C { @@ -14,14 +15,14 @@ class C { set s(var value) {} // ^ -// [analyzer] COMPILE_TIME_ERROR.DUPLICATE_DEFINITION -// [cfe] 's' is already declared in this scope. +// [analyzer] unspecified +// [cfe] unspecified set _s(var value) {} // ^^ -// [analyzer] COMPILE_TIME_ERROR.DUPLICATE_DEFINITION -// [cfe] '_s' is already declared in this scope. +// [analyzer] unspecified +// [cfe] unspecified } main() { - new C(); + print(C); } diff --git a/Language/Classes/Class_Member_Conflicts/static_member_and_constructor_t01.dart b/Language/Classes/Class_Member_Conflicts/static_member_and_constructor_t01.dart index cd2a336588..a3c5f84982 100644 --- a/Language/Classes/Class_Member_Conflicts/static_member_and_constructor_t01.dart +++ b/Language/Classes/Class_Member_Conflicts/static_member_and_constructor_t01.dart @@ -4,8 +4,9 @@ /// @assertion Let C be a class. It is a compile-time error if C declares a /// constructor named C.n and a static member with basename n. -/// @description Check that it is a compile-time error if C declares a -/// constructor named C.n and a static member with basename n +/// +/// @description Check that it is a compile-time error if class `C` declares a +/// constructor named `C.n` and a static member with basename `n`. /// @author sgrekhov@unipro.ru /// @issue 46814 @@ -13,7 +14,6 @@ class C { C.s1() {} // ^ // [analyzer] unspecified -// [cfe] unspecified static set s1(var value) {} // ^ // [cfe] unspecified @@ -21,7 +21,6 @@ class C { C.s2() {} // ^ // [analyzer] unspecified -// [cfe] unspecified static void s2() {} // ^ // [cfe] unspecified @@ -29,7 +28,6 @@ class C { C.s3() {} // ^ // [analyzer] unspecified -// [cfe] unspecified static int s3() => 1; // ^ // [cfe] unspecified @@ -37,7 +35,6 @@ class C { C.s4() {} // ^ // [analyzer] unspecified -// [cfe] unspecified static int get s4 => 1; // ^ // [cfe] unspecified @@ -45,16 +42,11 @@ class C { C.s5() {} // ^ // [analyzer] unspecified -// [cfe] unspecified static int s5 = 1; // ^ // [cfe] unspecified } main() { - new C.s1(); - new C.s2(); - new C.s3(); - new C.s4(); - new C.s5(); + print(C); } diff --git a/Language/Classes/Class_Member_Conflicts/static_member_and_instance_member_t02.dart b/Language/Classes/Class_Member_Conflicts/static_member_and_instance_member_t02.dart index 7d6332ecaa..b463287774 100644 --- a/Language/Classes/Class_Member_Conflicts/static_member_and_instance_member_t02.dart +++ b/Language/Classes/Class_Member_Conflicts/static_member_and_instance_member_t02.dart @@ -6,9 +6,9 @@ /// static member with basename n and the interface of C has an instance member /// with basename n /// -/// @description Check that it is a compile-time error if C declares a static -/// member with basename n and an instance member with basename n. Test instance -/// setter +/// @description Check that it is a compile-time error if class `C` declares a +/// static member with basename `n` and an instance member with basename `n`. +/// Test an instance setter. /// @author sgrekhov@unipro.ru /// @issue 46814 @@ -18,15 +18,12 @@ class C { set s3(int v) {} set s4(int v) {} set s5(int v) {} -// ^^ -// [cfe] unspecified + set _s1(int v) {} set _s2(int v) {} set _s3(int v) {} set _s4(int v) {} set _s5(int v) {} -// ^^^ -// [cfe] unspecified static set s1(var value) {} // ^^ @@ -72,5 +69,5 @@ class C { } main() { - new C(); + print(C); } diff --git a/Language/Classes/Class_Member_Conflicts/static_member_and_instance_member_t04.dart b/Language/Classes/Class_Member_Conflicts/static_member_and_instance_member_t04.dart index 20677ea790..0325c6b1fb 100644 --- a/Language/Classes/Class_Member_Conflicts/static_member_and_instance_member_t04.dart +++ b/Language/Classes/Class_Member_Conflicts/static_member_and_instance_member_t04.dart @@ -6,34 +6,21 @@ /// static member with basename n and the interface of C has an instance member /// with basename n /// -/// @description Check that it is a compile-time error if C declares a static -/// member with basename n and an instance member with basename n. Test instance -/// variable +/// @description Check that it is a compile-time error if class `C` declares a +/// static member with basename `n` and an instance member with basename `n`. +/// Test an instance variable. /// /// @Issue 47489 /// @author sgrekhov@unipro.ru class C { - - // For each 's1' and '_s1', two instance variables implicitly induce a getter - // and a setter, so there is a conflict specified in 'Class Member Conflicts' - // as well as a regular name clash. Dart produces two compile time errors here - // whereas analyzer reports the 'Class Member Conflicts' error, and it seems - // reasonable to omit the plain name clashes. int s1 = 1; -// ^^ -// [cfe] unspecified - - int s2 = 1; int s3 = 1; int s4 = 1; int s5 = 1; int _s1 = 1; -// ^^ -// [cfe] unspecified - int _s2 = 1; int _s3 = 1; int _s4 = 1; @@ -92,5 +79,5 @@ class C { } main() { - new C(); + print(C); } diff --git a/Language/Classes/Constructors/name_t04.dart b/Language/Classes/Constructors/name_t04.dart index acfb3ed5f5..64079eef84 100644 --- a/Language/Classes/Constructors/name_t04.dart +++ b/Language/Classes/Constructors/name_t04.dart @@ -6,8 +6,7 @@ /// enclosing class, and may optionally be followed by a dot and an identifier /// id. It is a compile-time error if the name of a constructor is not a /// constructor name. -/// A constructor declaration may conflict with static member declarations -/// (10.11). +/// A constructor declaration may conflict with static member declarations. /// Let C be a class. It is a compile-time error if C declares a /// • constructor named C.n and a static member with basename n. /// @@ -15,12 +14,10 @@ /// coincides with the name of a static method declared in the same class. /// @author kaigorodov - class C { C.foo() {} // ^^^ // [analyzer] unspecified -// [cfe] unspecified static foo() {} // ^^^ @@ -28,5 +25,5 @@ class C { } main() { - new C.foo(); + print(C); } diff --git a/Language/Classes/Constructors/name_t05.dart b/Language/Classes/Constructors/name_t05.dart index fecaeeadb4..0a5d289dbb 100644 --- a/Language/Classes/Constructors/name_t05.dart +++ b/Language/Classes/Constructors/name_t05.dart @@ -2,12 +2,11 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -/// @assertion * @assertion A constructor name always begins with the name of its immediately +/// @assertion A constructor name always begins with the name of its immediately /// enclosing class, and may optionally be followed by a dot and an identifier /// id. It is a compile-time error if the name of a constructor is not a /// constructor name. -/// A constructor declaration may conflict with static member declarations -/// (10.11). +/// A constructor declaration may conflict with static member declarations. /// Let C be a class. It is a compile-time error if C declares a /// • constructor named C.n and a static member with basename n. /// @@ -15,12 +14,10 @@ /// coincides with the name of a static field declared in the same class. /// @author kaigorodov - class C { C.foo() {} // ^^^ // [analyzer] unspecified -// [cfe] unspecified static var foo; // ^^^ @@ -28,5 +25,5 @@ class C { } main() { - new C.foo(); + print(C); } diff --git a/Language/Classes/Constructors/name_t06.dart b/Language/Classes/Constructors/name_t06.dart index 654054088f..e8ef042d5a 100644 --- a/Language/Classes/Constructors/name_t06.dart +++ b/Language/Classes/Constructors/name_t06.dart @@ -15,12 +15,10 @@ /// coincides with the name of a static getter declared in the same class. /// @author kaigorodov - class C { C.foo() {} // ^^^ // [analyzer] unspecified -// [cfe] unspecified static int get foo => 1; // ^^^ @@ -28,5 +26,5 @@ class C { } main() { - new C.foo(); + print(C); } diff --git a/Language/Classes/Getters/static_getter_t01.dart b/Language/Classes/Getters/static_getter_t01.dart index a3fc9555d6..9e90655b44 100644 --- a/Language/Classes/Getters/static_getter_t01.dart +++ b/Language/Classes/Getters/static_getter_t01.dart @@ -4,24 +4,24 @@ /// @assertion It is a compile error if a class declares a static getter named /// v and also has a non-static setter named v =. +/// /// @description Checks that a compile error is arisen if a class has an /// explicitly declared static getter and an explicitly declared instance /// setter with the same name. /// @author ngl@unipro.ru class C { - int n = 0; - static get v => 5; // ^ // [analyzer] unspecified // [cfe] unspecified set v(int v1) { - n = v1; +// ^ +// [cfe] unspecified } } main() { - C.v; + print(C); } diff --git a/Language/Classes/Getters/static_getter_t02.dart b/Language/Classes/Getters/static_getter_t02.dart index 029e5a3080..6a12eedfaa 100644 --- a/Language/Classes/Getters/static_getter_t02.dart +++ b/Language/Classes/Getters/static_getter_t02.dart @@ -4,6 +4,7 @@ /// @assertion It is a compile error if a class declares a static getter named /// v and also has a non-static setter named v =. +/// /// @description Checks that a compile error is arisen if a class has an /// implicitly declared static getter and an explicitly declared instance /// setter with the same name. @@ -14,7 +15,6 @@ class C { static int v = 0; // ^ // [analyzer] unspecified -// [cfe] unspecified set v(int v1) { // ^ @@ -23,5 +23,5 @@ class C { } main() { - C.v; + print(C); } diff --git a/Language/Classes/Setters/static_setter_t01.dart b/Language/Classes/Setters/static_setter_t01.dart index 0faa99695f..ae8efd2b80 100644 --- a/Language/Classes/Setters/static_setter_t01.dart +++ b/Language/Classes/Setters/static_setter_t01.dart @@ -4,15 +4,13 @@ /// @assertion It is a compile time error if a class declares a static setter /// named v= and also has a non-static member named v. +/// /// @description Checks that it is a compile time error if a class declares a -/// static setter named v= and also has a non-static field named v. +/// static setter named `v=` and also has a non-static field named `v`. /// @author kaigorodov - class C { String foo = "Lily was here"; -// ^ -// [cfe] unspecified static set foo(String s) {} // ^ @@ -21,8 +19,5 @@ class C { } main() { - C.foo = "foo"; -// ^ -// [analyzer] unspecified -// [cfe] unspecified + print(C); } diff --git a/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t01.dart b/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t01.dart index d1bfd53b70..70f0286077 100644 --- a/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t01.dart +++ b/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t01.dart @@ -12,8 +12,6 @@ extension type ET1(int id) { static int get n => 1; -// ^ -// [cfe] unspecified ET1.n(this.id); // ^ // [analyzer] unspecified @@ -22,8 +20,6 @@ extension type ET1(int id) { extension type ET2(int id) { static int n() => 2; -// ^ -// [cfe] unspecified const ET2.n(this.id); // ^ // [analyzer] unspecified @@ -32,8 +28,6 @@ extension type ET2(int id) { extension type ET3(int id) { static int n() => 3; -// ^ -// [cfe] unspecified factory ET3.n(int id) = ET3.new; // ^ // [analyzer] unspecified @@ -42,8 +36,6 @@ extension type ET3(int id) { extension type ET4(int id) { static int n = 1; -// ^ -// [cfe] unspecified ET4.n(this.id); // ^ // [analyzer] unspecified diff --git a/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t02.dart b/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t02.dart index f6d0b31442..4f7f64c711 100644 --- a/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t02.dart +++ b/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t02.dart @@ -71,8 +71,6 @@ extension type ET7(int id) { } extension type ET8(int id) { -// ^^ -// [cfe] unspecified static void set id(int v) {} // ^^ // [analyzer] unspecified diff --git a/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t05.dart b/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t05.dart index 9ae79d075b..eb0f14e2e4 100644 --- a/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t05.dart +++ b/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t05.dart @@ -21,8 +21,6 @@ extension type I2(int id) { extension type ET1(int id) { int n() => 1; -// ^ -// [cfe] unspecified void set n(int i) {} // ^ // [analyzer] unspecified @@ -31,8 +29,6 @@ extension type ET1(int id) { extension type ET2(int id) { void set n(String s) {} -// ^ -// [cfe] unspecified int n() => 2; // ^ // [analyzer] unspecified diff --git a/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t06.dart b/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t06.dart index 6419e98a3c..22237bdf53 100644 --- a/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t06.dart +++ b/LanguageFeatures/Extension-types/static_analysis_extension_types_A03_t06.dart @@ -12,8 +12,6 @@ extension type ET1(int id) { static int n() => 1; -// ^ -// [cfe] unspecified static void set n(int i) {} // ^ // [analyzer] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t06.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t06.dart index 4fea855789..8b2a0b0295 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t06.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t06.dart @@ -54,8 +54,6 @@ class C3 { class C4 { static int _ = 1; -// ^ -// [cfe] unspecified static void set _(int v) {} // ^ // [analyzer] unspecified @@ -156,7 +154,6 @@ class C8 { static int _ = 1; // ^ // [analyzer] unspecified -// [cfe] unspecified void set _(int v) {} // ^ // [cfe] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t07.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t07.dart index d3001ae1cd..70fa1af44f 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t07.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t07.dart @@ -153,6 +153,8 @@ class C8 { // [analyzer] unspecified // [cfe] unspecified void set _(int v) {} +// ^ +// [cfe] unspecified } class C8Extends extends ContainsWildcardSetter { diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t08.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t08.dart index 3885c45807..1bed130e12 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t08.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t08.dart @@ -156,6 +156,8 @@ class C8 { // [analyzer] unspecified // [cfe] unspecified void set _(int v) {} +// ^ +// [cfe] unspecified } class C8Extends extends ContainsWildcardSetter { diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t09.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t09.dart index 5fd9480c55..824795ea34 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t09.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t09.dart @@ -30,8 +30,6 @@ mixin class ContainsWildcardSetter { class C1 { static void set _(int v) {} -// ^ -// [cfe] unspecified static int _ = 1; // ^ // [analyzer] unspecified @@ -63,7 +61,6 @@ class C5 { static void set _(int v) {} // ^ // [analyzer] unspecified -// [cfe] unspecified int _ = 5; // ^ // [cfe] unspecified @@ -96,6 +93,8 @@ class C6 { // [analyzer] unspecified // [cfe] unspecified int _() => 6; +// ^ +// [cfe] unspecified } class C6Extends extends ContainsWildcardMethod { @@ -125,6 +124,8 @@ class C7 { // [analyzer] unspecified // [cfe] unspecified int get _ => 7; +// ^ +// [cfe] unspecified } class C7Extends extends ContainsWildcardGetter { diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t10.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t10.dart index 9e65d4b06f..921607a75e 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t10.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t10.dart @@ -99,8 +99,6 @@ class C3With with ContainsWildcardGetter { class C4 { int _ = 1; -// ^ -// [cfe] unspecified void set _(int v) {} // ^ // [analyzer] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t13.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t13.dart index adf2323a69..064de9cbbd 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t13.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t13.dart @@ -30,8 +30,6 @@ mixin class ContainsWildcardSetter { class C1 { void set _(int v) {} -// ^ -// [cfe] unspecified int _ = 5; // ^ // [analyzer] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t14.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t14.dart index 1646fff3bd..b4e708e3ab 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t14.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t14.dart @@ -54,8 +54,6 @@ mixin M3 { mixin M4 { static int _ = 1; -// ^ -// [cfe] unspecified static void set _(int v) {} // ^ // [analyzer] unspecified @@ -135,7 +133,6 @@ mixin M8 { static int _ = 1; // ^ // [analyzer] unspecified -// [cfe] unspecified void set _(int v) {} // ^ // [cfe] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t15.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t15.dart index cd5b33f6f6..0a666a1169 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t15.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t15.dart @@ -132,6 +132,8 @@ mixin M8 { // [analyzer] unspecified // [cfe] unspecified void set _(int v) {} +// ^ +// [cfe] unspecified } mixin M8On on ContainsWildcardSetter { diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t16.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t16.dart index f8d0677fa5..c9893c36e9 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t16.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t16.dart @@ -135,6 +135,8 @@ mixin M8 { // [analyzer] unspecified // [cfe] unspecified void set _(int v) {} +// ^ +// [cfe] unspecified } mixin M8On on ContainsWildcardSetter { diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t17.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t17.dart index 8d1512b7d7..b944fd8f2d 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t17.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t17.dart @@ -30,8 +30,6 @@ class ContainsWildcardSetter { mixin M1 { static void set _(int v) {} -// ^ -// [cfe] unspecified static int _ = 1; // ^ // [analyzer] unspecified @@ -63,7 +61,6 @@ mixin M5 { static void set _(int v) {} // ^ // [analyzer] unspecified -// [cfe] unspecified int _ = 5; // ^ // [cfe] unspecified @@ -89,6 +86,8 @@ mixin M6 { // [analyzer] unspecified // [cfe] unspecified int _() => 6; +// ^ +// [cfe] unspecified } mixin M6On on ContainsWildcardMethod { @@ -111,6 +110,8 @@ mixin M7 { // [analyzer] unspecified // [cfe] unspecified int get _ => 7; +// ^ +// [cfe] unspecified } mixin M7On on ContainsWildcardGetter { diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t18.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t18.dart index bd116fe0d2..0a1bc7aba0 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t18.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t18.dart @@ -84,8 +84,6 @@ mixin M3Implements implements ContainsWildcardGetter { mixin M4 { int _ = 1; -// ^ -// [cfe] unspecified void set _(int v) {} // ^ // [analyzer] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t21.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t21.dart index a027372d3e..076239199a 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t21.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t21.dart @@ -30,8 +30,6 @@ class ContainsWildcardSetter { mixin M1 { void set _(int v) {} -// ^ -// [cfe] unspecified int _ = 5; // ^ // [analyzer] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t22.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t22.dart index 052ef9478b..f3e52191a5 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t22.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t22.dart @@ -54,8 +54,6 @@ enum E3 { enum E4 { e0; static int _ = 1; -// ^ -// [cfe] unspecified static void set _(int v) {} // ^ // [analyzer] unspecified @@ -113,7 +111,6 @@ enum E8 { static int _ = 1; // ^ // [analyzer] unspecified -// [cfe] unspecified void set _(int v) {} // ^ // [cfe] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t23.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t23.dart index bc250c8077..8f52061c9f 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t23.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t23.dart @@ -110,6 +110,8 @@ enum E8 { // [analyzer] unspecified // [cfe] unspecified void set _(int v) {} +// ^ +// [cfe] unspecified } enum E8With with ContainsWildcardSetter { diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t24.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t24.dart index fd8660568e..5812bd2314 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t24.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t24.dart @@ -113,6 +113,8 @@ enum E8 { // [analyzer] unspecified // [cfe] unspecified void set _(int v) {} +// ^ +// [cfe] unspecified } enum E8With with ContainsWildcardSetter { diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t25.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t25.dart index adca174adc..0a18a65aaa 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t25.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t25.dart @@ -27,8 +27,6 @@ mixin class ContainsWildcardSetter { enum E1 { e0; static void set _(int v) {} -// ^ -// [cfe] unspecified static int _ = 1; // ^ // [analyzer] unspecified @@ -66,6 +64,8 @@ enum E5 { // [analyzer] unspecified // [cfe] unspecified final int _ = 5; +// ^ +// [cfe] unspecified } enum E6 { @@ -75,6 +75,8 @@ enum E6 { // [analyzer] unspecified // [cfe] unspecified int _() => 6; +// ^ +// [cfe] unspecified } enum E6With with ContainsWildcardMethod { @@ -92,6 +94,8 @@ enum E7 { // [analyzer] unspecified // [cfe] unspecified int get _ => 7; +// ^ +// [cfe] unspecified } enum E7With with ContainsWildcardGetter { diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t30.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t30.dart index 484bed7845..bd93d00d2c 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t30.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t30.dart @@ -51,8 +51,6 @@ extension type ET3(int id) { extension type ET4(int id) { static int _ = 1; -// ^ -// [cfe] unspecified static void set _(int v) {} // ^ // [analyzer] unspecified @@ -104,7 +102,6 @@ extension type ET8(int id) { static int _ = 1; // ^ // [analyzer] unspecified -// [cfe] unspecified void set _(int v) {} // ^ // [cfe] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t32.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t32.dart index 502f218be6..908b704ea1 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t32.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t32.dart @@ -51,8 +51,6 @@ extension type ET3(int id) { extension type ET4(int id) { static int _() => 1; -// ^ -// [cfe] unspecified static void set _(int v) {} // ^ // [analyzer] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t33.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t33.dart index 4db9e7441a..566b7dad35 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t33.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t33.dart @@ -27,8 +27,6 @@ class ContainsWildcardSetter { extension type ET1(int id) { static void set _(int v) {} -// ^ -// [cfe] unspecified static int _ = 1; // ^ // [analyzer] unspecified @@ -37,8 +35,6 @@ extension type ET1(int id) { extension type ET2(int id) { static void set _(int v) {} -// ^ -// [cfe] unspecified static int _() => 2; // ^ // [analyzer] unspecified @@ -59,8 +55,6 @@ extension type ET4(int id) { } extension type ET5(int _) { -// ^ -// [cfe] unspecified static void set _(int v) {} // ^ // [analyzer] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t36.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t36.dart index 159a77ad33..1fea820c27 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t36.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t36.dart @@ -53,8 +53,6 @@ extension type ET2Implements(ContainsWildcardGetter id) extension type ET3(int id) { int _() => 1; -// ^ -// [cfe] unspecified void set _(int v) {} // ^ // [analyzer] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t37.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t37.dart index 5b9c9465bf..68e10fbab9 100755 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t37.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t37.dart @@ -27,8 +27,6 @@ class ContainsWildcardSetter { extension type ET1(int id) { void set _(int v) {} -// ^ -// [cfe] unspecified int _() => 6; // ^ // [analyzer] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t38.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t38.dart index 564b32dd25..34d2d911d9 100644 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t38.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t38.dart @@ -40,8 +40,6 @@ extension E3 on A { extension E4 on A { static int _ = 1; -// ^ -// [cfe] unspecified static void set _(int v) {} // ^ // [analyzer] unspecified @@ -70,7 +68,6 @@ extension E7 on A { static int _ = 1; // ^ // [analyzer] unspecified -// [cfe] unspecified void set _(int v) {} // ^ // [cfe] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t39.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t39.dart index e41854060c..069606b78f 100644 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t39.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t39.dart @@ -65,7 +65,6 @@ extension E7 on A { static int get _ => 1; // ^ // [analyzer] unspecified -// [cfe] unspecified void set _(int v) {} // ^ // [cfe] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t40.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t40.dart index 4b5a900df7..37ad54d683 100644 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t40.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t40.dart @@ -40,8 +40,6 @@ extension E3 on A { extension E4 on A { static int _() => 1; -// ^ -// [cfe] unspecified static void set _(int v) {} // ^ // [analyzer] unspecified @@ -70,7 +68,6 @@ extension E7 on A { static int _() => 1; // ^ // [analyzer] unspecified -// [cfe] unspecified void set _(int v) {} // ^ // [cfe] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t41.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t41.dart index 170b53f927..87e1faf285 100644 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t41.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t41.dart @@ -16,8 +16,6 @@ class A {} extension E1 on A { static void set _(int v) {} -// ^ -// [cfe] unspecified static int _ = 1; // ^ // [analyzer] unspecified @@ -26,8 +24,6 @@ extension E1 on A { extension E2 on A { static void set _(int v) {} -// ^ -// [cfe] unspecified static int _() => 2; // ^ // [analyzer] unspecified @@ -51,7 +47,6 @@ extension E5 on A { static void set _(int v) {} // ^ // [analyzer] unspecified -// [cfe] unspecified int _() => 5; // ^ // [cfe] unspecified @@ -61,7 +56,6 @@ extension E6 on A { static void set _(int v) {} // ^ // [analyzer] unspecified -// [cfe] unspecified int get _ => 6; // ^ // [cfe] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t43.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t43.dart index 1e6e6e5f64..8ec8fc6244 100644 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t43.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t43.dart @@ -33,8 +33,6 @@ extension E2 on A { extension E3 on A { int _() => 1; -// ^ -// [cfe] unspecified void set _(int v) {} // ^ // [analyzer] unspecified diff --git a/LanguageFeatures/Wildcards/other_declarations_A05_t44.dart b/LanguageFeatures/Wildcards/other_declarations_A05_t44.dart index bd250513bc..0521d78db3 100644 --- a/LanguageFeatures/Wildcards/other_declarations_A05_t44.dart +++ b/LanguageFeatures/Wildcards/other_declarations_A05_t44.dart @@ -17,8 +17,6 @@ class A {} extension E1 on A { void set _(int v) {} -// ^ -// [cfe] unspecified static int _ = 1; // ^ // [analyzer] unspecified @@ -27,8 +25,6 @@ extension E1 on A { extension E2 on A { void set _(int v) {} -// ^ -// [cfe] unspecified static int _() => 2; // ^ // [analyzer] unspecified @@ -37,8 +33,6 @@ extension E2 on A { extension E3 on A { void set _(int v) {} -// ^ -// [cfe] unspecified static int get _ => 3; // ^ // [analyzer] unspecified @@ -55,8 +49,6 @@ extension E4 on A { extension E5 on A { void set _(int v) {} -// ^ -// [cfe] unspecified int _() => 5; // ^ // [analyzer] unspecified