Fix all CreateInstance overloads for void
[mcs.git] / errors / gcs1954.cs
blob4b5a9e896bfebd0032d399b8b2a7c8441754a52c
1 // CS1954: The best overloaded collection initalizer method `Data.Add(ref int)' cannot have 'ref', or `out' modifier
2 // Line: 16
5 using System;
6 using System.Collections;
8 class Data : IEnumerable
10 public IEnumerator GetEnumerator () { return null; }
12 public void Add (ref int b)
17 public class Test
19 static void Main ()
21 var c = new Data { 1 };