[ 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 08:13
Message generated for change (Tracker Item Submitted) made by Item Submitter
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)





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

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


-------------------------------------------------------
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
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.