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
[Http]: Cosmetic, remove some dead code.
[mono-project.git]
/
mcs
/
errors
/
cs1922.cs
blob
2beed78115e8140fb1aa1fb5c14b3bd4eba0c815
1
// CS1922: A field or property `Data.Value' cannot be initialized with a collection object initializer because type `int' does not implement `System.Collections.IEnumerable' interface
2
// Line: 16
3
4
5
using
System
;
6
7
class
Data
8
{
9
public int
Value
;
10
}
11
12
public class
Test
13
{
14
static void
Main
()
15
{
16
var
c
=
new
Data { Value = { 0, 1, 2 }
};
17
}
18
}