solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/183_uninitialized_var.sol

7 lines
208 B
Solidity

contract C {
function f() public returns (uint) { var x; return 2; }
}
// ----
// Warning: (54-59): Use of the "var" keyword is deprecated.
// TypeError: (54-59): Assignment necessary for type detection.