]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] go/types: consistently report nil type as "untyped nil"
authorRob Findley <rfindley@google.com>
Thu, 4 Feb 2021 16:44:21 +0000 (11:44 -0500)
committerRobert Findley <rfindley@google.com>
Mon, 8 Feb 2021 23:25:48 +0000 (23:25 +0000)
commit618e3c15bdb5c031ac037e7ad5c1b3791a913226
treeca6ea5952dd7fad4a7ef320e84f13a2d80552b51
parent50449de66aad9997690f40680cbca4ba26a41628
[dev.regabi] go/types: consistently report nil type as "untyped nil"

This is a port of CL 284052 to go/types. The port is not entirely
faithful, as untyped conversion has been refactored in go/types.
Additionally, a comment was added to reference issue #13061 in the
implicitType method.

For #13061

Change-Id: Iec17611f6432c988624023d1d74121ff34eb0c83
Reviewed-on: https://go-review.googlesource.com/c/go/+/289715
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Robert Findley <rfindley@google.com>
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/api_test.go
src/go/types/conversions.go
src/go/types/expr.go