-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: constant values should reported as machine values for concrete types #8718
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Comments
rsc
changed the title
go.tools/go/types: constant values should reported as machine values for concrete types
x/tools/go/types: constant values should reported as machine values for concrete types
Apr 14, 2015
griesemer
changed the title
x/tools/go/types: constant values should reported as machine values for concrete types
go/types: constant values should reported as machine values for concrete types
Jul 31, 2015
Proposal: // TypeAndValue reports the type and value (for constants)
// of the corresponding expression. If the constant is used in
// an expression at run time (for instance in an assignment),
// GoValue contains the corresponding machine (materialized)
// value. The type of GoValue is the underlying type of the
// constant (a Go basic type permissible as constant type).
type TypeAndValue struct {
mode operandMode
Type Type
Value constant.Value
GoValue interface{}
} |
Too late for Go 1.6. |
Nice to have. Not for 1.10. |
Not urgent. Moving to 1.12. |
seankhliao
added
the
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
label
Jul 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
The text was updated successfully, but these errors were encountered: