mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Addressing CR feedback
This commit is contained in:
1 parent
edb6543354
commit
b3ef9622a7
2 files changed
+22
-12
No files matched your search
@@ -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