solidity/test/libsolidity/syntaxTests/conversion/explicit_conversion_from_storage_array_ref.sol
liangdzou f3cbdadec7 Do not set to ref for explicit conversion and add assertion for array
type conversion. Also, add some test cases for #4901 and #4948.
2018-09-14 08:42:40 +02:00

11 lines
312 B
Solidity

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