Debian Codegraph @

test-suite/bugs/bug_14057.v

raw
1 Module Mono.
2 Module Transparent.
3 Fixpoint F (n : nat) (A : Type) {struct n} : nat
4 with G (n : nat) (A:Type@{_}) {struct n} : nat.
5 Proof.
6 1: pose (match n with S n => G n A | 0 => 0 end).
7 all: exact 0.
8 Defined.
9 End Transparent.
10
11 Module Opaque.
12 Fixpoint F (n : nat) (A : Type) {struct n} : nat
13 with G (n : nat) (A:Type@{_}) {struct n} : nat.
14 Proof.
15 1: pose (match n with S n => G n A | 0 => 0 end).
16 all: exact 0.
17 Qed.
18 End Opaque.
19 End Mono.
20
21 Module Poly.
22 Set Universe Polymorphism.
23 Module Transparent.
24 Fixpoint F (n : nat) (A : Type) {struct n} : nat
25 with G (n : nat) (A:Type@{_}) {struct n} : nat.
26 Proof.
27 1: pose (match n with S n => G n A | 0 => 0 end).
28 all: exact 0.
29 Defined.
30 Check F@{_}. Check G@{_}.
31 End Transparent.
32
33 Module Opaque.
34 Fixpoint F (n : nat) (A : Type) {struct n} : nat
35 with G (n : nat) (A:Type@{_}) {struct n} : nat.
36 Proof.
37 1: pose (match n with S n => G n A | 0 => 0 end).
38 all: exact 0.
39 Qed.
40 Check F@{_}. Check G@{_}.
41 End Opaque.
42 End Poly.