[SR-6840] Confusing error in conditional conformance #49389
Labels
compiler
The Swift compiler in itself
diagnostics QoI
Bug: Diagnostics Quality of Implementation
improvement
Additional Detail from JIRA
md5: ad232fab3c01c12aad235f16cc7f120e
relates to:
Issue Description:
This code rightly doesn't compile, but while the error messages are all correct, they are confusing:
The issue there is that
extension X: R where T: R
leaves out conformance toP
, because the conformance toP
is constrained toT: Q
instead of justT
. These are the errors I get:I don't know how possible it is to improve this, but I think the errors would be more clear if they said something like this:
The text was updated successfully, but these errors were encountered: