Skip to content

Too complex completion in SwiftUI result builder #84028

@hamishknight

Description

@hamishknight

The following completion is too complex:

import SwiftUI struct S: Identifiable { var name: String var id: ObjectIdentifier } struct V: View { var xs: [S] = [] var body: some View { List { ForEach(self.xs) { x in Group { ForEach(self.xs) { y in NavigationLink(destination: Text(y.name)) { Text(y.#^CC^#) } } } } } } }

It type-checks quickly if you replace y.#^CC^# with y.name though

Metadata

Metadata

Assignees

No one assigned

    Labels

    SourceKitArea → source tooling: SourceKitcode completionArea → source tooling: code completionfound by stress testerFlag: An issue found by the SourceKit stress testertype checkerArea → compiler: Semantic analysis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions