Nice/testsuite/compiler/expressions/operators null.testsuite,1.6,1.7
Arjan Boeijink <[email protected]>
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/testsuite/compiler/expressions/operators
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4762/F:/nice/testsuite/compiler/expressions/operators
Modified Files:
null.testsuite
Log Message:
Implemented instanceof on option types.
Index: null.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/expressions/operators/null.testsuite,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** null.testsuite 13 Oct 2004 18:28:49 -0000 1.6
--- null.testsuite 9 Mar 2005 14:47:49 -0000 1.7
***************
*** 46,47 ****
--- 46,55 ----
/// PASS
int[] i = [1,2] || [3,4];
+
+ /// PASS
+ ?String x = null;
+ assert x instanceof ?String;
+
+ /// PASS
+ ?String x = "abc";
+ assert x instanceof ?String;
-------------------------------------------------------
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