Skip to content

Commit 398d3aa

Browse files
author
Andy Hanson
committed
Symbol table for homomorphic mapped type: Don't needlessly create twice
1 parent d9b459b commit 398d3aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10022,7 +10022,7 @@ namespace ts {
1002210022
const templateType = getTemplateTypeFromMappedType(target);
1002310023
const readonlyMask = target.declaration.readonlyToken ? false : true;
1002410024
const optionalMask = target.declaration.questionToken ? 0 : SymbolFlags.Optional;
10025-
const members = createSymbolTable(properties);
10025+
const members = createMap<Symbol>();
1002610026
for (const prop of properties) {
1002710027
const inferredPropType = inferTargetType(getTypeOfSymbol(prop));
1002810028
if (!inferredPropType) {

0 commit comments

Comments
 (0)