mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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")
}
8 lines
210 B
Swift
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: " "
|