Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. struct S : ExpressibleByFloatLiteral {
  2. init(floatLiteral: FloatLiteralType) {}
  3. }
  4.  
  5. typealias AssocTy = Int
  6.  
  7. protocol P {
  8. associatedtype AssocTy
  9. func foo(x: AssocTy)
  10. }
  11.  
  12. class C : P {
  13. func foo(x: AssocTy) {}
  14. }
  15.  
  16. C.AssocTy.self == Int.self // true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement