struct SomeStruct {
struct AnotherStruct {
var int: Int
}
var int: Int
}
var someArray = [SomeStruct.AnotherStruct]() // error
var anotherArray = Array<SomeStruct.AnotherStruct>() // this works
For the code above, I get a
cannot call value of non-function type '[SomeStruct.AnotherStruct.Type]'
. Is this a bug or something that we're stuck with, so we have to use the Array notation?