]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] import stmt changes from dev.go2go
authorRob Findley <rfindley@google.com>
Thu, 7 Jan 2021 16:13:56 +0000 (11:13 -0500)
committerRobert Findley <rfindley@google.com>
Mon, 11 Jan 2021 18:23:13 +0000 (18:23 +0000)
commit1ce08541574f749947400a051bb40c8352743887
tree168588b20a9466f1fa6a4e04c0ac7120780eef2f
parenteb53a6c7cf80474628b03a1ae62afb1a84d10f03
[dev.typeparams] import stmt changes from dev.go2go

Import logic for typechecking statements involving generics from the
dev.go2go branch.  Notably, range type checking was simplified in
dev.go2go, resulting in the removal of the _InvalidChanRange error code.

Change-Id: I84c2665226c2b9b74e85f7fb6df257b0a292e5d3
Reviewed-on: https://go-review.googlesource.com/c/go/+/282120
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Trust: Robert Griesemer <gri@golang.org>
Trust: Robert Findley <rfindley@google.com>
src/go/types/errorcodes.go
src/go/types/stmt.go
src/go/types/testdata/stmt0.src