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

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

Issue 12324012: Try to not use incomplete Dart types in HType. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 months 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: sdk/lib/_internal/compiler/implementation/ssa/builder.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/builder.dart (revision 18754)
+++ sdk/lib/_internal/compiler/implementation/ssa/builder.dart (working copy)
@@ -248,7 +248,9 @@
Element element = closureData.thisElement;
ClassElement cls = element.enclosingElement.getEnclosingClass();
Compiler compiler = builder.compiler;
- DartType type = cls.computeType(compiler);
+ // Use the raw type because we don't have the type context for the
+ // type parameters.
+ DartType type = cls.rawType;
if (compiler.world.isUsedAsMixin(cls)) {
// If the enclosing class is used as a mixin, [:this:] can be
// of the class that mixins the enclosing class. These two

Powered by Google App Engine
This is Rietveld 408576698