Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. class A {
  2. class B {}
  3. }
  4.  
  5. let arrayA1 = [A]()
  6. let arrayA2 = Array<A>()
  7.  
  8. let arrayAB1 = [A.B]() /// Invalid use of '()' of call a value of non-function type '[A.B.Type]'
  9. let arrayAB2 = Array<A.B>() /// correct
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement