aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/008_type_checking_return_wrong_type.sol
blob: a7459ae8e32aa808b4a05618d37f1779b8e2b8fd (plain) (tree)
1
2
3
4
5




                                                                                                                                        
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.