QuentinRa/intellij-ocaml

The user should be able to suppress warnings

Opened this issue · 0 comments

  • for file
  • for a statement
  • for a declaration
  • as we have in Java, shorten the suppressed warning
(* -w +A-70 *)
[@@@warning "-32-60"]

[@@@ocaml.warning "+4"] -- file level

let [@ocaml.warning "-4"] g x = match x with
| A -> 0
| _ -> 1

let[@ocaml.warning "-4"] g x = match x with
| A -> 0
| _ -> 1

match[@ocaml.warning "-4"] A with
| A -> 0
| _ -> 1