Idris2/tests/idris2/error/error026/DoBlockFC.idr

8 lines
151 B
Idris
Raw Normal View History

-- 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