[w32file] Move MonoIO.Find{First,Next,Close} to managed
[mono.git] / mcs / errors / cs1913-2.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 int Count ()
11         {
12                 return 1;
13         }
14 }
15
16 public class Test
17 {
18         static void Main ()
19         {
20                 var c = new Data { Count = 10 };
21         }
22 }