8000 Actually cache regular version of fresh object literal type · creatio/TypeScript@c05650a · GitHub
[go: up one dir, main page]

Skip to content

Commit c05650a

Browse files
committed
Actually cache regular version of fresh object literal type
1 parent 758cdf3 commit c05650a

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
@@ -5507,6 +5507,7 @@ namespace ts {
55075507
regularType.constructSignatures = (<ResolvedType>type).constructSignatures;
55085508
regularType.stringIndexType = (<ResolvedType>type).stringIndexType;
55095509
regularType.numberIndexType = (<ResolvedType>type).numberIndexType;
5510+
(<FreshObjectLiteralType>type).regularType = regularType;
55105511
}
55115512
return regularType;
55125513
}

0 commit comments

Comments
 (0)
0