I did a mistake in my last reply which I’m correcting here. I meant structs 
instead of protocols B and C:

internal protocol A { func foo() }

public struct B : A {
      
    // foo won't be visible when imported
    func foo() {}
}

public struct C : A {
      
    // we can grant foo more visibility than it originally had
    // foo will be visible when imported, but the   
    // conformance to `A` will not be visible
    public func foo() {}
}


-- 
Adrian Zubarev
Sent with Airmail

Am 27. Juni 2016 um 10:38:12, Adrian Zubarev ([email protected]) 
schrieb:

internal protocol A { func foo() }

public protocol B : A {
      
    // foo won't be visible when imported
    func foo() {}
}

public protocol C : A {
      
    // we can grant foo more visibility than it originally had
    // foo will be visible when imported, but the   
    // conformance to `A` will not be visible
    public func foo() {}
}
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to