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: 5024 Reporter: Dmitry Grebeniuk Assigned to:@xclerc Status: closed (set by @xavierleroy on 2012-09-25T18:06:17Z) Resolution: fixed Priority: normal Severity: minor Fixed in version: 3.12.1 Category: ~DO NOT USE (was: OCaml general) Monitored by:@ygrek@hcarty
Bug description
I've downloaded ocaml from svn trunk (revision 10259) and noticed that revised syntax can't handle pattern "_" when matching records:
========================================================
C:\overbld\ocaml>ocaml
Objective Caml version 3.12.0+dev17 (2010-01-20)
#load "dynlink.cma";;
#load "camlp4r.cma";;
Camlp4 Parsing version 3.12.0+dev17 (2010-01-20)
type myrec = { a : int; b : float };
type myrec = { a : int; b : float }
value f { a = a; _ } = a;
Characters 15-16:
value f { a = a; _ } = a;
^
Error: Parse error: "}" expected after [label_ipatt_list] (in [ipatt])
Original bug ID: 5024
Reporter: Dmitry Grebeniuk
Assigned to: @xclerc
Status: closed (set by @xavierleroy on 2012-09-25T18:06:17Z)
Resolution: fixed
Priority: normal
Severity: minor
Fixed in version: 3.12.1
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @ygrek @hcarty
Bug description
I've downloaded ocaml from svn trunk (revision 10259) and noticed that revised syntax can't handle pattern "_" when matching records:
========================================================
C:\overbld\ocaml>ocaml
Objective Caml version 3.12.0+dev17 (2010-01-20)
#load "dynlink.cma";;
#load "camlp4r.cma";;
type myrec = { a : int; b : float };
type myrec = { a : int; b : float }
value f { a = a; _ } = a;
Characters 15-16:
value f { a = a; _ } = a;
^
Error: Parse error: "}" expected after [label_ipatt_list] (in [ipatt])
========================================================
The text was updated successfully, but these errors were encountered: