Open edudnyk opened 3 weeks ago
Taking equatable extension macro implementation from Swift Macro Examples in swift-syntax repository, and having the following code:
equatable
@equatable struct Pet { struct Dog {} let name: String } extension Pet.Dog {}
the compiler throws “circular reference resolving attached macro ‘equatable’” error (see screenshot).
attached-macro-bugreport
Package.swift
Examples/Sources/MacroExamples/Playground/ExtensionMacrosPlayground.swift
MacroExamplesPlayground
Apple Feedback ID: FB14887944
Synced to Apple’s issue tracker as rdar://134489854
Moving to the compiler repo because this is about error messages generated by the compiler.
Description
Taking
equatable
extension macro implementation from Swift Macro Examples in swift-syntax repository, and having the following code:the compiler throws “circular reference resolving attached macro ‘equatable’” error (see screenshot).
Steps to Reproduce
attached-macro-bugreport
.Package.swift
in Xcode.Examples/Sources/MacroExamples/Playground/ExtensionMacrosPlayground.swift
MacroExamplesPlayground
target.Apple Feedback ID: FB14887944