| Index: lib/compiler/implementation/ssa/builder.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/ssa/builder.dart (revision 6750)
|
| +++ lib/compiler/implementation/ssa/builder.dart (working copy)
|
| @@ -2155,7 +2155,11 @@
|
| Element originalElement = elements[node];
|
| if (originalElement.isGenerativeConstructor()
|
| && originalElement.enclosingElement === compiler.listClass) {
|
| - type = HType.MUTABLE_ARRAY;
|
| + if (node.arguments.isEmpty()) {
|
| + type = HType.MUTABLE_ARRAY;
|
| + } else {
|
| + type = HType.READABLE_ARRAY;
|
| + }
|
| } else if (element.isGenerativeConstructor()) {
|
| ClassElement cls = element.enclosingElement;
|
| type = new HNonPrimitiveType(cls.type);
|
|
|