mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'main' into 'rebranch'
This commit is contained in:
@@ -599,7 +599,7 @@ struct InferRequirementsWalker : public TypeWalker {
|
||||
DifferentiabilityKind::Linear);
|
||||
}
|
||||
|
||||
// Infer that the thrown error type conforms to Error.
|
||||
// Infer that the thrown error type of a function type conforms to Error.
|
||||
if (auto thrownError = fnTy->getThrownError()) {
|
||||
if (auto errorProtocol = ctx.getErrorDecl()) {
|
||||
addConformanceConstraint(thrownError, errorProtocol);
|
||||
|
||||
Reference in New Issue
Block a user