Re: [go-nuts] [Generics] function aliasing via variables broken for generic functions.

2020-07-24 Thread Ian Lance Taylor
On Fri, Jul 24, 2020 at 9:15 AM binary cat wrote: > > Doing `var F = Foo` (where `Foo` is a generic function) fails with an error > like this: `prog.go2:21:9: cannot use generic function Foo (value of type > func(type T1, T2)(fst T1, snd T2) Bar(T1, T2)) without instantiation in > variable decl

[go-nuts] [Generics] function aliasing via variables broken for generic functions.

2020-07-24 Thread binary cat
Doing `var F = Foo` (where `Foo` is a generic function) fails with an error like this: `prog.go2:21:9: cannot use generic function Foo (value of type func(type T1, T2)(fst T1, snd T2) Bar(T1, T2)) without instantiation in variable declaration`. Trying `var F = Foo[int,int]` fails with an error like