PS: If I change
enum HTTPMethod<Payload> {
case get
case post(Payload)
case patch(Payload)
}
to
enum HTTPMethod<Payload> {
case get(Payload)
case post(Payload)
case patch(Payload)
}
the problem also goes away. Filed a bug report using the Feedback Assistent, there shouldn't be reason why the .get case has an associated value.
Topic:
Programming Languages
SubTopic:
Swift
Tags: