Import reordering can break programs (using @preconcurrency) #79414
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
Consider this program
compiles and runs just fine:
But running
swift-format
(default config) on it, breaks it:This is because it changed the order of the imports.
This is probably a Swift bug but you could argue it's a formatter bug too.
Related issues:
Reproduction
Expected behavior
compiles fine in language mode 6.
Environment
Additional information
No response
The text was updated successfully, but these errors were encountered: