Groups
Sign in
Groups
golang-nuts
Conversations
About
Send feedback
Help
[generics] Constraint type inference not working
147 views
Skip to first unread message
jake...@gmail.com
unread,
Aug 16, 2020, 10:41:48 AM
8/16/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
8/18/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
8/18/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
Submitted
https://github.com/golang/go/issues/40859
Reply all
Reply to author
Forward
0 new messages