diff options
| author | Robert Griesemer <gri@golang.org> | 2014-09-08 14:54:00 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2014-09-08 14:54:00 -0700 |
| commit | ec96795ba20209263a0bbb17a073a9c028e74437 (patch) | |
| tree | 4177c8540ea8a595ba9fa73ee05ff2cb1bd683d2 /src/runtime/stack.c | |
| parent | 857d55a3f9cfc8ccc8aef24571417ae4ecabbcc9 (diff) | |
| download | go-ec96795ba20209263a0bbb17a073a9c028e74437.tar.xz | |
go/parser: fix (pathological) corner case
Inside a control clause (if ... {}), composite
literals starting with a type name must be parenthesized.
A composite literal used in the array length expression
of an array composite literal is already parenthesized.
Not a valid program, but syntactically is should
be accepted.
LGTM=adonovan
R=adonovan
CC=golang-codereviews
https://golang.org/cl/142760043
Diffstat (limited to 'src/runtime/stack.c')
0 files changed, 0 insertions, 0 deletions
