Debian Codegraph @

test-suite/success/export_inst.v

raw
1 Class Foo.
2
3 Module Foo.
4
5 #[export]
6 Instance F : Foo := {}.
7
8 End Foo.
9
10 Fail Definition foo_test := let _ : Foo := _ in tt.
11
12 Import Foo.
13
14 Definition foo_test := let _ : Foo := _ in tt.
15
16 Class Bar.
17
18 Module Bar.
19
20 Section Bar.
21
22 Variable b : Bar.
23
24 #[export] Instance B : Bar := {}.
25
26 (* Cannot declare variables as export instances *)
27 Fail #[export] Existing Instance b.
28
29 End Bar.
30
31 Definition bar_test := let _ : Bar := _ in tt.
32
33 End Bar.
34
35 Fail Definition bar_test := let _ : Bar := _ in tt.
36
37 Import Bar.
38
39 Definition bar_test := let _ : Bar := _ in tt.