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
/
cs1913-2.cs
blob
cd5d064a233b252dbaea8c7560ab6bbaf92b15af
1
// CS1913: Member `Data.Count()' cannot be initialized. An object initializer may only be used for fields, or properties
2
// Line: 17
3
4
5
using
System
;
6
using
System
.
Collections
.
Generic
;
7
8
class
Data
9
{
10
public int
Count
()
11
{
12
return
1
;
13
}
14
}
15
16
public class
Test
17
{
18
static void
Main
()
19
{
20
var
c
=
new
Data { Count = 10 }
;
21
}
22
}