aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/217_mem_array_assignment_changes_base_type.sol
blob: 3755b9352bf9dd6191cc3de5623eeca315739eee (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                                             
contract C {
    function f(uint8[] memory x) private {
        // Such an assignment is possible in storage, but not in memory
        // (because it would incur an otherwise unnecessary copy).
        // This requirement might be lifted, though.
        uint[] memory y = x;
    }
}
// ----
// TypeError: (256-275): Type uint8[] memory is not implicitly convertible to expected type uint256[] memory.