Commit Graph

4 Commits

Author SHA1 Message Date
Ellie Shin
0fe0d6d221 Allow Swift as a package name
Update AccessScope::isChildOf
Add more tests for package access level
Resolves rdar://106728606
2023-03-14 17:17:14 -07:00
Slava Pestov
8fd29a57cc Sema: Add some missing checks for where clauses on non-generic declarations
Access control, availability and exportability checking missed these
because of a baked-in assumption that getGenericParams() == nullptr
rules out the presence of a trailing where clause.
2020-10-16 00:34:56 -04:00
Owen Voorhees
9222dfdd46 [Sema] Fix protocol refinement access control message (#26855)
Previously, the protocol refinement access control error
would always assume a protocol was being refined. Change it
to instead refer to the appropriate declaration kind.

Resolves SR-9195
2019-08-29 17:47:24 -07:00
Slava Pestov
0d92918f5b Sema: Check access control in 'where' clauses of protocols and associated types
We weren't checking this before, which would let you define a
public protocol that no public type could conform to.

This is a source-breaking change, so stage it in with a warning.
It becomes an error in -swift-version 5 mode.
2018-06-15 13:23:58 -07:00