Skip to content

Commit 485cfee

Browse files
authored
fix: Fix assertion on exported interfaces (#1600)
1 parent bef5bea commit 485cfee

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/compiler.ts

+2
Original file line numberDiff line numberDiff line change
@@ -838,6 +838,7 @@ export class Compiler extends DiagnosticEmitter {
838838

839839
// just traverse members below
840840
case ElementKind.ENUM:
841+
case ElementKind.INTERFACE_PROTOTYPE:
841842
case ElementKind.NAMESPACE:
842843
case ElementKind.TYPEDEFINITION:
843844
case ElementKind.INDEXSIGNATURE: break;
@@ -907,6 +908,7 @@ export class Compiler extends DiagnosticEmitter {
907908
if (propertyInstance) this.compileProperty(propertyInstance);
908909
break;
909910
}
911+
case ElementKind.INTERFACE_PROTOTYPE:
910912
case ElementKind.NAMESPACE:
911913
case ElementKind.TYPEDEFINITION:
912914
case ElementKind.ENUMVALUE:

tests/compiler/exports.ts

+6
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,9 @@ export namespace outer {
5858
}
5959

6060
export {renamed_mul} from "./export";
61+
62+
// interfaces (should not error)
63+
export interface Iface {}
64+
export namespace outer {
65+
export interface Iface {}
66+
}

0 commit comments

Comments
 (0)