tests/cli/world-merging-same-imports.wit
raw| 1 | // RUN: component embed --dummy --world into % | component embed --world %from % | component wit |
| 2 | |
| 3 | package a:b; |
| 4 | |
| 5 | interface b { |
| 6 | type t = u32; |
| 7 | } |
| 8 | |
| 9 | world into { |
| 10 | import a: interface {} |
| 11 | import b; |
| 12 | import c: func(); |
| 13 | use b.{t}; |
| 14 | } |
| 15 | |
| 16 | world %from { |
| 17 | import a: interface {} |
| 18 | import b; |
| 19 | import c: func(); |
| 20 | use b.{t}; |
| 21 | } |