github.com/goplus/igop@v0.25.0/testdata/reflect.go (about) 1 package main 2 3 import "reflect" 4 5 func main() { 6 // Regression test for issue 9462. 7 got := reflect.SliceOf(reflect.TypeOf(byte(0))).String() 8 if got != "[]uint8" && got != "[]byte" { // result varies by toolchain 9 println("BUG: " + got) 10 } 11 }