mirror of https://github.com/SnapKit/SnapKit
Fixed compiler error on Xcode 6.1 for NilLiteralConvertible protocol conformance.
This commit is contained in:
parent
0a40ba4d78
commit
7a3953cc25
|
@ -38,6 +38,9 @@ internal struct ConstraintAttributes: RawOptionSetType, BooleanType {
|
||||||
internal init(_ rawValue: UInt) {
|
internal init(_ rawValue: UInt) {
|
||||||
self.init(rawValue: rawValue)
|
self.init(rawValue: rawValue)
|
||||||
}
|
}
|
||||||
|
internal init(nilLiteral: ()) {
|
||||||
|
self.rawValue = 0
|
||||||
|
}
|
||||||
|
|
||||||
internal private(set) var rawValue: UInt
|
internal private(set) var rawValue: UInt
|
||||||
internal static var allZeros: ConstraintAttributes { return self(0) }
|
internal static var allZeros: ConstraintAttributes { return self(0) }
|
||||||
|
|
Loading…
Reference in New Issue