Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

affected/package: Go build failed to compile in go1.19.1 but working 1.18 and dev branch #55240

Closed
subokuma opened this issue Sep 20, 2022 · 1 comment

Comments

@subokuma
Copy link

What version of Go are you using (go version)?

$ go version
go version go1.19.1 linux/amd64
go version go1.19.1 windows/amd64

Does this issue reproduce with the latest release?

Yes, I am using Go1.19.1 and it is reproducible. But it is working in Go 1.18 of The Go Playground.

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
As it is failed in  Go Playground. I hope that go env should be required.

What did you do?

I was working on design using generic feature where I faced this issue. So I wrote dummy and small code to depict it.
https://go.dev/play/p/b8U8IoeQGWw

What did you expect to see?

It should run and print output=2

What did you see instead?

./prog.go:48:24: internal compiler error: method M1 on struct {} not found

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new

Go build failed.

@cuonglm
Copy link
Member

cuonglm commented Sep 20, 2022

Duplicated of #54225

@cuonglm cuonglm closed this as completed Sep 20, 2022
@golang golang locked and limited conversation to collaborators Sep 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants