crates/wit-component/tests/components/exports/component.wit.print
raw| 1 | package root:component; |
| 2 | |
| 3 | world root { |
| 4 | export a: func(); |
| 5 | export b: func(a: s8, b: s16, c: s32, d: s64) -> string; |
| 6 | export c: func() -> tuple<s8, s16, s32, s64>; |
| 7 | export bar: interface { |
| 8 | flags x { |
| 9 | a, |
| 10 | b, |
| 11 | c, |
| 12 | } |
| 13 | |
| 14 | a: func(x: x); |
| 15 | } |
| 16 | export foo: interface { |
| 17 | variant x { |
| 18 | a, |
| 19 | b(string), |
| 20 | c(s64), |
| 21 | } |
| 22 | |
| 23 | a: func(); |
| 24 | |
| 25 | b: func(x: string) -> x; |
| 26 | |
| 27 | c: func(x: x) -> string; |
| 28 | } |
| 29 | } |