On Thu, Jan 22, 2026 at 9:54 PM Vinicius Hespanha Souza <[email protected]> wrote: > > I observed this weird behavior today and wanted to see if that's somehow > intended or if I found a bug. Couldn't find any other mention of it in the > list but I guess there are a lot of ways to describe it. > > I think the paste is pretty self-explanatory, but basically I can't call a > concrete type's method if i'm inside a receiver that uses an instantiated > generic with a type present in a constraint union. > > paste.sr.ht/~vhespanha/58541b8628ca7dc2509ea85fb05f83900f3295e1 > > Thanks in advance if anyone can clear that up for me.
I'm not sure but perhaps it will help to read https://go.dev/doc/faq#types_in_method_declaration . 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 [email protected]. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/CAOyqgcWERakoHUEvE1bmsS84R3sAjx9%2B8pxzHBb4CJmk9bzxnQ%40mail.gmail.com.
