solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/006_type_checking_return.sol

6 lines
159 B
Solidity

contract test {
function f() public returns (bool r) { return 1 >= 2; }
}
// ----
// Warning: (20-75): Function state mutability can be restricted to pure