crates/wit-component/tests/interfaces/diamond.wit
raw| 1 | package foo:foo; |
| 2 | |
| 3 | interface shared-items { |
| 4 | enum the-enum { |
| 5 | a |
| 6 | } |
| 7 | } |
| 8 | |
| 9 | world w1 { |
| 10 | import foo: interface { |
| 11 | use shared-items.{the-enum}; |
| 12 | } |
| 13 | import bar: interface { |
| 14 | use shared-items.{the-enum}; |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | world w2 { |
| 19 | import foo: interface { |
| 20 | use shared-items.{the-enum}; |
| 21 | } |
| 22 | export bar: interface { |
| 23 | use shared-items.{the-enum}; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | world w3 { |
| 28 | export bar: interface { |
| 29 | use shared-items.{the-enum}; |
| 30 | } |
| 31 | } |