| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 import "package:expect/expect.dart"; | 4 import "package:expect/expect.dart"; |
| 5 import "package:async_helper/async_helper.dart"; | 5 import "package:async_helper/async_helper.dart"; |
| 6 | 6 |
| 7 @NoInline | 7 @NoInline() |
| 8 @AssumeDynamic | 8 @AssumeDynamic() |
| 9 confuse(x) { | 9 confuse(x) { |
| 10 return x; | 10 return x; |
| 11 } | 11 } |
| 12 | 12 |
| 13 test1() async { | 13 test1() async { |
| 14 Expect.isFalse(await confuse(false) && await confuse(false)); | 14 Expect.isFalse(await confuse(false) && await confuse(false)); |
| 15 Expect.isFalse(await confuse(false) && await confuse(true)); | 15 Expect.isFalse(await confuse(false) && await confuse(true)); |
| 16 Expect.isFalse(await confuse(true) && await confuse(false)); | 16 Expect.isFalse(await confuse(true) && await confuse(false)); |
| 17 Expect.isTrue(await confuse(true) && await confuse(true)); | 17 Expect.isTrue(await confuse(true) && await confuse(true)); |
| 18 | 18 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 test() async { | 80 test() async { |
| 81 await test1(); | 81 await test1(); |
| 82 await test2(); | 82 await test2(); |
| 83 } | 83 } |
| 84 | 84 |
| 85 main() { | 85 main() { |
| 86 asyncStart(); | 86 asyncStart(); |
| 87 test().then((_) => asyncEnd()); | 87 test().then((_) => asyncEnd()); |
| 88 } | 88 } |
| OLD | NEW |