[SR-2580] Call to a generic function that expects argument to conform a protocol fails if argument compose multiple protocols. #45185
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: 529ab262cc74a0bad21200ae117b0f2a
duplicates:
Issue Description:
Following code cause a error — Cannot invoke `foo` with an argument list of type `(bar: A & B)`:
If c defined as following, everything works:
The text was updated successfully, but these errors were encountered: