]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/types2: review of assignments.go
authorRobert Griesemer <gri@golang.org>
Tue, 23 Mar 2021 19:03:51 +0000 (12:03 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 25 Mar 2021 04:14:58 +0000 (04:14 +0000)
commitddcdbb417b47e50fc7006c9438104c5b8b5f75e4
treee06baf22418606b88c97212a9d8b7befcf003817
parent607f99904e3f5565517eee452d9153a634a66369
cmd/compile/internal/types2: review of assignments.go

The changes between (equivalent, and reviewed) go/types/assignments.go
and assignments.go can be seen by comparing patchset 1 and 2. The actual
changes are removing the "// UNREVIEWED" marker.

The primary differences to go/types/assignments.go are:
- use of syntax instead of go/ast package
- no reporting of error codes (for now)
- different handling of nil values (we can't use Typ[UntypedNil]
  to represent an untyped nil because types2 gives such nil values
  context-dependent types)

Change-Id: I5d8a58f43ca8ed2daa060c46842a6ebc11b3cb35
Reviewed-on: https://go-review.googlesource.com/c/go/+/304051
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/assignments.go