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>2007-08-03 22:49:40 +0400
committerMarek Safar <marek.safar@gmail.com>2007-08-03 22:49:40 +0400
commit6d9d50bbca3675416b951c5e1975820442a2e366 (patch)
treefc59118b7ea925102f4c0e1847593253858f124c /mcs/tests/gtest-336.cs
parent52c5977260155d2390520b456a2c8a52e211bdf3 (diff)
A test for bug #81979
svn path=/trunk/mcs/; revision=83434
Diffstat (limited to 'mcs/tests/gtest-336.cs')
-rw-r--r--mcs/tests/gtest-336.cs41
1 files changed, 41 insertions, 0 deletions
diff --git a/mcs/tests/gtest-336.cs b/mcs/tests/gtest-336.cs
new file mode 100644
index 00000000000..0ab6d354932
--- /dev/null
+++ b/mcs/tests/gtest-336.cs
@@ -0,0 +1,41 @@
+using System;
+
+public class TestAttribute : Attribute
+{
+ object type;
+ public object Type
+ {
+ get { return type; }
+ set { type = value; }
+ }
+ public TestAttribute() { }
+ public TestAttribute(Type type)
+ {
+ this.type = type;
+ }
+}
+
+namespace N
+{
+ class C<T>
+ {
+ [Test(Type = typeof(C<>))] //this shouldn't fail
+ public void Bar() { }
+
+ [Test(typeof(C<>))] // this shouldn't fail
+ public void Bar2() { }
+
+ [Test(typeof(C<int>))] // this shouldn't fail
+ public void Bar3() { }
+
+ [Test(typeof(C<CC>))] // this shouldn't fail
+ public void Bar4() { }
+ }
+
+ class CC
+ {
+ public static void Main()
+ {
+ }
+ }
+} \ No newline at end of file