crates/wit-component/tests/components/imports/component.wit.print
raw| 1 | package root:component; |
| 2 | |
| 3 | world root { |
| 4 | import bar: interface { |
| 5 | record x { |
| 6 | a: u8, |
| 7 | } |
| 8 | |
| 9 | bar1: func(x: string); |
| 10 | |
| 11 | bar2: func(x: x); |
| 12 | } |
| 13 | import baz: interface { |
| 14 | type x = s8; |
| 15 | |
| 16 | baz1: func(x: list<string>); |
| 17 | |
| 18 | baz2: func(); |
| 19 | |
| 20 | baz3: func(x: x); |
| 21 | } |
| 22 | import foo: interface { |
| 23 | foo1: func(); |
| 24 | |
| 25 | foo2: func(x: u8); |
| 26 | |
| 27 | foo3: func(x: f32); |
| 28 | } |
| 29 | } |