| 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 |
} |
| 26 |
|
| 27 |
world w1 { |
| 28 |
export test:foo1/bar; |
| 29 |
} |
| 30 |
|
| 31 |
world w2 { |
| 32 |
export test:foo2/bar; |
| 33 |
} |