Closed finnvoor closed 6 months ago
@finnvoor thanks! Looking into it now.
private nonisolated(unsafe) static var test3: ((
FYI this one isn't a bug - it's illegal to use static
outside of a type context so SwiftFormat rejects it
@finnvoor thanks! Looking into it now.
private nonisolated(unsafe) static var test3: ((
FYI this one isn't a bug - it's illegal to use
static
outside of a type context so SwiftFormat rejects it
Ah right, whoops. I definitely did run into this error with valid code though, I think probably due to the same bug as the second case.
@finnvoor this should now be fixed on the develop branch.
(ps, I just realized you're the Swift-on-Playdate guy - such a cool project!)
thanks for the quick fix! Definitely wouldn't call myself the swift-on-playdate guy, that would be @rauhul, I'm just building on the work done by him!
@finnvoor fixed in 0.53.5
Hi! I'm writing some code that uses
nonisolated(unsafe)
and running into a lot of issues formatting it.Error
The following snippet errors when formatted (SwiftFormat 0.53.4, default conf)
Unexpected Results
The following snippet outputs really incorrect formatting when formatted using the
--enable organizeDeclarations
flag:results in
When run on this file, everything breaks completely 😄