]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: revert change to "bound" in typecheckarraylit
authorCuong Manh Le <cuong.manhle.vn@gmail.com>
Fri, 1 Nov 2019 02:13:40 +0000 (09:13 +0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 1 Nov 2019 22:04:05 +0000 (22:04 +0000)
commit130f3c061765f4f22da23ebf2fd4f7d0b137d826
tree4b3887c0783d8fb76c3b4c36f015202767f48cd8
parent9bde9b4d1561ed915904a4f64764076dcfe58419
cmd/compile: revert change to "bound" in typecheckarraylit

In CL 204617, I intend to make "bound" parameter to have special meaning
in typecheckarraylit, so we can distinguish between type-checks array
literal and slice literal. But we end up with other solution. The CL was
submitted without reverting the "bound" parameter in case of slice
literal.

Technically, it's not harmful, but causes the code harder to read and maintain.

Change-Id: Ia522ccc9a6b8e25d7eaad4aa4957cb4fa18edc60
Reviewed-on: https://go-review.googlesource.com/c/go/+/204618
Run-TryBot: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/typecheck.go