Skip to content

Commit b10a2b9

Browse files
authored
Fixes #3227. Use unspecified error expectation (#3228)
1 parent 3c3e258 commit b10a2b9

File tree

7 files changed

+50
-51
lines changed

7 files changed

+50
-51
lines changed

Language/Expressions/Identifier_Reference/evaluation_property_extraction_t04.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ class C {
2020
test() {
2121
undeclared;
2222
// ^^^^^^^^^^
23-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_IDENTIFIER
24-
// [cfe] The getter 'undeclared' isn't defined for the class 'C'.
23+
// [analyzer] unspecified
24+
// [cfe] unspecified
2525
}
2626

2727
C() {
2828
undeclared;
2929
// ^^^^^^^^^^
30-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_IDENTIFIER
31-
// [cfe] The getter 'undeclared' isn't defined for the class 'C'.
30+
// [analyzer] unspecified
31+
// [cfe] unspecified
3232
}
3333

3434
static int times = 0;

LanguageFeatures/Extension-methods/ommited_name_t01.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ main() {
2323
List<String> list = ["Lily", "was", "here"];
2424
list.nnDoubleLength;
2525
// ^^^^^^^^^^^^^^
26-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_GETTER
27-
// [cfe] The getter 'nnDoubleLength' isn't defined for the class 'List<String>'.
26+
// [analyzer] unspecified
27+
// [cfe] unspecified
2828
List.nnClassName;
2929
// ^^^^^^^^^^^
30-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_GETTER
31-
// [cfe] Member not found: 'nnClassName'.
30+
// [analyzer] unspecified
31+
// [cfe] unspecified
3232
}

LanguageFeatures/Extension-methods/semantics_of_extension_members_t04.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ class C {
2121
extension ExtendedC on C {
2222
static String st = cStaticMember;
2323
// ^^^^^^^^^^^^^
24-
// [analyzer] COMPILE_TIME_ERROR.UNQUALIFIED_REFERENCE_TO_STATIC_MEMBER_OF_EXTENDED_TYPE
25-
// [cfe] Undefined name 'cStaticMember'.
24+
// [analyzer] unspecified
25+
// [cfe] unspecified
2626
void test() {
2727
cStaticMember;
2828
// ^^^^^^^^^^^^^
29-
// [analyzer] COMPILE_TIME_ERROR.UNQUALIFIED_REFERENCE_TO_STATIC_MEMBER_OF_EXTENDED_TYPE
30-
// [cfe] The getter 'cStaticMember' isn't defined for the class 'C'.
29+
// [analyzer] unspecified
30+
// [cfe] unspecified
3131
}
3232
}
3333

LanguageFeatures/Extension-methods/syntax_scope_t06.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ main() {
2828
List<String> list = ["Lily", "was", "here"];
2929
list.split(1);
3030
// ^^^^^
31-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_METHOD
32-
// [cfe] The method 'split' isn't defined for the class 'List<String>'.
31+
// [analyzer] unspecified
32+
// [cfe] unspecified
3333
MyFancyList.className;
3434
// ^^^^^^^^^
35-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_EXTENSION_GETTER
36-
// [cfe] Member not found: 'className'.
35+
// [analyzer] unspecified
36+
// [cfe] unspecified
3737
}

LanguageFeatures/Horizontal-inference/horizontal_inference_t07.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ main() {
2323
f1((t, u) {
2424
t.c2();
2525
// ^^
26-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_METHOD
27-
// [cfe] The method 'c2' isn't defined for the class 'C1'.
26+
// [analyzer] unspecified
27+
// [cfe] unspecified
2828
}, (u) {
2929
return 1 > 2 ? C2() : C1();
3030
});

LanguageFeatures/Super-mixins/mixin_members_t02.dart

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
/// @author [email protected]
1212
/// @author [email protected]
1313
14-
1514
class I {
1615
static int i1 = 1;
1716
}
@@ -40,49 +39,49 @@ class MA extends C with M {
4039
test() {
4140
i1 == 1;
4241
// ^^
43-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_IDENTIFIER
44-
// [cfe] The getter 'i1' isn't defined for the class 'MA'.
42+
// [analyzer] unspecified
43+
// [cfe] unspecified
4544
j1 == 2;
4645
// ^^
47-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_IDENTIFIER
48-
// [cfe] The getter 'j1' isn't defined for the class 'MA'.
46+
// [analyzer] unspecified
47+
// [cfe] unspecified
4948
b1 == 3;
5049
// ^^
51-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_IDENTIFIER
52-
// [cfe] The getter 'b1' isn't defined for the class 'MA'.
50+
// [analyzer] unspecified
51+
// [cfe] unspecified
5352
c1 == 4;
5453
// ^^
55-
// [analyzer] COMPILE_TIME_ERROR.UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER
56-
// [cfe] The getter 'c1' isn't defined for the class 'MA'.
54+
// [analyzer] unspecified
55+
// [cfe] unspecified
5756
m1 == 5;
5857
// ^^
59-
// [analyzer] COMPILE_TIME_ERROR.UNQUALIFIED_REFERENCE_TO_NON_LOCAL_STATIC_MEMBER
60-
// [cfe] The getter 'm1' isn't defined for the class 'MA'.
58+
// [analyzer] unspecified
59+
// [cfe] unspecified
6160
}
6261
}
6362

6463
main() {
6564
MA ma = new MA();
6665
MA.i1 == 1;
6766
// ^^
68-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_GETTER
69-
// [cfe] Member not found: 'i1'.
67+
// [analyzer] unspecified
68+
// [cfe] unspecified
7069
MA.j1 == 2;
7170
// ^^
72-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_GETTER
73-
// [cfe] Member not found: 'j1'.
71+
// [analyzer] unspecified
72+
// [cfe] unspecified
7473
MA.b1 == 3;
7574
// ^^
76-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_GETTER
77-
// [cfe] Member not found: 'b1'.
75+
// [analyzer] unspecified
76+
// [cfe] unspecified
7877
MA.c1 == 4;
7978
// ^^
80-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_GETTER
81-
// [cfe] Member not found: 'c1'.
79+
// [analyzer] unspecified
80+
// [cfe] unspecified
8281
MA.m1 == 5;
8382
// ^^
84-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_GETTER
85-
// [cfe] Member not found: 'm1'.
83+
// [analyzer] unspecified
84+
// [cfe] unspecified
8685

8786
ma.test();
8887
}

LanguageFeatures/int-to-double/assignment_class_member_fail_t01.dart

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ class C {
2525
main() {
2626
C.s = foo();
2727
// ^^^^^
28-
// [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT
29-
// [cfe] A value of type 'int' can't be assigned to a variable of type 'double'.
28+
// [analyzer] unspecified
29+
// [cfe] unspecified
3030
C?.s = foo();
3131
// ^^^^^
3232
// [analyzer] unspecified
@@ -41,8 +41,8 @@ main() {
4141
// [cfe] unspecified
4242
C.staticSetter = foo();
4343
// ^^^^^
44-
// [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT
45-
// [cfe] A value of type 'int' can't be assigned to a variable of type 'double'.
44+
// [analyzer] unspecified
45+
// [cfe] unspecified
4646
C?.staticSetter = foo();
4747
// ^^^^^
4848
// [analyzer] unspecified
@@ -51,21 +51,21 @@ main() {
5151
C? c = null;
5252
c?.m1 = foo();
5353
// ^^
54-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_SETTER
55-
// [cfe] The setter 'm1' isn't defined for the class 'C'.
54+
// [analyzer] unspecified
55+
// [cfe] unspecified
5656
c?.instanceSetter = foo();
5757
// ^^^^^
58-
// [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT
59-
// [cfe] A value of type 'int' can't be assigned to a variable of type 'double'.
58+
// [analyzer] unspecified
59+
// [cfe] unspecified
6060
c = new C();
6161
c.m1 = foo();
6262
// ^^
63-
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_SETTER
64-
// [cfe] The setter 'm1' isn't defined for the class 'C'.
63+
// [analyzer] unspecified
64+
// [cfe] unspecified
6565
c.instanceSetter = foo();
6666
// ^^^^^
67-
// [analyzer] COMPILE_TIME_ERROR.INVALID_ASSIGNMENT
68-
// [cfe] A value of type 'int' can't be assigned to a variable of type 'double'.
67+
// [analyzer] unspecified
68+
// [cfe] unspecified
6969
c?.m1 = foo();
7070
// ^^
7171
// [analyzer] unspecified

0 commit comments

Comments
 (0)