[corlib] Fix a few NSLogWriter issues. (#13799)
[mono-project.git] / mcs / tests / test-ref-03.cs
blob201bd6c73cad3349b24b4973724216093e66a0c1
1 class X
3 int x;
5 static void Main ()
7 var x = new X ();
8 Foo (ref x.Wrap (1));
9 Foo (ref x.Prop);
10 Foo (ref x[""]);
13 ref int Wrap (int arg)
15 return ref x;
18 ref int Prop {
19 get {
20 return ref x;
24 ref int this [string arg] {
25 get {
26 return ref x;
30 static void Foo (ref int arg)