solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/152_array_copy_with_different_types1.sol

8 lines
201 B
Solidity

contract c {
bytes a;
uint[] b;
function f() public { b = a; }
}
// ----
// TypeError: (70-71): Type bytes storage ref is not implicitly convertible to expected type uint256[] storage ref.