projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2008-08-07 Sebastien Pouliot <sebastien@ximian.com>
[mono.git]
/
mcs
/
errors
/
gcs1918.cs
1
// CS1918: Members of a value type property `C.Value' cannot be assigned with an object initializer
2
// Line: 18
3
4
5
struct S
6
{
7
public int X;
8
}
9
10
class C
11
{
12
public S Value {
13
set { }
14
}
15
16
static void Main ()
17
{
18
C c = new C { Value = { X = 2 } };
19
}
20
}