]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] go/types: import object resolution from dev.go2go
authorRob Findley <rfindley@google.com>
Wed, 16 Dec 2020 04:43:30 +0000 (23:43 -0500)
committerRobert Findley <rfindley@google.com>
Thu, 17 Dec 2020 17:08:31 +0000 (17:08 +0000)
commit060cdbc7b57d1c4e97038e3ad259d2572a58047f
tree9538e3587cae3dd3bee3c937938b61859ab3d485
parentc4f0da5750e72e3c82ade212af024523b04f6f9a
[dev.typeparams] go/types: import object resolution from dev.go2go

Changes from dev.go2go:
 + Removed enableImplicitTParam
 + Fixed a bug in unpackRecv where pointer receivers were not being
   detected in the syntax. This didn't seem to actually matter, as I
   couldn't produce an incorrect test case as a result of this bug (I
   guess by the time method sets are considered, functions have already
   been type checked).
 + Updated to the new error API.
 + A line setting t.underlying to Typ[Invalid] was restored in
   Checker.validType when a cycle is detected. Though this didn't seem
   to matter, it preserves an invariant that invalid types are used to
   suppress error reporting.

Change-Id: I3b53b35368c244d67571f23d70fb991af50db540
Reviewed-on: https://go-review.googlesource.com/c/go/+/278595
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Robert Findley <rfindley@google.com>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/decl.go
src/go/types/resolver.go
src/go/types/stmt.go
src/go/types/testdata/decls0.src
src/go/types/typexpr.go