You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Currently, when we are parsing the code, unreachable statement are considered a hard errors and LiSA throws an exception.
Reproducibility information
A programma like the following can produce the error:
fnfunc() -> i32{let x = 2;if x == 2{return1;}else{return3;}return4;}
Expected behavior
We should remove the unreachable statements during parsing, or make sure in some ways that LiSA does not give a ProgramValidationException: Unreachable node that is not marked as entrypoint.
The text was updated successfully, but these errors were encountered:
Description
Currently, when we are parsing the code, unreachable statement are considered a hard errors and LiSA throws an exception.
Reproducibility information
A programma like the following can produce the error:
Expected behavior
We should remove the unreachable statements during parsing, or make sure in some ways that LiSA does not give a
ProgramValidationException: Unreachable node that is not marked as entrypoint
.The text was updated successfully, but these errors were encountered: