// RUN: %swift-ide-test --code-completion --source-filename %s -code-completion-token CC // https://github.com/apple/swift/issues/57321 func foo() { let months: [[String]] = [] let abcd: Int let x = ForEach2(months) { group in HStack2(spacing: 3) { useKeyPath(id: \.abcd#^CC^#) } } } struct ForEach2 where Data : RandomAccessCollection { init(_ data: Data, content: @escaping (Data.Element) -> Void) {} } struct Bar { let abcd: Int } func useKeyPath(id: KeyPath) {} struct HStack2 { init(spacing: Double, @ViewBuilder2 content: () -> Content) } @resultBuilder struct ViewBuilder2 { static func buildBlock(_ content: Content) -> Content { fatalError() } }