Files
swift-mirror/test/refactoring/ExtractRepeat/Outputs/basic/one-plus-two.swift.expected
Argyrios Kyrtzidis 60a91bb736 [refactoring] Upstreaming the implementation for Swift local refactoring (#11568)
[refactoring] Upstreaming the implementation for Swift local refactoring
2017-08-22 16:50:16 -07:00

11 lines
258 B
Plaintext

func foo1() -> Int { return 0 }
func foo(_ a : Int) -> Int {
let new_name = 1 + 2
let a1 = new_name + 2 + 2 + a + foo1()
let a2 = new_name + 2 + 2 + a + foo1()
let a3 = new_name + 2 + 2 + a + foo1()
return foo1() + foo1() + foo1() + a1 + a2 + a3
}