Implement support for outer core type aliases (#4385)

Fill in the gaps of the implementation left after #4380.
This commit is contained in:
Alex Crichton
2022-07-07 11:38:27 -05:00
committed by GitHub
parent 7000b0a4cf
commit 038383dc42
3 changed files with 62 additions and 27 deletions

View File

@@ -86,3 +86,18 @@
(export "3" (table 1 funcref))
))
)
;; outer core aliases work
(component $C
(core type $f (func))
(core type $m (module))
(component $C2
(alias outer $C $f (core type $my_f))
(import "" (core module (type $m)))
(import "x" (core module
(alias outer $C2 $my_f (type $my_f))
(import "" "1" (func (type $my_f)))
))
)
)