Skip to content

BinaryOp::reverse does nothing but is used with the expectation of doing something #235

@pikaju

Description

@pikaju

The function BinaryOp::reverse currently does nothing as far as I can tell:

pub fn reverse(&mut self) {

However, code in IndexMatch expects this function to do something:


The tests pass despite this. I tried actually reversing the operator from Lt to Gt, LetoGe`, etc, and as a result the tests failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions