mirror of
https://github.com/golang/go
synced 2024-11-22 10:44:41 -07:00
76c1a501a5
Updates #53058 Change-Id: Ieaa500bea11f26f9a039196592bea67405bdf0ad Reviewed-on: https://go-review.googlesource.com/c/go/+/437215 Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
32 lines
385 B
Go
32 lines
385 B
Go
// compile
|
|
|
|
// 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]() {
|
|
type U []T
|
|
type V []int
|
|
}
|
|
|
|
type S[T any] struct {
|
|
}
|
|
|
|
func (s S[T]) m() {
|
|
type U []T
|
|
type V []int
|
|
}
|
|
|
|
func f() {
|
|
type U []int
|
|
}
|
|
|
|
type X struct {
|
|
}
|
|
|
|
func (x X) m() {
|
|
type U []int
|
|
}
|