Make StringComparer.Create throw ArgumentNullException (#26570)
[mono-project.git] / mcs / tests / dtest-011.cs
blob6f5da8464be15c9e4d7fa971ae319917b1aa746b
1 using System;
3 class C
5 void foo (int i)
7 Console.WriteLine ("Got int: {0}", i);
10 void foo (string message)
12 throw new ApplicationException ();
15 static void foo_static (long l)
17 Console.WriteLine ("Got static long: {0}", l);
20 static int MethodBest (short d)
22 return 1;
25 static int MethodBest (dynamic d)
27 return -1;
30 void test ()
32 dynamic d = 1;
33 foo (d);
34 foo_static (d);
37 public static int Main ()
39 new C ().test ();
41 if (MethodBest (1) != 1)
42 return 1;
44 return 0;