]> Cypherpunks repositories - gostls13.git/commit
go/types: systematic detection of missing instantiation
authorRobert Findley <rfindley@google.com>
Thu, 2 Sep 2021 14:50:42 +0000 (10:50 -0400)
committerRobert Findley <rfindley@google.com>
Thu, 2 Sep 2021 17:30:32 +0000 (17:30 +0000)
commit7609b5070174905478ba33876679c9b592367a5c
tree057eda299a1ec066e5fd47a123fe886dabb238ea
parentacc2957bc9873ab7e65942045830a3dc0592eda2
go/types: systematic detection of missing instantiation

This is a port of CL 346471 to go/types. Additionally, CheckExpr was
updated for the new API to explicitly allow generic expressions.

The error messages in issue39634.go2 are different because go/parser
produces an IndexExpr with BadExpr index value, for backward
compatibility.

Change-Id: I725926de183a016381513fe0e750d1280688ce29
Reviewed-on: https://go-review.googlesource.com/c/go/+/347391
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/builtins.go
src/go/types/call.go
src/go/types/eval.go
src/go/types/expr.go
src/go/types/index.go
src/go/types/stmt.go
src/go/types/testdata/examples/types.go2
src/go/types/testdata/fixedbugs/issue39634.go2