mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
f3cbdadec7
type conversion. Also, add some test cases for #4901 and #4948.
11 lines
312 B
Solidity
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".
|