Comparable enum and macro

I installed Xcode 16, where a problem appeared with enum and Comparable when there is a macro. Below is a screenshot of the error and what the macro turns into.

If I remove the macro and write it manually, the error disappears.

Up to Swift 6 without any complaints. What could be the problem?

If you have a project or example that reproduces this problem, could you file an issue at GitHub - apple/swift: The Swift Programming Language?

1 Like

Done: Enum Comparable and macro. · Issue #74295 · apple/swift · GitHub