aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/conversion/explicit_conversion_from_storage_array_ref.sol
blob: 458adda684e50d0f57d0063aef15167dbdc1a6a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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".