Files
David Jennes dea3d0a305 Add test case
2022-07-23 02:21:45 +02:00

20 lines
436 B
Swift

import Foundation
public enum IntegerEnum: Int16 {
case test1
}
public enum StringEnum: String {
case test1
}
public struct IntegerOptionSet: OptionSet {
public let rawValue: Int16
public init(rawValue: Int16) {
self.rawValue = rawValue
}
public static let foo = IntegerOptionSet(rawValue: 1 << 0)
public static let bar = IntegerOptionSet(rawValue: 1 << 1)
public static let all: IntegerOptionSet = [.bar, foo]
}