haxe icon indicating copy to clipboard operation
haxe copied to clipboard

Regression: extractor fails in non-exhaustive switch

Open MSGhero opened this issue 1 year ago • 0 comments

Nightly b537e99, worked in 4.3.4

switch ("abc") {
    case _.charCodeAt(0) => 'a'.code: trace("1");
    case _.charCodeAt(1) => 'e'.code: trace("2");
    // default: trace(3); // "Local variable _hx_tmp used without being initialized" when commented out
    // works normally when uncommented
}

@kLabz

MSGhero avatar Jul 28 '24 20:07 MSGhero