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

Unified Diff: tests/language/async_return_types_test.dart

Issue 2986093002: Revert two Kernel changes that were causing test failures. (Closed)
Patch Set: Revert "Migrate language/async_backwards... ... language/async_star_take..." 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
Index: tests/language/async_return_types_test.dart
diff --git a/tests/language_2/async_return_types_test.dart b/tests/language/async_return_types_test.dart
similarity index 80%
copy from tests/language_2/async_return_types_test.dart
copy to tests/language/async_return_types_test.dart
index eae381b19112164da26fa11a218a0a362ba77ead..5e1c223fc0f3a47373f842963106edccd4d89424 100644
--- a/tests/language_2/async_return_types_test.dart
+++ b/tests/language/async_return_types_test.dart
@@ -14,17 +14,18 @@ Future<int> foo2() async {
return 3;
}
-Future<int> //# wrongTypeParameter: compile-time error
+Future<int> //# wrongTypeParameter: static type warning, dynamic type error
foo3() async {
return "String";
}
-Future<int, String> //# tooManyTypeParameters: compile-time error
+// Future<int, String> is treated like Future<dynamic>
+Future<int, String> //# tooManyTypeParameters: static type warning
foo4() async {
return "String";
}
-int //# wrongReturnType: compile-time error
+int //# wrongReturnType: static type warning, dynamic type error
foo5() async {
return 3;
}
@@ -34,7 +35,7 @@ Future<int> foo6() async {
return new Future<int>.value(3);
}
-Future<Future<int>> //# nestedFuture: compile-time error
+Future<Future<int>> //# nestedFuture: static type warning, dynamic type error
foo7() async {
return new Future<int>.value(3);
}
« no previous file with comments | « tests/language/async_rethrow_test.dart ('k') | tests/language/async_star_cancel_and_throw_in_finally_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698