Merge pull request #5675 from mono/glib-debug-symbols
[mono.git] / mcs / errors / cs1913.cs
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 delegate int Count ();
11 }
12
13 public class Test
14 {
15         delegate void S ();
16         
17         static void Main ()
18         {
19                 //S s = new S ();
20                 //string drawBackLabel = string.Length("absDrawBack");
21                 var c = new Data { Count = 10 };
22         }
23 }