[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-336.cs
1 using System;
2
3 public class TestAttribute : Attribute
4 {
5         object type;
6         public object Type
7         {
8                 get { return type; }
9                 set { type = value; }
10         }
11         public TestAttribute() { }
12         public TestAttribute(Type type)
13         {
14                 this.type = type;
15         }
16 }
17
18 namespace N
19 {
20         class C<T>
21         {
22                 [Test(Type = typeof(C<>))] //this shouldn't fail
23                 public void Bar() { }
24
25                 [Test(typeof(C<>))]     // this shouldn't fail
26                 public void Bar2() { }
27                 
28                 [Test(typeof(C<int>))]     // this shouldn't fail
29                 public void Bar3() { }
30
31                 [Test(typeof(C<CC>))]     // this shouldn't fail
32                 public void Bar4() { }
33         }
34
35         class CC
36         {
37                 public static void Main()
38                 {
39                 }
40         }
41 }