Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Go: Support 1.23 (Transparent aliases) #17358

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

Merged
merged 12 commits into from
Sep 6, 2024
Prev Previous commit
Next Next commit
Go: Don't extract objects for type aliases
  • Loading branch information
mbg committed Sep 5, 2024
commit 1a9608a1f5a7d4b0fea233f0bffb0721b765dda9
2 changes: 1 addition & 1 deletion 2 go/extractor/extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ func isAlias(tp types.Type) bool {
// If the given type is a type alias, this function resolves it to its underlying type.
func resolveTypeAlias(tp types.Type) types.Type {
if isAlias(tp) {
return tp.Underlying()
return types.Unalias(tp) // tp.Underlying()
}
return tp
}
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.