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

8 lines
188 B
Solidity
Raw Normal View History

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