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
Warnings 69 (introduced in #10232) and 37 have to be applied to whole types, they do not work on individual fields or constructors, which could sometimes be useful.
(* this one works as expected *)typea = { foo: int;bar: int } [@@warning "-69"]
(* this one does nothing *)typea' = { foo: int [@warning "-69"];bar: int }
(* this one works as expected *)typeb =
| Aofstring
| Bofint
[@@warning "-unused-constructor"]
(* this one does nothing *)typeb' =
| Aofstring [@warning "-unused-constructor"]
| Bofint
The text was updated successfully, but these errors were encountered:
This sounds like sensible feature with straightforward implementation.
For interested outreachy students, the warnings are matched to the constructor Unused_constructor _ and Unused_field _ inside the compiler. The change requires to find the location where each warning is used and ensure that attributes on the constructor or labels are taken in account in the current warning scope.
Warnings 69 (introduced in #10232) and 37 have to be applied to whole types, they do not work on individual fields or constructors, which could sometimes be useful.
The text was updated successfully, but these errors were encountered: