| Index: dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| diff --git a/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart b/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| index bb45083a3b197687fd74f24d44e8b2043e724c42..ca91ef69cf76e9513b032e63eda87e0237bee949 100644
|
| --- a/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| +++ b/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart
|
| @@ -3277,9 +3277,9 @@ class SsaBuilder extends ResolvedVisitor implements Visitor {
|
| return;
|
| }
|
|
|
| - if (constructor.getEnclosingClass().isAbstract(compiler) &&
|
| - constructor.isGenerativeConstructor()) {
|
| - generateAbstractClassInstantiationError(node, type.name.slowToString());
|
| + ClassElement cls = constructor.getEnclosingClass();
|
| + if (cls.isAbstract(compiler) && constructor.isGenerativeConstructor()) {
|
| + generateAbstractClassInstantiationError(node, cls.name.slowToString());
|
| return;
|
| }
|
| if (compiler.world.needsRti(constructor.enclosingElement)) {
|
|
|