tests/cli/world-merging.wit
raw| 1 | // RUN: component embed --dummy --world foo % | component embed --world foo % | component wit |
| 2 | |
| 3 | // This test embeds this world twice and then ensures that merging the two |
| 4 | // worlds together works (it's the same definition anyway). |
| 5 | |
| 6 | package a:b; |
| 7 | |
| 8 | interface x { |
| 9 | type t = u32; |
| 10 | } |
| 11 | |
| 12 | world foo { |
| 13 | import x; |
| 14 | export x; |
| 15 | |
| 16 | use x.{t}; |
| 17 | |
| 18 | import a: func() -> t; |
| 19 | |
| 20 | export x: interface {} |
| 21 | export y: func(); |
| 22 | } |