Skip to content

Commit c9b8fa5

Browse files
authored
Merge pull request #805 from nkristek/optionalprotocol_expressiblebynilliteral
2 parents 06f6347 + 7140b2e commit c9b8fa5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# master
22
*Please add new entries at the top.*
3+
1. Add `ExpressibleByNilLiteral` constraint to `OptionalProtocol` (#805, kudos to @nkristek)
34

45
# 6.4.0
56
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.

Sources/Optional.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//
88

99
/// An optional protocol for use in type constraints.
10-
public protocol OptionalProtocol {
11-
/// The type contained in the otpional.
10+
public protocol OptionalProtocol: ExpressibleByNilLiteral {
11+
/// The type contained in the optional.
1212
associatedtype Wrapped
1313

1414
init(reconstructing value: Wrapped?)

0 commit comments

Comments
 (0)