Skip to content

Conversation

@DougGregor
Copy link
Member

In any nominal declaration or extension thereof that is produced by a macro expansion, make sure we perform qualified name lookup when resolving operators so that we're guaranteed to find the macro-introduced operators. Otherwise, expanding a macro that defines a new type with conformances involving operators doesn't work.

Fixes rdar://114257019,

In any nominal declaration or extension thereof that is produced by a
macro expansion, make sure we perform qualified name lookup when
resolving operators so that we're guaranteed to find the
macro-introduced operators. Otherwise, expanding a macro that defines
a new type with conformances involving operators doesn't work.

Fixes rdar://114257019,
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor merged commit 10a5cc9 into swiftlang:main Aug 23, 2023
@DougGregor DougGregor deleted the macro-expansion-with-operators branch August 23, 2023 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant