]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/gc: implement len(array) / cap(array) rule
authorRuss Cox <rsc@golang.org>
Thu, 8 Mar 2012 03:43:28 +0000 (22:43 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 8 Mar 2012 03:43:28 +0000 (22:43 -0500)
commitd4fb568e047a23a5ade5c3750da0de9fb54ff33a
tree45787ad26bf87f51c13b727d8c13278f2c9f43d7
parent43d71e7d7d1ace38e6518335ff39b7848700b9ca
cmd/gc: implement len(array) / cap(array) rule

The spec is looser than the current implementation.
The spec edit was made in CL 4444050 (May 2011)
but I never implemented it.

Fixes #3244.

R=ken2
CC=golang-dev
https://golang.org/cl/5785049
src/cmd/gc/typecheck.c
test/const4.go [new file with mode: 0644]
test/const5.go [new file with mode: 0644]