Desugar stmt expr before checking whether it's suffixed

This commit is contained in:
Agus Zubiaga 2024-10-14 23:01:26 -03:00
parent 01c94050c8
commit 460fa693fd
No known key found for this signature in database
3 changed files with 12 additions and 6 deletions

View file

@ -5,5 +5,12 @@ import pf.Effect
main : {} => {}
main = \{} ->
line = Effect.getLine! {}
if line == "secret" then
Effect.putLine! "You found the secret"
Effect.putLine! "Congratulations!"
else
{}
Effect.putLine! "You entered: $(line)"
Effect.putLine! "It is known"