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 2b763bd commit 5eb29d8Copy full SHA for 5eb29d8
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