You've already forked linux-packaging-mono
Imported Upstream version 4.4.0.122
Former-commit-id: a99f46acaeba3ab496c7afc02c29b839e30a0d0b
This commit is contained in:
17
mcs/tests/test-expression-bodied-02.cs
Normal file
17
mcs/tests/test-expression-bodied-02.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
[StructLayout(LayoutKind.Explicit, Size = 8)]
|
||||
public struct Cs0842ExpressionBodyGetterBug
|
||||
{
|
||||
[FieldOffset(0)]
|
||||
public int DummyVariable;
|
||||
|
||||
public int MyGetter => 5;
|
||||
}
|
||||
|
||||
class C
|
||||
{
|
||||
public static void Main ()
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,11 @@ public class MainClass
|
||||
public static event Action Act = null;
|
||||
public static dynamic BBB = null;
|
||||
|
||||
void ParameterTest (Person ParPerson)
|
||||
{
|
||||
Console.WriteLine (nameof (ParPerson.MyCar.Year));
|
||||
}
|
||||
|
||||
public static int Main ()
|
||||
{
|
||||
string name;
|
||||
@@ -61,6 +66,11 @@ public class MainClass
|
||||
if (name != "ToString")
|
||||
return 7;
|
||||
|
||||
Person LocPerson = null;
|
||||
name = nameof (LocPerson.MyCar.Year);
|
||||
if (name != "Year")
|
||||
return 8;
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
55a55a8ce00b5f19846f2a4e0df099c17d0799cd
|
||||
de9fea39fc570d60a08eeeba6e5eef06352b9197
|
||||
Reference in New Issue
Block a user