Files
rose-ash/lib/ocaml/test.sh
giles 6d7197182e
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 29s
ocaml: phase 5 HM tuple + list types (+7 tests, 326 total)
Tuple type (hm-con "*" TYPES); list type (hm-con "list" (TYPE)).
ocaml-infer-tuple threads substitution through each item left-to-right.
ocaml-infer-list unifies all items with a fresh 'a (giving 'a list for
empty []).

Pretty-printer renders 'Int * Int' for tuples and 'Int list' for lists,
matching standard OCaml notation.

Examples:
  fun x y -> (x, y) : 'a -> 'b -> 'a * 'b
  fun x -> [x; x] : 'a -> 'a list
  []                : 'a list
2026-05-08 12:54:15 +00:00

51 KiB
Executable File