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

8 lines
155 B
Solidity
Raw Normal View History

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