Skip to content

Commit

Permalink
A couple of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
johnno1962 authored and slavapestov committed Jun 26, 2019
1 parent 2b46b42 commit 475f250
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/AST/ASTContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2412,6 +2412,7 @@ AnyFunctionType::Param swift::computeSelfParam(AbstractFunctionDecl *AFD,
isStatic = FD->isStatic();
selfAccess = FD->getSelfAccessKind();

// `self`s type for subscripts and properties
if (auto *AD = dyn_cast<AccessorDecl>(AFD)) {
if (wantDynamicSelf && AD->getStorage()
->getValueInterfaceType()->hasDynamicSelfType())
Expand Down
2 changes: 2 additions & 0 deletions lib/Sema/TypeCheckType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1051,6 +1051,8 @@ static std::string getDeclNameFromContext(DeclContext *dc,
//
// SE-0068 is "Expanding Swift Self to class members and value types"
// Returns a Type if 'Self' is available in the current implementation.
// Errs on the side of returning `Self` in most circumstances which is
// subsequently validated in the various vistors in TypeCheckDecl.cpp.
//
// https://github.com/apple/swift-evolution/blob/master/proposals/0068-universal-self.md
//
Expand Down

0 comments on commit 475f250

Please sign in to comment.