Closed pronebird closed 10 months ago
D'oh - thanks, I'll get that fixed.
Seeing the same thing with
import class MyLibrary.User
being replaced with
import enum MyLibrary.User
(I'm guessing the fix is the same, I'm just signaling that the bug is not limited to import struct X
)
@guillaumealgis I'm having some trouble reproducing this. Can you show me the whole file (or at least the first few lines up to an including some actual code)? I suspect the bug depends on what comes before or after the import.
EDIT: never mind, I've got it.
Temporary fix:
// swiftformat:disable enumnamespaces
import struct SwiftUI.Color
// some code...
@pronebird @guillaumealgis @wmorgue fixed in 0.52.10
Seems like 0.52.9 overwrites the following targeted import:
with:
Which breaks compilation as you can imagine.