tests/cli/multiple-packages-missing-main-world.wit
raw| 1 | // FAIL: component embed --dummy --wat % |
| 2 | package test:root; |
| 3 | |
| 4 | package test:foo1 { |
| 5 | interface bar { |
| 6 | baz: func(s: string) -> string; |
| 7 | } |
| 8 | } |
| 9 | |
| 10 | package test:foo2 { |
| 11 | interface bar { |
| 12 | baz: func(s: string) -> string; |
| 13 | } |
| 14 | world some-other-world { |
| 15 | import test:foo1/bar; |
| 16 | export bar; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | package test:hola { |
| 21 | world hello { |
| 22 | import test:foo1/bar; |
| 23 | export test:foo2/bar; |
| 24 | } |
| 25 | } |