Index: pkg/analyzer/lib/src/dart/element/element.dart |
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart |
index 820a132f4dd188683e1ae12fb7864224d3b777c8..a3bf6b4e7c1b93122b635c11b0401c395eed275c 100644 |
--- a/pkg/analyzer/lib/src/dart/element/element.dart |
+++ b/pkg/analyzer/lib/src/dart/element/element.dart |
@@ -743,6 +743,7 @@ class ClassElementImpl extends AbstractClassElementImpl |
ResynthesizerContext context = enclosingUnit.resynthesizerContext; |
_interfaces = _unlinkedClass.interfaces |
.map((EntityRef t) => context.resolveTypeRef(t, this)) |
+ .where((DartType type) => type is InterfaceType) |
.toList(growable: false); |
} |
return _interfaces ?? const <InterfaceType>[]; |
@@ -849,6 +850,7 @@ class ClassElementImpl extends AbstractClassElementImpl |
ResynthesizerContext context = enclosingUnit.resynthesizerContext; |
_mixins = _unlinkedClass.mixins |
.map((EntityRef t) => context.resolveTypeRef(t, this)) |
+ .where((DartType type) => type is InterfaceType) |
.toList(growable: false); |
} |
return _mixins ?? const <InterfaceType>[]; |