solidity/test/libsolidity/syntaxTests/array/new_no_parentheses.sol
2022-04-01 23:41:18 -05:00

8 lines
203 B
Solidity

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