svn path=/trunk/mcs/; revision=157503
--- /dev/null
+// Compiler options: -warnaserror
+
+public static class Program
+{
+ static void Foo (this object o)
+ {
+ }
+
+ public static void Main ()
+ {
+ const object o = null;
+ o.Foo ();
+ }
+}
{
public static void Main ()
{
- const object o = null;
- const string s = (string) o;
+ // BUG compatibility for now
+ //const object o = null;
+ //const string s = (string) o;
}
}
</method>
</type>
</test>
+ <test name="gtest-exmethod-34.cs">
+ <type name="Program">
+ <method name="Void Foo(System.Object)">
+ <size>1</size>
+ </method>
+ <method name="Void Main()">
+ <size>7</size>
+ </method>
+ </type>
+ </test>
<test name="gtest-friend-01.cs">
<type name="Test">
<method name="Void .ctor()">