blob: 83a1cc2e79e73e1881a22c2dc3971be567ce9912 [file] [log] [blame]
// compile
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package p
type I interface{}
type S[T any] struct {
*T
}
func F() {
v := S[I]{}
if v.T != nil {
panic(v)
}
}