Fixed compiler error on Xcode 6.1 for NilLiteralConvertible protocol conformance.

This commit is contained in:
Noon, Christian 2014-10-05 16:29:19 -07:00
parent 0a40ba4d78
commit 7a3953cc25
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ internal struct ConstraintAttributes: RawOptionSetType, BooleanType {
internal init(_ rawValue: UInt) {
self.init(rawValue: rawValue)
}
internal init(nilLiteral: ()) {
self.rawValue = 0
}
internal private(set) var rawValue: UInt
internal static var allZeros: ConstraintAttributes { return self(0) }