]> Cypherpunks repositories - gostls13.git/commit
go/types: fix scope extents for range and type switch variables
authorRobert Griesemer <gri@golang.org>
Wed, 17 Aug 2016 22:35:15 +0000 (15:35 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 18 Aug 2016 20:07:05 +0000 (20:07 +0000)
commitfd8028dec92166545d080de99021c9c51f05c670
tree3cff3234218d5370749e6ebd2ac349e99124157c
parent604efe128195c1fbb1d14cbd36bf681fcff723a3
go/types: fix scope extents for range and type switch variables

The changes match the existing compilers, and assume an adjusted
spec (per issue #16794).

Fixes #15686.

Change-Id: I72677ce75888c41a8f3c2963117a2f2d5501c42b
Reviewed-on: https://go-review.googlesource.com/27290
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
doc/go_spec.html
src/go/types/api_test.go
src/go/types/stmt.go