mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Detect situations where key path doesn't have capability required
by the context e.g. read-only vs. writable, or either root or value
types are incorrect e.g.
```swift
struct S { let foo: Int }
let _: WritableKeyPath<S, Int> = \.foo
```
Here context requires a writable key path but `foo` property is
read-only.
19 KiB
19 KiB