Open
Description
Description
Taking equatable
extension macro implementation from Swift Macro Examples in swift-syntax repository, and having the following code:
@equatable
struct Pet {
struct Dog {}
let name: String
}
extension Pet.Dog {}
the compiler throws “circular reference resolving attached macro ‘equatable’” error (see screenshot).
Steps to Reproduce
- Clone https://github.com/edudnyk/swift-syntax.git
- Checkout branch
attached-macro-bugreport
. - Open
Package.swift
in Xcode. - Open
Examples/Sources/MacroExamples/Playground/ExtensionMacrosPlayground.swift
- Build the
MacroExamplesPlayground
target.
Apple Feedback ID: FB14887944