In which packages can an interface be extended?

Isaac Gouy <[email protected]> Tue, 24 Feb 2004 23:31:04 -0800 (PST)
Newsgroups gmane.comp.lang.nice.general
Message-ID <[email protected]>
Seems like an interface can only be extended in the package where it
was declared - is that correct?

//---
package main;
public interface ITest {}

//---
package vendor;
public interface IVendor {}

//---
package test;
import main;
import vendor;
interface main.ITest implements vendor.IVendor;


   >nicec test
   nice.lang: parsing
   main: parsing
   vendor: parsing
   test: parsing

   .\test\test.nice: line 6, column 39:
   Encountered ".".
   Was expecting:
       ";" ...


This works fine:
   package vendor;
   import main;
   interface main.ITest implements IVendor;


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click