Skip to content

Commit 184e1c7

Browse files
committed
Populate both property caches when skipObjectFunctionPropertyAugment: true
1 parent d641df8 commit 184e1c7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/compiler/checker.ts

+4
Original file line numberDiff line numberDiff line change
@@ -14124,6 +14124,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
1412414124
type.propertyCacheWithoutObjectFunctionPropertyAugment ||= createSymbolTable() :
1412514125
type.propertyCache ||= createSymbolTable();
1412614126
properties.set(name, property);
14127+
if (skipObjectFunctionPropertyAugment && !type.propertyCache?.get(name)) {
14128+
const properties = type.propertyCache ||= createSymbolTable();
14129+
properties.set(name, property);
14130+
}
1412714131
}
1412814132
}
1412914133
return property;

0 commit comments

Comments
 (0)