solidity/test/libsolidity/syntaxTests/array/new_no_parentheses.sol

8 lines
193 B
Solidity

contract C {
function f(uint size) public {
new uint[1];
}
}
// ----
// TypeError 3904: (60-67): Length has to be placed in parentheses after the array type for new expression.