mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename ErrorType to ErrorProtocol
This commit is contained in:
committed by
Max Moiseev
parent
99d3f96c6d
commit
feacbc4433
@@ -53,9 +53,9 @@ ValueDecl *DerivedConformance::getDerivableRequirement(NominalTypeDecl *nominal,
|
||||
if (name.isSimpleName(ctx.Id_hashValue))
|
||||
return getRequirement(KnownProtocolKind::Hashable);
|
||||
|
||||
// ErrorType._code
|
||||
// ErrorProtocol._code
|
||||
if (name.isSimpleName(ctx.Id_code_))
|
||||
return getRequirement(KnownProtocolKind::ErrorType);
|
||||
return getRequirement(KnownProtocolKind::ErrorProtocol);
|
||||
|
||||
// _BridgedNSError._NSErrorDomain
|
||||
if (name.isSimpleName(ctx.Id_NSErrorDomain))
|
||||
|
||||
Reference in New Issue
Block a user