Skip to content

Commit 9d86a45

Browse files
committed
[stdlib] ExpressibleByNilLiteral: allow ~Escapable conformers
1 parent db92d2b commit 9d86a45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/CompilerProtocols.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,9 @@ public protocol CaseIterable {
266266
/// `Optional` type conforms to `ExpressibleByNilLiteral`.
267267
/// `ExpressibleByNilLiteral` conformance for types that use `nil` for other
268268
/// purposes is discouraged.
269-
public protocol ExpressibleByNilLiteral: ~Copyable {
269+
public protocol ExpressibleByNilLiteral: ~Copyable, ~Escapable {
270270
/// Creates an instance initialized with `nil`.
271-
init(nilLiteral: ())
271+
init(nilLiteral: ()) -> dependsOn(immortal) Self
272272
}
273273

274274
public protocol _ExpressibleByBuiltinIntegerLiteral {

0 commit comments

Comments
 (0)