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: 6179 Reporter:@dbuenzli Status: closed (set by @xavierleroy on 2016-12-07T10:36:46Z) Resolution: won't fix Priority: normal Severity: tweak Version: 4.00.1 Category: ~DO NOT USE (was: OCaml general) Related to:#6608
Bug description
I'm unable to understand the rationale behind that warning.
My take on this is that I may in the future want to add new fields to my record without having to change my copy function and want to live without the warning meanwhile.
type t = { a : int };;
type t = { a : int; }
let copy r = { r with a = r.a };;
Warning 23: all the fields are explicitly listed in this record:
the 'with' clause is useless.
val copy : t -> t =
The text was updated successfully, but these errors were encountered:
Original bug ID: 6179
Reporter: @dbuenzli
Status: closed (set by @xavierleroy on 2016-12-07T10:36:46Z)
Resolution: won't fix
Priority: normal
Severity: tweak
Version: 4.00.1
Category: ~DO NOT USE (was: OCaml general)
Related to: #6608
Bug description
I'm unable to understand the rationale behind that warning.
My take on this is that I may in the future want to add new fields to my record without having to change my copy function and want to live without the warning meanwhile.
type t = { a : int };;
type t = { a : int; }
let copy r = { r with a = r.a };;
Warning 23: all the fields are explicitly listed in this record:
the 'with' clause is useless.
val copy : t -> t =
The text was updated successfully, but these errors were encountered: