projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[mcs] Initial by ref returns and variables support
[mono.git]
/
mcs
/
tests
/
test-ref-02.cs
1
using System;
2
3
class X
4
{
5
int field;
6
7
static void Main ()
8
{
9
var x = new X ();
10
x.Run ();
11
}
12
13
void Run ()
14
{
15
Test (ref this[0]);
16
Test (ref Prop);
17
}
18
19
static int Test (ref int y)
20
{
21
return y;
22
}
23
24
ref int this [int y] {
25
get {
26
return ref field;
27
}
28
}
29
30
ref int Prop {
31
get {
32
return ref field;
33
}
34
}
35
}