You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
griesemer
changed the title
cmd/compile: named type constraints that are not interfaces are not automatically embedded in implicit intercaces
cmd/compile: named type constraints that are not interfaces are not automatically embedded in implicit interfaces
Jan 5, 2022
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.
Fixesgolang#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>
Test case:
Per the spec, the declaration and instantiation of
g
should be valid.Not a release blocker because one can always manually wrap the constraint as in:
cc: @findleyr
The text was updated successfully, but these errors were encountered: