We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3522a33 commit e9c0b32Copy full SHA for e9c0b32
stdlib/public/core/KeyPath.swift
@@ -3897,8 +3897,7 @@ internal func _instantiateKeyPathBuffer(
3897
public func _createOffsetBasedKeyPath(
3898
root: Any.Type,
3899
value: Any.Type,
3900
- offset: Int,
3901
- isClass: Bool = false
+ offset: Int
3902
) -> AnyKeyPath {
3903
func openRoot<Root>(_: Root.Type) -> AnyKeyPath.Type {
3904
func openValue<Value>(_: Value.Type) -> AnyKeyPath.Type {
@@ -3924,7 +3923,7 @@ public func _createOffsetBasedKeyPath(
3924
3923
builder.pushHeader(header)
3925
3926
let componentHeader = RawKeyPathComponent.Header(
3927
- stored: isClass ? .class : .struct,
+ stored: .struct,
3928
mutable: false,
3929
inlineOffset: UInt32(offset)
3930
)
0 commit comments