[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs1706-2.cs
blob19b5ce108da9bc5d5e578a7ea177ac824b368d5b
1 // CS1706: Anonymous methods and lambda expressions cannot be used in the current context
2 // Line: 14
4 public delegate void Proc();
6 public class AAttribute : System.Attribute
8 public AAttribute(Proc p)
9 { }
12 public class Class
14 [A((object)delegate { return; })]
15 public void Foo()