solidity/test/libsolidity/syntaxTests/parsing/conditional_with_variables.sol

13 lines
340 B
Solidity
Raw Normal View History

2018-05-17 07:04:39 +00:00
contract A {
function f() public {
2018-05-17 07:04:39 +00:00
uint x = 3;
uint y = 1;
uint z = (x > y) ? x : y;
uint w = x > y ? x : y;
}
}
// ----
// Warning 2072: (87-93): Unused local variable.
// Warning 2072: (121-127): Unused local variable.
// Warning 2018: (17-150): Function state mutability can be restricted to pure