solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/022_comparison_of_function_types_gt_1.sol

8 lines
247 B
Solidity
Raw Normal View History

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