File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 9
9
// REQUIRES: asserts
10
10
// REQUIRES: swift_in_compiler
11
11
12
- // REQUIRES: rdar126415070
13
-
14
12
// Simply test that it is possible for a module to define a pseudo-Optional type without triggering any compiler errors.
15
13
16
14
public protocol ExpressibleByNilLiteral: ~ Copyable & ~ Escapable {
@@ -61,7 +59,7 @@ extension Nillable where Wrapped: ~Copyable {
61
59
_ transform: ( borrowing Wrapped ) throws ( E ) -> U
62
60
) throws ( E) -> U ? {
63
61
switch self {
64
- case . some( _borrowing y) :
62
+ case . some( borrowing y) :
65
63
return . some( try transform ( y) )
66
64
case . none:
67
65
return . none
@@ -85,7 +83,7 @@ extension Nillable where Wrapped: ~Copyable {
85
83
_ transform: ( borrowing Wrapped ) throws ( E ) -> U ?
86
84
) throws ( E) -> U ? {
87
85
switch self {
88
- case . some( _borrowing y) :
86
+ case . some( borrowing y) :
89
87
return try transform ( y)
90
88
case . none:
91
89
return . none
You can’t perform that action at this time.
0 commit comments