Skip to content

Fixed a go-to-implementations crash related to reexported type-only namespace#3197

Open
Andarist wants to merge 1 commit intomicrosoft:mainfrom
Andarist:fix/gotoimpl-reexported-type-only-namespace
Open

Fixed a go-to-implementations crash related to reexported type-only namespace#3197
Andarist wants to merge 1 commit intomicrosoft:mainfrom
Andarist:fix/gotoimpl-reexported-type-only-namespace

Conversation

@Andarist
Copy link
Contributor

fixes the crash found here: #3187 (comment)


func isRightSideOfPropertyAccess(node *ast.Node) bool {
return node.Parent.Kind == ast.KindPropertyAccessExpression && node.Parent.Name() == node
return node.Parent != nil && node.Parent.Kind == ast.KindPropertyAccessExpression && node.Parent.Name() == node
Copy link
Contributor Author

@Andarist Andarist Mar 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strada was nullish-safe here with its tryCast

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant