1 2 3 4 5 6 7 8
package test:comp; import x: interface { resource r; f: func(r: r); }; let i = new foo:bar { x };