mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/typecheck: record whether an interface is implicit
In preparation for capturing the implicit interface bit in export data, thread through the IsImplicit property from types2 into typecheck. Change-Id: I9b46fe73de102935a127e6ececaacd76738b557e Reviewed-on: https://go-review.googlesource.com/c/go/+/357109 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
This commit is contained in:
parent
70ffd852cc
commit
bc0eb5789e
10 changed files with 24 additions and 15 deletions
|
|
@ -466,7 +466,7 @@ func (r *reader) interfaceType() *types.Type {
|
|||
if len(fields) == 0 {
|
||||
return types.Types[types.TINTER] // empty interface
|
||||
}
|
||||
return types.NewInterface(tpkg, fields)
|
||||
return types.NewInterface(tpkg, fields, false)
|
||||
}
|
||||
|
||||
func (r *reader) structType() *types.Type {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue