Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <martin@novell.com>2004-04-07 23:01:00 +0400
committerMartin Baulig <martin@novell.com>2004-04-07 23:01:00 +0400
commit851d036da58ca8423c949d88a75c7185a82a98bd (patch)
tree56a414546ad0c4e412230181530d0cf533766fd9 /mcs/errors/gcs0452.cs
parenta0c6e79318eee8cd033faf5287c7c12f33d9f0c2 (diff)
New tests.
svn path=/trunk/mcs/; revision=25182
Diffstat (limited to 'mcs/errors/gcs0452.cs')
-rw-r--r--mcs/errors/gcs0452.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/mcs/errors/gcs0452.cs b/mcs/errors/gcs0452.cs
new file mode 100644
index 00000000000..c210ba0efcc
--- /dev/null
+++ b/mcs/errors/gcs0452.cs
@@ -0,0 +1,17 @@
+// CS0452: The type `X' must be a reference type in order to use it as type
+// parameter `T' in the generic type or method `MyObject<T>'.
+// Line: 13
+public class MyObject<T>
+ where T : class
+{ }
+
+struct Foo
+{ }
+
+class X
+{
+ MyObject<Foo> foo;
+
+ static void Main ()
+ { }
+}