mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #25445 from slavapestov/testable-protocol-override
Fix crash when refining protocol from a testable import
This commit is contained in:
@@ -7190,8 +7190,7 @@ inline bool Decl::isPotentiallyOverridable() const {
|
||||
isa<SubscriptDecl>(this) ||
|
||||
isa<FuncDecl>(this) ||
|
||||
isa<DestructorDecl>(this)) {
|
||||
return getDeclContext()->getSelfClassDecl() ||
|
||||
isa<ProtocolDecl>(getDeclContext());
|
||||
return getDeclContext()->getSelfClassDecl();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user