repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge pull request #4926 from BrzVlad/fix-tls-v5
[mono-project.git]
/
mcs
/
errors
/
cs1918.cs
blob
b1f325420156192360dd2b3e8513015a706284fe
1
// CS1918: Members of value type `S' cannot be assigned using a property `C.Value' 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
;
get
;
14
}
15
16
static void
Main
()
17
{
18
C c
=
new
C { Value = { X = 2 }
};
19
}
20
}