diff options
| author | Alan Donovan <adonovan@google.com> | 2023-10-04 10:26:17 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-10-04 16:05:21 +0000 |
| commit | 0c64ebce7e7007615aba58a19be07372f0febe69 (patch) | |
| tree | 55d4f41aed339e6687c6dc9df3e6c68cfc88d4e8 /src/runtime/testdata | |
| parent | a9036396080aa414c032550fc258919636295f0f (diff) | |
| download | go-0c64ebce7e7007615aba58a19be07372f0febe69.tar.xz | |
go/printer: parenthesize type in <-((<-chan int)(nil))
When printing synthetic syntax (not created by the parser),
the tree for <-((<-chan int)(nil)) without any ParenExpr nodes
was misprinted so that it was parsed back as a receive of
a receive. This changes emits parens around the channel type.
Fixes #63362
Change-Id: I2041ced224f0bca001cee5d37f7a127265d21020
Reviewed-on: https://go-review.googlesource.com/c/go/+/532556
Auto-Submit: Robert Griesemer <gri@google.com>
Run-TryBot: Robert Griesemer <gri@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Diffstat (limited to 'src/runtime/testdata')
0 files changed, 0 insertions, 0 deletions
