Skip to content

Commit dbe151b

Browse files
committed
[AST] Mark init accessors as having internal access
This allows them to be used across files in the same module and requires explicit `@usableFromInline` annotation to be used inside of `@_alwaysEmitIntoClient` and `@inlinable` initializers.
1 parent 42c43e6 commit dbe151b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/AccessRequests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ AccessLevelRequest::evaluate(Evaluator &evaluator, ValueDecl *D) const {
6767
return AccessLevel::Private;
6868
case AccessorKind::Init:
6969
// These are only called from within the same module.
70-
return std::min(storage->getFormalAccess(), AccessLevel::Internal);
70+
return AccessLevel::Internal;
7171
}
7272
}
7373

0 commit comments

Comments
 (0)