(Introduced in 4.07.0)
|
This extension allows user to define empty variants. Empty variant type can be eliminated by refutation case of pattern matching.
type t = | let f (x: t) = match x with _ -> .
© INRIA 1995-2020.
https://www.ocaml.org/releases/4.11/htmlman/emptyvariants.html