solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/265_new_for_non_array.sol

8 lines
150 B
Solidity

contract C {
function f(uint size) public {
uint x = new uint(7);
}
}
// ----
// TypeError: (65-73): Contract or array type expected.