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

9 lines
210 B
Solidity

contract C {
function f(uint size) public {
var x = new uint(7);
}
}
// ----
// Warning: (56-61): Use of the "var" keyword is deprecated.
// TypeError: (64-72): Contract or array type expected.