Idris2/tests/idris2/perror016/ParseIf2.idr

6 lines
96 B
Idris

test : Int -> Int
test a = if a < 10
then if a < 0 the 0 else 5
else a