Index: pkg/compiler/lib/src/types/flat_type_mask.dart |
diff --git a/pkg/compiler/lib/src/types/flat_type_mask.dart b/pkg/compiler/lib/src/types/flat_type_mask.dart |
index 1055af23b80a98a6790cf764f688e0d683595d94..bcd7c5306c07e5d47cca7cc456da4fdcb14e0939 100644 |
--- a/pkg/compiler/lib/src/types/flat_type_mask.dart |
+++ b/pkg/compiler/lib/src/types/flat_type_mask.dart |
@@ -565,13 +565,11 @@ class FlatTypeMask implements TypeMask { |
} else if (isExact) { |
return hasElementIn(self, selector, element); |
} else if (isSubclass) { |
- assert(closedWorld.isClosed); |
return hasElementIn(self, selector, element) || |
other.isSubclassOf(self) || |
closedWorld.hasAnySubclassThatMixes(self, other); |
} else { |
assert(isSubtype); |
- assert(closedWorld.isClosed); |
bool result = hasElementIn(self, selector, element) || |
other.implementsInterface(self) || |
closedWorld.hasAnySubclassThatImplements(other, base) || |
@@ -602,7 +600,7 @@ class FlatTypeMask implements TypeMask { |
ClassElement enclosingClass = element.enclosingClass; |
return hasConcreteMatch(enclosingClass.superclass, selector, world); |
} |
- return selector.appliesUntyped(element, world.backend); |
+ return selector.appliesUntyped(element); |
} |
bool needsNoSuchMethodHandling(Selector selector, ClosedWorld closedWorld) { |