]> Cypherpunks repositories - gostls13.git/commit
go/printer: do not remove parens around composite literals starting with a type name...
authorRobert Griesemer <gri@golang.org>
Mon, 1 Nov 2010 22:08:03 +0000 (15:08 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 1 Nov 2010 22:08:03 +0000 (15:08 -0700)
commit7996924c89a22efa3603fa6c181ea26aeccbdbd3
tree28e32cdf9d60934b96607eefa599ccb40c9480d8
parent9384fdc96aca890c11ff964738f4c9a9bb6ac8dd
go/printer: do not remove parens around composite literals starting with a type name in control clauses
(even when they are nested inside an expression).

Fixes #1243.

R=rsc
CC=golang-dev
https://golang.org/cl/2817041
src/pkg/go/printer/nodes.go
src/pkg/go/printer/testdata/statements.golden
src/pkg/go/printer/testdata/statements.input