Nice/testsuite/compiler/classes initializer.testsuite,1.17,1.18
Daniel Bonniot <[email protected]>
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/testsuite/compiler/classes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4640/testsuite/compiler/classes
Modified Files:
initializer.testsuite
Log Message:
Simplified class initializer resolution by placing 'this' in the SymbolTable
used for the initializers instead of fiddling in the parent scope.
Index: initializer.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/classes/initializer.testsuite,v
retrieving revision 1.17
retrieving revision 1.18
diff -C2 -d -r1.17 -r1.18
*** initializer.testsuite 9 Oct 2004 09:41:31 -0000 1.17
--- initializer.testsuite 4 Mar 2005 02:25:02 -0000 1.18
***************
*** 252,253 ****
--- 252,267 ----
new A(String s) { this(i: s.length); }
+
+ /// FAIL
+ let a = new A();
+ /// Toplevel
+ class A
+ {
+ {
+ int i = 1;
+ }
+
+ {
+ println(/*/// FAIL HERE */ i);
+ }
+ }
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click