solidity/test/libsolidity/syntaxTests/array/new_no_parentheses.sol
2019-02-13 16:31:26 +01:00

8 lines
188 B
Solidity

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.