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 c72861e commit ed453ddCopy full SHA for ed453dd
src/compiler/checker.ts
@@ -11205,6 +11205,8 @@ namespace ts {
11205
seen = c === node;
11206
}
11207
});
11208
+ // We may be here because of some extra junk between overloads that could not be parsed into a valid node.
11209
+ // In this case the subsequent node is not really consecutive (.pos !== node.end), and we must ignore it here.
11210
if (subsequentNode && subsequentNode.pos === node.end) {
11211
if (subsequentNode.kind === node.kind) {
11212
const errorNode: Node = (<FunctionLikeDeclaration>subsequentNode).name || subsequentNode;
0 commit comments