| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 | 5 |
| 6 import 'package:expect/expect.dart'; | 6 import 'package:expect/expect.dart'; |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 | 9 |
| 10 topLevelFunction() async { } | 10 topLevelFunction() async { } |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 var b2 = new B(); | 119 var b2 = new B(); |
| 120 b2.dontDoThat = 4; /// setter1: compile-time error | 120 b2.dontDoThat = 4; /// setter1: compile-time error |
| 121 | 121 |
| 122 var checkAsync = (var someFunc) { | 122 var checkAsync = (var someFunc) { |
| 123 var toTest = someFunc(); | 123 var toTest = someFunc(); |
| 124 Expect.isTrue(toTest is Future); | 124 Expect.isTrue(toTest is Future); |
| 125 toTest.then((int result) => Expect.equals(result, 4)); | 125 toTest.then((int result) => Expect.equals(result, 4)); |
| 126 }; | 126 }; |
| 127 checkAsync(() async => 4); | 127 checkAsync(() async => 4); |
| 128 | 128 |
| 129 new A.fail(); /// constructor2: continued |
| 130 new A.create(); /// constructor3: continued |
| 129 } | 131 } |
| OLD | NEW |