| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 import 'package:expect/expect.dart'; | 5 import 'package:expect/expect.dart'; |
| 6 import "package:async_helper/async_helper.dart"; | 6 import "package:async_helper/async_helper.dart"; |
| 7 | 7 |
| 8 import 'compiler_helper.dart'; | 8 import 'compiler_helper.dart'; |
| 9 import 'parser_helper.dart'; |
| 9 import 'type_mask_test_helper.dart'; | 10 import 'type_mask_test_helper.dart'; |
| 10 | 11 |
| 11 const String TEST = ''' | 12 const String TEST = ''' |
| 12 testFunctionStatement() { | 13 testFunctionStatement() { |
| 13 var res; | 14 var res; |
| 14 closure(a) => res = a; | 15 closure(a) => res = a; |
| 15 closure(42); | 16 closure(42); |
| 16 return res; | 17 return res; |
| 17 } | 18 } |
| 18 | 19 |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 checkType('testStoredInListOfList', typesTask.uint31Type); | 172 checkType('testStoredInListOfList', typesTask.uint31Type); |
| 172 checkType('testStoredInListOfListUsingInsert', typesTask.uint31Type); | 173 checkType('testStoredInListOfListUsingInsert', typesTask.uint31Type); |
| 173 checkType('testStoredInListOfListUsingAdd', typesTask.uint31Type); | 174 checkType('testStoredInListOfListUsingAdd', typesTask.uint31Type); |
| 174 checkType('testPassedInParameter', typesTask.uint31Type); | 175 checkType('testPassedInParameter', typesTask.uint31Type); |
| 175 checkType('testStaticClosure1', typesTask.uint31Type); | 176 checkType('testStaticClosure1', typesTask.uint31Type); |
| 176 checkType('testStaticClosure2', typesTask.numType); | 177 checkType('testStaticClosure2', typesTask.numType); |
| 177 checkType('testStaticClosure3', typesTask.uint31Type); | 178 checkType('testStaticClosure3', typesTask.uint31Type); |
| 178 checkType('testStaticClosure4', typesTask.numType); | 179 checkType('testStaticClosure4', typesTask.numType); |
| 179 })); | 180 })); |
| 180 } | 181 } |
| OLD | NEW |