Skip to content

Commit def283d

Browse files
authored
Don't report errors on {@link foo.bar} references (#1941)
1 parent 18eabdd commit def283d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/checker/checker.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11081,6 +11081,9 @@ func (c *Checker) checkPrivateIdentifierPropertyAccess(leftType *Type, right *as
1108111081
}
1108211082

1108311083
func (c *Checker) reportNonexistentProperty(propNode *ast.Node, containingType *Type) {
11084+
if ast.IsJSDocNameReferenceContext(propNode) {
11085+
return
11086+
}
1108411087
var diagnostic *ast.Diagnostic
1108511088
if !ast.IsPrivateIdentifier(propNode) && containingType.flags&TypeFlagsUnion != 0 && containingType.flags&TypeFlagsPrimitive == 0 {
1108611089
for _, subtype := range containingType.Types() {

0 commit comments

Comments
 (0)