FascinatedBox / lily

Interpreted language focused on expressiveness and type safety.

Home Page:http://lily-lang.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

elif/else after else in a multi-line block will lock up

FascinatedBox opened this issue · comments

if 1: {
    1
else: 1
else: 2
}

The above causes the interpreter to stall in an infinite loop. This only happens for multi-line blocks, because single-line blocks will bail out and try to run the else against the previous if.