]> Cypherpunks repositories - gostls13.git/commit
go/types: avoid certain problems with recursive alias type declarations
authorRobert Griesemer <gri@golang.org>
Mon, 5 Nov 2018 23:51:11 +0000 (15:51 -0800)
committerRobert Griesemer <gri@golang.org>
Wed, 7 Nov 2018 18:25:08 +0000 (18:25 +0000)
commit0fcd40503b41b84beb8d355615d1ad5ebc4eae57
treec0161a3f78796066d681a910336c3a7b5ad3f2b1
parent644ddaa842696506832fc55cad67d2490be20d14
go/types: avoid certain problems with recursive alias type declarations

It is possible to create certain recursive type declarations involving
alias types which cause the type-checker to produce an (invalid) type
for the alias because it is not yet available. By type-checking alias
declarations in a 2nd phase, the problem is mitigated a bit since it
requires more convoluted alias declarations for the problem to appear.

Also re-enable testing of fixedbugs/issue27232.go again (which was the
original cause for this change).

Updates #28576.

Change-Id: If6f9656a95262e6575b01c4a003094d41551564b
Reviewed-on: https://go-review.googlesource.com/c/147597
Reviewed-by: Alan Donovan <adonovan@google.com>
src/go/types/resolver.go
src/go/types/stdlib_test.go