[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[dotgnu-pnet-commits] cscctest ChangeLog csharp/class/generics/Makefi...
From: |
Klaus Treichel |
Subject: |
[dotgnu-pnet-commits] cscctest ChangeLog csharp/class/generics/Makefi... |
Date: |
Sun, 23 Sep 2007 09:23:44 +0000 |
CVSROOT: /cvsroot/dotgnu-pnet
Module name: cscctest
Changes by: Klaus Treichel <ktreichel> 07/09/23 09:23:44
Modified files:
. : ChangeLog
csharp/class/generics: Makefile.am
Added files:
csharp/class/generics: class3.cs class3.err class3.jerr
Log message:
Add test for some error cases in generic type declarations.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/cscctest/ChangeLog?cvsroot=dotgnu-pnet&r1=1.170&r2=1.171
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/Makefile.am?cvsroot=dotgnu-pnet&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/class3.cs?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/class3.err?cvsroot=dotgnu-pnet&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/cscctest/csharp/class/generics/class3.jerr?cvsroot=dotgnu-pnet&rev=1.1
Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/dotgnu-pnet/cscctest/ChangeLog,v
retrieving revision 1.170
retrieving revision 1.171
diff -u -b -r1.170 -r1.171
--- ChangeLog 22 Sep 2007 13:29:29 -0000 1.170
+++ ChangeLog 23 Sep 2007 09:23:44 -0000 1.171
@@ -1,3 +1,11 @@
+2007-09-23 Klaus Treichel <address@hidden>
+
+ * csharp/class/generics/Makefile.am: Add class3.cs to the tests to be
+ executed.
+
+ * csharp/class/generics/class3.cs, csharp/class/generics/class3.err,
+ csharp/class/generics/class3.jerr: Add test for some error cases.
+
2007-09-22 Klaus Treichel <address@hidden>
* configure.in: Add csharp/class/generics/Makefile to the generated
Index: csharp/class/generics/Makefile.am
===================================================================
RCS file: /cvsroot/dotgnu-pnet/cscctest/csharp/class/generics/Makefile.am,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- csharp/class/generics/Makefile.am 22 Sep 2007 13:25:18 -0000 1.1
+++ csharp/class/generics/Makefile.am 23 Sep 2007 09:23:44 -0000 1.2
@@ -1,5 +1,6 @@
TESTS = class1.cs \
class2.cs \
+ class3.cs \
delegate1.cs \
interface1.cs
Index: csharp/class/generics/class3.cs
===================================================================
RCS file: csharp/class/generics/class3.cs
diff -N csharp/class/generics/class3.cs
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/class3.cs 23 Sep 2007 09:23:44 -0000 1.1
@@ -0,0 +1,40 @@
+/*
+ * class1.cs - Test generic class declarations.
+ *
+ * Copyright (C) 2007 Southern Storm Software, Pty Ltd.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+namespace System
+{
+ public class Test
+ {
+ }
+
+ public class Test1<T> : valuetype
+ {
+ }
+
+ public class Test2<T> where T: struct, Test
+ {
+ }
+
+ public class Test3<T> where T: class, Test
+ {
+ }
+
+}
+
Index: csharp/class/generics/class3.err
===================================================================
RCS file: csharp/class/generics/class3.err
diff -N csharp/class/generics/class3.err
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/class3.err 23 Sep 2007 09:23:44 -0000 1.1
@@ -0,0 +1,3 @@
+./class3.cs:31: invalid base type
+./class3.cs:35: either class or valuetype or a non interface class can be
supplied
+./class3.cs:39: either class or valuetype or a non interface class can be
supplied
Index: csharp/class/generics/class3.jerr
===================================================================
RCS file: csharp/class/generics/class3.jerr
diff -N csharp/class/generics/class3.jerr
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ csharp/class/generics/class3.jerr 23 Sep 2007 09:23:44 -0000 1.1
@@ -0,0 +1,3 @@
+./class3.cs:31: invalid base type
+./class3.cs:35: either class or valuetype or a non interface class can be
supplied
+./class3.cs:39: either class or valuetype or a non interface class can be
supplied
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [dotgnu-pnet-commits] cscctest ChangeLog csharp/class/generics/Makefi...,
Klaus Treichel <=