[generics] Constraint type inference not working

147 views
Skip to first unread message

jake...@gmail.com

unread,
Aug 16, 2020, 10:41:48 AM8/16/20
to golang-nuts
When I try the example from the "Constraint type inference" section of the Draft Design: https://go.googlesource.com/proposal/+/refs/heads/master/design/go2draft-type-parameters.md#constraint-type-inference it does not seem to actually work:

https://go2goplay.golang.org/p/pfq3QV6gdgf

What am I missing?

Ian Lance Taylor

unread,
Aug 18, 2020, 12:59:21 AM8/18/20
to jake...@gmail.com, golang-nuts
I'm not sure. Can you open a bug report? Thanks.

Ian

jake...@gmail.com

unread,
Aug 18, 2020, 9:30:55 AM8/18/20
to golang-nuts
Reply all
Reply to author
Forward
0 new messages