We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9649ed0 commit d7a3e0cCopy full SHA for d7a3e0c
1 file changed
src/compiler/binder.ts
@@ -3949,6 +3949,7 @@ export function getContainerFlags(node: Node): ContainerFlags {
3949
return ContainerFlags.IsContainer | ContainerFlags.IsControlFlowContainer | ContainerFlags.HasLocals | ContainerFlags.IsFunctionLike;
3950
3951
case SyntaxKind.JSDocImportTag:
3952
+ // treat as a container to prevent using an enclosing effective host, ensuring import bindings are scoped correctly
3953
return ContainerFlags.IsContainer | ContainerFlags.IsControlFlowContainer | ContainerFlags.HasLocals;
3954
3955
case SyntaxKind.FunctionExpression:
0 commit comments