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

Unified Diff: tests/language/async_return_types_test.dart

Issue 2770063002: Revert "Format all multitests" (Closed)
Patch Set: Created 3 years, 9 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: tests/language/async_return_types_test.dart
diff --git a/tests/language/async_return_types_test.dart b/tests/language/async_return_types_test.dart
index 5e1c223fc0f3a47373f842963106edccd4d89424..6cbd7faacd1bcd96169533cf62ad38be2b743dc5 100644
--- a/tests/language/async_return_types_test.dart
+++ b/tests/language/async_return_types_test.dart
@@ -30,7 +30,7 @@ foo5() async {
return 3;
}
-Future<int> foo6() async {
+Future<int> foo6() async {
// This is fine, the future is flattened
return new Future<int>.value(3);
}
@@ -40,12 +40,13 @@ foo7() async {
return new Future<int>.value(3);
}
+
Iterable<int> foo8() sync* {
yield 1;
// Can only have valueless return in sync* functions.
return
8 //# return_value_sync_star: compile-time error
- ;
+ ;
}
Stream<int> foo9() async* {
@@ -53,7 +54,7 @@ Stream<int> foo9() async* {
// Can only have valueless return in async* functions.
return
8 //# return_value_sync_star: compile-time error
- ;
+ ;
}
test() async {
@@ -70,4 +71,4 @@ test() async {
main() {
asyncTest(test);
-}
+}
« no previous file with comments | « tests/language/async_or_generator_return_type_stacktrace_test.dart ('k') | tests/language/async_switch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698