File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -465,8 +465,7 @@ abstract class ImplementsFutureVoid implements Future<void> {}
465
465
466
466
/// This class takes a type, and it might be void.
467
467
class ATypeTakingClass <T > {
468
- // ignore: missing_return
469
- T ? aMethodMaybeReturningVoid () {}
468
+ T ? aMethodMaybeReturningVoid () => null ;
470
469
}
471
470
472
471
class ABaseClass {}
@@ -1041,7 +1040,7 @@ class OperatorReferenceClass {
1041
1040
OperatorReferenceClass ();
1042
1041
1043
1042
@override
1044
- bool operator == (dynamic other) {
1043
+ bool operator == (Object other) {
1045
1044
return false ;
1046
1045
}
1047
1046
}
@@ -1283,7 +1282,7 @@ class FactoryConstructorThings {
1283
1282
1284
1283
DTypeParam ?
1285
1284
aTopLevelTypeParameterFunction <DTypeParam extends TypeParameterThings >(
1286
- DTypeParam typedParam) {}
1285
+ DTypeParam typedParam) => typedParam;
1287
1286
1288
1287
abstract class TypeParameterThings <ATypeParam ,
1289
1288
BTypeParam extends FactoryConstructorThings > {
Original file line number Diff line number Diff line change 24
24
class C2 {
25
25
T0 b;
26
26
T1 ? c;
27
- T2 ? d (T3 e, T4 f) {}
27
+ T2 ? d (T3 e, T4 f) => null ;
28
28
}
29
29
30
30
class C1 <T extends T3 > {
You can’t perform that action at this time.
0 commit comments