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