1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:44:45 -07:00
go/go
Alan Donovan 86040b7505 go/types: close scope for each "select" case after its body
Classic Go pitfall: "defer" in a loop does not do what you might expect.

+ test case

Fixes issue 9570
Fixes issue 9569

Change-Id: Iec05420872ef71190083a7192f76c92f54f4a2a1
Reviewed-on: https://go-review.googlesource.com/2655
Reviewed-by: Robert Griesemer <gri@golang.org>
2015-01-12 18:04:11 +00:00
..
buildutil tools: add import comments. 2014-12-09 22:42:16 +00:00
callgraph tools: add import comments. 2014-12-09 22:42:16 +00:00
exact tools: add import comments. 2014-12-09 22:42:16 +00:00
gccgoimporter tools: add import comments. 2014-12-09 22:42:16 +00:00
gcimporter tools: add import comments. 2014-12-09 22:42:16 +00:00
importer tools: add import comments. 2014-12-09 22:42:16 +00:00
loader all: address vet reports 2014-12-29 06:08:34 +00:00
pointer go/types: modify Eval, EvalNode to return a TypeAndValue 2014-12-30 17:21:45 +00:00
ssa go/ssa: add position info to all Load/Store instructions 2014-12-29 23:03:32 +00:00
types go/types: close scope for each "select" case after its body 2015-01-12 18:04:11 +00:00
vcs go/vcs: fix bug in remote package discovery 2015-01-10 08:10:09 +00:00