Debian Codegraph @

tests/cli/merge-fail-to-add-import.wit

raw
1 // FAIL: component embed --dummy --world into % | component embed --world %from % | component wit
2
3 package a:b;
4
5 interface i1 {
6 type t = u32;
7 }
8 interface i2 {
9 use i1.{t};
10 }
11
12 world into {
13 export i2;
14 }
15
16 // This world cannot be merged into `into` because it would change the meaning
17 // of `into`. Previously in `into` i2's export of `i2` would refer to the
18 // implicit import of `i1`, but here the export of `i2` refers to the export of
19 // `i1`.
20 world %from {
21 export i1;
22 export i2;
23 }