[tuner] handle the case with multiple "preserve" attributes
[mono-project.git] / mcs / tests / gtest-336.cs
blob0ab6d35493215cdf4ebd7c0f6140c2b26ac4ff03
1 using System;
3 public class TestAttribute : Attribute
5 object type;
6 public object Type
8 get { return type; }
9 set { type = value; }
11 public TestAttribute() { }
12 public TestAttribute(Type type)
14 this.type = type;
18 namespace N
20 class C<T>
22 [Test(Type = typeof(C<>))] //this shouldn't fail
23 public void Bar() { }
25 [Test(typeof(C<>))] // this shouldn't fail
26 public void Bar2() { }
28 [Test(typeof(C<int>))] // this shouldn't fail
29 public void Bar3() { }
31 [Test(typeof(C<CC>))] // this shouldn't fail
32 public void Bar4() { }
35 class CC
37 public static void Main()