Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
clarkjones opened this Issue · 1 comment

2 participants

Clark Jones Simon Krajewski
Clark Jones

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.

Simon Krajewski Simn closed this in 9383e61
Simon Krajewski
Owner

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
Something went wrong with that request. Please try again.