Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は制約: AnyObject(インポートは不要) を好みますが、Bはクラスを参照する必要があります。
: AnyObject
// import Foundation class A <B: AnyObject> { let it: B; init(_ b: B) { it = b } } class C { let DCI = 601 } println( A(C()).it.DCI ) // 601