1
0
mirror of https://github.com/golang/go synced 2024-11-15 06:40:37 -07:00
go/test/typeparam/issue47631.go
Cuong Manh Le 76c1a501a5 test: enable issue47631.go for Unified IR
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>
2022-09-30 23:00:20 +00:00

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
}