System.Drawing: added email to icon and test file headers
[mono.git] / mcs / errors / cs1954.cs
1 // CS1954:  The best overloaded collection initalizer method `Data.Add(ref int)' cannot have 'ref', or `out' modifier
2 // Line: 16
3
4
5 using System;
6 using System.Collections;
7
8 class Data : IEnumerable
9 {
10         public IEnumerator GetEnumerator () { return null; }
11         
12         public void Add (ref int b)
13         {
14         }
15 }
16
17 public class Test
18 {
19         static void Main ()
20         {
21                 var c = new Data { 1 };
22         }
23 }