Generics: Is this not supported ?

183 views
Skip to first unread message

Elemer Pixard

unread,
Oct 25, 2022, 10:37:46 AM10/25/22
to golang-nuts
I am trying to create a generic function which returns
a Container with a slice of the specified type T:
Is this not supported or am I doing something wrong ?

Regards.

Ian Lance Taylor

unread,
Oct 25, 2022, 7:54:27 PM10/25/22
to Elemer Pixard, golang-nuts
I'm not quite sure why that doesn't work. Please open a bug report at
https://go.dev/issue. Thanks.

Ian
Reply all
Reply to author
Forward
0 new messages