cmd/api: TestCheck panics on exported types that are type aliases #64958
Labels
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
NeedsFix
The path to resolution is known, but the work has not been done.
Testing
An issue that has been verified to require only test changes, not just a test failure.
Milestone
Go version
go version devel go1.22-6db1102605 Wed Jan 3 21:01:56 2024 +0000 linux/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
This was actually encountered in the Fuchsia port, but it applies here. If one introduces an exported type in the Go API that aliases a basic type, TestCheck will fail. I have a patch and test to fix this that I'll be uploading shortly once I have an issue number.
What did you expect to see?
I expected TestCheck to pass.
What did you see instead?
interface conversion: types.Type is *types.Basic, not *types.Named
The text was updated successfully, but these errors were encountered: