Files
swift-mirror/test/refactoring/CollapseNestedIf/Outputs/basic/L15-3.swift.expected

23 lines
350 B
Plaintext

func testCollapseNestedIf() {
let a = 3
if a > 2 {
if a < 10 {}
}
}
func testMultiConditionalNestedIf() {
let a = 3
if a > 2, a != 4 {
if a < 10, a != 5 {}
}
}
func testLetNestedIf() {
let a: Int? = 3
if let b = a, b != 5 {}
}
func testCaseLetNestedIf() {
let a: Int? = 3
if case .some(let b) = a {
if b != 5 {}
}
}