Addressing CR feedback

This commit is contained in:
Anders Hejlsberg
2014-11-03 13:50:41 -08:00
parent edb6543354
commit b3ef9622a7
2 changed files with 22 additions and 12 deletions

View File

@@ -4073,8 +4073,7 @@ module ts {
inferFromTypes(source, t);
}
}
// If no inferences were produced above and union contains a single naked type parameter,
// make a secondary inference to that type parameter
// If union contains a single naked type parameter, make a secondary inference to that type parameter
if (typeParameterCount === 1) {
inferiority++;
inferFromTypes(source, typeParameter);