mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-30 15:13:37 +03:00
8 lines
151 B
Idris
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
|