[Nice-commit] Nice/testsuite/compiler/native instanceof.testsuite,1.4,1.5
Brought to you by:
bonniot
|
From: <ar...@us...> - 2003-04-01 20:25:15
|
Update of /cvsroot/nice/Nice/testsuite/compiler/native
In directory sc8-pr-cvs1:/tmp/cvs-serv10514/F:/nice/testsuite/compiler/native
Modified Files:
instanceof.testsuite
Log Message:
@type patterns are automatic replaced by at any patterns if the type is equal to the type of the declaration.
All @type and #type patterns where type is a primitive type after the previous replacement will yield an error because instanceof a primitve type make no sense (yet).
An exception is made for boolean, so instanceof boolean is made to work now.
Index: instanceof.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/native/instanceof.testsuite,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** instanceof.testsuite 20 Feb 2003 15:05:15 -0000 1.4
--- instanceof.testsuite 1 Apr 2003 20:25:10 -0000 1.5
***************
*** 30,31 ****
--- 30,37 ----
/// FAIL
boolean b = /* /// FAIL HERE */ 1 instanceof int;
+
+ /// PASS
+ if (true instanceof boolean)
+ ;
+ else
+ throw new Error();
|