Skip to content

Commit

Permalink
Add future work about ProposeFunction lint
Browse files Browse the repository at this point in the history
Signed-off-by: Kakadu <kakadu@pm.me>
  • Loading branch information
Kakadu committed Feb 14, 2024
1 parent be620a2 commit 1f5bb43
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/typed/function.t/Function.ml
Expand Up @@ -13,3 +13,18 @@ let backslash = fun ch ->
| "\n" -> ""
| ch -> "" ^ ch
;;

let _ =
let (let*) =Option.bind in
let fail _ = None in
let* _res =
Fun.id (fun error ->
match error with
| _ ->
(match "" with
| "print_newline" ->
Some 42
| _ -> fail error)
) ()
in
None

0 comments on commit 1f5bb43

Please sign in to comment.