]> Cypherpunks repositories - gostls13.git/commit
go/types: update the recorded function type after inference
authorRobert Findley <rfindley@google.com>
Mon, 4 Oct 2021 18:17:50 +0000 (14:17 -0400)
committerRobert Findley <rfindley@google.com>
Mon, 4 Oct 2021 21:57:33 +0000 (21:57 +0000)
commitd99f1de56e7d86389a373e36ed3325e1e5069c31
treec46bcf96f7f5ddb50c6213159556a4d00afad3df
parentf0db7eae74ea235e9fbc2598252bfd46c1cc5510
go/types: update the recorded function type after inference

This change preserves the observable invariant that for an *ast.CallExpr
'call', Info.Types[call.Fun] is the signature being called.

Updates #47916

Change-Id: I3e97c712a7ee33a4f29e8cf4c18dc7c946b66cc9
Reviewed-on: https://go-review.googlesource.com/c/go/+/353831
Trust: Robert Findley <rfindley@google.com>
Run-TryBot: Robert Findley <rfindley@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/go/types/api_test.go
src/go/types/call.go