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:
authorMarek Safar <marek.safar@gmail.com>2009-04-06 14:36:12 +0400
committerMarek Safar <marek.safar@gmail.com>2009-04-06 14:36:12 +0400
commitd51d6de1a7b27c2b9e58fb7e1e7bfae09f78afc2 (patch)
treeac61930b9c403805ebfd8f196f763d50e9fe525c /mcs/tests/gtest-446.cs
parentbdd0072aee015ef4ede39fda13a8a114595ea8aa (diff)
New tests.
svn path=/trunk/mcs/; revision=131104
Diffstat (limited to 'mcs/tests/gtest-446.cs')
-rw-r--r--mcs/tests/gtest-446.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/tests/gtest-446.cs b/mcs/tests/gtest-446.cs
new file mode 100644
index 00000000000..d949be5221a
--- /dev/null
+++ b/mcs/tests/gtest-446.cs
@@ -0,0 +1,23 @@
+using System;
+
+namespace BugTest
+{
+ class Bug<T> where T : new ()
+ {
+ public void CreateObject (out T param)
+ {
+ param = new T ();
+ }
+ }
+
+ static class Program
+ {
+ public static int Main ()
+ {
+ Bug<object> bug = new Bug<object> ();
+ object test;
+ bug.CreateObject (out test);
+ return 0;
+ }
+ }
+}