Repository navigation
ppx: add test for #1085, add standalone ppx executable - #1091
Merged
Merged
Conversation
move it to examples/ causes dune errors in CI
raphael-proust
commented
Jan 16, 2026
Comment on lines
+80
to
+101
| (* TODO: I don't know how to trigger this | ||
| | Some constraint_ pv -> | ||
| begin match binding.pvb_pat.ppat_desc with | ||
| | Ppat_var pv -> | ||
| let e = | ||
| let open Ast_builder.Default in | ||
| pexp_let ~loc | ||
| Nonrecursive | ||
| [ | ||
| Latest.value_binding ~constraint_ | ||
| ~loc | ||
| ~pat:binding.pvb_pat | ||
| ~expr:(pexp_ident ~loc {loc=pv.loc; txt=Lident pv.txt}) | ||
| () | ||
| ] | ||
| (aux (i+1) t) | ||
| in | ||
| [%expr (fun [%p binding.pvb_pat] -> [%e e])] | ||
| | _ -> | ||
| Location.Error.(raise (make ~loc "unsupported value binding constraint" ~sub:[])) | ||
| end | ||
| *) |
Collaborator
Author
There was a problem hiding this comment.
I can't seem to make tests with this specific AST nodes. I also tried to make the polymorphic one.
I guess these are top-level stuff only? because use of let%lwt at top-level is discouraged i think it's ok for now.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test for reported issue with type annotations. Test passes so issue is not reproduced.
The test also passes when cherry-picking the commit on top of 5.9.2