Unexpected end of script when nesting if inside match
Created by: PigeonF
Reproduction: Run the following piece of code
match "foo"
case "foo"
if true
echo "This is executed"
end
end
Expected behavior: "This is executed" gets printed (it does) and ion exits successfully.
Actual behavior: "This is executed" gets printed and ion exits with "ion: unexpected end of script: expected end block for Default
" and 1 as an exit code
Build information:
Ion built with rustc 1.25.0-nightly (3ec5a99aa 2018-02-14)
,
ion 1.0.0-alpha (x86_64-apple-darwin) rev 22b3efc6eb29020b452c44ad057c394951f6b982
Misc: This issue also occurs when trying to run ion setup.ion build docs
.
Note: I just started looking into ion, so this might just be me being unable to grasp the syntax