Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support comparison operators for enums

See original GitHub issue

The issue can be reproduced by modifying this test with the following code:

public void FilterByEnumField() {
            var structObj = new Structs();
            AssertEvaluation(structObj, "enum", "<", 3);

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

AlekseyMartynovcommented, Dec 15, 2017

Since there’s no outstanding issue in T584721, I mark this as enhancement. Easy to implement as soon as we understand use cases.

AlekseyMartynovcommented, Mar 12, 2019

@shcheglovvladimir has reported this issue today. The same case as in #339 (filter issued by Data Grid to find focused row index).

Read more comments on GitHub >

github_iconTop Results From Across the Web

redefinition of comparison operators of enums - c++
The problem here, it seems, is that you think (unscoped) enumerations are equal to integers. Like I said in my comment, enumeration values ......
Read more >
Enum filters should support comparison operators #20441
Enum filters should support comparison operators #20441 ... comparison operators and related aggregate functions are supported for enums.
Read more >
Build Enumerations of Constants With Python's Enum
This module provides the Enum class for supporting general-purpose ... By default, enums support two types of comparison operators:.
Read more >
A global Enum for comparison operators
So, I built an Enum and a function to use it to evaluate logical expressions. Is this a good, maintainable, scalable approach? Public...
Read more >
enum — Support for enumerations
New in version 3.11. Flag members support the bitwise operators & (AND), | (OR), ^ (XOR), and ~ (INVERT); the results of those...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found