Ignore when components export type definitions (#5051)
* allow a ComponentTypeRef::Type to point to a component TypeDef * component matching: don't assert exported Interface type definitions are "defined" types may be exported by their name for consumption by some component runtimes, but in wasmtime this doesn't matter (we lift and lower to types, not define them) so we should ignore these. * component-model instance tests: show that an import can export a type definition this is meaningless, but it should be accepted. (previously rejected)
This commit is contained in:
@@ -179,6 +179,12 @@
|
||||
))
|
||||
)
|
||||
|
||||
(component
|
||||
(import "host" (instance $i
|
||||
(type $rec (record (field "x" (record)) (field "y" string)))
|
||||
(export "some-record" (type (eq $rec)))))
|
||||
)
|
||||
|
||||
(component
|
||||
(import "host" (instance $i
|
||||
(export "nested" (instance
|
||||
|
||||
Reference in New Issue
Block a user