Incorrect "Same-type" warning (will be an error in Swift 6)

I noticed another difference in behavior between functions with and without same-type constraints when opening existentials.

TLDR: Opening compiles when applying the same-type constraint to a member function of a generic type, but not otherwise.