diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index c48a417f9b8..a0149770bf7 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -3796,7 +3796,7 @@ module ts { // A nit here is that we reorder only signatures that belong to the same symbol, // so order how inherited signatures are processed is still preserved. // interface A { (x: string): void } - // interface B { (x: 'foo'): string } + // interface B extends A { (x: 'foo'): string } // var b: B; // b('foo') // <- here overloads should be processed as [(x:'foo'): string, (x: string): void] function collectCandidates(node: CallExpression, signatures: Signature[]): Signature[]{