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 ed752ac commit d5c999dCopy full SHA for d5c999d
test/stdlib/KeyPath.swift
@@ -1097,7 +1097,7 @@ if #available(SwiftStdlib 5.9, *) {
1097
let catNameKp = _createOffsetBasedKeyPath(
1098
root: Cat.self,
1099
value: String.self,
1100
- offset: 16
+ offset: 2 * MemoryLayout<UnsafeRawPointer>.size
1101
) as? KeyPath<Cat, String>
1102
1103
expectNotNil(catNameKp)
0 commit comments