blob: a6acac0c4b8c666bcca414d6a179f913a44821c6 [file] [log] [blame]
// RUN: not %target-swift-frontend %s -typecheck
enum State<StateType> {
func put<StateType>() -> StateType {}
func put<T>(keyPath: WritableKeyPath<StateType, T>, projection: T) {
put(keyPath: \.age, projection: {})
}
}