mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
Desugar stmt expr before checking whether it's suffixed
This commit is contained in:
parent
01c94050c8
commit
460fa693fd
3 changed files with 12 additions and 6 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue