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
Sema: Restore old behavior of generic parameters with associated type inference
We now look for abstract type witnesses before generic parameters.
In particular, this means we again prefer the default type witness
over a generic parameter if nothing else forces it to be a generic
parameter:
protocol P { associatedtype A = Int }
struct S<T>: P {}
// S.T is always Int
Fixing this properly requires modeling generic parameter bindings as
disjunctions, which is a more disruptive change than I want to take
for now.
Fixes rdar://problem/122587432.
0 commit comments