mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
12 lines
392 B
Swift
12 lines
392 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s | %FileCheck %s
|
|
// RUN: %target-swift-ide-test -code-completion -code-completion-token=B -source-filename=%s | %FileCheck %s
|
|
|
|
func test1() {
|
|
1 + [0]#^A^#
|
|
}
|
|
func test2() {
|
|
"" + [""]#^B^#
|
|
}
|
|
// Sanity check results.
|
|
// CHECK: Decl[InstanceVar]/CurrNominal: .startIndex[#Int#]; name=startIndex
|