let foo a =
match a with
| 0 -> "0"
| 1 -> "1"
[@@cfg (disable=true)]
And the expected behavior is that we can remove that match case with the annotation.
This is mostly important for having good support for conditional constructors and variants, so that we can disable in tandem the pattern matching branches for them.
Currently, this is unsupported:
And the expected behavior is that we can remove that match case with the annotation.
This is mostly important for having good support for conditional constructors and variants, so that we can disable in tandem the pattern matching branches for them.