Fix to use correct target type ID

This commit is contained in:
Anders Hejlsberg committed 2017-08-22 17:41:07 +01:00
1 parent a3a2ff5f12
commit 11c4c4cd61
1 file changed
+1 -1
+1 -1
View File
@@ -9780,7 +9780,7 @@ namespace ts {
}
function getTypeReferenceId(type: TypeReference, typeParameters: Type[]) {
let result = "" + type.id;
let result = "" + type.target.id;
for (const t of type.typeArguments) {
if (isUnconstrainedTypeParameter(t)) {
let index = indexOf(typeParameters, t);