solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/122_warn_var_from_int8.sol

10 lines
344 B
Solidity
Raw Normal View History

contract test {
function f() pure public {
var i = -2;
i;
}
}
// ----
// Warning: (55-60): Use of the "var" keyword is deprecated.
// Warning: (55-65): The type of this variable was inferred as int8, which can hold values between -128 and 127. This is probably not desired. Use an explicit type to silence this warning.