Idris2/tests/idris2/error026/DoBlockFC.idr

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