[ nice-Bugs-923443 ] println strange ambiguity

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

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Isaac Gouy (igouy)
>Assigned to: Daniel Bonniot (bonniot)
Summary: println strange ambiguity

Initial Comment:
Nice compiler version 0.9.8 prerelease (build 2004.03.25, 
17:17:17 UTC)


void main(String[] args){
   let n = 10;
   let L1 = new LinkedList();
   for (var j = 1; j <= n; j++) L1.add(j);

   println("First item of L1 != SIZE"); // OK
   if (L1[0] != n) println("First item of L1 != SIZE"); // 9
}



\Test>nicec --sourcepath .. -a t.jar test
nice.lang: parsing
test: parsing
test: typechecking

I:\pls\Nice\Test\..\test\test.nice: line 9, column 20:
No possible call for println.
Arguments: (java.lang.String)
Possibilities:
nice.lang.void println(java.io.PrintWriter)
nice.lang.void println(java.io.PrintStream)
<T> nice.lang.void println(T object)


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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112788&aid=923443&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.