Compilation error related to @TaskLocal
on the latest nightly toolchains.
#73793
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
concurrency
Feature: umbrella label for concurrency language features
triage needed
This issue needs more specific labels
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
The text was updated successfully, but these errors were encountered: