enum Car { case Red case Blue } extension Car { func hello() { print("hello") } } let x = Car.Blue x.hello()
edit: although you can't add a new case to the enum.
That's the point. We all know you can add impls or extensions.
That's the point. We all know you can add impls or extensions.