Skip to content

Commit a27258d

Browse files
authored
fix: interface inheritance cause crash (#2756)
1 parent 58ed2b2 commit a27258d

File tree

4 files changed

+388
-170
lines changed

4 files changed

+388
-170
lines changed

src/resolver.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3060,7 +3060,7 @@ export class Resolver extends DiagnosticEmitter {
30603060
assert(!unboundOverridePrototype.isBound);
30613061
let unboundOverrideParent = unboundOverridePrototype.parent;
30623062
let classInstances: Map<string,Class> | null;
3063-
assert(unboundOverrideParent.kind == ElementKind.ClassPrototype);
3063+
assert(unboundOverrideParent.kind == ElementKind.ClassPrototype || unboundOverrideParent.kind == ElementKind.InterfacePrototype);
30643064
classInstances = (<ClassPrototype>unboundOverrideParent).instances;
30653065
if (!classInstances) continue;
30663066
for (let _values = Map_values(classInstances), j = 0, l = _values.length; j < l; ++j) {

0 commit comments

Comments
 (0)