src/internal/types/testdata/fixedbugs/issue66323.go
raw| 1 | // Copyright 2024 The Go Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style |
| 3 | // license that can be found in the LICENSE file. |
| 4 | |
| 5 | package p |
| 6 | |
| 7 | import "time" |
| 8 | |
| 9 | // This type declaration must not cause problems with |
| 10 | // the type validity checker. |
| 11 | |
| 12 | type S[T any] struct { |
| 13 | a T |
| 14 | b time.Time |
| 15 | } |
| 16 | |
| 17 | var _ S[time.Time] |