2022-09-30 09:34:42 -06:00
|
|
|
// compile
|
2021-11-15 11:01:43 -07:00
|
|
|
|
|
|
|
// Copyright 2021 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
|
|
|
|
|
|
|
|
func g[T any]() {
|
2022-09-30 09:34:42 -06:00
|
|
|
type U []T
|
|
|
|
type V []int
|
2021-11-15 11:01:43 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type S[T any] struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s S[T]) m() {
|
2022-09-30 09:34:42 -06:00
|
|
|
type U []T
|
|
|
|
type V []int
|
2021-11-15 11:01:43 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
func f() {
|
2022-09-30 09:34:42 -06:00
|
|
|
type U []int
|
2021-11-15 11:01:43 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
type X struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x X) m() {
|
2022-09-30 09:34:42 -06:00
|
|
|
type U []int
|
2021-11-15 11:01:43 -07:00
|
|
|
}
|