Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enum constructor values incorrect in Haxe 3.1 Flash 8 target #2728

Closed
clarkjones opened this issue Mar 7, 2014 · 1 comment
Closed

Enum constructor values incorrect in Haxe 3.1 Flash 8 target #2728

clarkjones opened this issue Mar 7, 2014 · 1 comment

Comments

@clarkjones
Copy link

Not sure if Flash 8 is still being supported but testing a library I'm working on with the lastest version of Haxe resulted in this issue.

    var myObject, enumBug, constructorValue;

    myObject = {
        foo : 'bar'
    };

    enumBug = EnumBug.Constructor(myObject);

    switch(enumBug){
        case EnumBug.Constructor(obj):
            constructorValue = obj;
    }

    trace('Constructor is of type: ' + Type.typeof(constructorValue));

    trace(constructorValue == myObject); //false in Flash 8 target

Here's a gist using muint of what I been seeing.
https://gist.github.com/clarkjones/7d9a604c2af66736342c
CPP target is commented out because of problems with that target as well. Not sure if that is related to munit though.

@Simn Simn closed this as completed in 9383e61 Mar 7, 2014
@Simn
Copy link
Member

Simn commented Mar 7, 2014

We don't really plan to invest a lot of time in fixing Flash 8 bugs, but your readme comment in that gist made me realize where the problem was right away. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants