Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-163.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 67674b9505cf84a8f7e26b5f065a922be329c8d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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;
	}

}