projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Wed Oct 17 13:24:33 CEST 2007 Paolo Molaro <lupus@ximian.com>
[mono.git]
/
mcs
/
errors
/
cs1612-4.cs
1
// cs1612-4.cs: Cannot modify the return value of `X.P' because it is not a variable
2
// Line: 9
3
4
using System;
5
class X {
6
static void Main ()
7
{
8
9
bar (out P.x);
10
Console.WriteLine ("Got: " + P.x);
11
}
12
13
static void bar (out int x) { x = 10; }
14
15
static G P {
16
get {
17
return g;
18
}
19
}
20
21
static G g = new G ();
22
23
struct G {
24
public int x;
25
}
26
}
27