Keep order of parsed members (required by MD) to be more compatible with csc
[mono.git] / mcs / tests / gtest-autoproperty-03.cs
index 9252cad1d1d70bf370e86326c7eb6f2773110e1a..e0787572cce018b9e702b378332d8c9017efb4f7 100644 (file)
@@ -1,4 +1,4 @@
-// Compiler options: -langversion:linq
+
 // Make sure that the field and accessor methods of an automatic property have the CompilerGenerated attribute
 using System;
 using System.Reflection;
@@ -18,6 +18,9 @@ public class Test
                        return 2;
                if (field_atts[0].GetType() != typeof (CompilerGeneratedAttribute))
                        return 3;
+                       
+               if (fields [0].Name != "<Foo>k__BackingField")
+                       return 10;
                
                PropertyInfo property = typeof (Test).GetProperty ("Foo");
                MethodInfo get = property.GetGetMethod (false);