Thought if I went to the next step it would solve the first but didn't work. This version is still cleaner than above once I can get some help on what I am doing wrong on the method call. Updated version: https://go2goplay.golang.org/p/b7ZrYd2zI17
Side note: the methods are not using constraints as of now, just basic interface so more confusing on why it would expect those methods to require instantiation. Thanks! David On Friday, January 1, 2021 at 9:06:15 AM UTC-6 da...@suarezhouse.net wrote: > I thought I read the generics doc well but.. :-) Help is appreciated: > > I instantiate a generic table example here in line 41: > https://go2goplay.golang.org/p/SadxA0khqx7 > > Then I use it in lines 42 and 43. > > The errors I get are below: > prog.go2:67:10: cannot use generic type Table[colA, colB, colC > fmt.Stringer] without instantiation > prog.go2:72:10: cannot use generic type Table[colA, colB, colC > fmt.Stringer] without instantiation > > I am using the same table. The method belongs to the struct so I would > think should be considered instantiated and that I wouldn't have to repeat > in lines 42 and 43 the types. > > Is this a bug and it should infer since created in line 41 or what did I > misunderstand in the doc? > > Thanks in advance for the help! > David > -- 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/c23dea98-9035-40ea-941d-7a297d4e55d7n%40googlegroups.com.