| Index: tests/lib_strong/async/future_or_strong_test.dart
|
| diff --git a/tests/lib_strong/async/future_or_strong_test.dart b/tests/lib_strong/async/future_or_strong_test.dart
|
| index 65be5970f8564e1aeb53e2d2662a035b37ae7e35..d0262338324e3be63c4946b8f874ddbc2e4ab36f 100644
|
| --- a/tests/lib_strong/async/future_or_strong_test.dart
|
| +++ b/tests/lib_strong/async/future_or_strong_test.dart
|
| @@ -8,21 +8,19 @@
|
| import 'dart:async';
|
| import 'package:expect/expect.dart';
|
|
|
| -
|
| typedef void FunTakes<T>(T x);
|
| typedef T FunReturns<T>();
|
|
|
| main() {
|
| - Expect.isTrue(499 is FutureOr); // Same as `is Object`.
|
| + Expect.isTrue(499 is FutureOr); // Same as `is Object`.
|
| Expect.isTrue(499 is FutureOr<int>);
|
| Expect.isFalse(499 is FutureOr<String>);
|
|
|
| - Expect.isTrue(new Future.value(499) is FutureOr); // Same as `is Object`.
|
| + Expect.isTrue(new Future.value(499) is FutureOr); // Same as `is Object`.
|
| Expect.isTrue(new Future.value(499) is FutureOr<int>);
|
| Expect.isFalse(new Future.value(499) is FutureOr<String>);
|
|
|
| -
|
| - void foo(FutureOr x) {} // Equivalent to `void bar(Object x) {}`.
|
| + void foo(FutureOr x) {} // Equivalent to `void bar(Object x) {}`.
|
|
|
| // A function that takes Object takes everything.
|
| Expect.isTrue(foo is FunTakes<dynamic>);
|
| @@ -38,8 +36,7 @@ main() {
|
| Expect.isTrue(foo is FunTakes<FutureOr<FutureOr<int>>>);
|
| Expect.isTrue(foo is FunTakes<FutureOr<FutureOr<String>>>);
|
|
|
| -
|
| - FutureOr bar() => 499; // Equivalent to `Object foo() => 499`.
|
| + FutureOr bar() => 499; // Equivalent to `Object foo() => 499`.
|
|
|
| Expect.isTrue(bar is FunReturns<dynamic>);
|
| Expect.isTrue(bar is FunReturns<Object>);
|
| @@ -54,7 +51,6 @@ main() {
|
| Expect.isFalse(bar is FunReturns<FutureOr<FutureOr<int>>>);
|
| Expect.isFalse(bar is FunReturns<FutureOr<FutureOr<String>>>);
|
|
|
| -
|
| void foo2(FutureOr<String> x) {}
|
|
|
| // In is-checks `dynamic` is treat specially (counting as bottom in parameter
|
| @@ -73,7 +69,6 @@ main() {
|
| Expect.isFalse(foo2 is FunTakes<FutureOr<FutureOr<int>>>);
|
| Expect.isFalse(foo2 is FunTakes<FutureOr<FutureOr<String>>>);
|
|
|
| -
|
| FutureOr<int> bar2() => 499;
|
|
|
| Expect.isTrue(bar2 is FunReturns<dynamic>);
|
| @@ -89,7 +84,6 @@ main() {
|
| Expect.isTrue(bar2 is FunReturns<FutureOr<FutureOr<int>>>);
|
| Expect.isFalse(bar2 is FunReturns<FutureOr<FutureOr<String>>>);
|
|
|
| -
|
| void foo3(String x) {}
|
|
|
| // In is-checks `dynamic` is treat specially (counting as bottom in parameter
|
| @@ -108,7 +102,6 @@ main() {
|
| Expect.isFalse(foo3 is FunTakes<FutureOr<FutureOr<int>>>);
|
| Expect.isFalse(foo3 is FunTakes<FutureOr<FutureOr<String>>>);
|
|
|
| -
|
| int bar3() => 499;
|
|
|
| Expect.isTrue(bar3 is FunReturns<dynamic>);
|
|
|