Avatar
swiftbot BOT 1/28/2020 8:13 AM
Author icon
omochimetaru
class Animal {} class Cat: Animal {} class Dog: Animal {} let a = [Cat(), Dog()] print(type(of: a))
Version:
swift-5.1.3-RELEASE
Output:
Array<Animal>
Error: