[Nice-commit] Nice/testsuite/compiler/methods integer.testsuite,1.2,1.3
Brought to you by:
bonniot
|
From: <ar...@us...> - 2003-04-01 20:25:42
|
Update of /cvsroot/nice/Nice/testsuite/compiler/methods
In directory sc8-pr-cvs1:/tmp/cvs-serv10514/F:/nice/testsuite/compiler/methods
Modified Files:
integer.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: integer.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/integer.testsuite,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** integer.testsuite 25 Feb 2003 20:08:02 -0000 1.2
--- integer.testsuite 1 Apr 2003 20:25:08 -0000 1.3
***************
*** 72,73 ****
--- 72,85 ----
toStr(c@'a') = "a";
toStr(c@'b') = "b";
+
+ /// FAIL
+ /// Toplevel
+ void foo(long);
+ foo(@long) {}
+ foo(@int) {}
+
+ /// FAIL
+ /// Toplevel
+ void foo(long);
+ foo(@long) {}
+ foo(#int) {}
|