34 lines
554 B
Plaintext
34 lines
554 B
Plaintext
package foo:foo;
|
|
|
|
world module {
|
|
import bar: interface {
|
|
record x {
|
|
a: u8
|
|
}
|
|
|
|
bar1: func(x: string);
|
|
bar2: func(x: x);
|
|
}
|
|
|
|
import baz: interface {
|
|
type x = s8;
|
|
|
|
baz1: func(x: list<string>);
|
|
baz2: func();
|
|
baz3: func(x: x);
|
|
}
|
|
|
|
import foo: interface {
|
|
foo1: func();
|
|
foo2: func(x: u8);
|
|
foo3: func(x: f32);
|
|
unused: func();
|
|
|
|
/// doesn't show up in the wit output despite being exported here since it's
|
|
/// not actually used by anything
|
|
record unused-record {
|
|
f: u8,
|
|
}
|
|
}
|
|
}
|