Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(117)

Unified Diff: pkg/analyzer/test/generated/static_type_warning_code_test.dart

Issue 2933753002: Run the sorter to reduce code churn (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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> {
« no previous file with comments | « pkg/analyzer/test/generated/parser_fasta_test.dart ('k') | pkg/analyzer/test/generated/static_warning_code_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698