Files
swift-mirror/test/refactoring/ExtractFunction/Outputs/static/L3-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

19 lines
215 B
Plaintext

class C {
fileprivate func new_name() -> Int {
var a = 3 + 1
a = 3
return a
}
func foo1() -> Int {
return new_name()
}
static func foo2() -> Int {
var a = 3 + 1
a = 3
return a
}
}