blob: 1fea23f51aa9d45f99b217042d954a6a14b69c29 [file] [log] [blame]
// 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.
// Test cases for error messages produced while parsing code that uses type
// parameters, without ParseTypeParams being enabled.
package p
type List[E any /* ERROR "expected ']', found any" */ ] []E
type Pair[L, /* ERROR "expected ']', found ','" */ R any] struct {
Left L
Right R
}
var _ = Pair[int, /* ERROR "expected ']' or ':', found ','" */ string]{}