Open VAndrJ opened 5 months ago
Might be related to https://github.com/apple/swift/issues/70087.
@VAndrJ have you tried this with an enum conforming to Equatable
? Same problem?
@vanvoorden with Equatable
no errors.
UPD: with a class conforming to Equatable
the same problem:
swift-driver version: 1.110 Apple Swift version 6.0 (swiftlang-6.0.0.4.52 clang-1600.0.21.1.3) Target: arm64-apple-macosx15.0
Description
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:
Reproduction
MRE:
ComparableEnumTest.zip
Expected behavior
Сompiles without errors, like in previous Swift versions.
Environment
swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300 clang-1600.0.20.10) Target: arm64-apple-macosx15.0
Additional information
UPD. With an extension, everything is ok too, example: