Skip to content

Failed to produce diagnostic for expression, when referring to type(of:), withoutActuallyEscaping(_:do:) or _openExistential(_:do:) functions as first class types #90492

Description

@atifdev10

Description

No response

Reproduction

let _ = type(of:)
let _ = withoutActuallyEscaping(_:do:)
let _ = _openExistential(_:do:)

Expected behavior

It should give a clear error like 'X' is not referenceable as a first class type.

Environment

Apple Swift version 6.3.3 (swift-6.3.3-RELEASE)
Target: x86_64-apple-macosx15.0

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    compilerThe Swift compiler itselfdiagnostics qualityBug: The quality of compiler diagnosticsexpressionsFeature: expressionsfailed to produce diagnosticBug → internal error: Failed to produce diagnostic for expression

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions