You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
classTest {
staticvarfoo:Foo=null;
staticfunctionmain() {
trace(switch (foo) {
caseB: "B";
caseA: "A";
default: "B";
});
// Outputs "A" only on hashlink, otherwise B
}
}
enumabstractFoo(Null<Int>) {
publicvarA=0;
publicvarB=1;
}
looks as though an int cast is converting null to 0, despite that null is a valid value for foo. We were able to work around this by adding case null: up top, but still seems like a bug
The text was updated successfully, but these errors were encountered:
Example:
looks as though an int cast is converting null to 0, despite that null is a valid value for foo. We were able to work around this by adding
case null:
up top, but still seems like a bugThe text was updated successfully, but these errors were encountered: