projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[tests] Add some missing files to EXTRA_DIST
[mono.git]
/
mcs
/
errors
/
cs1922.cs
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
}