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 1919/// @issue 41282
2020/// @author sgrekhov@unipro.ru
2121
22-
23- class T extends Type {}
22+ class T implements Type {}
2423
2524class C {
2625 T get runtimeType => new T ();
Original file line number Diff line number Diff line change @@ -36,20 +36,17 @@ main() {
3636// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
3737// ^
3838// [cfe] Operand of null-aware operation '?.' has type 'Never' which excludes null.
39- foo ()
40- ? ..toString ();
39+ foo ()? ..toString ();
4140// ^^^
4241// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
4342// ^
4443// [cfe] Operand of null-aware operation '?..' has type 'Never' which excludes null.
45- foo ()
46- ? ..runtimeType;
44+ foo ()? ..runtimeType;
4745// ^^^
4846// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
4947// ^
5048// [cfe] Operand of null-aware operation '?..' has type 'Never' which excludes null.
51- foo ()
52- ? ..s = 1 ;
49+ foo ()? ..s = 1 ;
5350// ^^^
5451// [analyzer] STATIC_WARNING.INVALID_NULL_AWARE_OPERATOR
5552// ^
You can’t perform that action at this time.
0 commit comments