Debian Codegraph @

vendor/wit-component/tests/merge/success/from/deps/foo/shared.wit

raw
1 package foo:[email protected];
2
3 interface shared-only-from {
4 variant v {
5 c1,
6 }
7
8 bar: func(x: v);
9
10 use foo:only-from-dep/a.{a};
11 }
12
13 interface shared-items {
14 type a = u32;
15 }
16
17 world shared-world {
18 import shared-items;
19
20 export shared-items;
21
22 type c = u32;
23
24 import d: interface {}
25 }
26
27 @since(version = 1.0.0)
28 interface shared-version-on-from {}
29
30 interface shared-version-on-into {}
31
32 world shared-world-with-versions {
33 @since(version = 1.0.0)
34 import shared-version-on-from;
35 import shared-version-on-into;
36
37 @since(version = 1.0.0)
38 export shared-version-on-from;
39 export shared-version-on-into;
40 }
41
42 world shared-world-with-versions-and-include {
43 import shared-version-on-from;
44 import shared-version-on-into;
45 include shared-world-with-versions;
46 }