solidity/test/libsolidity/syntaxTests/conversion/explicit_conversion_from_storage_array_ref.sol

11 lines
322 B
Solidity
Raw Normal View History

contract C {
int[10] x;
function f() public view {
int[](x);
int(x);
}
}
// ----
// TypeError 9640: (55-63): Explicit type conversion not allowed from "int256[10] storage ref" to "int256[] storage pointer".
// TypeError 9640: (67-73): Explicit type conversion not allowed from "int256[10] storage ref" to "int256".