Debian Codegraph @

tests/cli/merge-with-similar-versions.wit.valid-semver.stdout

raw
1 /// RUN[imports]: component wit % --merge-world-imports-based-on-semver imports
2 /// RUN[exports]: component wit % --merge-world-imports-based-on-semver exports
3 /// RUN[imports-deps]: component wit % --merge-world-imports-based-on-semver imports-deps
4 /// RUN[imports-deps2]: component wit % --merge-world-imports-based-on-semver imports-deps2
5 /// FAIL[invalid-semver]: component wit % --merge-world-imports-based-on-semver invalid-semver
6 /// RUN[valid-semver]: component wit % --merge-world-imports-based-on-semver valid-semver
7 /// RUN[fix-transitive]: component wit % --merge-world-imports-based-on-semver fix-transitive
8 package foo:bar;
9
10 world imports {
11 import a:b/[email protected];
12 import a:b/[email protected];
13 }
14 world exports {
15 export a:b/[email protected];
16 export a:b/[email protected];
17 }
18 world imports-deps {
19 import a:b/[email protected];
20 import a:b/[email protected];
21 import a:b/[email protected];
22 import a:b/[email protected];
23 }
24 world imports-deps2 {
25 import a:b/[email protected];
26 import a:b/[email protected];
27 import a:b/[email protected];
28 import a:b/[email protected];
29 }
30 world invalid-semver {
31 import a:b/[email protected];
32 import a:b/[email protected];
33 }
34 world valid-semver {
35 import a:b/[email protected];
36 }
37 world fix-transitive {
38 import a:b/[email protected];
39 import a:b/[email protected];
40 import a:b/[email protected];
41 import a:b/[email protected];
42 use a:b/[email protected].{t as t1};
43 use a:b/[email protected].{t as t2};
44 use a:b/[email protected].{t as t3};
45 use a:b/[email protected].{t as t4};
46 }
47 package a:[email protected] {
48 interface foo {
49 type t = u32;
50
51 x: func();
52 }
53 interface depend-on-foo {
54 use foo.{t};
55
56 x: func() -> t;
57 }
58 interface invalid-semver {
59 x: func();
60 }
61 interface valid-semver {
62 x: func();
63 }
64 interface use-foo1 {
65 use foo.{t};
66
67 x: func() -> t;
68 }
69 }
70
71
72 package a:[email protected] {
73 interface foo {
74 type t = u32;
75
76 x: func();
77 }
78 interface depend-on-foo {
79 use foo.{t};
80
81 x: func() -> t;
82 }
83 interface invalid-semver {
84 y: func();
85 }
86 interface valid-semver {
87 x: func();
88
89 y: func();
90 }
91 interface use-foo2 {
92 use foo.{t};
93
94 x: func() -> t;
95 }
96 }