Debian Codegraph @

tests/cli/fail-merge.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 x: interface {
14 use i2.{t};
15 }
16 }
17
18 // `into` has a transitive dep on importing i2 and must then import i1. Means
19 // we can't import `i1` when merging this in.
20 world %from {
21 export i1;
22 }