Imported Upstream version 4.2.1.91

Former-commit-id: b6ad0994c58eaf044e2599fe2ff7996e073c87d2
This commit is contained in:
Xamarin Public Jenkins
2015-10-30 12:42:46 -04:00
committed by Jo Shields
parent bdd40f83c0
commit bac3554225
48 changed files with 211 additions and 83 deletions

View File

@ -0,0 +1,6 @@
// Compiler options: -t:library
public abstract class Base
{
public abstract string Value { get; }
}

View File

@ -0,0 +1,16 @@
// Compiler options: -r:gtest-autoproperty-21-lib.dll
public class Subclass : Base
{
public override string Value { get; }
public Subclass ()
{
Value = "test";
}
public static void Main ()
{
new Subclass ();
}
}

View File

@ -0,0 +1,21 @@
using System.Threading.Tasks;
using System;
class X
{
public async Task Test<T, U> (int arg)
{
await Task.Run (async () => {
await Task.Run (async () => {
Console.WriteLine (this);
});
return arg;
}
);
}
public static void Main ()
{
new X().Test<int, long>(1).Wait ();
}
}

View File

@ -0,0 +1,23 @@
using System.Collections.Generic;
class A {
public A ()
{
Info = new Dictionary<string, int>();
}
public Dictionary<string, int> Info { get; set; }
}
class X
{
public static void Main ()
{
var x = new A () {
Info = {
["x"] = 1,
["y"] = 2
}
};
}
}

View File

@ -1 +1 @@
4a970c00528488693bba23a5f9eda9b860437527
08b0ee8ce9da391ffa51e1cc3eb0a3611adf5b5e