Last active
September 14, 2017 01:58
-
-
Save mitsuse/c136fe4195f81cc2ba287f9c8166dd58 to your computer and use it in GitHub Desktop.
A.swift (A.framework を生成) を B.swift (B.framework を生成) から参照. A.Namespace が class ではないかつ private/fileprivte なフィールドがあると A.Namespace.T1 を継承できなくなっている (Swift 3.1 まではコンパイルできた).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// public class Namespace { // OK | |
// public final class Namespace { // NG | |
// public struct Namespace { // NG | |
public enum Namespace { // NG | |
open class T1 { | |
private func test1() {} | |
fileprivate func test2() {} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import A | |
final class T: A.Namespace.T1 {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment