| 1 |
package foo:root; |
| 2 |
package foo:bar { |
| 3 |
interface i0 { |
| 4 |
use foo:dep1/types.{type1}; |
| 5 |
use foo:dep2/types.{type2}; |
| 6 |
record rec0 { |
| 7 |
foo: type1, |
| 8 |
bar: type2 |
| 9 |
} |
| 10 |
} |
| 11 |
world w-bar { |
| 12 |
import foo:dep1/types; |
| 13 |
import foo:dep2/types; |
| 14 |
} |
| 15 |
} |
| 16 |
|
| 17 |
package foo:qux { |
| 18 |
interface i1 { |
| 19 |
use foo:dep1/types.{type1}; |
| 20 |
use foo:dep2/types.{type2}; |
| 21 |
record rec1 { |
| 22 |
foo: type1, |
| 23 |
bar: type2 |
| 24 |
} |
| 25 |
} |
| 26 |
world w-qux { |
| 27 |
import foo:dep1/types; |
| 28 |
import foo:dep2/types; |
| 29 |
} |
| 30 |
} |
| 31 |
|
| 32 |
interface root { |
| 33 |
use foo:bar/i0.{rec0}; |
| 34 |
use foo:qux/i1.{rec1}; |
| 35 |
record rec { |
| 36 |
first: rec0, |
| 37 |
second: rec1 |
| 38 |
} |
| 39 |
} |
| 40 |
|
| 41 |
|