mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user