Files
swift-mirror/test/refactoring/RefactoringKind/extract.swift
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
250 B
Swift

func foo(i: Int, complete: ()->()) {}
func main() {
foo(i: 2) {
print(2)
}
}
// RUN: %refactor -source-filename %s -pos=4:13 -end-pos=6:4 | %FileCheck %s -check-prefix=CHECK-NONE
// CHECK-NONE: Action begins
// CHECK-NONE-NEXT: Action ends