Files
swift-mirror/test/refactoring/ExtractRepeat/Outputs/basic/foo-one.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
262 B
Plaintext

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