package root:root; world root { import test:foo1/bar; export test:foo2/bar; } package test:foo1 { interface bar { baz: func(s: string) -> string; } } package test:foo2 { interface bar { baz: func(s: string) -> string; } } package foo:root { world hello { import test:foo1/bar; export test:foo2/bar; } }