svn path=/trunk/mcs/; revision=139336
int i;
}
}
+
+ public partial class Y
+ {
+ partial void Foo ()
+ {
+ int i;
+ }
+ }
+
+ public partial class Y
+ {
+ [CLSCompliant (true)]
+ partial void Foo ();
+ }
class Program
{
{
var x = typeof (X).GetMethod ("Foo", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetCustomAttributes (true);
Console.WriteLine (x.Length);
- if (x.Length == 1)
- return 0;
+ if (x.Length != 1)
+ return 1;
- return 1;
+ x = typeof (Y).GetMethod ("Foo", System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance).GetCustomAttributes (true);
+ Console.WriteLine (x.Length);
+ if (x.Length != 1)
+ return 2;
+
+ return 0;
}
}
}
<size>7</size>
</method>
<method name="Int32 Main()">
- <size>50</size>
+ <size>98</size>
+ </method>
+ </type>
+ <type name="ConsoleApplication1.Y">
+ <method name="Void Foo()">
+ <size>1</size>
+ </method>
+ <method name="Void .ctor()">
+ <size>7</size>
</method>
</type>
</test>