mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 09:12:34 +03:00
13 lines
241 B
Idris
13 lines
241 B
Idris
{--- -}
|
|
fun : Int -> Bool
|
|
fun x = (x /= 0)
|
|
{-
|
|
-}
|
|
main : IO ()
|
|
main = print (fun 5)
|
|
|
|
-- EXPLANATION:
|
|
-- this is about parsing the opening `{---`
|
|
-- which used to be parsed as two separate tokens `{-` and `--`
|
|
-- making the above program fail
|