Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Camlp4 produces invalid syntax for "let _ = ..." #5668
Original bug ID: 5668
The following code, taken from pa_js.ml in js_of_ocaml, creates a fragment which produces a syntax error (when Camlp4 prints the AST as source code):
The pre-processed code looks like:
let _ (foo : 'a) = ...
which is not valid OCaml syntax.