]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] merge dev.regabi (618e3c1) into dev.typeparams
authorRob Findley <rfindley@google.com>
Tue, 9 Feb 2021 02:22:01 +0000 (21:22 -0500)
committerRob Findley <rfindley@google.com>
Tue, 9 Feb 2021 03:19:27 +0000 (22:19 -0500)
commitca18c4205442dc49eb35272b9f4b7f0cd8f2c079
treeb8a8f9a1074d4032242ae2decd2d0edcb37d9f2b
parenta360eeb52831c0dfeb38b49eec6881c06176f181
parent618e3c15bdb5c031ac037e7ad5c1b3791a913226
[dev.typeparams] merge dev.regabi (618e3c1) into dev.typeparams

This involved a couple non-trivial fixes in go/types:
 - move the check for main function signature to resolver.go, to be
   consistent with init. Also, update uses of _InvalidInitSig to
   _InvalidInitDecl, consistent with what we decided for dev.regabi.
 - Update some tests in api_test.go which newly fail after CL 289715
   (fixing reporting of untyped nil) In all cases but one, these updates
   were consistent with types2. However, in one case types2 seems to be
   able to resolve more type information than go/types for a broken
   package. I left a TODO to investigate this further.

Change-Id: I8244b7c81654194edd5af8de689a13c262117dff
src/go/types/api_test.go
src/go/types/assignments.go
src/go/types/conversions.go
src/go/types/decl.go
src/go/types/errorcodes.go
src/go/types/expr.go
src/go/types/resolver.go