class ClassA { class ClassB { } } let compiles: [ClassA.ClassB] let doesNotCompile = [ClassA.ClassB]()
Playground execution failed: MyPlayg
I don't know the reason why the shorthand syntax does not work. However the compiler seems to like the extended syntax
let list = Array()