go/types: export a function for representability #28267
Labels
FeatureRequest
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
Export something like the
representableConst
function for testing whether aconstant.Value
is representable by a type.My use case: I'm writing an API compatibility checker, and I want to report whether a changed constant value can still be used with all the types that it was previously.
The text was updated successfully, but these errors were encountered: