mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Addressing CR feedback
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user