8.21 Empty variant types

(Introduced in 4.07.0)

type-representation::=
= |

This extension allows user to define empty variants.Empty variant type can be eliminated by refutation case of pattern matching.

  1. type t = |
  2. let f (x: t) = match x with _ -> .
  3.