Merge pull request #4928 from kumpera/ptr_to_struct_intrinsic
[mono.git] / mcs / tests / gtest-626.cs
1 using System;
2
3 class Program
4 {
5         public class Foo
6         {
7                 public static bool MG (Foo t)
8                 {
9                         return false;
10                 }
11         }
12
13         public class Bar<T>
14         {
15                 public static Bar<T> Create (Func<T, bool> a)
16                 {
17                         return null;
18                 }
19
20                 public static Bar<T> Create (Func<T, double> a, Func<T, bool> b = null)
21                 {
22                         throw new ApplicationException ();
23                 }
24         }
25
26         static void Main ()
27         {
28                 var x = Bar<Foo>.Create (Foo.MG);
29         }
30 }