Skip to content

Commit 8991502

Browse files
committed
Only bind param tags inside callback tags
1 parent 2ce53ba commit 8991502

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/compiler/binder.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2618,6 +2618,9 @@ namespace ts {
26182618
}
26192619

26202620
function bindParameter(node: ParameterDeclaration | JSDocParameterTag) {
2621+
if (node.kind === SyntaxKind.JSDocParameterTag && container.kind !== SyntaxKind.JSDocSignature) {
2622+
return;
2623+
}
26212624
if (inStrictMode && !(node.flags & NodeFlags.Ambient)) {
26222625
// It is a SyntaxError if the identifier eval or arguments appears within a FormalParameterList of a
26232626
// strict mode FunctionLikeDeclaration or FunctionExpression(13.1)

0 commit comments

Comments
 (0)