| 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 import | 7 import |
| 8 '../../../sdk/lib/_internal/compiler/implementation/types/types.dart' | 8 '../../../sdk/lib/_internal/compiler/implementation/types/types.dart' |
| 9 show ContainerTypeMask, TypeMask; | 9 show ContainerTypeMask, TypeMask; |
| 10 | 10 |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 checkType('listUsedWithCascade', typesTask.numType); | 207 checkType('listUsedWithCascade', typesTask.numType); |
| 208 checkType('listUsedInClosure', typesTask.numType); | 208 checkType('listUsedInClosure', typesTask.numType); |
| 209 checkType('listPassedToSelector', typesTask.numType); | 209 checkType('listPassedToSelector', typesTask.numType); |
| 210 checkType('listReturnedFromSelector', typesTask.numType); | 210 checkType('listReturnedFromSelector', typesTask.numType); |
| 211 checkType('listUsedWithAddAndInsert', typesTask.numType); | 211 checkType('listUsedWithAddAndInsert', typesTask.numType); |
| 212 checkType('listUsedWithConstraint', typesTask.intType); | 212 checkType('listUsedWithConstraint', typesTask.intType); |
| 213 checkType('listEscapingFromSetter', typesTask.numType); | 213 checkType('listEscapingFromSetter', typesTask.numType); |
| 214 checkType('listUsedInLocal', typesTask.numType); | 214 checkType('listUsedInLocal', typesTask.numType); |
| 215 checkType('listEscapingInSetterValue', typesTask.numType); | 215 checkType('listEscapingInSetterValue', typesTask.numType); |
| 216 checkType('listEscapingInIndex', typesTask.numType); | 216 checkType('listEscapingInIndex', typesTask.numType); |
| 217 checkType('listEscapingInIndexSet', typesTask.intType); | 217 checkType('listEscapingInIndexSet', typesTask.uint31Type); |
| 218 checkType('listEscapingTwiceInIndexSet', typesTask.numType); | 218 checkType('listEscapingTwiceInIndexSet', typesTask.numType); |
| 219 checkType('listSetInNonFinalField', typesTask.numType); | 219 checkType('listSetInNonFinalField', typesTask.numType); |
| 220 checkType('listWithChangedLength', typesTask.intType.nullable()); | 220 checkType('listWithChangedLength', typesTask.uint31Type.nullable()); |
| 221 | 221 |
| 222 checkType('listPassedToClosure', typesTask.dynamicType); | 222 checkType('listPassedToClosure', typesTask.dynamicType); |
| 223 checkType('listReturnedFromClosure', typesTask.dynamicType); | 223 checkType('listReturnedFromClosure', typesTask.dynamicType); |
| 224 checkType('listUsedWithNonOkSelector', typesTask.dynamicType); | 224 checkType('listUsedWithNonOkSelector', typesTask.dynamicType); |
| 225 checkType('listPassedAsOptionalParameter', typesTask.numType); | 225 checkType('listPassedAsOptionalParameter', typesTask.numType); |
| 226 checkType('listPassedAsNamedParameter', typesTask.numType); | 226 checkType('listPassedAsNamedParameter', typesTask.numType); |
| 227 | 227 |
| 228 if (!allocation.contains('filled')) { | 228 if (!allocation.contains('filled')) { |
| 229 checkType('listUnset', new TypeMask.nonNullEmpty()); | 229 checkType('listUnset', new TypeMask.nonNullEmpty()); |
| 230 // TODO(ngeoffray): Re-enable this test. | 230 checkType('listOnlySetWithConstraint', new TypeMask.nonNullEmpty()); |
| 231 // checkType('listOnlySetWithConstraint', new TypeMask.nonNullEmpty()); | |
| 232 } | 231 } |
| 233 })); | 232 })); |
| 234 } | 233 } |
| OLD | NEW |