Files
swift-mirror/test/SourceKit/CodeFormat/indent-trailing/trailing-catch-item-comma.swift
Nathan Hawes 19d6effc5e [SourceKit/CodeFormat] Column-align multiple patterns in catch clauses.
Catch clauses now support mutliple patterns. Like 'case' patterns, these
should be column-aligned if split across multiple lines.

do {
  ...
} catch MyErr.a(let x),
        MyErr.b(let x) {
  print("hello")
}
2020-04-08 09:46:09 -07:00

8 lines
210 B
Swift

do {
print("hello")
} catch MyErr.a(let code),
MyErr.b(let code),
// RUN: %sourcekitd-test -req=format -line=5 -length=1 %s | %FileCheck --strict-whitespace %s
// CHECK: key.sourcetext: " "