Idris2/tests/idris2/error/error026/DoBlockFC.idr
2023-09-07 14:57:22 +01:00

8 lines
151 B
Idris

-- We expect the error to occur at a non-empty FC
bar : Maybe Int
foo : Either String Int
foo = do
Right n <- pure bar | _ => Left "fail"
pure 42