This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,25 @@
$ cat >dune <<EOF
> (library
> (modes byte)
> (name foo))
> EOF
$ cat >foo.ml <<EOF
> type a = { a : int }
> and b = { a : int ; b : bool }
> EOF
$ cat >dune-project <<EOF
> (lang dune 3.12)
> EOF
$ dune build foo.cma
File "foo.ml", line 2, characters 10-19:
2 | and b = { a : int ; b : bool }
^^^^^^^^^
Error (warning 30 [duplicate-definitions]): the label a is defined in both types a and b.
[1]
$ cat >dune-project <<EOF
> (lang dune 3.13)
> EOF
$ dune build foo.cma