2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / errors / gcs1913.cs
blob35a78d35558e7cdd80d3caa83bf289df7c06798c
1 // CS1913: Member `Data.Count' cannot be initialized. An object initializer may only be used for fields, or properties
2 // Line: 17
5 using System;
6 using System.Collections.Generic;
8 class Data
10 public delegate int Count ();
13 public class Test
15 delegate void S ();
17 static void Main ()
19 //S s = new S ();
20 //string drawBackLabel = string.Length("absDrawBack");
21 var c = new Data { Count = 10 };