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: 6387 Reporter:@whitequark Assigned to:@alainfrisch Status: closed (set by @xavierleroy on 2015-12-11T18:26:46Z) Resolution: fixed Priority: normal Severity: feature Fixed in version: 4.02.0+dev Category: ~DO NOT USE (was: OCaml general)
Bug description
I am developing an extension for serializing data to Protocol Buffers. In particular, it accepts attributes on variant constructors that define their mapping to integer keys used in the protocol, like this: type v = A [@key 1] | B [@key 10] of int.
It would make sense if I could define the exact same type, mapping to exact same message, with polymorphic variants: type v' = A [@key 1] | `B [@key 10] of int'. However, this is currently not possible, as parser does not accept attributes in that position.
The text was updated successfully, but these errors were encountered:
Original bug ID: 6387
Reporter: @whitequark
Assigned to: @alainfrisch
Status: closed (set by @xavierleroy on 2015-12-11T18:26:46Z)
Resolution: fixed
Priority: normal
Severity: feature
Fixed in version: 4.02.0+dev
Category: ~DO NOT USE (was: OCaml general)
Bug description
I am developing an extension for serializing data to Protocol Buffers. In particular, it accepts attributes on variant constructors that define their mapping to integer keys used in the protocol, like this:
type v = A [@key 1] | B [@key 10] of int
.It would make sense if I could define the exact same type, mapping to exact same message, with polymorphic variants:
type v' =
A [@key 1] | `B [@key 10] of int'. However, this is currently not possible, as parser does not accept attributes in that position.The text was updated successfully, but these errors were encountered: