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

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

Issue 2647833002: fix #28008, fix #28009 implement FutureOr<T> (Closed)
Patch Set: Merge remote-tracking branch 'origin/master' into 28008_futureort Created 3 years, 11 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 | « sdk/lib/async/future_impl.dart ('k') | 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_bad_type_test.dart
diff --git a/tests/lib/async/future_or_bad_type_test.dart b/tests/lib/async/future_or_bad_type_test.dart
index a74b30f6bd1b9d4831f343fabc98812113aeb37e..f0faf5373c246ae800d826f0d17df807c7d47fed 100644
--- a/tests/lib/async/future_or_bad_type_test.dart
+++ b/tests/lib/async/future_or_bad_type_test.dart
@@ -19,8 +19,9 @@ class A
main() {
// FutureOr<T> should be treated like `dynamic`. Dynamically the `T` is
// completely ignored. It can be a malformed type.
- Expect.isTrue(499 is FutureOr<A>); /// 00: static type warning
- Expect.isTrue(499 is FutureOr<Does<Not<Exist>>>); /// 01: static type warning
+ Expect.isTrue(499 is FutureOr<A>);
+ Expect.isTrue(499 is FutureOr<Does<Not<Exist>>>); /// 00: static type warning
+ Expect.isTrue(499 is FutureOr<A, A>); /// 01: static type warning
var a = new A();
Expect.isTrue(a.toString() is String);
« no previous file with comments | « sdk/lib/async/future_impl.dart ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698