mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 23:59:07 +00:00
32 lines
430 B
Plaintext
32 lines
430 B
Plaintext
package foo:foo;
|
|
|
|
interface shared-items {
|
|
enum the-enum {
|
|
a
|
|
}
|
|
}
|
|
|
|
world w1 {
|
|
import foo: interface {
|
|
use shared-items.{the-enum};
|
|
}
|
|
import bar: interface {
|
|
use shared-items.{the-enum};
|
|
}
|
|
}
|
|
|
|
world w2 {
|
|
import foo: interface {
|
|
use shared-items.{the-enum};
|
|
}
|
|
export bar: interface {
|
|
use shared-items.{the-enum};
|
|
}
|
|
}
|
|
|
|
world w3 {
|
|
export bar: interface {
|
|
use shared-items.{the-enum};
|
|
}
|
|
}
|