mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
60a91bb736
[refactoring] Upstreaming the implementation for Swift local refactoring
11 lines
258 B
Plaintext
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
|
|
}
|
|
|