Index: pkg/analyzer/test/generated/static_type_warning_code_test.dart |
diff --git a/pkg/analyzer/test/generated/static_type_warning_code_test.dart b/pkg/analyzer/test/generated/static_type_warning_code_test.dart |
index d52d84aa5f8bb2ce98e8ee512bac2c8d71c3bde4..cab96a4a2c4a699d33b25de50fc4254a271a912e 100644 |
--- a/pkg/analyzer/test/generated/static_type_warning_code_test.dart |
+++ b/pkg/analyzer/test/generated/static_type_warning_code_test.dart |
@@ -1121,10 +1121,6 @@ class A { |
[StaticTypeWarningCode.RETURN_OF_INVALID_TYPE]); |
} |
- test_returnOfInvalidType_not_issued_for_expressionFunctionBody_void() async { |
- await assertNoErrorsInCode("void f() => 42;"); |
- } |
- |
test_returnOfInvalidType_function() async { |
await assertErrorsInCode("int f() { return '0'; }", |
[StaticTypeWarningCode.RETURN_OF_INVALID_TYPE]); |
@@ -1156,6 +1152,10 @@ class A { |
[StaticTypeWarningCode.RETURN_OF_INVALID_TYPE]); |
} |
+ test_returnOfInvalidType_not_issued_for_expressionFunctionBody_void() async { |
+ await assertNoErrorsInCode("void f() => 42;"); |
+ } |
+ |
test_returnOfInvalidType_not_issued_for_valid_generic_return() async { |
await assertNoErrorsInCode(r''' |
abstract class F<T, U> { |