Fix to use correct target type ID

This commit is contained in:
Anders Hejlsberg 2017-08-22 17:41:07 +01:00
parent a3a2ff5f12
commit 11c4c4cd61

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);