Open
Description
https://go.dev/play/p/zU0yk_nHw0_w
The above test program demonstrates the semantics of var t T; _ = t.M
where T is either a type alias of one of a few types (I
, struct { I }
, or struct { *X }
); or it's a type parameter instantiated as that same type.
I think the intended spec semantics are that the corresponding specific and generic cases should always match.
Further, under the interpretation in #6475 (comment), I believe that all cases should panic.
/cc @griesemer @ianlancetaylor for confirming expected behavior
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo