Re: [go-nuts] [generics] Constraint type inference not working

2020-08-18 Thread jake...@gmail.com
Submitted https://github.com/golang/go/issues/40859

On Tuesday, August 18, 2020 at 12:59:21 AM UTC-4 Ian Lance Taylor wrote:

> On Sun, Aug 16, 2020 at 7:42 AM jake...@gmail.com  
> wrote:
> >
> > 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?
>
> I'm not sure. Can you open a bug report? Thanks.
>
> 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/0c180e02-ac28-4c20-b42c-50ee51bdd7dbn%40googlegroups.com.


Re: [go-nuts] [generics] Constraint type inference not working

2020-08-17 Thread Ian Lance Taylor
On Sun, Aug 16, 2020 at 7:42 AM jake...@gmail.com  wrote:
>
> 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?

I'm not sure.  Can you open a bug report?  Thanks.

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/CAOyqgcXCAMYzsafxAnkWhmP0KQMc07yrWVu%3DTtEhk0T_-c20iA%40mail.gmail.com.


[go-nuts] [generics] Constraint type inference not working

2020-08-16 Thread jake...@gmail.com
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?

-- 
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/3bbfb679-c1fe-4179-bfb4-17e127d8ee2cn%40googlegroups.com.