Enum cases as static read only properties

When conforming to a protocol I think cases in an enum can be seen as a static read-only property. I'd expect the following code to compile.

protocol P {
    static var a: Self { get }
}
enum E: P {
    case a
}
6 Likes

There’s an open bug for this. :blush:

10 Likes