Source file src/internal/types/testdata/fixedbugs/issue67683.go
1 // Copyright 2024 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 package p 6 7 type A[P any] func() 8 9 // alias signature types 10 type B[P any] = func() 11 type C[P any] = B[P] 12 13 var _ = A /* ERROR "cannot use generic type A without instantiation" */ (nil) 14 15 // generic alias signature types must be instantiated before use 16 var _ = B /* ERROR "cannot use generic type B without instantiation" */ (nil) 17 var _ = C /* ERROR "cannot use generic type C without instantiation" */ (nil) 18