mirror of
https://github.com/github/codeql.git
synced 2026-07-31 15:33:00 +02:00
unified: Add some corpus tests
Output has not been generated yet (for reasons)
This commit is contained in:
@@ -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")
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
do {
|
||||
try foo()
|
||||
} catch let e where isNetworkError(e), let f where isTimeout(f) {
|
||||
print("retry")
|
||||
} catch {
|
||||
print("fallback")
|
||||
}
|
||||
Reference in New Issue
Block a user