-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/compile: panic in generics (types from different scopes on interface conversion) #53376
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Comments
Looks to be working at tip? |
ernado@nexus:/src/ernado/types-from-different-scope$ /src/go/bin/go version
go version devel go1.19-cad477c922 Tue Jun 14 14:49:40 2022 +0000 linux/amd64
ernado@nexus:/src/ernado/types-from-different-scope$ /src/go/bin/go test
--- FAIL: TestBad (0.00s)
panic: interface conversion: pkg.Appender[go.shape.string_0] is pkg.StrAppender, not pkg.StrAppender (types from different scopes) [recovered]
panic: interface conversion: pkg.Appender[go.shape.string_0] is pkg.StrAppender, not pkg.StrAppender (types from different scopes)
goroutine 7 [running]:
testing.tRunner.func1.2({0x503040, 0xc0000103f0})
/usr/local/go/src/testing/testing.go:1389 +0x24e
testing.tRunner.func1()
/usr/local/go/src/testing/testing.go:1392 +0x39f
panic({0x503040, 0xc0000103f0})
/usr/local/go/src/runtime/panic.go:838 +0x207
types-from-different-scope.appendAllBad[...](...)
/src/ernado/types-from-different-scope/main_test.go:26
types-from-different-scope.TestBad(0xc0000e4340?)
/src/ernado/types-from-different-scope/main_test.go:38 +0x2e
testing.tRunner(0xc0000e4680, 0x528670)
/usr/local/go/src/testing/testing.go:1439 +0x102
created by testing.(*T).Run
/usr/local/go/src/testing/testing.go:1486 +0x35f
exit status 2
FAIL types-from-different-scope 0.003s Not working on cad477c (but works on playground "dev branch" tho) My repro repo https://github.com/ernado/types-from-different-scope
|
Working at tip, so closing. Thanks. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
FrozenDueToAge
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
)?go version go1.18.3 linux/amd64
Does this issue reproduce with the latest release?
Yes, also onWorks on tipgo version devel go1.19-55590f3a2b
But works on 1.18.2, so prorably a regression?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/WSzdK-I-g2o
What did you expect to see?
No panic
What did you see instead?
The text was updated successfully, but these errors were encountered: