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

Unified Diff: pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart

Issue 1352533002: Enqueue superclasses instead of supertypes. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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: pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
diff --git a/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart b/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
index 474f71f200c1f23e74b80a53ac1be843aa3f04dc..4942e1d8771279a65c9087801746200499fd5487 100644
--- a/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
+++ b/pkg/compiler/lib/src/inferrer/concrete_types_inferrer.dart
@@ -450,6 +450,8 @@ class ConcreteTypeSystem extends TypeSystem<ConcreteType> {
} else if (element == compiler.backend.intImplementation) {
return new TypeMask.nonNullSubclass(compiler.backend.intImplementation,
compiler.world);
+ } else if (!compiler.world.isInstantiated(element.declaration)) {
+ return new TypeMask.nonNullSubtype(element.declaration, compiler.world);
} else {
return new TypeMask.nonNullExact(element.declaration, compiler.world);
}

Powered by Google App Engine
This is Rietveld 408576698