| 1 |
/// RUN[new-import-new-dep]: component wit % --merge-world-imports-based-on-semver new-dep |
| 2 |
/// RUN[reorder-new-dep]: component wit % --merge-world-imports-based-on-semver reorder-dep |
| 3 |
package foo:bar; |
| 4 |
|
| 5 |
world new-dep { |
| 6 |
import a:b/[email protected]; |
| 7 |
import a:b/[email protected]; |
| 8 |
import a:b/[email protected]; |
| 9 |
} |
| 10 |
world reorder-dep { |
| 11 |
import a:b/[email protected]; |
| 12 |
import a:b/[email protected]; |
| 13 |
} |
| 14 |
package a:[email protected] { |
| 15 |
interface foo { |
| 16 |
type t = u32; |
| 17 |
} |
| 18 |
interface add-dep-on-prev-foo { |
| 19 |
} |
| 20 |
} |
| 21 |
|
| 22 |
|
| 23 |
package a:[email protected] { |
| 24 |
interface bar { |
| 25 |
type t = u32; |
| 26 |
} |
| 27 |
interface foo { |
| 28 |
use bar.{t}; |
| 29 |
} |
| 30 |
interface add-dep-on-prev-foo { |
| 31 |
use a:b/[email protected].{t}; |
| 32 |
} |
| 33 |
} |