mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/syntax: remove AllowTypeSets mode
The respective issue has been accepted, so we can always accept constraint literals with omitted interfaces. For #48424. Change-Id: Ia3d325401252a5a22d5ffa98d2ae6af73178dec0 Reviewed-on: https://go-review.googlesource.com/c/go/+/355709 Trust: Robert Griesemer <gri@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
b90d258b18
commit
276fb279d1
7 changed files with 9 additions and 10 deletions
|
|
@ -1820,7 +1820,7 @@ func (p *parser) paramDeclOrNil(name *Name, follow token) *Field {
|
|||
}
|
||||
|
||||
// type set notation is ok in type parameter lists
|
||||
typeSetsOk := p.mode&AllowTypeSets != 0 && follow == _Rbrack
|
||||
typeSetsOk := follow == _Rbrack
|
||||
|
||||
pos := p.pos()
|
||||
if name != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue