contract B {
    
    A a;
    
    function Bfunction() public{
        a = new A();
    }
    
    // COMPILATION ERROR
    // Return argument type inaccessible dynamic type is not implicitly convertible 
    // to expected type (type of first return variable) uint256[] memory.
    function bar() public  view {
        return a.foo();
    }
}
// trying to call foo from another contract does not work
function bar() public  view {
    return a.foo();
}

// COMPILATION ERROR
// Return argument type inaccessible dynamic type is not implicitly convertible 
// to expected type (type of first return variable) uint256[] memory.