codeowners update
[mono.git] / mcs / tests / dtest-011.cs
index 2b72f4facf946961ebdd9cd591b8ef0b54fde1f2..6f5da8464be15c9e4d7fa971ae319917b1aa746b 100644 (file)
@@ -16,6 +16,16 @@ class C
        {
                Console.WriteLine ("Got static long: {0}", l);
        }
+       
+       static int MethodBest (short d)
+       {
+               return 1;
+       }
+       
+       static int MethodBest (dynamic d)
+       {
+               return -1;
+       }
 
        void test ()
        {
@@ -24,8 +34,13 @@ class C
                foo_static (d);
        }
 
-       static void Main ()
+       public static int Main ()
        {
                new C ().test ();
+               
+               if (MethodBest (1) != 1)
+                       return 1;
+               
+               return 0;
        }
 }