Skip to content

[Macros] Don't require a declaration of #externalMacro. #64302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2023

Conversation

DougGregor
Copy link
Member

To enable the declaration and use of macros from a newer Swift compiler, when the standard library is from an older Swift compiler that doesn't provide a declaration of externalMacro, short-circuit the type-checking of #externalMacro(module: "A", type: "B") when it is used to declare a new macro.

To enable the declaration and use of macros from a newer Swift
compiler, when the standard library is from an older Swift compiler
that doesn't provide a declaration of `externalMacro`, short-circuit
the type-checking of `#externalMacro(module: "A", type: "B")` when it
is used to declare a new macro.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit fa3059e into swiftlang:main Mar 11, 2023
@DougGregor DougGregor deleted the external-macro-without-decl branch March 12, 2023 05:16
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.

2 participants