| Issue 136: | Check enum comparison | |
| 1 person starred this issue and may be notified of changes. | Back to list |
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
Status:
Fixed
|