[SR-10706] Operator behaves differently than equally defined function #53103
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: 611771dfe696a0d4b9d2a1f4de0da224
Issue Description:
I played around with operators and found out that operators pick an overload with an `Any` operator while a function takes the better fitting statically typed version. See the following example:
I would expect that *a would also take the version with a type constraint.
The text was updated successfully, but these errors were encountered: