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

Unified Diff: tests/compiler/dart2js/type_checker_test.dart

Issue 1367433002: Avoid warning when using `return;` from sync* and async* functions. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix mock_libraries modification Created 5 years, 3 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
« no previous file with comments | « tests/compiler/dart2js/mock_libraries.dart ('k') | tests/language/async_return_types_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_checker_test.dart
diff --git a/tests/compiler/dart2js/type_checker_test.dart b/tests/compiler/dart2js/type_checker_test.dart
index 0e6a54ea5b583fddaa7ee9249fdda9b81409c231..fc7b60127399c2af1af16c9f8dcbec35717b6c67 100644
--- a/tests/compiler/dart2js/type_checker_test.dart
+++ b/tests/compiler/dart2js/type_checker_test.dart
@@ -2385,6 +2385,8 @@ testAsyncReturn(MockCompiler compiler) {
check("int foo() async => 0;", NOT_ASSIGNABLE),
check("int foo() async => new Future<int>.value();",
NOT_ASSIGNABLE),
+ check("Iterable<int> foo() sync* { return; }"),
+ check("Stream<int> foo() async* { return; }"),
]);
}
« no previous file with comments | « tests/compiler/dart2js/mock_libraries.dart ('k') | tests/language/async_return_types_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698