Files
swift-mirror/test/refactoring/ExtractFunction/Outputs/extract_local/AvoidFilePrivate.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

19 lines
212 B
Plaintext

func returnFifteen() -> Int {
var y = 10
func new_name() {
if y > 50 {
print("bigger than 50")
} else {
print("less")
}
}
func add() {
y += 5
new_name()
}
add()
return y
}