Files
swift-mirror/validation-test/IDE/crashers_2_fixed/rdar65556791.swift
Rintaro Ishizaki f7fc1ed7b5 [CodeCompletion] Fix a crash in CCExprRemover
- 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
2020-07-15 09:56:20 -07:00

18 lines
458 B
Swift
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// 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^#