Skip to content

Failed to produce diagnostic for expression; #86330

@Thecodeisrereall

Description

@Thecodeisrereall

Description

when settings a foreground style to a unsure LinearGradient it causes an issues??

Reproduction

                Text(Name)
                    .bold()
                    .foregroundStyle(Gradient ?? Color.white)

Expected behavior

no idea

Environment

Swift 6

Additional information

Failed to produce diagnostic for expression; please submit a bug report (https://swift.org/contributing/#reporting-bugs)

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    SwiftUIFlag: Involves SwiftUIbugA deviation from expected or documented behavior. Also: expected but undesirable behavior.diagnostics QoIBug: Diagnostics Quality of Implementationfailed to produce diagnosticBug → internal error: Failed to produce diagnostic for expressiontype checkerArea → compiler: Semantic analysis

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions