Update of /cvsroot/nice/Nice/testsuite/compiler/classes/constructors
In directory sc8-pr-cvs1:/tmp/cvs-serv20998/testsuite/compiler/classes/constructors
Modified Files:
custom.testsuite
Log Message:
Report an error when a custom constructor is defined on a non-Nice class.
Index: custom.testsuite
===================================================================
RCS file: /cvsroot/nice/Nice/testsuite/compiler/classes/constructors/custom.testsuite,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** custom.testsuite 15 Dec 2003 16:19:47 -0000 1.6
--- custom.testsuite 16 Dec 2003 12:59:50 -0000 1.7
***************
*** 73,74 ****
--- 73,82 ----
new Point2(double angle, double distance)
{ this(x: distance * cos(angle), y: distance * sin(angle)); }
+
+ /// FAIL
+ /// Toplevel
+ new /*/// FAIL HERE */ String(int x) = this("xyz");
+
+ /// FAIL
+ /// Toplevel
+ new /*/// FAIL HERE */ FooBar(int x) = this("xyz");
|