Debian Codegraph @

test/blackbox-tests/test-cases/rocq/duplicate-theory-project.t/run.t

raw
1 Duplicate theories in the same project should be caught by Dune:
2
3 $ mkdir A
4 $ mkdir B
5
6 $ cat > A/dune << EOF
7 > (rocq.theory
8 > (name foo))
9 > EOF
10
11 $ cat > B/dune << EOF
12 > (rocq.theory
13 > (name foo))
14 > EOF
15
16 $ dune build
17 Error: Rocq theory foo is defined twice:
18 - theory foo in A/dune:2
19 - theory foo in B/dune:2
20 -> required by alias default
21 [1]