Files
swift-mirror/test/refactoring/rename/Outputs/basic/C1.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

22 lines
357 B
Plaintext

struct S1 {}
func foo1(a: S1) {}
class new_c1 {}
func foo2(c : new_c1) {}
enum E1 {}
func foo3(e : E1) {}
func foo4(a : S1, b : new_c1, c: E1) { foo4(a: a, b: b, c :c) }
func test() {
struct SLocal {
init(x: S1) {}
}
func local(a: SLocal) {}
local(a: SLocal(x: S1()))
}
guard let top = Optional.some("top") else {
fatalError()
}
print(top)