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

test-81.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 005708bfc86b5a4fda4038efa601fcb6930e29dc (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
31
32
33
34
35
36
37
//
// Tests if we can invoke static members using the short
// names
//
using System;

namespace N1
{	
	public class A
	{
		int x;
		string s;

		void Bar ()
		{
			x = int.Parse ("0");
			s = string.Format("{0}", x);
		}

		public static int Main ()
		{
			A a = new A ();

			a.Bar ();
			
			if (a.x != 0)
				return 1;

			if (a.s != "0")
				return 1;

			Console.WriteLine ("Bar set s to " + a.s);

			return 0;
		}
	}		
}