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
@@ -1889,8 +1889,8 @@ bool NominalTypeDecl::derivesProtocolConformance(ProtocolDecl *protocol) const {
|
||||
if (!knownProtocol)
|
||||
return false;
|
||||
|
||||
// All nominal types can derive their ErrorType conformance.
|
||||
if (*knownProtocol == KnownProtocolKind::ErrorType)
|
||||
// All nominal types can derive their ErrorProtocol conformance.
|
||||
if (*knownProtocol == KnownProtocolKind::ErrorProtocol)
|
||||
return true;
|
||||
|
||||
if (auto *enumDecl = dyn_cast<EnumDecl>(this)) {
|
||||
|
||||
Reference in New Issue
Block a user