solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/008_type_checking_return_wrong_type.sol

6 lines
226 B
Solidity
Raw Normal View History

contract test {
function f() public returns (uint256 r) { return 1 >= 2; }
}
// ----
// TypeError: (69-75): Return argument type bool is not implicitly convertible to expected type (type of first return variable) uint256.