Debian Codegraph @

crates/wit-parser/tests/ui/parse-fail/import-and-export3.wit

raw
1 package foo:foo;
2
3 interface foo {}
4 interface bar {}
5
6 world the-world {
7 import foo;
8 import bar;
9 import baz: interface {
10 foo: func();
11 }
12 export foo;
13 export bar;
14 export baz2: interface {
15 foo: func();
16 }
17 }
18
19 world a-different-world {
20 import foo;
21 }
22
23 interface i1 {
24 type t = u32;
25 }
26 interface i2 {
27 use i1.{t};
28 }
29 interface i3 {
30 use i2.{t};
31 }
32
33 world test {
34 import i3;
35 export i1;
36 export i3;
37 }