[Accessibility] Public functions/initializers may not use private types.

Also, don't diagnose accessibility violations on implicit decls. Every now
and then the compiler needs to bend the rules, such as when providing an ==
implementation for a local enum.

Swift SVN r19519
This commit is contained in:
Jordan Rose
2014-07-03 17:45:36 +00:00
parent 234a79ae32
commit 8080ca6820
7 changed files with 126 additions and 17 deletions

View File

@@ -14,11 +14,13 @@
// Conversions between different Unicode encodings. Note that UTF-16 and
// UTF-32 decoding are *not* currently resilient to erroneous data.
@public
enum UnicodeDecodingResult {
case Result(UnicodeScalar)
case EmptyInput
case Error
@public
func isEmptyInput() -> Bool {
switch self {
case .EmptyInput: