Debian Codegraph @

go/ir/testdata/fixedbugs/issue73871.go

raw
1 package issue73871
2
3 // Regression test for panic instantiating signature for a call append(x, y...).
4
5 func f[T ~[]byte](y T) {
6 _ = append([]byte(nil), y...)
7 }
8
9 func _() {
10 type B []byte
11 f(B(nil)) // must not panic
12 }