package test:foo; interface bar { f: func(); } interface foo { f: func(); } world foobar { export bar; export foo; } world foo-only { export foo; }