Skip to content

Completion hits too complex in chained + in result builder #79879

Open
@hamishknight

Description

@hamishknight

The following hits "too complex" and produces no completions:

import SwiftUI

func foo() -> some View {
  Group {
    Group {
      Group {
        Text("")
        + Text("")
          .foregroundColor(Color(""))
        + Text("")
        + Text("")
        + Text("")
          .#^CC^#
      }
    }
  }
}

The expression without .#^CC^# does type-check, although it takes several seconds

Metadata

Metadata

Assignees

Labels

SourceKitArea → source tooling: SourceKitbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.code completionArea → source tooling: code completionfound by stress testerFlag: An issue found by the SourceKit stress tester

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions