| 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 | 6 import |
| 7 '../../../sdk/lib/_internal/compiler/implementation/types/types.dart' | 7 '../../../sdk/lib/_internal/compiler/implementation/types/types.dart' |
| 8 show ContainerTypeMask, TypeMask; | 8 show ContainerTypeMask, TypeMask; |
| 9 | 9 |
| 10 import 'compiler_helper.dart'; | 10 import 'compiler_helper.dart'; |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 checkType('listSetInNonFinalField', typesInferrer.numType); | 217 checkType('listSetInNonFinalField', typesInferrer.numType); |
| 218 checkType('listWithChangedLength', typesInferrer.intType.nullable()); | 218 checkType('listWithChangedLength', typesInferrer.intType.nullable()); |
| 219 | 219 |
| 220 checkType('listPassedToClosure', typesInferrer.dynamicType); | 220 checkType('listPassedToClosure', typesInferrer.dynamicType); |
| 221 checkType('listReturnedFromClosure', typesInferrer.dynamicType); | 221 checkType('listReturnedFromClosure', typesInferrer.dynamicType); |
| 222 checkType('listUsedWithNonOkSelector', typesInferrer.dynamicType); | 222 checkType('listUsedWithNonOkSelector', typesInferrer.dynamicType); |
| 223 checkType('listPassedAsOptionalParameter', typesInferrer.dynamicType); | 223 checkType('listPassedAsOptionalParameter', typesInferrer.dynamicType); |
| 224 checkType('listPassedAsNamedParameter', typesInferrer.dynamicType); | 224 checkType('listPassedAsNamedParameter', typesInferrer.dynamicType); |
| 225 | 225 |
| 226 if (!allocation.contains('filled')) { | 226 if (!allocation.contains('filled')) { |
| 227 checkType('listUnset', new TypeMask.empty()); | 227 checkType('listUnset', new TypeMask.nonNullEmpty()); |
| 228 checkType('listOnlySetWithConstraint', new TypeMask.empty()); | 228 checkType('listOnlySetWithConstraint', new TypeMask.nonNullEmpty()); |
| 229 } | 229 } |
| 230 } | 230 } |
| OLD | NEW |