solidity/test/libsolidity/syntaxTests/parsing/array_type_range.sol

15 lines
435 B
Solidity
Raw Normal View History

contract C {
function f() public pure {
uint[][1:] memory x;
uint[][1:2] memory x;
uint[1:] memory x;
uint[1:2] memory x;
}
}
// ----
// ParserError 5464: (52-62): Expected array length expression.
// ParserError 5464: (81-92): Expected array length expression.
// ParserError 5464: (111-119): Expected array length expression.
// ParserError 5464: (138-147): Expected array length expression.