Skip to content

Commit 91c2d72

Browse files
committed
unified: Add some corpus tests
Output has not been generated yet (for reasons)
1 parent 5ba941e commit 91c2d72

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
switch n {
2+
case let x where x > 0:
3+
print("positive")
4+
case let y where y < 0, 0:
5+
print("non-positive")
6+
default:
7+
print("other")
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
do {
2+
try foo()
3+
} catch let e where isNetworkError(e), let f where isTimeout(f) {
4+
print("retry")
5+
} catch {
6+
print("fallback")
7+
}

0 commit comments

Comments
 (0)