Debian Codegraph @

crates/wit-component/tests/interfaces/worlds-with-types.wit

raw
1 package foo:foo;
2
3 world simple {
4 record foo {
5 f: u8,
6 }
7
8 type bar = foo;
9
10 import a: func(a: foo) -> bar;
11 export b: func(a: foo) -> bar;
12 }
13
14 interface import-me {
15 type foo = u32;
16 }
17
18 world with-imports {
19 use import-me.{foo};
20
21 import a: func(a: foo);
22 export b: func(a: foo);
23 }