unified: Add some corpus tests

Output has not been generated yet (for reasons)
This commit is contained in:
Asger F
2026-07-29 13:37:25 +02:00
parent 5ba941e465
commit 91c2d7251f
2 changed files with 15 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
switch n {
case let x where x > 0:
print("positive")
case let y where y < 0, 0:
print("non-positive")
default:
print("other")
}

View File

@@ -0,0 +1,7 @@
do {
try foo()
} catch let e where isNetworkError(e), let f where isTimeout(f) {
print("retry")
} catch {
print("fallback")
}