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

Unified Diff: tests/lib/async/future_or_only_in_async_test.dart

Issue 2571583006: Update status file and test. (Closed)
Patch Set: Created 4 years 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 | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/future_or_only_in_async_test.dart
diff --git a/tests/lib/async/future_or_only_in_async_test.dart b/tests/lib/async/future_or_only_in_async_test.dart
index 3e7d098a799f5ee6354a26c658288604c3edbf42..9942443029cc566426246c6bab6aa98e276cfd0d 100644
--- a/tests/lib/async/future_or_only_in_async_test.dart
+++ b/tests/lib/async/future_or_only_in_async_test.dart
@@ -4,14 +4,14 @@
// `FutureOr<T>` is only visible when `dart:async` is imported.
-T foo<T>(T x) {
+dynamic foo(dynamic x) {
return x as
FutureOr< /// 00: runtime error, static type warning
- T
+ int
> /// 00: continued
;
}
main() {
- if (499 != foo<int>(499)) throw "bad";
-}
+ if (499 != foo(499)) throw "bad";
+}
« no previous file with comments | « no previous file | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698