go/test/gen/g034.go2

21 lines
290 B
Plaintext

// 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)
}
}