Skip to content

Instantly share code, notes, and snippets.

@mitsuse
Last active September 14, 2017 01:58
Show Gist options
  • Save mitsuse/c136fe4195f81cc2ba287f9c8166dd58 to your computer and use it in GitHub Desktop.
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 まではコンパイルできた).
// 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() {}
}
}
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