ocaml-sys/config.ml

Support @@cfg in function branches

Closed this issue · 2 comments

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.

This will get addressed in #13. @leostera you can assign this to me.

@leostera I think this too can be closed now