mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Revert the stuffing of instantiated signatures back into the candidates array
This commit is contained in:
1 parent
44f1ab07bf
commit
e8d5fdc286
7 files changed
+42
-43
No files matched your search
@@ -5234,7 +5234,7 @@ module ts {
|
||||
}
|
||||
var index = excludeArgument ? indexOf(excludeArgument, true) : -1;
|
||||
if (index < 0) {
|
||||
return candidates[i] = candidate;
|
||||
return candidate;
|
||||
}
|
||||
excludeArgument[index] = false;
|
||||
}
|
||||
@@ -5246,7 +5246,6 @@ module ts {
|
||||
// arguments, then we can only report an error based on the type arguments.
|
||||
if (originalCandidate.typeParameters) {
|
||||
var instantiatedCandidate = candidate;
|
||||
candidates[i] = instantiatedCandidate;
|
||||
if (typeArgumentsAreValid) {
|
||||
candidateForArgumentError = instantiatedCandidate;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user