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

8 lines
219 B
Solidity
Raw Normal View History

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