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

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

Issue 2870363003: Allowing `e` of any type in `void f(...) => e` in the analyzer. (Closed)
Patch Set: Rebased Created 3 years, 7 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 3165c7692d2c6893f736e06a6b1189ba8ae76b27..d52d84aa5f8bb2ce98e8ee512bac2c8d71c3bde4 100644
--- a/pkg/analyzer/test/generated/static_type_warning_code_test.dart
+++ b/pkg/analyzer/test/generated/static_type_warning_code_test.dart
@@ -1121,9 +1121,8 @@ class A {
[StaticTypeWarningCode.RETURN_OF_INVALID_TYPE]);
}
- test_returnOfInvalidType_expressionFunctionBody_void() async {
- await assertErrorsInCode(
- "void f() => 42;", [StaticTypeWarningCode.RETURN_OF_INVALID_TYPE]);
+ test_returnOfInvalidType_not_issued_for_expressionFunctionBody_void() async {
+ await assertNoErrorsInCode("void f() => 42;");
}
test_returnOfInvalidType_function() async {
« no previous file with comments | « pkg/analyzer/lib/src/generated/error_verifier.dart ('k') | pkg/analyzer/test/src/task/strong/checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698