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

go/types, types2: typeparams: sanitize Scopes, etc #46151

Open
findleyr opened this issue May 13, 2021 · 0 comments
Open

go/types, types2: typeparams: sanitize Scopes, etc #46151

findleyr opened this issue May 13, 2021 · 0 comments
Assignees
Milestone

Comments

@findleyr
Copy link
Contributor

@findleyr findleyr commented May 13, 2021

Reminder issue: unexpanded *instance types, which are meant to exist only within the type checking pass, are currently leaking in a number of places, most notably within Scopes.

It might be possible to avoid sanitization entirely, by packing the *instance data into *Named, and nilling out upon expansion, similar to what is done in https://golang.org/cl/318849.

CC @griesemer

@findleyr findleyr added this to the Go1.18 milestone May 13, 2021
@findleyr findleyr self-assigned this May 13, 2021
@findleyr findleyr changed the title go/types, types2: typeparams: sanitize Scopes, Named.Orig, etc go/types, types2: typeparams: sanitize Scopes, etc May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant