class Test enum MyEnum foo bar def main assert 0 < MyEnum.bar # .error. The left and right sides of the "<" expression cannot be compared because of their types ("int" and "MyEnum")