[Nice-commit] Nice/testsuite/compiler/classes/constructors custom.testsuite,1.8,1.9
Brought to you by:
bonniot
From: <ar...@us...> - 2003-12-22 15:39:58
|
Update of /cvsroot/nice/Nice/testsuite/compiler/classes/constructors In directory sc8-pr-cvs1:/tmp/cvs-serv4712/F:/nice/testsuite/compiler/classes/constructors Modified Files: custom.testsuite Log Message: Testcase for custom constructor of a parametric class. Index: custom.testsuite =================================================================== RCS file: /cvsroot/nice/Nice/testsuite/compiler/classes/constructors/custom.testsuite,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** custom.testsuite 22 Dec 2003 01:30:59 -0000 1.8 --- custom.testsuite 22 Dec 2003 15:39:51 -0000 1.9 *************** *** 81,82 **** --- 81,93 ---- /// Toplevel new /*/// FAIL HERE */ FooBar(int x) = this("xyz"); + + /// PASS bug + A<String> a = new A(x: 5, z: "abc"); + assert a.t.equals("abc"); + /// Toplevel + class A<T> + { + String str; + T t; + } + new A(int x, T z) = this(str: x.toString(), t: z); |