[ilasm] Don't break arguments compatiblity
[mono-project.git] / mcs / errors / cs1629-2.cs
blobc26eafe5cdb1cd56eb560e3cb69b0ad3c989f745
1 // CS1629: Unsafe code may not appear in iterators
2 // Line: 8
3 // Compiler options: -unsafe
5 using System.Collections;
7 class X {
8 static IEnumerator GetIt ()
10 unsafe {
11 yield return 1;