Files
cli/vendor/wit-parser/tests/ui/use.wit

35 lines
442 B
Plaintext
Raw Normal View History

package foo:foo;
interface foo {
use bar.{the-type};
}
interface bar {
type the-type = u32;
}
interface baz {
use foo.{the-type};
use bar.{the-type as test};
}
interface empty {
}
interface use-from-empty {
use empty.{};
use empty.{};
}
interface use-multiple {
use baz.{the-type, test};
some-function: func(x: the-type) -> test;
}
interface trailing-comma {
use foo.{the-type,};
record the-foo { a: the-type }
}