[SR-13967] Failed to produce diagnostic for expression in SwiftUI #56365
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
failed to produce diagnostic
Bug → internal error: Failed to produce diagnostic for expression
SwiftUI
Flag: Related to (but not an issue with) SwiftUI
type checker
Area → compiler: Semantic analysis
Environment
Xcode 12.3 (12C33), macOS 11.1 (20C69)
Additional Detail from JIRA
md5: d10b7b47c60e3d76b0892fd5fe9e90dd
Issue Description:
Found this reduced reproducer while experimenting with SwiftUI:
I found that it doesn't seem to matter if `baz` is a global function, an enum case or a method, as long as the parameters are of a different type to the arguments. There have to be at least two parameters and it seems to only happen in the context of a function builder like ViewBuilder.
The text was updated successfully, but these errors were encountered: