mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Properly print protocols that inherit marker protocols under $MarkerProtocol
This commit is contained in:
@@ -252,8 +252,8 @@ class InheritedProtocolCollector {
|
||||
if (!isPublicOrUsableFromInline(type))
|
||||
return false;
|
||||
|
||||
// Extensions can print marker protocols.
|
||||
if (isa<ExtensionDecl>(D))
|
||||
// Extensions and protocols can print marker protocols.
|
||||
if (isa<ExtensionDecl>(D) || isa<ProtocolDecl>(D))
|
||||
return true;
|
||||
|
||||
ExistentialLayout layout = type->getExistentialLayout();
|
||||
|
||||
Reference in New Issue
Block a user