mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We don't require or allow '&' for the mutable parameters in operator calls, since we want to write 'x += 10' and not '&x += 10'. The constraint sovler accepted '&x += 10' though, and we had a separate pass in MiscDiagnostics for rejecting it. Instead, let's just reject this in the solver. The main difficulty is that we must now be prepared to fail certain OperatorArgumentConversion and ApplicableFunction constraints even when both the LHS and RHS types are equal.
264 KiB
264 KiB