From 7a3953cc2587d2204216681ff188fa8cec55f449 Mon Sep 17 00:00:00 2001 From: "Noon, Christian" Date: Sun, 5 Oct 2014 16:29:19 -0700 Subject: [PATCH] Fixed compiler error on Xcode 6.1 for NilLiteralConvertible protocol conformance. --- Snappy/ConstraintAttributes.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Snappy/ConstraintAttributes.swift b/Snappy/ConstraintAttributes.swift index 36c566b..ae7fa4d 100644 --- a/Snappy/ConstraintAttributes.swift +++ b/Snappy/ConstraintAttributes.swift @@ -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) }