| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // In strong mode, `FutureOr` should be equivalent to the union of `Future<T>` | 5 // In strong mode, `FutureOr` should be equivalent to the union of `Future<T>` |
| 6 // and `T`. | 6 // and `T`. |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'package:expect/expect.dart'; | 9 import 'package:expect/expect.dart'; |
| 10 | 10 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 Expect.isFalse(bar3 is FunReturns<String>); | 110 Expect.isFalse(bar3 is FunReturns<String>); |
| 111 Expect.isFalse(bar3 is FunReturns<Future<int>>); | 111 Expect.isFalse(bar3 is FunReturns<Future<int>>); |
| 112 Expect.isFalse(bar3 is FunReturns<Future<String>>); | 112 Expect.isFalse(bar3 is FunReturns<Future<String>>); |
| 113 Expect.isTrue(bar3 is FunReturns<FutureOr<Object>>); | 113 Expect.isTrue(bar3 is FunReturns<FutureOr<Object>>); |
| 114 Expect.isTrue(bar3 is FunReturns<FutureOr<int>>); | 114 Expect.isTrue(bar3 is FunReturns<FutureOr<int>>); |
| 115 Expect.isFalse(bar3 is FunReturns<FutureOr<String>>); | 115 Expect.isFalse(bar3 is FunReturns<FutureOr<String>>); |
| 116 Expect.isTrue(bar3 is FunReturns<FutureOr<FutureOr<Object>>>); | 116 Expect.isTrue(bar3 is FunReturns<FutureOr<FutureOr<Object>>>); |
| 117 Expect.isTrue(bar3 is FunReturns<FutureOr<FutureOr<int>>>); | 117 Expect.isTrue(bar3 is FunReturns<FutureOr<FutureOr<int>>>); |
| 118 Expect.isFalse(bar3 is FunReturns<FutureOr<FutureOr<String>>>); | 118 Expect.isFalse(bar3 is FunReturns<FutureOr<FutureOr<String>>>); |
| 119 } | 119 } |
| OLD | NEW |