[Accessibility] Protocol witnesses must be as accessible as the protocol.

...unless the type has less accessibility than the protocol, in which case
they must be as accessible as the type.

This restriction applies even with access control checking disabled, but
shouldn't affect any decls not already marked with access control modifiers.

Swift SVN r19382
This commit is contained in:
Jordan Rose
2014-06-30 23:38:35 +00:00
parent 8e7d45f2c0
commit 748efed913
22 changed files with 121 additions and 10 deletions

View File

@@ -174,7 +174,7 @@
class func convertFromNilLiteral() -> Self
}
@internal protocol _BuiltinIntegerLiteralConvertible {
@public protocol _BuiltinIntegerLiteralConvertible {
class func _convertFromBuiltinIntegerLiteral(
value: MaxBuiltinIntegerType) -> Self
}
@@ -184,7 +184,7 @@
class func convertFromIntegerLiteral(value: IntegerLiteralType) -> Self
}
@internal protocol _BuiltinFloatLiteralConvertible {
@public protocol _BuiltinFloatLiteralConvertible {
class func _convertFromBuiltinFloatLiteral(
value: MaxBuiltinFloatType) -> Self
}