More tests ...
authorMartin Baulig <martin@novell.com>
Tue, 30 Mar 2004 19:42:57 +0000 (19:42 -0000)
committerMartin Baulig <martin@novell.com>
Tue, 30 Mar 2004 19:42:57 +0000 (19:42 -0000)
svn path=/trunk/mcs/; revision=24799

mcs/errors/gcs0401.cs [new file with mode: 0644]
mcs/errors/gcs0405.cs [new file with mode: 0644]
mcs/errors/gcs0406.cs [new file with mode: 0644]
mcs/errors/gcs0700.cs [new file with mode: 0644]
mcs/errors/gcs0701.cs [new file with mode: 0644]
mcs/errors/gcs0702-2.cs [new file with mode: 0644]
mcs/errors/gcs0702.cs [new file with mode: 0644]

diff --git a/mcs/errors/gcs0401.cs b/mcs/errors/gcs0401.cs
new file mode 100644 (file)
index 0000000..198974a
--- /dev/null
@@ -0,0 +1,4 @@
+class Foo<T>
+       where T : new (), new ()
+{
+}
diff --git a/mcs/errors/gcs0405.cs b/mcs/errors/gcs0405.cs
new file mode 100644 (file)
index 0000000..1835209
--- /dev/null
@@ -0,0 +1,6 @@
+interface I { }
+
+class Foo<T>
+       where T : I, I
+{
+}
diff --git a/mcs/errors/gcs0406.cs b/mcs/errors/gcs0406.cs
new file mode 100644 (file)
index 0000000..d331f68
--- /dev/null
@@ -0,0 +1,7 @@
+class A { }
+class B { }
+
+class Foo<T>
+       where T : A, B
+{
+}
diff --git a/mcs/errors/gcs0700.cs b/mcs/errors/gcs0700.cs
new file mode 100644 (file)
index 0000000..43c6df4
--- /dev/null
@@ -0,0 +1,4 @@
+class Foo<T,U>
+       where T : U
+{
+}
diff --git a/mcs/errors/gcs0701.cs b/mcs/errors/gcs0701.cs
new file mode 100644 (file)
index 0000000..d4a27ee
--- /dev/null
@@ -0,0 +1,6 @@
+sealed class A { }
+
+class Foo<T>
+       where T : A
+{
+}
diff --git a/mcs/errors/gcs0702-2.cs b/mcs/errors/gcs0702-2.cs
new file mode 100644 (file)
index 0000000..75a2d22
--- /dev/null
@@ -0,0 +1,6 @@
+using System;
+
+class Foo<T>
+       where T : object
+{
+}
diff --git a/mcs/errors/gcs0702.cs b/mcs/errors/gcs0702.cs
new file mode 100644 (file)
index 0000000..86da607
--- /dev/null
@@ -0,0 +1,6 @@
+using System;
+
+class Foo<T>
+       where T : Array
+{
+}