Files
swift-mirror/test/refactoring/ExtractFunction/Outputs/basic/L2-5.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

12 lines
153 B
Plaintext

fileprivate func new_name() -> Int {
var aaa = 1 + 2
aaa = aaa + 3
if aaa == 3 { aaa = 4 }
return aaa
}
func foo() -> Int{
return new_name()
}