solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/typeChecking/return.sol

6 lines
164 B
Solidity

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