]> Cypherpunks repositories - gostls13.git/commit
go/types: use same local variable consistently (minor cleanup)
authorRobert Griesemer <gri@golang.org>
Tue, 14 Apr 2020 04:57:41 +0000 (21:57 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 14 Apr 2020 05:11:01 +0000 (05:11 +0000)
commitf3424ceff2fa48615ed98580f337ab044925c940
tree7cf7844fc30745b5c91b9b70703b33057c8b0560
parent201cb046b745f8bb00e3d382290190c74ba7b7e1
go/types: use same local variable consistently (minor cleanup)

Currently this CL has no effect because V == x.typ in the affected
code. But if we should ever manipulate V (e.g., to support some form
of lazy evaluation of the type), not using V consistently would
lead to a subtle bug.

Change-Id: I465e72d18bbd2b6cd8fcbd746e0d28d14f758c03
Reviewed-on: https://go-review.googlesource.com/c/go/+/228105
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/go/types/operand.go