Avatar
@swift-6.0.3 @CasePathable enum SomeAction { case result(Result<(Int, Int),Never>) } func foo<A>(casePath: CaseKeyPath<SomeAction, A>) {} func bar() { foo(casePath: \.result.success) foo(casePath: \.result.failure) }