The code below fails to compile on the latest nightly toolchains.
The error generated is: macro type 'SwiftMacros.TaskLocalMacro' not found when expanding macro 'TaskLocal '
Reproduction
Copy and paste the following code into a new project, and build in Debug mode.
struct A {@TaskLocal static var a: Self?}
Expected behavior
The compilation should succeed.
Environment
Nightly toolchains 2024-05-14a and 2024-05-15a are affected.
Toolchains in the range of 2023-07-10a to 2024-05-01a build this correctly.
Description
The code below fails to compile on the latest nightly toolchains. The error generated is:
macro type 'SwiftMacros.TaskLocalMacro' not found when expanding macro 'TaskLocal '
Reproduction
Copy and paste the following code into a new project, and build in Debug mode.
Expected behavior
The compilation should succeed.
Environment
Nightly toolchains 2024-05-14a and 2024-05-15a are affected. Toolchains in the range of 2023-07-10a to 2024-05-01a build this correctly.
Additional information
This prevents certain packages from building; one example is XCTest Dynamic Overlay: https://github.com/pointfreeco/xctest-dynamic-overlay