We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8a1fa2 commit 2e9a20fCopy full SHA for 2e9a20f
src/compiler/checker.ts
@@ -4516,11 +4516,9 @@ module ts {
4516
// declare function f(a: { xa: number; xb: number; });
4517
// f({ |
4518
if (!fullTypeCheck) {
4519
- if (candidates.length) {
4520
- for (var i = 0; i < candidates.length; i++) {
4521
- if (signatureHasCorrectArity(node, candidates[i])) {
4522
- return candidates[i];
4523
- }
+ for (var i = 0, n = candidates.length; i < n; i++) {
+ if (signatureHasCorrectArity(node, candidates[i])) {
+ return candidates[i];
4524
}
4525
4526
0 commit comments