Wiki

root/cobra/trunk/Tests/100-basics/322-enums-errors.cobra

Revision 2217, 199 bytes (checked in by Chuck.Esterbrook, 3 years ago)

Fixed: Comparing an int and an enum causes an internal exception instead of generating a normal error message.
reported-by:eric.sellon

  • Property svn:eol-style set to native
Line 
1class Test
2   
3    enum MyEnum
4        foo
5        bar
6       
7    def main
8        assert 0 < MyEnum.bar  # .error. The left and right sides of the "<" expression cannot be compared because of their types ("int" and "MyEnum")
Note: See TracBrowser for help on using the browser.