We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3749a00 commit 8a0b4b0Copy full SHA for 8a0b4b0
stdlib/public/core/KeyPath.swift
@@ -114,13 +114,11 @@ public class AnyKeyPath: Hashable, _AppendKeyPath {
114
_abstract()
115
}
116
117
- // FIXME: This should return Self, but that breaks the closure specializer.
118
- // rdar://problem/31725007
119
public // @testable
120
static func _create(
121
capacityInBytes bytes: Int,
122
initializedBy body: (UnsafeMutableRawBufferPointer) -> Void
123
- ) -> AnyKeyPath {
+ ) -> Self {
124
_sanityCheck(bytes > 0 && bytes % 4 == 0,
125
"capacity must be multiple of 4 bytes")
126
let result = Builtin.allocWithTailElems_1(self, (bytes/4)._builtinWordValue,
0 commit comments