| 536 | |
| 537 | |
| 538 | TypeResult AddressType::binaryOperatorResult(Token _operator, Type const* _other) const |
| 539 | { |
| 540 | if (!TokenTraits::isCompareOp(_operator)) |
| 541 | return TypeResult::err("Arithmetic operations on addresses are not supported. Convert to integer first before using them."); |
| 542 | |
| 543 | return Type::commonType(this, _other); |
| 544 | } |
| 545 | |
| 546 | bool AddressType::operator==(Type const& _other) const |
| 547 | { |
no test coverage detected