[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs1954.cs
bloba13a18b772ce10d09d9e8b412bcb1368d9e59c44
1 // CS1954: The best overloaded collection initalizer method `Data.Add(ref int)' cannot have `ref' or `out' modifier
2 // Line: 20
4 using System;
5 using System.Collections;
7 class Data : IEnumerable
9 public IEnumerator GetEnumerator () { return null; }
11 public void Add (ref int b)
16 public class Test
18 static void Main ()
20 var c = new Data { 1 };