My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 136: Check enum comparison
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  gameh...@gmail.com
Closed:  Sep 2011


 
Project Member Reported by gameh...@gmail.com, Sep 8, 2011
It is allowed to compared two enums without parameters, and the result should be true if they are the same constructor.
 
The compiler already display an error when comparing with == an enum with parameters, for instance :
 
enum E {
   A;
   B( v : Int);
}
 
trace(A == B(0)); // error
 
I guess there's an issue with hxcpp that needs to be fixed in order to ensure that E.A == E.A.
Sep 14, 2011
Project Member #1 gameh...@gmail.com
Seems good.
Status: Fixed

Powered by Google Project Hosting