Idris2/tests/idris2/basic067/unclosed2.idr
2021-12-07 15:46:38 +00:00

21 lines
378 B
Idris

fun1 : a -> a
fun1 x = x
{-
allow unclosed comment block at the end of file
{-
fun2 : a -> a
fun2 x = x
-}
-- Before implemneting #2098, this was somehow parsed as a valid source and `fun3` was in scope
--
-- But i don't think that's the supposed behaviour for nested comment blocks?
-- In any case, after the change, `fun3` now is commented out.
fun3 : a -> a
fun3 x = x