• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2021 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
5package p
6
7type _ func /* ERROR function type must have no type parameters */ [ /* ERROR empty type parameter list */ ]()
8type _ func /* ERROR function type must have no type parameters */ [ x /* ERROR missing type constraint */ ]()
9type _ func /* ERROR function type must have no type parameters */ [P any]()
10
11var _ = (func /* ERROR function type must have no type parameters */ [P any]())(nil)
12var _ = func /* ERROR function type must have no type parameters */ [P any]() {}
13
14type _ interface{
15        m /* ERROR interface method must have no type parameters */ [P any]()
16}
17