diff --git a/Sources/Tagged/Tagged.swift b/Sources/Tagged/Tagged.swift index e3d57aa..c861b33 100644 --- a/Sources/Tagged/Tagged.swift +++ b/Sources/Tagged/Tagged.swift @@ -147,6 +147,12 @@ extension Tagged: ExpressibleByIntegerLiteral where RawValue: ExpressibleByInteg } } +extension Tagged: ExpressibleByNilLiteral where RawValue: ExpressibleByNilLiteral { + public init(nilLiteral: ()) { + self.init(rawValue: RawValue(nilLiteral: nilLiteral)) + } +} + extension Tagged: ExpressibleByStringLiteral where RawValue: ExpressibleByStringLiteral { public typealias StringLiteralType = RawValue.StringLiteralType