-// 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;
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);