]> Cypherpunks repositories - gostls13.git/commit
go/types: fix regression in type checking of RangeStmt.
authorAlan Donovan <adonovan@google.com>
Fri, 1 Mar 2013 01:37:25 +0000 (20:37 -0500)
committerAlan Donovan <adonovan@google.com>
Fri, 1 Mar 2013 01:37:25 +0000 (20:37 -0500)
commitabbbb4283a60df46abe11b898345bbe9bc724034
tree50850fbc6f6bb7a6a5c55e3f594a01d4ace5dd4e
parent0bc38b7fe4715512908e9a50988aa382e423a3cd
go/types: fix regression in type checking of RangeStmt.

Now that untyped expressions are done in two phases, the
identity of operand.expr is used as a map key; when reusing
operand values we now must be careful to update the
expr field.

R=gri
CC=golang-dev
https://golang.org/cl/7444049
src/pkg/go/types/stmt.go