solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/012_type_inference_explicit_conversion.sol

7 lines
244 B
Solidity
Raw Normal View History

contract test {
function f() public returns (int256 r) { var x = int256(uint32(2)); return x; }
}
// ----
// Warning: (61-66): Use of the "var" keyword is deprecated.
// Warning: (20-99): Function state mutability can be restricted to pure