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

[cs] miscompilation of break in switch in do-while loop #11547

Closed
fourst4r opened this issue Feb 5, 2024 · 0 comments · Fixed by #11551
Closed

[cs] miscompilation of break in switch in do-while loop #11547

fourst4r opened this issue Feb 5, 2024 · 0 comments · Fixed by #11551
Labels
platform-cs Everything related to c#

Comments

@fourst4r
Copy link
Contributor

fourst4r commented Feb 5, 2024

This code doesn't compile on C# target.
Haxe 4.3.3

function main() {
    var o:haxe.ds.Option<Int> = None;
    do {
        switch(o) {
            case Some(_):
            case None: break;
        }
    }
    while( false );
}

src\_Main\Main_Fields_.cs(32,18): error CS1002: ; expected

The fix might be related to #6267

@kLabz kLabz added the platform-cs Everything related to c# label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-cs Everything related to c#
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants