linux-packaging-mono/mcs/tests/gtest-exmethod-36.cs
Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

39 lines
411 B
C#

using System;
class S
{
public string Prop { get { return "5"; } }
}
class S2
{
public bool Prop;
}
static class E
{
public static int Prop (this S s)
{
return 8;
}
public static int Prop (this S2 s)
{
return 18;
}
}
class C
{
public static void Main ()
{
S s = new S ();
int b = s.Prop ();
string bb = s.Prop;
S2 s2 = new S2 ();
int b2 = s2.Prop ();
bool bb2 = s2.Prop;
}
}