solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/020_comparison_of_function_types_lt_1.sol

8 lines
242 B
Solidity
Raw Normal View History

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