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

Unified Diff: tests/language_2/async_return_types_test.dart

Issue 2990973002: Migrate block 39 language/async_backwards ... /async_star_take. (Closed)
Patch Set: Created 3 years, 5 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/language_2/async_rethrow_test.dart ('k') | tests/language_2/async_star_await_pauses_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_2/async_return_types_test.dart
diff --git a/tests/language/async_return_types_test.dart b/tests/language_2/async_return_types_test.dart
similarity index 80%
rename from tests/language/async_return_types_test.dart
rename to tests/language_2/async_return_types_test.dart
index 5e1c223fc0f3a47373f842963106edccd4d89424..eae381b19112164da26fa11a218a0a362ba77ead 100644
--- a/tests/language/async_return_types_test.dart
+++ b/tests/language_2/async_return_types_test.dart
@@ -14,18 +14,17 @@ Future<int> foo2() async {
return 3;
}
-Future<int> //# wrongTypeParameter: static type warning, dynamic type error
+Future<int> //# wrongTypeParameter: compile-time error
foo3() async {
return "String";
}
-// Future<int, String> is treated like Future<dynamic>
-Future<int, String> //# tooManyTypeParameters: static type warning
+Future<int, String> //# tooManyTypeParameters: compile-time error
foo4() async {
return "String";
}
-int //# wrongReturnType: static type warning, dynamic type error
+int //# wrongReturnType: compile-time error
foo5() async {
return 3;
}
@@ -35,7 +34,7 @@ Future<int> foo6() async {
return new Future<int>.value(3);
}
-Future<Future<int>> //# nestedFuture: static type warning, dynamic type error
+Future<Future<int>> //# nestedFuture: compile-time error
foo7() async {
return new Future<int>.value(3);
}
« no previous file with comments | « tests/language_2/async_rethrow_test.dart ('k') | tests/language_2/async_star_await_pauses_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698