Fix LLVM linker flags for 6.0.
[mono-project.git] / mcs / tests / gtest-050.cs
blob1a1fe6462677b08891b746a3d53b483b07ecd538
1 // Type inference when creating delegates
3 using System;
5 delegate int D (string s, int i);
7 delegate int E ();
9 class X
11 public static T F<T> (string s, T t)
13 return t;
16 public static T G<T> ()
18 throw new ArgumentException ();
21 public static void Main ()
23 D d1 = new D (F<int>);
24 D d2 = new D (F);
26 E e1 = new E (G<int>);