Skip to content

Commit

Permalink
fix: interface inheritance cause crash (#2756)
Browse files Browse the repository at this point in the history
  • Loading branch information
HerrCai0907 authored Oct 1, 2023
1 parent 58ed2b2 commit a27258d
Show file tree
Hide file tree
Showing 4 changed files with 388 additions and 170 deletions.
2 changes: 1 addition & 1 deletion src/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3060,7 +3060,7 @@ export class Resolver extends DiagnosticEmitter {
assert(!unboundOverridePrototype.isBound);
let unboundOverrideParent = unboundOverridePrototype.parent;
let classInstances: Map<string,Class> | null;
assert(unboundOverrideParent.kind == ElementKind.ClassPrototype);
assert(unboundOverrideParent.kind == ElementKind.ClassPrototype || unboundOverrideParent.kind == ElementKind.InterfacePrototype);
classInstances = (<ClassPrototype>unboundOverrideParent).instances;
if (!classInstances) continue;
for (let _values = Map_values(classInstances), j = 0, l = _values.length; j < l; ++j) {
Expand Down
Loading

0 comments on commit a27258d

Please sign in to comment.