compiler/cl: fix named slice type

This commit is contained in:
visualfc
2025-02-03 20:13:57 +08:00
parent e5ff33fcc6
commit 5727761551
3 changed files with 163 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
package main
type MyBytes []byte
func main() {
var i any = MyBytes{}
_, ok := i.(MyBytes)
if !ok {
panic("bad slice")
}
}