func (h *holder[alpha]) processAlpha()

this doesn't constrain the type to alpha, you've just renamed the type
constraint of your holder type to shadow the alpha type declaration.

- sean

On Fri, Jan 23, 2026, 14:54 Vinicius Hespanha Souza <[email protected]>
wrote:

> Good evening.
>
> 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.
>
> --
> 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/77763fcc-b769-4b69-af54-75814aa3beb0n%40googlegroups.com
> <https://groups.google.com/d/msgid/golang-nuts/77763fcc-b769-4b69-af54-75814aa3beb0n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAGabyPp2WLRbqZjUgSXAi59a3XfYqJzxCYc8M%2B31qWqtn223HQ%40mail.gmail.com.

Reply via email to