Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gcs1922.cs « errors « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2beed78115e8140fb1aa1fb5c14b3bd4eba0c815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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
// Line: 16


using System;

class Data
{
	public int Value;
}

public class Test
{
	static void Main ()
	{
		var c = new Data { Value = { 0, 1, 2 } };
	}
}