Update of /cvsroot/nice/Nice/testsuite/compiler/classes/constructors
In directory sc8-pr-cvs1:/tmp/cvs-serv1721/testsuite/compiler/classes/constructors
Modified Files:
custom.testsuite
Log Message:
Handle custom constructors for classes with type parameters.
Index: custom.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/classes/constructors/custom.testsuite,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** custom.testsuite 22 Dec 2003 15:39:51 -0000 1.9
--- custom.testsuite 22 Dec 2003 20:28:10 -0000 1.10
***************
*** 82,86 ****
new /*/// FAIL HERE */ FooBar(int x) = this("xyz");
! /// PASS bug
A<String> a = new A(x: 5, z: "abc");
assert a.t.equals("abc");
--- 82,87 ----
new /*/// FAIL HERE */ FooBar(int x) = this("xyz");
! /// PASS
! /// package a
A<String> a = new A(x: 5, z: "abc");
assert a.t.equals("abc");
***************
*** 91,93 ****
T t;
}
! new A(int x, T z) = this(str: x.toString(), t: z);
--- 92,99 ----
T t;
}
! // Locally rename the type parameter
! <U> new A(int x, U z) = this(str: x.toString(), t: z);
!
! /// package b import a
! A<String> a = new A(x: 5, z: "abc");
! A<String> b = new A(str: "5", t: "abc");
|