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: 6615 Reporter: ggole Assigned to:@garrigue Status: closed (set by @xavierleroy on 2016-12-07T10:36:50Z) Resolution: fixed Priority: normal Severity: minor Fixed in version: 4.03.0+dev / +beta1 Category: ~DO NOT USE (was: OCaml general) Monitored by:@gasche@hcarty
Bug description
The syntax of inline records doesn't seem allow a trailing ; as in normal records, that produces a parse error. However, inline records are printed with exactly such a trailing ;.
In short:
# type t = T of { f : float; };;
Characters 27-28:
type t = T of { f : float; };;
^
Error: Syntax error
# type t = T of { f : float };;
type t = T of { f : float; }
Hopefully the trailing ; will be allowed. It would be pretty surprising if the syntax were different to regular records.
Steps to reproduce
Enter
type t = T of { f : float };;
into a 4.03 toplevel.
The text was updated successfully, but these errors were encountered:
Original bug ID: 6615
Reporter: ggole
Assigned to: @garrigue
Status: closed (set by @xavierleroy on 2016-12-07T10:36:50Z)
Resolution: fixed
Priority: normal
Severity: minor
Fixed in version: 4.03.0+dev / +beta1
Category: ~DO NOT USE (was: OCaml general)
Monitored by: @gasche @hcarty
Bug description
The syntax of inline records doesn't seem allow a trailing ; as in normal records, that produces a parse error. However, inline records are printed with exactly such a trailing ;.
In short:
Hopefully the trailing ; will be allowed. It would be pretty surprising if the syntax were different to regular records.
Steps to reproduce
Enter
type t = T of { f : float };;
into a 4.03 toplevel.
The text was updated successfully, but these errors were encountered: