Imported Upstream version 3.6.0

Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
This commit is contained in:
Jo Shields
2014-08-13 10:39:27 +01:00
commit a575963da9
50588 changed files with 8155799 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
public static class Rocks
{
public static string Test_1 (this string t)
{
return t + ":";
}
public static int Test_2<T> (this IEnumerable<T> e)
{
return 33;
}
}
public class Test
{
delegate string D ();
public static int Main ()
{
string s = "jaj";
D d = s.Test_1;
Func<int> d2 = "33".Test_2;
if ((string)d.Target != "jaj")
return 10;
if ((string)d2.Target != "33")
return 11;
string res = d ();
Console.WriteLine (res);
if (res != "jaj:")
return 1;
if (d2 () != 33)
return 2;
return 0;
}
}