[lang-ref] ( init_empty_array ) ( swift )
@Test func initEmptyArray() {
// items: [Int] = []
do {
let items: [Int] = []
#expect(items is Array<Int>)
#expect(items.count == 0)
}
do {
let items = [] as [Int]
#expect(items is Array<Int>)
#expect(items.count == 0)
}
}