rustc/vendor/wit-component-0.219.1/tests/interfaces/diamond.wit.print
2025-01-11 15:57:26 +01:00

35 lines
500 B
Plaintext

package foo:foo;
interface shared-items {
enum the-enum {
a,
}
}
world w1 {
import shared-items;
import foo: interface {
use shared-items.{the-enum};
}
import bar: interface {
use shared-items.{the-enum};
}
}
world w2 {
import shared-items;
import foo: interface {
use shared-items.{the-enum};
}
export bar: interface {
use shared-items.{the-enum};
}
}
world w3 {
import shared-items;
export bar: interface {
use shared-items.{the-enum};
}
}