Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/ssa/builder.dart

Issue 11308347: Fix crash on factory redirection to an unresolved class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)) {
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/resolution/members.dart ('k') | dart/tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698