Hello,
I want to extend a class B with code, but also want to make code available to it's superclass.
struct C<T> {
}
class A {
}
class B: A {
}
extension B where Self: A {
func foo() -> C<Self> {
fatalError()
}
}
How would I do that?