Skip to content

Commit 2510177

Browse files
ahejlsbergsandersn
authored andcommitted
Fix to use correct target type ID
1 parent 4925f2f commit 2510177

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
@@ -9775,7 +9775,7 @@ namespace ts {
97759775
}
97769776

97779777
function getTypeReferenceId(type: TypeReference, typeParameters: Type[]) {
9778-
let result = "" + type.id;
9778+
let result = "" + type.target.id;
97799779
for (const t of type.typeArguments) {
97809780
if (isUnconstrainedTypeParameter(t)) {
97819781
let index = indexOf(typeParameters, t);

0 commit comments

Comments
 (0)