Swift NilLiteralConvertible to an initializer requirement

Swift SVN r21980
This commit is contained in:
Doug Gregor
2014-09-16 20:43:35 +00:00
parent f3d1e5f448
commit 7f80e00d37
15 changed files with 73 additions and 59 deletions

View File

@@ -204,7 +204,7 @@ public protocol RawOptionSetType : _RawOptionSetType, BitwiseOperationsType,
/// Conforming to this protocol allows a type to be usable with the 'nil'
/// literal.
public protocol NilLiteralConvertible {
class func convertFromNilLiteral() -> Self
init(nilLiteral: ())
}
public protocol _BuiltinIntegerLiteralConvertible {