Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix PackagePath Parsing for Pointer Types in type2.go #105

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

xqbumu
Copy link
Contributor

@xqbumu xqbumu commented Jan 21, 2025

This PR addresses the issue where PackagePath was not being parsed for types with reflect.Ptr. By adding a conditional check, the PackagePath is now correctly resolved from the uncommonType when typ.Kind is reflect.Ptr and typ.PackagePath is empty.

Issue #104

- When the type is a pointer, and the package path is empty, read the package path from the uncommon type.

Signed-off-by: xqbumu <xqbumu@gmail.com>
@TcM1911 TcM1911 merged commit 2cdf91f into goretk:develop Jan 24, 2025
3 checks passed
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.

2 participants