go icon indicating copy to clipboard operation
go copied to clipboard

go/types, types2: improve API for setting type parameter constraints in importers

Open findleyr opened this issue 2 years ago • 5 comments

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

findleyr avatar Apr 01 '22 14:04 findleyr