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
protocolP{}extensionP{typealiasB=String}protocolQ{}extensionQ{typealiasB=Int}func f<T:P&Q>(_:T){varx:T.B // type is ???
}
With some experiment (keeping everything in the same module) it looks like the compiler resolves this by picking the first protocol with a B type in it, in alphabetical order of the protocol name.
Expected behavior
Probably an ambiguity error of some kind. It's unfortunate there's no way to disambiguate though.
Environment
Tested with either Xcode 16.3 or 26 RC, not sure which one and I can't check at the moment.