(component (component $C1 (;0;) (type $X' (;0;) (resource (rep i32))) (export $X (;1;) "X" (type $X')) (core func $f (;0;) (canon resource.drop $X)) (type (;2;) (own $X)) (type (;3;) (func (param "X" 2))) (func (;0;) (type 3) (canon lift (core func $f))) (export (;1;) "f" (func 0)) ) (instance $c1 (;0;) (instantiate $C1)) (component $C2 (;1;) (import "X" (type $X (;0;) (sub resource))) (type (;1;) (own $X)) (type (;2;) (func (param "X" 1))) (import "f" (func (;0;) (type 2))) ) (alias export $c1 "X" (type (;0;))) (alias export $c1 "f" (func (;0;))) (instance $c2 (;1;) (instantiate $C2 (with "X" (type 0)) (with "f" (func 0)) ) ) )