]> Cypherpunks repositories - gostls13.git/commit
go/types, types2: ensure that signature type bounds are interfaces
authorRobert Griesemer <gri@golang.org>
Wed, 5 Jan 2022 20:25:43 +0000 (12:25 -0800)
committerRobert Griesemer <gri@golang.org>
Thu, 6 Jan 2022 21:38:57 +0000 (21:38 +0000)
commitc5540e53b1f692a8c977fd1e4ee0915eea66f999
tree07cba0ceb79959e3f2ec9770a9a2e7c1172f8c96
parent10f1ed131cd2cfb5ac4d9aa09888deb1bac6e921
go/types, types2: ensure that signature type bounds are interfaces

Do this by running verification for instantiated signatures
later, after the delayed type parameter set-up had a chance
to wrap type bounds in implicit interfaces where needed.

Fixes #50450

Change-Id: If3ff7dc0be6af14af854830bfddb81112ac575cb
Reviewed-on: https://go-review.googlesource.com/c/go/+/375737
Trust: Robert Griesemer <gri@golang.org>
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Findley <rfindley@google.com>
src/cmd/compile/internal/types2/call.go
src/cmd/compile/internal/types2/testdata/fixedbugs/issue50450.go2 [new file with mode: 0644]
src/go/types/call.go
src/go/types/testdata/fixedbugs/issue50450.go2 [new file with mode: 0644]