Imported Upstream version 4.4.0.40

Former-commit-id: 6427cc082e74df30afc535fd906a3494b74b0817
This commit is contained in:
Xamarin Public Jenkins
2016-03-16 12:38:19 -04:00
parent f3e3aab35a
commit a632333cc7
110 changed files with 1496 additions and 556 deletions

View File

@@ -0,0 +1,66 @@
// Compiler options: -warnaserror
using System;
public class Person
{
public Car MyCar { get; set; }
}
public class Car
{
public int Year { get; set; }
}
enum EE
{
K
}
public class MainClass
{
class Nested
{
}
public static Person MyPerson1 { get; } = new Person();
public static Person MyPerson2 = new Person();
public const Person MyPerson3 = null;
public static event Action Act = null;
public static dynamic BBB = null;
public static int Main ()
{
string name;
name = nameof (MyPerson1.MyCar.Year);
if (name != "Year")
return 1;
name = nameof (MyPerson2.MyCar.Year);
if (name != "Year")
return 2;
name = nameof (MyPerson3.MyCar.Year);
if (name != "Year")
return 3;
name = nameof (Act.Method.MemberType);
if (name != "MemberType")
return 4;
name = nameof (BBB.A.B.C);
if (name != "C")
return 5;
name = nameof (EE.K.ToString);
if (name != "ToString")
return 6;
name = nameof (int.ToString);
if (name != "ToString")
return 7;
return 0;
}
}