solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/021_comparison_of_function_types_lt_2.sol

8 lines
214 B
Solidity

contract C {
function f() public returns (bool ret) {
return f < f;
}
}
// ----
// TypeError: (73-78): Operator < not compatible with types function () returns (bool) and function () returns (bool)