[SR-12955] Redundant error when using @convention(c) on an error type #55401
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
type checker
Area → compiler: Semantic analysis
Additional Detail from JIRA
md5: c09bd1be328b6db3981346e9991bf36c
Issue Description:
Compiling this line:
Produces these errors:
The second error is redundant and potentially misleading. When the trigger is an error type, it should probably be omitted, and allow the actual type error to convey the problem on its own.
The text was updated successfully, but these errors were encountered: