mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
13 lines
620 B
Swift
13 lines
620 B
Swift
func /*test:def*/test(x: () -> () = {}, _ xx: () -> () = {}, y: () -> () = {}, z: ()->() = {}) {}
|
|
|
|
/*test:call*/test(x: {}, {}) {}
|
|
/*test:call*/test(x: {}) {} z: {}
|
|
/*test:call*/test(x: {}, {}) {}
|
|
/*test:call*/test {} y: {}
|
|
/*test:call*/test(y: {}) {}
|
|
|
|
|
|
// RUN: %empty-directory(%t.ranges)
|
|
// RUN: %refactor -find-rename-ranges -source-filename %s -pos="test" -is-function-like -old-name "test(x:_:y:z:)" >> %t.ranges/multiple-trailing-closures-defaulted.swift.expected
|
|
// RUN: diff -u %S/FindRangeOutputs/multiple-trailing-closures-defaulted.swift.expected %t.ranges/multiple-trailing-closures-defaulted.swift.expected
|