]> Cypherpunks repositories - gostls13.git/commit
go/printer: fix printing for possibly ambiguous type constraints
authorRobert Griesemer <gri@golang.org>
Thu, 5 May 2022 01:08:36 +0000 (18:08 -0700)
committerRobert Griesemer <gri@golang.org>
Fri, 6 May 2022 16:18:34 +0000 (16:18 +0000)
commit5fcd1badf724db853784243b29711df209976873
tree4e18572444d409da9f7148bbced8e801c6ae653c
parentea6c82845589a40c35f01122ce4e2931694ffc7f
go/printer: fix printing for possibly ambiguous type constraints

This is a port of the printer changes from CLs 402256 and 404397
in the syntax package to go/printer, with adjustments for the
different AST structure and test framework.

For #52559.

Change-Id: Ib7165979a4bd9df91f7f0f1c23b756a41ca31eb3
Reviewed-on: https://go-review.googlesource.com/c/go/+/404194
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
src/go/printer/nodes.go
src/go/printer/testdata/generics.golden
src/go/printer/testdata/generics.input