Created
July 16, 2021 13:38
-
-
Save tkafka/f7914dcca74770161986cfda65c4951d to your computer and use it in GitHub Desktop.
Failure of swiftformat 0.48.9 - the `--self init-only` directive causes `error: Unexpected class/static func on line 10 in Test.swift.`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--swiftversion 5 | |
--self init-only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Test { | |
static func aaa() -> AAA? { | |
guard | |
let something: Float? = { return nil }() | |
else { | |
return nil | |
} | |
} | |
static func bbb() -> String? { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment