Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct S : ExpressibleByFloatLiteral {
- init(floatLiteral: FloatLiteralType) {}
- }
- typealias AssocTy = Int
- protocol P {
- associatedtype AssocTy
- func foo(x: AssocTy)
- }
- class C : P {
- func foo(x: AssocTy) {}
- }
- C.AssocTy.self == Int.self // true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement