[sgen] Don't trigger collections during allocation of thread objects (#17970)
[mono-project.git] / mcs / errors / cs1637.cs
blob7e6237f7fa8f4433b4ddb10b66afab4e7bbb01fe
1 // CS1637: Iterators cannot have unsafe parameters or yield types
2 // Line: 6
3 // Compiler options: /unsafe
5 unsafe class C
7 public System.Collections.IEnumerator GetEnumerator (int* p)
9 yield return 1;