mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
I will remove the `syntactic-rename` refactoring action in a follow-up commit. Clients should always ask for rename ranges and perform the rename by themselves instead of asking for a renamed file.
16 lines
281 B
Plaintext
16 lines
281 B
Plaintext
struct Adder {
|
|
var base: Int
|
|
|
|
func callAsFunction(x: Int, y: Int) -> Int {
|
|
return base + x + y
|
|
}
|
|
}
|
|
|
|
let /*test:def*/<base>add3</base> = Adder(base: 3)
|
|
/*test:ref*/<base>add3</base>(x: 10, y: 11)
|
|
let blah = /*test:ref*/<base>add3</base>.callAsFunction(x:y:)
|
|
|
|
|
|
|
|
|