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 ff0644f5d0d4187255f5024dd2cf508550b0ec27..2617bba8cc4d7569e7270cf53f74148a192ec5f4 100644 |
--- a/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart |
+++ b/dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart |
@@ -3145,7 +3145,7 @@ class SsaBuilder extends ResolvedVisitor implements Visitor { |
return; |
} |
- if (type.element.modifiers.isAbstract() && |
+ if (constructor.getEnclosingClass().isAbstract(compiler) && |
constructor.isGenerativeConstructor()) { |
generateAbstractClassInstantiationError(node, type.name.slowToString()); |
return; |