Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

26 lines
350 B
C#

using System;
public class TestProp {
private int my_prop;
public int MyProp {
get {return my_prop;}
set {my_prop = value;}
}
public TestProp (int v) {
my_prop = v;
}
public static int Main() {
TestProp p = new TestProp (2);
if (p.MyProp != 2)
return 1;
p.MyProp = 54;
if (p.MyProp != 54)
return 2;
return 0;
}
}