blob: 9d0c817dd5664179da2dcf3d7e56278feecc15c4 [file] [log] [blame]
func testCollapseNestedIf() {
let a = 3
if a > 2 {
if a < 10 {}
}
}
func testMultiConditionalNestedIf() {
let a = 3
if a > 2, a != 4, a < 10, a != 5 {}
}
func testLetNestedIf() {
let a: Int? = 3
if let b = a {
if b != 5 {}
}
}
func testCaseLetNestedIf() {
let a: Int? = 3
if case .some(let b) = a {
if b != 5 {}
}
}