Your documentation indicates that protocols can’t be used with structs, but it seems they can’t be used with enums either. Is that true? The following fails for me:
protocol Foo {
func bar()
}
enum Baz: Foo {
func bar() {}
}
Your documentation indicates that protocols can’t be used with structs, but it seems they can’t be used with enums either. Is that true? The following fails for me:
protocol Foo {
func bar()
}
enum Baz: Foo {
func bar() {}
}
Thanks, logged as bugs://77023
bugs://77023 got closed with status fixed.
This was fixed quite some time ago, but had a duplicate bug id.