diff --git a/CHANGELOG.md b/CHANGELOG.md index f2964926a..0541e1c30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # master *Please add new entries at the top.* +1. Add `ExpressibleByNilLiteral` constraint to `OptionalProtocol` (#805, kudos to @nkristek) # 6.4.0 1. Bump min. deployment target to iOS 9 when using swift packages to silence Xcode 12 warnings. Update Quick & Nibmle to the latest version when using swift packages. diff --git a/Sources/Optional.swift b/Sources/Optional.swift index 1e8584c84..d30ba0fcf 100644 --- a/Sources/Optional.swift +++ b/Sources/Optional.swift @@ -7,8 +7,8 @@ // /// An optional protocol for use in type constraints. -public protocol OptionalProtocol { - /// The type contained in the otpional. +public protocol OptionalProtocol: ExpressibleByNilLiteral { + /// The type contained in the optional. associatedtype Wrapped init(reconstructing value: Wrapped?)