]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: reorder object processing to avoid broken aliases
authorRobert Griesemer <gri@golang.org>
Fri, 21 Jan 2022 17:05:51 +0000 (09:05 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 24 Jan 2022 21:27:33 +0000 (21:27 +0000)
commit671e1150c680eb5f21833662362954cc1b155d2b
tree98b7f5842bb205fa55cf221b9084b4be489f1cb7
parentfe85c244315f82b1a6a21cd6ddc0255eed92a357
go/types, types2: reorder object processing to avoid broken aliases

By processing non-alias type declarations before alias type declaration,
and those before everything else we can avoid some of the remaining
errors which are due to alias types not being available.

For #25838.
For #50259.
For #50276.
For #50729.

Change-Id: I233da2899a6d4954c239638624dfa8c08662e6b9
Reviewed-on: https://go-review.googlesource.com/c/go/+/380056
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/types2/resolver.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue25838.go [new file with mode: 0644]
src/cmd/compile/internal/types2/testdata/fixedbugs/issue50259.go2
src/cmd/compile/internal/types2/testdata/fixedbugs/issue50276.go2
src/go/types/resolver.go
src/go/types/testdata/fixedbugs/issue25838.go [new file with mode: 0644]
src/go/types/testdata/fixedbugs/issue50259.go2
src/go/types/testdata/fixedbugs/issue50276.go2
test/typeparam/issue50259.go