]> Cypherpunks repositories - gostls13.git/commit
go/types: add struct field with invalid type if field has errors
authorRobert Griesemer <gri@golang.org>
Tue, 29 May 2018 20:13:24 +0000 (13:13 -0700)
committerRobert Griesemer <gri@golang.org>
Tue, 29 May 2018 21:42:02 +0000 (21:42 +0000)
commitb28e33d371cf96f6f34bbc576b6fd95468ea25bc
tree9fb58d57693dc9cb8e33e583b0c500a70c8dabb2
parent79fbe92b7e834dd3769807647718bdeb24f0a9d2
go/types: add struct field with invalid type if field has errors

This ensures that all struct fields are present and thus the struct
has the original number of fields even if some fields have type
errors. (This only applies as long as the field names themselves
don't conflict.)

Fixes #25627.

Change-Id: I2414b1f432ce139b3cd2776ff0d46d8dcf38b650
Reviewed-on: https://go-review.googlesource.com/115115
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/issues_test.go
src/go/types/testdata/decls3.src
src/go/types/typexpr.go