Source file test/typeparam/issue51236.go
1 // run 2 3 // Copyright 2022 The Go Authors. All rights reserved. 4 // Use of this source code is governed by a BSD-style 5 // license that can be found in the LICENSE file. 6 7 package main 8 9 type I interface { 10 []byte 11 } 12 13 func F[T I]() { 14 var t T 15 explodes(t) 16 } 17 18 func explodes(b []byte) {} 19 20 func main() { 21 22 } 23