blob: d2549e012595b88c785e6303c189eba31e9255d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
default Order dec
infix 4 ==
val eq_atom = {ocaml: "eq_atom", lem: "eq", coq: "Z.eqb"}: forall ('n : Int) ('m : Int).
(atom('n), atom('m)) -> bool
overload operator == = {eq_atom}
val test_fn : forall 'n, 'n in {8, 16}. atom('n) -> int
val test_switch : forall 'n, 'n in {8, 16}. atom('n) -> int
function test_fn 8 = 8
and test_fn 16 = 16
function test_switch n = match n {
8 => 8,
16 => 16
}
|