Skip to content

EIE fix short-circuiting #29

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
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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