[SR-9667] Type inference fails even though enough information is specified #52111
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: d3f707ecb25568eafaa2c2d3cff5a766
Issue Description:
The following code demonstrates how type inference succeeds when a type parameter is bound in an extension constraint but fails when the same type parameter is bound by the expression context. I believe this is a bug or an undesirable limitation of the current implementation. If it isn't either of those and is just not possible in the latter context I am interested in understanding why that is the case.
The text was updated successfully, but these errors were encountered: