mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 04:33:45 +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
|