Idris2/tests/idris2/basic/basic067/unclosed2.idr
2023-09-07 14:57:22 +01: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