Skip to content

Commit c05650a

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

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)