mirror of
https://github.com/golang/go
synced 2024-11-07 12:06:12 -07:00
go/types: remove stale commented-out testdata
Change-Id: I44b191204b05cd44ab6e3c662ddd05596aa3af1a Reviewed-on: https://go-review.googlesource.com/c/go/+/299831 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
7252e1e5b6
commit
62cad233a6
29
src/go/types/testdata/typeparams.go2
vendored
29
src/go/types/testdata/typeparams.go2
vendored
@ -431,32 +431,3 @@ func _[P interface{}] (x P) {
|
||||
func _[P any] (x P) {
|
||||
x.m /* ERROR type bound for P has no method m */ ()
|
||||
}
|
||||
|
||||
// automatic distinguishing between array and generic types
|
||||
// NOTE: Disabled when using unified parameter list syntax.
|
||||
/*
|
||||
const P = 10
|
||||
type A1 [P]byte
|
||||
func _(a A1) {
|
||||
assert(len(a) == 10)
|
||||
}
|
||||
|
||||
type A2 [P]struct{
|
||||
f [P]byte
|
||||
}
|
||||
func _(a A2) {
|
||||
assert(len(a) == 10)
|
||||
assert(len(a[0].f) == 10)
|
||||
}
|
||||
|
||||
type A3 [P]func(x [P]A3)
|
||||
func _(a A3) {
|
||||
assert(len(a) == 10)
|
||||
}
|
||||
|
||||
type T2[P] struct{ P }
|
||||
var _ T2[int]
|
||||
|
||||
type T3[P] func(P)
|
||||
var _ T3[int]
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user