| 1 |
package foo:root; |
| 2 |
|
| 3 |
interface foo { |
| 4 |
use foo:wasi/clocks.{timestamp}; |
| 5 |
use foo:wasi/filesystem.{stat}; |
| 6 |
} |
| 7 |
|
| 8 |
world my-world { |
| 9 |
import foo:wasi/filesystem; |
| 10 |
import foo:wasi/clocks; |
| 11 |
|
| 12 |
export foo:corp/saas; |
| 13 |
} |
| 14 |
|
| 15 |
use foo:wasi/filesystem as filesystem; |
| 16 |
use foo:wasi/clocks as clocks; |
| 17 |
|
| 18 |
world my-world2 { |
| 19 |
import filesystem; |
| 20 |
import clocks; |
| 21 |
export foo; |
| 22 |
export foo:corp/saas; |
| 23 |
} |
| 24 |
|
| 25 |
interface bar { |
| 26 |
use filesystem.{}; |
| 27 |
use foo:some-pkg/the-default.{from-default}; |
| 28 |
use foo:some-pkg/some-interface.{another-type}; |
| 29 |
use foo:some-pkg/some-interface.{}; |
| 30 |
use foo:some-pkg/another-interface.{yet-another-type}; |
| 31 |
use foo:different-pkg/i.{}; |
| 32 |
} |
| 33 |
|
| 34 |
world bars-world { |
| 35 |
import foo:some-pkg/the-default; |
| 36 |
import foo:another-pkg/other-interface; |
| 37 |
} |
| 38 |
|
| 39 |
interface use1 { |
| 40 |
use foo:foreign-pkg/the-default.{some-type}; |
| 41 |
} |
| 42 |
interface use2 { |
| 43 |
use foo:foreign-pkg/the-default.{some-type}; |
| 44 |
} |