Update to the latest wit-parser (#5694)
This notably pulls in support in WIT for types-in-worlds.
This commit is contained in:
14
crates/component-macro/tests/codegen/worlds-with-types.wit
Normal file
14
crates/component-macro/tests/codegen/worlds-with-types.wit
Normal file
@@ -0,0 +1,14 @@
|
||||
interface i {
|
||||
type t = u16
|
||||
}
|
||||
|
||||
default world foo {
|
||||
use self.i.{t as u}
|
||||
|
||||
type t = u32
|
||||
|
||||
record r {
|
||||
}
|
||||
|
||||
export f: func() -> tuple<t, u, r>
|
||||
}
|
||||
Reference in New Issue
Block a user