What's the reason behind this design?

class Super {}
class Sub : Super {}

void foo(Super[] sup) {}

void main() {
    Sub[] array;
foo(array); // error, cannot call foo(Super[]) with arguments (Sub[])
}

Reply via email to