[ nice-Bugs-904327 ] runtime Argument #0 to 'vend' has wrong type

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.lang.nice.devel
Message-ID <[email protected]>
Bugs item #904327, was opened at 2004-02-25 17:13
Message generated for change (Comment added) made by bonniot
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=904327&group_id=12788

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Isaac Gouy (igouy)
Assigned to: Nobody/Anonymous (nobody)
Summary: runtime Argument #0 to 'vend' has wrong type

Initial Comment:
Three packages:

//---------------------------
package vendor;
public class Vendor {}

//---------------------------
package test;
import vendor;

public interface ITest {}

public void vend(ITest i){ println("ITest"); }

class vendor.Vendor implements ITest;

//---------------------------
package main;
import vendor;
import test;

void main(String[] args){
   Vendor a = new Vendor();
   a.vend();
}

//---------------------------


>nicec -R -a t.jar main
nice.lang: parsing
vendor: parsing
test: parsing
main: parsing
vendor: typechecking
vendor: generating code
test: typechecking
test: generating code
main: typechecking
main: generating code
main: linking
main: writing in archive
vendor: writing in archive
nice.lang: writing in archive
test: writing in archive

>java -jar t.jar
Exception in thread "main" Argument #0 to &#039;vend&#039; has 
wrong type
        at gnu.mapping.WrongType.make
(WrongType.java:56)
        at main.fun.main(main.nice:8)
        at main.dispatch.main(dispatch.nice)


Nice compiler version 0.9.7 (build 2004.02.25, 13:20:37 
UTC)





----------------------------------------------------------------------

>Comment By: Daniel Bonniot (bonniot)
Date: 2004-03-04 17:01

Message:
Logged In: YES 
user_id=88952

Right, having an imported class implement a non-abstract
interface is not supported at the moment. Please adjust the
priority field of this report depending on how useful that
feature would be for you.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=904327&group_id=12788


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.