The following gives Xcode 8.1 a very hard time. Eventually I get a Bad Access
on the last line. I'm guessing it's a recursive call. Is there any way to call
the default implementation from a "real" implementation?
protocol FooPro
{
func fooFunc()
}
extension FooPro
{
func
fooFunc()
{
print("fooFunc default")
}
}
class FooClass : FooPro
{
func
fooFunc()
{
(self as FooPro).fooFunc()
print("fooFunc FooClass")
}
}
let fc: FooPro = FooClass()
fc.fooFunc()
Thanks!
--
Rick Mann
[email protected]
_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users