The following code in Xcode 7 Swift gives the following compiler error, can anyone help?
let unitFlags: NSCalendarUnit = .CalendarUnitYear | .CalendarUnitMonth | .CalendarUnitDay | .CalendarUnitWeekday
error: type of expression is ambiguous without more context