tests/cli/multiple-packages-one-world.wit
raw| 1 | // RUN: component embed --dummy --wat % | component wit |
| 2 | package foo:root; |
| 3 | package test:foo1 { |
| 4 | interface bar { |
| 5 | baz: func(s: string) -> string; |
| 6 | } |
| 7 | } |
| 8 | |
| 9 | package test:foo2 { |
| 10 | interface bar { |
| 11 | baz: func(s: string) -> string; |
| 12 | } |
| 13 | } |
| 14 | |
| 15 | world hello { |
| 16 | import test:foo1/bar; |
| 17 | export test:foo2/bar; |
| 18 | } |