[jit] Fix the saving of the 'cfg->ret_var_set' flag when inlining, it was set to...
[mono.git] / mcs / tests / gtest-398.cs
1 using System;
2
3
4 public interface IFace
5 {
6         void Tst (IFace b);
7 }
8
9 public delegate string ToStr (string format, IFormatProvider format_provider);
10
11
12 public class GenericClass<T> where T : IFormattable
13 {
14         T field;
15
16         public GenericClass (T t)
17         {
18                 this.field = t;
19         }
20
21         public void Method ()
22         {
23                 ToStr str = new ToStr (field.ToString);
24
25                 Console.WriteLine (str ("x", null));
26         }
27
28         public void Test (T t) { }
29 }
30
31
32
33 public class Foo
34 {
35         public static void Main (string [] args)
36         {
37                 GenericClass<int> example = new GenericClass<int> (99);
38                 example.Method ();
39         }
40 }
41