File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 19
19
/// @issue 41282
20
20
21
21
22
-
23
- class T extends Type {}
22
+ class T implements Type {}
24
23
25
24
class C {
26
25
T get runtimeType => new T ();
Original file line number Diff line number Diff line change @@ -36,20 +36,17 @@ main() {
36
36
// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
37
37
// ^
38
38
// [cfe] Operand of null-aware operation '?.' has type 'Never' which excludes null.
39
- foo ()
40
- ? ..toString ();
39
+ foo ()? ..toString ();
41
40
// ^^^
42
41
// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
43
42
// ^
44
43
// [cfe] Operand of null-aware operation '?..' has type 'Never' which excludes null.
45
- foo ()
46
- ? ..runtimeType;
44
+ foo ()? ..runtimeType;
47
45
// ^^^
48
46
// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
49
47
// ^
50
48
// [cfe] Operand of null-aware operation '?..' has type 'Never' which excludes null.
51
- foo ()
52
- ? ..s = 1 ;
49
+ foo ()? ..s = 1 ;
53
50
// ^^^
54
51
// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
55
52
// ^
You can’t perform that action at this time.
0 commit comments