Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A {
- class B {}
- }
- let arrayA1 = [A]()
- let arrayA2 = Array<A>()
- let arrayAB1 = [A.B]() /// Invalid use of '()' of call a value of non-function type '[A.B.Type]'
- let arrayAB2 = Array<A.B>() /// correct
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement