Skip to content

Failed to produce diagnostic for expression #85587

@AnthonyLatsis

Description

@AnthonyLatsis

Description

No response

Reproduction

struct Mootex<T> {
  func withLock<Result>(_: (T) -> Result) -> Result {}
}

func never() -> Never {}

struct Test {
  let _i = Mootex<Int>()

  var i: Int {
    _i.withLock { _ in
      never()
    }
  }
}

Expected behavior

No error.

Environment

Swift version 6.3-dev (09c828c)

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    closuresFeature: closurescompilerThe Swift compiler itselfdiagnostics QoIBug: Diagnostics Quality of Implementationfailed to produce diagnosticBug → internal error: Failed to produce diagnostic for expressionswift 6.3type checkerArea → compiler: Semantic analysis

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions