Skip to content

Commit de9ff1b

Browse files
committed
Assert:only merge into transient symbols
1 parent 904f8df commit de9ff1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,7 @@ namespace ts {
892892
function mergeSymbol(target: Symbol, source: Symbol) {
893893
if (!(target.flags & getExcludedSymbolFlags(source.flags)) ||
894894
(source.flags | target.flags) & SymbolFlags.JSContainer) {
895+
Debug.assert(!!(target.flags & SymbolFlags.Transient));
895896
// Javascript static-property-assignment declarations always merge, even though they are also values
896897
if (source.flags & SymbolFlags.ValueModule && target.flags & SymbolFlags.ValueModule && target.constEnumOnlyModule && !source.constEnumOnlyModule) {
897898
// reset flag when merging instantiated module into value module that has only const enums

0 commit comments

Comments
 (0)