-// Compiler options: -langversion:linq
+
// Supported by C# 3.0
public class C
public static void Test2<T> ()
{
- // FIXME:
- //T r = Test (delegate (T i) { return i; });
+ T r = Test (delegate (T i) { return i; });
}
public static void Main()
int r = Test (delegate (int i) { return i < 1 ? 'a' : i; });
string s = Test (delegate (int i) { return "a"; }, delegate (int i) { return "b"; });
}
-}
\ No newline at end of file
+}