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

Unified Diff: tests/language_strong/async_test.dart

Issue 2989993002: fix unsound cast failures in tests (Closed)
Patch Set: fix 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/corelib_strong/sort_helper.dart ('k') | tests/language_strong/many_named_arguments_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/async_test.dart
diff --git a/tests/language_strong/async_test.dart b/tests/language_strong/async_test.dart
index 48b4fda283986ef9e27d88e0377b6bd0e9fd27ef..7d8b2dc1f0ab9fcf4d8a08c3f30b1a39d3379ccc 100644
--- a/tests/language_strong/async_test.dart
+++ b/tests/language_strong/async_test.dart
@@ -45,7 +45,7 @@ class B {
}
main() {
- var asyncReturn;
+ Future asyncReturn;
asyncReturn = topLevelFunction();
Expect.isTrue(asyncReturn is Future);
@@ -94,7 +94,7 @@ main() {
};
asyncReturn = moreNesting(1, "ignore", 2);
Expect.isTrue(asyncReturn is Future);
- asyncReturn.then((int result) => Expect.equals(result, 28));
+ asyncReturn.then((num result) => Expect.equals(result, 28));
var checkAsync = (var someFunc) {
var toTest = someFunc();
« no previous file with comments | « tests/corelib_strong/sort_helper.dart ('k') | tests/language_strong/many_named_arguments_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698