mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -4197,7 +4197,7 @@ Type DeclContext::getSelfInterfaceType() const {
|
||||
/// generic parameters.
|
||||
ParamDecl *ParamDecl::createUnboundSelf(SourceLoc loc, DeclContext *DC) {
|
||||
ASTContext &C = DC->getASTContext();
|
||||
auto *selfDecl = new (C) ParamDecl(VarDecl::Specifier::None, SourceLoc(), SourceLoc(),
|
||||
auto *selfDecl = new (C) ParamDecl(VarDecl::Specifier::Owned, SourceLoc(), SourceLoc(),
|
||||
Identifier(), loc, C.Id_self, Type(), DC);
|
||||
selfDecl->setImplicit();
|
||||
return selfDecl;
|
||||
@@ -4217,7 +4217,7 @@ ParamDecl *ParamDecl::createSelf(SourceLoc loc, DeclContext *DC,
|
||||
ASTContext &C = DC->getASTContext();
|
||||
auto selfType = DC->getSelfTypeInContext();
|
||||
auto selfInterfaceType = DC->getSelfInterfaceType();
|
||||
auto specifier = VarDecl::Specifier::None;
|
||||
auto specifier = VarDecl::Specifier::Owned;
|
||||
assert(selfType && selfInterfaceType);
|
||||
|
||||
if (isStaticMethod) {
|
||||
|
||||
Reference in New Issue
Block a user