mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Cherry pick of #82370 to 6.2 branch. --- * **Explanation**: Resolves an issue where sema is flagging inout expressions in expression macros as invalid, setting up a catch 22 where Sema emits an error when a parameter has the '&' sigil and type checking fails when it doesn't. * **Risk**: Low. It allows inout expressions in one additional context. * **Testing**: Tested by lit tests, including new tests for the newly allowed expression. * **Issue**: rdar://153840234 * **Reviewer**: @slavapestov * **Main branch PR**: https://github.com/swiftlang/swift/pull/82370