Pattern: Malformed statement position
Issue: -
else
and catch
should be on the same line, one space after the previous declaration.
Examples of correct code:
} else if {
} else {
} catch {
"}else{"
struct A { let catchphrase: Int }
let a = A(
catchphrase: 0
)
struct A { let `catch`: Int }
let a = A(
`catch`: 0
)
Examples of incorrect code:
↓}else if {
↓} else {
↓}
catch {
↓}
catch {