mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
- Handle cases where getArgumentLabelLocs().size() == 0 - Add some assertions to verify invariants - Explicit handling of 'llvm::Optional' for 'getUnlabeledTrailingClosureIndex()' - Avoid walking into nodes after the removing happens rdar://problem/65556791
18 lines
458 B
Swift
18 lines
458 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
|
||
// RUN: %target-swift-ide-test -code-completion -code-completion-token=B -source-filename=%s
|
||
// RUN: %target-swift-ide-test -code-completion -code-completion-token=C -source-filename=%s
|
||
|
||
func myFunc(_: Int, _: Undefined) {}
|
||
|
||
undefined {
|
||
myFunc($0, undefined)
|
||
} #^A^#
|
||
|
||
undefined(x: 1) {
|
||
myFunc($0, undefined)
|
||
} #^B^#
|
||
|
||
undefined(1, 2) {
|
||
myFunc { 1 }
|
||
} #^C^#
|