go
go copied to clipboard
go/types, types2: improve API for setting type parameter constraints in importers
As we saw in #51219, the fact that SetConstraint eagerly computes the constraint type set makes the API awkward to use for importers.
We should investigate if this API restriction can be removed or improved.
CC @griesemer