// RUN: not %target-swift-frontend %s -typecheck enum State { func put() -> StateType {} func put(keyPath: WritableKeyPath, projection: T) { put(keyPath: \.age, projection: {}) } }