]> Cypherpunks repositories - gostls13.git/commit
go/types: report error when recognizing issue #18395.
authorRobert Griesemer <gri@golang.org>
Wed, 29 Nov 2017 01:17:33 +0000 (17:17 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 29 Nov 2017 23:01:29 +0000 (23:01 +0000)
commitbbd15ff7c1a8f6ab9a4710519b1a8f7d345c51e8
tree14c2b52411d88ac79473dbc648594681d6cc64b2
parent98a8e521498354e8312040daeff81146641b5608
go/types: report error when recognizing issue #18395.

The fix (CL 79575) for #18395 is too risky at this stage of the Go 1.10
release process.

Since issue #18395 is easily recognized (but not easily fixed), report
an error instead of silently continuing. This avoids inscrutable follow
on errors.

Also, make sure all empty interfaces are "completed", and adjust
printing code to report incomplete interfaces.

For #18395.

Change-Id: I7fa5f97ff31ac9775c9a6d318fce9f526b0350cd
Reviewed-on: https://go-review.googlesource.com/80455
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/internal/gccgoimporter/parser_test.go
src/go/types/builtins.go
src/go/types/object_test.go
src/go/types/testdata/cycles4.src
src/go/types/type.go
src/go/types/typestring.go
src/go/types/typestring_test.go
src/go/types/typexpr.go