| Index: lib/compiler/implementation/ssa/builder.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/ssa/builder.dart (revision 6748)
|
| +++ lib/compiler/implementation/ssa/builder.dart (working copy)
|
| @@ -2153,13 +2153,12 @@
|
| }
|
| HType type = HType.UNKNOWN;
|
| Element originalElement = elements[node];
|
| - if (originalElement.isGenerativeConstructor()) {
|
| - ClassElement cls = originalElement.enclosingElement;
|
| - if (cls === compiler.listClass) {
|
| - type = HType.MUTABLE_ARRAY;
|
| - } else {
|
| - type = new HNonPrimitiveType(cls.type);
|
| - }
|
| + if (originalElement.isGenerativeConstructor()
|
| + && originalElement.enclosingElement === compiler.listClass) {
|
| + type = HType.MUTABLE_ARRAY;
|
| + } else if (element.isGenerativeConstructor()) {
|
| + ClassElement cls = element.enclosingElement;
|
| + type = new HNonPrimitiveType(cls.type);
|
| }
|
| push(new HInvokeStatic(selector, inputs, type));
|
| } else {
|
|
|