Debian Codegraph @

testsuite/tests/letrec-check/pr7215.ocaml.reference

raw
1 type (_, _) eq = Refl : ('a, 'a) eq
2 val cast : ('a, 'b) eq -> 'a -> 'b = <fun>
3 Line 3, characters 30-55:
4 3 | let rec (p : (int, a) eq) = match p with Refl -> Refl in
5 ^^^^^^^^^^^^^^^^^^^^^^^^^
6 Error: This kind of expression is not allowed as right-hand side of let rec
7