Skip to content

Commit ed453dd

Browse files
committed
Add comment
1 parent c72861e commit ed453dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11205,6 +11205,8 @@ namespace ts {
1120511205
seen = c === node;
1120611206
}
1120711207
});
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.
1120811210
if (subsequentNode && subsequentNode.pos === node.end) {
1120911211
if (subsequentNode.kind === node.kind) {
1121011212
const errorNode: Node = (<FunctionLikeDeclaration>subsequentNode).name || subsequentNode;

0 commit comments

Comments
 (0)