@@ -26,67 +26,73 @@ void test0() {
26
26
c0.m1 = 0 ;
27
27
// ^^
28
28
// [analyzer] STATIC_WARNING.ASSIGNMENT_TO_FINAL_NO_SETTER
29
- // [cfe] unspecified
29
+ // [cfe] The setter 'm1' isn't defined for the class 'C0'.
30
30
E0 (c0).m1 = 0 ;
31
31
E0 (c0).m1;
32
32
// ^^
33
33
// [analyzer] COMPILE_TIME_ERROR.UNDEFINED_EXTENSION_GETTER
34
- // [cfe] unspecified
34
+ // [cfe] Getter not found: 'm1'.
35
35
36
36
c0.m1 += 0 ;
37
37
// ^^
38
38
// [analyzer] STATIC_WARNING.ASSIGNMENT_TO_FINAL_NO_SETTER
39
- // [cfe] unspecified
39
+ // [cfe] The setter 'm1' isn't defined for the class 'C0'.
40
40
41
41
c0.m1++ ;
42
42
// ^^
43
43
// [analyzer] STATIC_WARNING.ASSIGNMENT_TO_FINAL_NO_SETTER
44
- // [cfe] unspecified
44
+ // [cfe] The setter 'm1' isn't defined for the class 'C0'.
45
45
46
46
c0.m2 = 0 ;
47
47
c0.m2;
48
48
// ^^
49
49
// [analyzer] STATIC_TYPE_WARNING.UNDEFINED_GETTER
50
- // [cfe] unspecified
50
+ // [cfe] The getter 'm2' isn't defined for the class 'C0'.
51
51
c0.m2 += 0 ;
52
52
// ^^
53
53
// [analyzer] STATIC_TYPE_WARNING.UNDEFINED_GETTER
54
- // [cfe] unspecified
54
+ // [cfe] The getter 'm2' isn't defined for the class 'C0'.
55
55
c0.m2++ ;
56
56
// ^^
57
57
// [analyzer] STATIC_TYPE_WARNING.UNDEFINED_GETTER
58
- // [cfe] unspecified
58
+ // [cfe] The getter 'm2' isn't defined for the class 'C0'.
59
59
60
60
E0 (c0).m2;
61
61
62
62
c0[0 ];
63
63
c0[0 ] = 0 ;
64
+ //^
65
+ // [cfe] The method '[]=' isn't defined for the class 'C0'.
64
66
// ^^^^^^
65
67
// [analyzer] unspecified
66
- // [cfe] unspecified
67
68
E0 (c0)[0 ];
68
69
// ^^^^^^
69
70
// [analyzer] unspecified
70
- // [cfe] unspecified
71
+ // ^
72
+ // [cfe] Getter not found: '[]'.
71
73
E0 (c0)[0 ] = 0 ;
72
74
73
75
c0[0 ] += 0 ;
76
+ //^
77
+ // [cfe] The method '[]=' isn't defined for the class 'C0'.
74
78
// ^^^^^^
75
79
// [analyzer] unspecified
76
- // [cfe] unspecified
77
80
c0[0 ]++ ;
81
+ //^
82
+ // [cfe] The method '[]=' isn't defined for the class 'C0'.
78
83
// ^^^^^^
79
84
// [analyzer] unspecified
80
- // [cfe] unspecified
81
85
82
86
E0 (c0)[0 ] += 0 ;
83
87
// ^^^^^^
84
88
// [analyzer] unspecified
85
- // [cfe] unspecified
89
+ // ^
90
+ // [cfe] The method '[]' isn't defined for the class 'dynamic'.
86
91
E0 (c0)[0 ]++ ;
87
92
// ^^^^^^
88
93
// [analyzer] unspecified
89
- // [cfe] unspecified
94
+ // ^
95
+ // [cfe] The method '[]' isn't defined for the class 'dynamic'.
90
96
}
91
97
92
98
// Conflicting extensions.
@@ -112,29 +118,32 @@ void test1() {
112
118
c1a.m1 = 0 ;
113
119
// ^^
114
120
// [analyzer] STATIC_WARNING.ASSIGNMENT_TO_FINAL_LOCAL
115
- // [cfe] unspecified
121
+ // [cfe] The setter 'm1' isn't defined for the class 'C1<int>'.
116
122
117
123
c1a.m2;
118
124
// ^^
119
125
// [analyzer] STATIC_TYPE_WARNING.UNDEFINED_GETTER
120
- // [cfe] unspecified
126
+ // [cfe] The getter 'm2' isn't defined for the class 'C1<int>'.
121
127
122
128
c1a.m2 = 0 ;
123
129
124
130
c1a[0 ] = 0 ;
131
+ // ^
132
+ // [cfe] The method '[]=' isn't defined for the class 'C1<int>'.
125
133
// ^^
126
134
// [analyzer] unspecified
127
- // [cfe] unspecified
128
135
129
136
c1a[0 ] += 0 ;
137
+ // ^
138
+ // [cfe] The method '[]=' isn't defined for the class 'C1<int>'.
130
139
// ^^
131
140
// [analyzer] unspecified
132
- // [cfe] unspecified
133
141
134
142
c1a[0 ]++ ;
143
+ // ^
144
+ // [cfe] The method '[]=' isn't defined for the class 'C1<int>'.
135
145
// ^^
136
146
// [analyzer] unspecified
137
- // [cfe] unspecified
138
147
139
148
c1a[0 ];
140
149
@@ -143,59 +152,59 @@ void test1() {
143
152
c1b.m1;
144
153
// ^^
145
154
// [analyzer] COMPILE_TIME_ERROR.AMBIGUOUS_EXTENSION_MEMBER_ACCESS
146
- // [cfe] unspecified
155
+ // [cfe] The getter 'm1' isn't defined for the class 'C1<Object>'.
147
156
148
157
c1b.m1 = 0 ;
149
158
// ^^
150
159
// [analyzer] COMPILE_TIME_ERROR.AMBIGUOUS_EXTENSION_MEMBER_ACCESS
151
- // [cfe] unspecified
160
+ // [cfe] The setter 'm1' isn't defined for the class 'C1<Object>'.
152
161
153
162
c1b.m1 += 0 ;
154
163
// ^^
155
164
// [analyzer] COMPILE_TIME_ERROR.AMBIGUOUS_EXTENSION_MEMBER_ACCESS
156
- // ^^
157
- // [cfe] unspecified
158
- // ^^
159
- // [cfe] unspecified
165
+ // [cfe] The getter 'm1' isn't defined for the class 'C1<Object>'.
166
+ // ^
167
+ // [cfe] The setter 'm1' isn't defined for the class 'C1<Object>'.
160
168
161
169
c1b.m1++ ;
162
170
// ^^
163
171
// [analyzer] COMPILE_TIME_ERROR.AMBIGUOUS_EXTENSION_MEMBER_ACCESS
164
- // ^^
165
- // [cfe] unspecified
166
- // ^^
167
- // [cfe] unspecified
172
+ // [cfe] The getter 'm1' isn't defined for the class 'C1<Object>'.
173
+ // ^
174
+ // [cfe] The setter 'm1' isn't defined for the class 'C1<Object>'.
168
175
169
176
c1b.m2;
170
177
// ^^
171
178
// [analyzer] COMPILE_TIME_ERROR.AMBIGUOUS_EXTENSION_MEMBER_ACCESS
172
- // [cfe] unspecified
179
+ // [cfe] The getter 'm2' isn't defined for the class 'C1<Object>'.
173
180
174
181
c1b[0 ];
182
+ // ^
183
+ // [cfe] The method '[]' isn't defined for the class 'C1<Object>'.
175
184
// ^^
176
185
// [analyzer] unspecified
177
- // [cfe] unspecified
178
186
179
187
c1b[0 ] = 0 ;
188
+ // ^
189
+ // [cfe] The method '[]=' isn't defined for the class 'C1<Object>'.
180
190
// ^^
181
191
// [analyzer] unspecified
182
- // [cfe] unspecified
183
192
184
193
c1b[0 ] += 0 ;
185
- // ^^
186
- // [analyzer] unspecified
187
194
// ^
188
- // [cfe] unspecified
195
+ // [cfe] The method '[]' isn't defined for the class 'C1<Object>'.
189
196
// ^
190
- // [cfe] unspecified
191
-
192
- c1b[0 ]++ ;
197
+ // [cfe] The method '[]=' isn't defined for the class 'C1<Object>'.
193
198
// ^^
194
199
// [analyzer] unspecified
200
+
201
+ c1b[0 ]++ ;
195
202
// ^
196
- // [cfe] unspecified
203
+ // [cfe] The method '[]' isn't defined for the class 'C1<Object>'.
197
204
// ^
198
- // [cfe] unspecified
205
+ // [cfe] The method '[]=' isn't defined for the class 'C1<Object>'.
206
+ // ^^
207
+ // [analyzer] unspecified
199
208
}
200
209
201
210
// Getter on the extension itself.
@@ -220,29 +229,32 @@ extension E2 on C2 {
220
229
this .m1 = 0 ;
221
230
// ^^
222
231
// [analyzer] STATIC_WARNING.ASSIGNMENT_TO_FINAL_NO_SETTER
223
- // [cfe] unspecified
232
+ // [cfe] The setter 'm1' isn't defined for the class 'C2'.
224
233
225
234
this .m2 = 0 ;
226
235
this .m2;
227
236
// ^^
228
237
// [analyzer] STATIC_TYPE_WARNING.UNDEFINED_GETTER
229
- // [cfe] unspecified
238
+ // [cfe] The getter 'm2' isn't defined for the class 'C2'.
230
239
231
240
this [0 ] = 0 ;
232
241
this [0 ];
242
+ // ^
243
+ // [cfe] The method '[]' isn't defined for the class 'C2'.
233
244
// ^^
234
245
// [analyzer] unspecified
235
- // [cfe] unspecified
236
246
237
247
this [0 ] += 0 ;
248
+ // ^
249
+ // [cfe] The method '[]' isn't defined for the class 'C2'.
238
250
// ^^
239
251
// [analyzer] unspecified
240
- // [cfe] unspecified
241
252
242
253
this [0 ] ++ ;
254
+ // ^
255
+ // [cfe] The method '[]' isn't defined for the class 'C2'.
243
256
// ^^
244
257
// [analyzer] unspecified
245
- // [cfe] unspecified
246
258
247
259
// Check that `this.mc` refers to `C2.mc`.
248
260
this .mc.toRadixString (16 );
0 commit comments