Index: pkg/compiler/lib/src/world.dart |
diff --git a/pkg/compiler/lib/src/world.dart b/pkg/compiler/lib/src/world.dart |
index 8fd7e6c9724f481bbbd36bf24bf96d83c1769c63..2e660efecbce34f43dd50a11cd824434b1267883 100644 |
--- a/pkg/compiler/lib/src/world.dart |
+++ b/pkg/compiler/lib/src/world.dart |
@@ -310,6 +310,7 @@ class World implements ClassWorld { |
/// Returns `true` if all directly instantiated classes that implement [cls] |
/// extend it. |
bool hasOnlySubclasses(ClassElement cls) { |
Johnni Winther
2015/12/16 09:07:08
Add a TODO for me to move this to [ClassSet].
Siggi Cherem (dart-lang)
2015/12/17 01:02:57
Done.
|
+ if (cls == objectClass) return true; |
Iterable<ClassElement> subtypes = strictSubtypesOf(cls); |
if (subtypes == null) return true; |
Iterable<ClassElement> subclasses = strictSubclassesOf(cls); |