]> Cypherpunks.ru repositories - gostls13.git/commit
go/types, types2: types in method expressions must be instantiated
authorQuim Muntal <quimmuntal@gmail.com>
Sun, 29 Aug 2021 20:57:36 +0000 (22:57 +0200)
committerRobert Griesemer <gri@golang.org>
Mon, 30 Aug 2021 21:51:52 +0000 (21:51 +0000)
commit86fa510d2456e20ceaa518f97f0c1c89d2ebd81c
tree3a7f1dcad24bb79f635b08ce05750b2dbe63138b
parent8f4c020660d4c8a7bab9a7363551d07176e638eb
go/types, types2: types in method expressions must be instantiated

Use varType instead of instantiatedOperand to check if the type of a method expressions is instantiated.

This removes the last usage of instantiatedOperand, so it can be deleted.

Fixes #48048

Change-Id: I2b219dafe2bba3603100bb8f25b8ff4e8ef53841
Reviewed-on: https://go-review.googlesource.com/c/go/+/345970
Trust: Robert Griesemer <gri@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/types2/call.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue48048.go2 [new file with mode: 0644]
src/go/types/call.go
src/go/types/testdata/fixedbugs/issue48048.go2 [new file with mode: 0644]