tests/cli/multiple-packages-multiple-worlds-in-package.wit
raw| 1 | // FAIL: component embed --dummy --wat % |
| 2 | |
| 3 | package foo:root; |
| 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 | } |
| 15 | |
| 16 | package test:hola { |
| 17 | world hello { |
| 18 | import test:foo1/bar; |
| 19 | export test:foo2/bar; |
| 20 | } |
| 21 | world some-other-world { |
| 22 | import test:foo1/bar; |
| 23 | export test:foo2/bar; |
| 24 | } |
| 25 | } |