ocaml-sys / config.ml

conditional compilation via attributes for OCaml
Other
27 stars 4 forks source link

Support @@cfg in function branches #4

Closed leostera closed 3 months ago

leostera commented 8 months ago

Currently, this is unsupported:

let foo a = function
  | 0 -> "0"
  | 1 -> "1"
  [@@cfg (disable=true)]

And the expected behavior is that we can remove that function branch with the annotation.

KFoxder commented 8 months ago

This will get addressed in https://github.com/ocaml-sys/config.ml/pull/13. @leostera you can assign this to me.

KFoxder commented 6 months ago

@leostera I think this too can be closed now