Skip to content

Instantly share code, notes, and snippets.

@tkafka
Created July 16, 2021 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tkafka/f7914dcca74770161986cfda65c4951d to your computer and use it in GitHub Desktop.
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.`
--swiftversion 5
--self init-only
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