Files
swift-mirror/test/SourceKit/CodeComplete/complete_from_system.swift
Rintaro Ishizaki f80fdfca83 [CodeCompletion] Simplify a FileCheck test
Only check lines we really care about.
2020-05-11 14:48:28 -07:00

23 lines
503 B
Swift

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: },