blob: cf6809f4d4f7e06e82842578e5afb6e3882416ae [file] [log] [blame]
struct MyCollection : Collection {
var startIndex: Int { 0 }
var endIndex: Int { 0 }
func index(after i: Int) -> Int { i + 1 }
subscript(position: Int) -> Int { 0 }
}
func test(col: MyCollection) {
col.
}
// RUN: %sourcekitd-test -req=complete -pos=9:7 %s -- %s -module-name TestMod | %FileCheck %s
// CHECK: key.name: "makeIterator()",
// CHECK-NOT: },
// CHECK: key.is_system: 1
// CHECK: },
// CHECK: key.name: "startIndex",
// CHECK-NOT: },
// CHECK-NOT: key.is_system: 1
// CHECK: },