Skip to content

Commit 8a0b4b0

Browse files
committed
Keypaths: Remove workaround for rdar://problem/31725007
1 parent 3749a00 commit 8a0b4b0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

stdlib/public/core/KeyPath.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,11 @@ public class AnyKeyPath: Hashable, _AppendKeyPath {
114114
_abstract()
115115
}
116116

117-
// FIXME: This should return Self, but that breaks the closure specializer.
118-
// rdar://problem/31725007
119117
public // @testable
120118
static func _create(
121119
capacityInBytes bytes: Int,
122120
initializedBy body: (UnsafeMutableRawBufferPointer) -> Void
123-
) -> AnyKeyPath {
121+
) -> Self {
124122
_sanityCheck(bytes > 0 && bytes % 4 == 0,
125123
"capacity must be multiple of 4 bytes")
126124
let result = Builtin.allocWithTailElems_1(self, (bytes/4)._builtinWordValue,

0 commit comments

Comments
 (0)