Index: pkg/compiler/lib/src/world.dart |
diff --git a/pkg/compiler/lib/src/world.dart b/pkg/compiler/lib/src/world.dart |
index c5f2755adc74489e3980835fa536e1e8a5b03fb7..d1ac08dd8e7141fea1bf6321e28f94d662b1781c 100644 |
--- a/pkg/compiler/lib/src/world.dart |
+++ b/pkg/compiler/lib/src/world.dart |
@@ -1022,8 +1022,8 @@ class ClosedWorldImpl implements ClosedWorld, ClosedWorldRefiner { |
void registerClosureClass(ClosureClassElement cls) { |
ClassHierarchyNode parentNode = getClassHierarchyNode(cls.superclass); |
- ClassHierarchyNode node = |
- _classHierarchyNodes[cls] = new ClassHierarchyNode(parentNode, cls); |
+ ClassHierarchyNode node = _classHierarchyNodes[cls] = |
+ new ClassHierarchyNode(parentNode, cls, cls.hierarchyDepth); |
for (ResolutionInterfaceType type in cls.allSupertypes) { |
ClassSet subtypeSet = getClassSet(type.element); |
subtypeSet.addSubtype(node); |