]> Cypherpunks repositories - gostls13.git/commit
go/types: print "nil" rather than "untyped nil"
authorRobert Griesemer <gri@golang.org>
Tue, 23 Nov 2021 00:04:17 +0000 (16:04 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 24 Nov 2021 20:56:40 +0000 (20:56 +0000)
commit9e7600d3fccf1920028bc808c755198db73482c0
tree35474645245fdaa65cdfe0112de3dac1703b4099
parent696515ee396566ba02da145cf71fe5913d65b9a6
go/types: print "nil" rather than "untyped nil"

This is a port of CL 366276 from types2 to go/types
with minor adjustments due to the slightly different
handling of nil in go/types.

It uses some more detailed error strings in stmt0.src;
the same changes are made to the corresponding types2
file.

For #48852.

Change-Id: I2cdf258799bcbe2d12bbadaf67b8b4504b356bd0
Reviewed-on: https://go-review.googlesource.com/c/go/+/366277
Trust: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/testdata/check/stmt0.src
src/go/types/operand.go
src/go/types/testdata/check/stmt0.src
src/go/types/testdata/fixedbugs/issue49296.go2
src/go/types/testdata/spec/assignability.go2