diff options
| author | Robert Griesemer <gri@golang.org> | 2011-08-23 09:22:41 -0700 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2011-08-23 09:22:41 -0700 |
| commit | f6d536bea4efac42c5baee5188293ad7be2f70c3 (patch) | |
| tree | 26a218870ab5aa6822d1c1b70bb720aecfe48bdf /src/pkg/runtime/runtime.c | |
| parent | f0ef4f474620ed95a7572c579689f262e79a724f (diff) | |
| download | go-f6d536bea4efac42c5baee5188293ad7be2f70c3.tar.xz | |
go/parser: fix type switch scoping
Introduce extra scope for the variable declared by a
TypeSwitchGuard so that it doesn't conflict with vars
declared by the initial SimpleStmt of a type switch.
This is a replacement for CL 4896053 which caused
a build breakage.
Also:
- explicitly detect type switches (as opposed to detecting
expression switches and then do extra testing for type switches)
- fix all outstanding TODOs in parser.go
- ran all tests
R=rsc
CC=golang-dev
https://golang.org/cl/4914044
Diffstat (limited to 'src/pkg/runtime/runtime.c')
0 files changed, 0 insertions, 0 deletions
