On Wed, Mar 16, 2022 at 9:44 PM Michael Andersen <mich...@steelcode.com> wrote:
>
> Is there a way to constrain one parameter to be assignable to another?

Currently there is not.  We're not sure how to handle that case.  See
https://go.googlesource.com/proposal/+/refs/heads/master/design/43651-type-parameters.md#no-way-to-express-convertibility
.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWJjf6CV3xi-VzK%3DXBqNZCHbChe_n8eDWnbFd5F6dwEVQ%40mail.gmail.com.

Reply via email to