Skip to content

EIE fix short-circuiting #29

@SomeRanDev

Description

@SomeRanDev

This will break lmao. HOW COULD I BE SO STUPID.

// This:
final array: Array<Int>;
if(array.length > 0 && if(array[0] > 100) { array[0] == 111; } else { true; }) {
   // bruh
}

// Gets converted to this:
var tempBool;
if(array[0] > 100) tempBool = array[0] == 111;
else tempBool = true;

if(array.length > 0 && tempBool) {
   // bruh
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions