cmd/compile: nil pointer dereference #57715
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
generics
Issue is related to generics
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I've written a simple reproduce code. Why not read the code?
The following code will cause 'internal compiler error'.
playground link
After add this method, everything looks good.
playground link
What did you expect to see?
I expected to see "Hello!" in my terminal without adding method.
What did you see instead?
I saw this message when I compiled 'panic code'.
The text was updated successfully, but these errors were encountered: