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

Wrong conversion break label; #313

Open
SlavaRa opened this issue Nov 15, 2017 · 0 comments
Open

Wrong conversion break label; #313

SlavaRa opened this issue Nov 15, 2017 · 0 comments

Comments

@SlavaRa
Copy link
Member

SlavaRa commented Nov 15, 2017

as3 code for example:

package {
    public class Issue313 {
        public function Issue313() {
            loop: for(var i:int = 0; i < 10; i++) {
                for(var j:int = 0; j < 10; j++) {
                    break loop;
                }
            }
        }
    }
}

expected result

class Issue313
{
    public function new()
    {
        try
        {
            for(i in 0...10)
            {
                for(j in 0...10)
                {
                    throw new as3hx.Compat.BreakLabel("break loop");
                }
            }
        } catch(e:as3hx.Compat.BreakLabel) {}
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant