You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 5729 Reporter: furuse Assigned to:@lefessan Status: closed (set by @xavierleroy on 2015-12-11T18:08:20Z) Resolution: fixed Priority: normal Severity: minor Version: 4.00.0 Target version: 4.00.1+dev Fixed in version: 4.00.1+dev Category: tools (ocaml{lex,yacc,dep,debug,...}) Related to:#5811
Bug description
There is a bug of `untyping' unary variant constructor, which creates unary tuple Parsetree node, which never appear in legal OCaml programs AFAIK.
This is found when I wrote a modified ocamlc which tries to retype once typed source code using Untypeast.
Additional information
*** ../../ocaml/ocaml-custom/tools/untypeast.ml Thu Aug 16 15:11:41 2012
--- untypeast.ml Thu Aug 16 15:11:16 2012
Original bug ID: 5729
Reporter: furuse
Assigned to: @lefessan
Status: closed (set by @xavierleroy on 2015-12-11T18:08:20Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 4.00.0
Target version: 4.00.1+dev
Fixed in version: 4.00.1+dev
Category: tools (ocaml{lex,yacc,dep,debug,...})
Related to: #5811
Bug description
There is a bug of `untyping' unary variant constructor, which creates unary tuple Parsetree node, which never appear in legal OCaml programs AFAIK.
This is found when I wrote a modified ocamlc which tries to retype once typed source code using Untypeast.
Additional information
*** ../../ocaml/ocaml-custom/tools/untypeast.ml Thu Aug 16 15:11:41 2012
--- untypeast.ml Thu Aug 16 15:11:16 2012
This simple patch fix the problem:
*** 225,230 ****
--- 225,231 ----
Pexp_construct (lid,
(match args with
[] -> None
The text was updated successfully, but these errors were encountered: