* TaskLoggingHelper.cs (LogErrorFromException): Add missing overload.
[mcs.git] / tests / gtest-050.cs
blob641ac26429370313a3b5acf98170a8cb7edabff6
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 static void Main ()
23 D d1 = new D (F<int>);
24 D d2 = new D (F);
26 E e1 = new E (G<int>);