[Nice-commit] Nice/testsuite/compiler/methods integer.testsuite,1.3,1.4
Brought to you by:
bonniot
|
From: <ar...@us...> - 2003-04-27 09:45:18
|
Update of /cvsroot/nice/Nice/testsuite/compiler/methods
In directory sc8-pr-cvs1:/tmp/cvs-serv16645/F:/nice/testsuite/compiler/methods
Modified Files:
integer.testsuite
Log Message:
Code of bugreport #728270
Index: integer.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/methods/integer.testsuite,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** integer.testsuite 1 Apr 2003 20:25:08 -0000 1.3
--- integer.testsuite 27 Apr 2003 09:45:15 -0000 1.4
***************
*** 84,85 ****
--- 84,101 ----
foo(@long) {}
foo(#int) {}
+
+ /// PASS
+ /// Toplevel
+ abstract class Wrapped { }
+ class WrappedFoo extends Wrapped { String foo; }
+ class WrappedBar extends Wrapped { String bar; }
+
+ String getStr(int i, Wrapped f);
+ getStr(i, f@Wrapped) = "failed";
+ getStr(i, f@WrappedFoo) = getStr(i, f.foo);
+
+ String getStr(int i, String str);
+ getStr(0, str@String) = "no "+str;
+ getStr(1, str@String) = "one "+str;
+ getStr(2, str@String) = "many "+str;
+ getStr(i, str@String) = "unknown code";
|