You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to convert https://github.com/armon/go-radix into version supporting generics. Changed all interface{} types into generics, adding a generic "return nil" function.
Expecting to either compile successfully or compiler complains code syntax instead of crashes.
What did you see instead?
./prog.go:124:11: internal compiler error: panic: runtime error: index out of range [0] with length 0
Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new
The text was updated successfully, but these errors were encountered:
victpork
changed the title
affected/package: internal compiler error: panic: runtime error: index out of range [0] with length 0 on compiling generics code
cmd/go: internal compiler error: panic: runtime error: index out of range [0] with length 0 on compiling generics code
Mar 19, 2022
What version of Go are you using (
go version
)?1.18.0
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?
Trying to convert https://github.com/armon/go-radix into version supporting generics. Changed all
interface{}
types into generics, adding a generic "return nil" function.https://go.dev/play/p/alc4b8f2kaj or https://github.com/victpork/go-radix
What did you expect to see?
Expecting to either compile successfully or compiler complains code syntax instead of crashes.
What did you see instead?
The text was updated successfully, but these errors were encountered: