* test-163.cs : Add test to check we select string
over object when we have a Null literal as the argument.
* makefile : Update.
svn path=/trunk/mcs/; revision=7287
+2002-09-06 Ravi Pratap <ravi@ximian.com>
+
+ * test-163.cs : Add test to check we select string
+ over object when we have a Null literal as the argument.
+
+ * makefile : Update.
+
2002-08-11 Martin Baulig <martin@gnome.org>
* test-162.cs: New test.
test-131 test-134 test-135 test-136 test-137 test-138 test-139 test-140 \
test-141 test-142 test-143 test-144 test-145 test-146 test-147 test-148 test-149 test-150 \
test-153 test-154 test-155 test-156 test-157 test-158 test-159 test-160 \
- test-161 test-162
+ test-161 test-162 test-163
UNSAFE_SOURCES = \
unsafe-1 unsafe-2 unsafe-3 test-58.cs
--- /dev/null
+using System;
+
+public class Blah {
+
+ static int Foo (string s)
+ {
+ return 2;
+ }
+
+ static int Foo (object o)
+ {
+ return 1;
+ }
+
+ public static int Main ()
+ {
+ int i = Foo (null);
+
+ if (i == 1) {
+ Console.WriteLine ("Wrong method ");
+ return 1;
+ }
+
+ return 0;
+ }
+
+}
+
+
+