This might be a bug in the Swift compiler, but it's an issue regardless: The redundantSendable rule removes Sendable from the ValueType enum here, but without it I get a warning.
It only appears to be a problem for enums that contain a case that reference themselves.
enum ValueType: Hashable {
case any
indirect case list(ValueType)
}
extension ValueType {
static let memberTypes: [String: ValueType] = [:] // <-- warns that ValueType is not Sendable
}

This might be a bug in the Swift compiler, but it's an issue regardless: The
redundantSendablerule removesSendablefrom theValueTypeenum here, but without it I get a warning.It only appears to be a problem for enums that contain a case that reference themselves.