Debian Codegraph @

src/internal/types/testdata/fixedbugs/issue75885.go

raw
1 // -gotypesalias=1
2
3 // Copyright 2025 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
6
7 package p
8
9 type A[P any] = P // ERROR "cannot use type parameter declared in alias declaration as RHS"
10
11 func _[P any]() {
12 type A[P any] = P // ERROR "cannot use type parameter declared in alias declaration as RHS"
13 type B = P
14 type C[Q any] = P
15 }