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: verify/correct actual types recorded for type parameter "constant" values #51093

Open
griesemer opened this issue Feb 9, 2022 · 0 comments
Assignees
Labels
NeedsInvestigation
Milestone

Comments

@griesemer
Copy link
Contributor

@griesemer griesemer commented Feb 9, 2022

Reminder issue.

The Info.Types map records the types and values for constant expressions.

Constant values may be representable by a type parameter, but constants cannot have type parameter type. Instead, the constant is converted into a non-constant of type parameter type. Verify that we see the expected types and values for such constants in the Info.Types map.

cc: @findleyr

@griesemer griesemer added the NeedsInvestigation label Feb 9, 2022
@griesemer griesemer added this to the Go1.19 milestone Feb 9, 2022
@griesemer griesemer self-assigned this Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsInvestigation
Projects
None yet
Development

No branches or pull requests

1 participant